-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set_property could not find TARGET jsoncpp_lib. #504
Comments
First of all, be sure that you're following the instructions here:
CMake Error at cmake/cmake-4.0.0-modules/RequireOutOfSourceBuild.cmake:41
(message):
You must set a binary directory that is different from your source
directory. You might consider /home/manuel/foobot/OSVR/OSVR-Core/build or
/home/manuel/foobot/OSVR/build-osvrcore
Secondly, that is really rather strange. Can you attach or otherwise upload
(to a gist, perhaps) the /usr/local/lib/cmake/jsoncpp/ files? Presumably in
your custom build of jsoncpp, it's not generating the CMake config the way
we expect. What source are you using for your jsoncpp? (`git describe
--tags` in the source dir should help, along with what repo you cloned)
Thirdly, you shouldn't actually need to build jsoncpp from source unless
you have a particular reason you want to - all known issues with using
distribution-provided packages have been resolved. (but I do want to track
down what's weird about your jsoncpp build that is confusing the cmake
module)
On Fri, Dec 2, 2016 at 11:04 AM manuel-masiello ***@***.***> wrote:
Hello,
I can't compile the core : (
I have this error:
`16:28 $ cmake ..
-- Git reports version 0.6-1363-g92d6d9d
CMake Error at cmake/FindJsonCpp.cmake:85 (set_property):
set_property could not find TARGET jsoncpp_lib. Perhaps it has not yet
been created.
Call Stack (most recent call first):
cmake/FindJsonCpp.cmake:102 (_jsoncpp_apply_map_config)
CMakeLists.txt:221 (find_package)
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- thread
-- system
-- date_time
-- chrono
-- program_options
-- filesystem
-- atomic
CMake Error at cmake/cmake-4.0.0-modules/RequireOutOfSourceBuild.cmake:41
(message):
You must set a binary directory that is different from your source
directory. You might consider /home/manuel/foobot/OSVR/OSVR-Core/build or
/home/manuel/foobot/OSVR/build-osvrcore
Call Stack (most recent call first):
cmake/cmake-4.0.0-modules/autoinclude.cmake:13 (include)
cmake/UseBackportedModules.cmake:92 (include)
vendor/vrpn/CMakeLists.txt:15 (include)`
But jsoncpp is installed:
16:22 $ sudo make install [ 44%] Built target jsoncpp_lib_static [ 66%]
Built target jsontestrunner_exe [100%] Built target jsoncpp_test Install
the project... -- Install configuration: "Release" -- Up-to-date:
/usr/local/lib/pkgconfig/jsoncpp.pc -- Up-to-date:
/usr/local/lib/cmake/jsoncpp/jsoncppConfig.cmake -- Up-to-date:
/usr/local/lib/cmake/jsoncpp/jsoncppConfig-release.cmake -- Up-to-date:
/usr/local/lib/x86_64-linux-gnu/libjsoncpp.a -- Up-to-date:
/usr/local/include/jsoncpp/json/assertions.h -- Up-to-date:
/usr/local/include/jsoncpp/json/autolink.h -- Up-to-date:
/usr/local/include/jsoncpp/json/config.h -- Up-to-date:
/usr/local/include/jsoncpp/json/features.h -- Up-to-date:
/usr/local/include/jsoncpp/json/forwards.h -- Up-to-date:
/usr/local/include/jsoncpp/json/json.h -- Up-to-date:
/usr/local/include/jsoncpp/json/reader.h -- Up-to-date:
/usr/local/include/jsoncpp/json/value.h -- Up-to-date:
/usr/local/include/jsoncpp/json/version.h -- Up-to-date:
/usr/local/include/jsoncpp/json/writer.h
Where I failed?
My configuration:
- Linux version 4.4.0-51-generic ***@***.***) (gcc version 5.4.0
20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #72
<#72>-Ubuntu SMP Thu Nov 24
18:29:54 UTC 2016
- cmake version 3.5.2
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#504>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADuyYkHT3v12DN0I6GgxY-QuScqepT9ks5rEE-AgaJpZM4LCxXU>
.
--
Ryan A. Pavlik, Ph.D.
CTO - OSVR Platform
Sensics, Inc.
www.sensics.com
…--
Latest news and blog posts (subscribe here
<http://sensics.com/subscribe-to-our-mailing-list/> to get weekly updates):
Nov 28: VRguy podcast: Tero Sarkkinen, CEO of Basemark on VR performance
measurements
<http://sensics.com/vrguy-podcast-episode-21-taro-sarkkinen-ceo-basmark/>
Nov 23: OSVR now available on Steam
<http://sensics.com/osvr-now-available-steam/>
Nov 1: Sensics Partners with InvenSense to Bring Precise and Advanced
Motion Tracking to OSVR
<http://sensics.com/sensics-partners-invensense-bring-precise-advanced-motion-tracking-osvr/>
|
Hello Ryan, Thx for your help :-)
✔ ~/foobot/OSVR/OSVR-Core/build [master|✔] I get the OSVR-Core/ from:
I make: cmake .. -DJSONCPP_WITH_CMAKE_PACKAGE=ON -DJSONCPP_LIB_BUILD_SHARED=OFF -DCMAKE_CXX_FLAGS=-fPIC ✔ ~/foobot/OSVR/jsoncpp [0.y.z-updated|✔] Please find files here: https://gist.github.com/manuel-masiello/0d6eb99e371a341e55916d9e4d462a73
Best regards, |
Since you're using |
You didn't fail, @manuel-masiello, the OSVR-Core build breaks if you compile JsonCPP as a static library because of a careless mistake in the custom It's right here in the outputs:
The |
Thanks a lot @0x1100, this solves the issue with cmake I had. |
It's work with #501 !!! Thx you :-) |
Hello,
I can't compile the core : (
I have this error:
16:28 $ cmake ..
-- Git reports version 0.6-1363-g92d6d9d
CMake Error at cmake/FindJsonCpp.cmake:85 (set_property):
set_property could not find TARGET jsoncpp_lib. Perhaps it has not yet
been created.
Call Stack (most recent call first):
cmake/FindJsonCpp.cmake:102 (_jsoncpp_apply_map_config)
CMakeLists.txt:221 (find_package)
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- thread
-- system
-- date_time
-- chrono
-- program_options
-- filesystem
-- atomic
CMake Error at cmake/cmake-4.0.0-modules/RequireOutOfSourceBuild.cmake:41 (message):
You must set a binary directory that is different from your source
directory. You might consider /home/manuel/foobot/OSVR/OSVR-Core/build or
/home/manuel/foobot/OSVR/build-osvrcore
Call Stack (most recent call first):
cmake/cmake-4.0.0-modules/autoinclude.cmake:13 (include)
cmake/UseBackportedModules.cmake:92 (include)
vendor/vrpn/CMakeLists.txt:15 (include)
But jsoncpp is installed:
16:22 $ sudo make install
[ 44%] Built target jsoncpp_lib_static
[ 66%] Built target jsontestrunner_exe
[100%] Built target jsoncpp_test
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /usr/local/lib/pkgconfig/jsoncpp.pc
-- Up-to-date: /usr/local/lib/cmake/jsoncpp/jsoncppConfig.cmake
-- Up-to-date: /usr/local/lib/cmake/jsoncpp/jsoncppConfig-release.cmake
-- Up-to-date: /usr/local/lib/x86_64-linux-gnu/libjsoncpp.a
-- Up-to-date: /usr/local/include/jsoncpp/json/assertions.h
-- Up-to-date: /usr/local/include/jsoncpp/json/autolink.h
-- Up-to-date: /usr/local/include/jsoncpp/json/config.h
-- Up-to-date: /usr/local/include/jsoncpp/json/features.h
-- Up-to-date: /usr/local/include/jsoncpp/json/forwards.h
-- Up-to-date: /usr/local/include/jsoncpp/json/json.h
-- Up-to-date: /usr/local/include/jsoncpp/json/reader.h
-- Up-to-date: /usr/local/include/jsoncpp/json/value.h
-- Up-to-date: /usr/local/include/jsoncpp/json/version.h
-- Up-to-date: /usr/local/include/jsoncpp/json/writer.h
Where I failed?
My configuration:
The text was updated successfully, but these errors were encountered: