Skip to content

Out of source build error #654

Answered by pattacini
pamely asked this question in Q&A
Discussion options

You must be logged in to vote

How did you build YARP?

⬜ Just build w/o install

If you didn't install it (you just typed make), then you ought to follow one of the proposed suggestions:

  Add the installation prefix of "YARP" to CMAKE_PREFIX_PATH or set
  "YARP_DIR" to a directory containing one of the above files.  If "YARP"
  provides a separate development package or SDK, be sure it has been
  installed.

⚪ Suggestion 1 (CMAKE_PREFIX_PATH)

cd /yarp/hello/build
cmake -DCMAKE_PREFIX_PATH=/path_to_yarp_build_dir ..

where /path_to_yarp_build_dir shall point to the directory where you built YARP.

Alternatively, you could export CMAKE_PREFIX_PATH as an env variable.

⚪ Suggestion 2 (YARP_DIR)

Put the line below into your .b…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pattacini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants