-
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
Problem when building with jsoncpp #105
Comments
To build the examples, cpd must be built with jsoncpp support because the rigid example prints the result as json. On your Windows system, you will need to build and install with jsoncpp ( I'm going to leave this open for a moment while I add a README to the examples directory explaining that jsoncpp is required. |
I have Ubuntu on my PC. Tried to do cmake -DWITH_JSONCPP=ON .. $ cmake -DWITH_JSONCPP=ON .. Could not find a package configuration file provided by "jsoncpp" with any
Add the installation prefix of "jsoncpp" to CMAKE_PREFIX_PATH or set -- Configuring incomplete, errors occurred! What do you think? |
Install jsoncpp (might be `apt-get install libjsoncpp-dev`) then try again.
…On Thu, Mar 16, 2017 at 9:27 AM, Alex Martens ***@***.***> wrote:
I have Ubuntu on my PC. Tried to do cmake -DWITH_JSONCPP=ON ..
and I still have an error with JSONCPP, cannot figure out how to deal with
it
$ cmake -DWITH_JSONCPP=ON ..
CMake Error at CMakeLists.txt:120 (find_package):
By not providing "Findjsoncpp.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "jsoncpp", but
CMake did not find one.
Could not find a package configuration file provided by "jsoncpp" with any
of the following names:
jsoncppConfig.cmake
jsoncpp-config.cmake
Add the installation prefix of "jsoncpp" to CMAKE_PREFIX_PATH or set
"jsoncpp_DIR" to a directory containing one of the above files. If
"jsoncpp" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring incomplete, errors occurred!
See also "/home/alex/Downloads/libraries/cpd-master/build/
CMakeFiles/CMakeOutput.log".
See also "/home/alex/Downloads/libraries/cpd-master/build/
CMakeFiles/CMakeError.log".
What do you think?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#105 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AADjyjd5IpxEOnlSxC7tbhPADZAFyr40ks5rmVT7gaJpZM4Meqxm>
.
|
I've tried installing libjsoncpp. Still have the problem with linking the jsoncpp library $ cmake -DWITH_JSONCPP=ON .. $ make |
Can you check your jsoncpp version and report it back to this ticket? One way would be:
You might have to adjust the file path depending on where jsoncpp is installed. |
$ grep JSONCPP_VERSION_STRING /usr/include/json/version.h $ dpkg -l 'json' |
I just built jsoncpp version 1.7.2 on Ubuntu Trusty (14.04.5 LTS) and things were ok. I did have to ensure that I built jsoncpp with If you can take the following steps and let me know if you continue to have issues:
If you have errors, let me know, but hopefully that'll work for you. |
@alexsmartens are you still having this issue? |
Yes, I do
2017-03-28 6:48 GMT-06:00 Pete Gadomski <[email protected]>:
… @alexsmartens <https://github.com/alexsmartens> are you still having this
issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#105 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AZC40ktspNtOp3S6xZIYnf3TQlZDMknIks5rqQGNgaJpZM4Meqxm>
.
|
Even after uninstalling Ubuntu's jsoncpp and building and installing your own? |
Adds cmake variables `CPD_WITH_FGT` and `CPD_WITH_JSONCPP` and updates the examples cmake to use these variables. Fixes #105.
Yes, reinstallation of jsoncpp has not helped |
Did you try my new branch better-jsoncpp-install? |
I ended up with reinstalling Ubuntu (16.04). It looks like now everything works |
Adds cmake variables `CPD_WITH_FGT` and `CPD_WITH_JSONCPP` and updates the examples cmake to use these variables. Fixes #105.
I've built CPD on my laptop, now I am also trying to build it on my PC. I go along the same path, and I get the successful build. But at the same time compiling the example gives me the following error:
$ cmake .
-- The CXX compiler identification is GNU 5.4.0
-- Check for working CXX compiler: /usr/bin/c
-- Check for working CXX compiler: /usr/bin/c -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/local/lib/cmake/cpd/cpd-config.cmake:66 (include):
include could not find load file:
Call Stack (most recent call first):
CMakeLists.txt:4 (find_package)
CMake Error at /usr/local/lib/cmake/cpd/cpd-config.cmake:37 (find_package):
By not providing "Findjsoncpp.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "jsoncpp", but
CMake did not find one.
Could not find a package configuration file provided by "jsoncpp" with any
of the following names:
Add the installation prefix of "jsoncpp" to CMAKE_PREFIX_PATH or set
"jsoncpp_DIR" to a directory containing one of the above files. If
"jsoncpp" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
/usr/local/lib/cmake/cpd/cpd-config.cmake:67 (find_dependency)
CMakeLists.txt:4 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/alex/Downloads/libraries/cpd-master/examples/Untitled Folder/CMakeFiles/CMakeOutput.log".
I've also noticed that I have different installation messages when I build CPD on the PC (it does not include jsoncpp):
$ sudo make install
[ 33%] Built target Library-C
[ 40%] Built target gtest
[ 46%] Built target gtest_main
[ 53%] Built target nonrigid-test
[ 60%] Built target normalization-test
[ 66%] Built target gauss_transform-test
[ 73%] Built target affine-test
[ 80%] Built target rigid-test
[ 86%] Built target utils-test
[ 93%] Built target version-test
[100%] Built target gauss_transform_fgt-test
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/cmake/cpd/cpd-config.cmake
-- Installing: /usr/local/lib/cmake/cpd/cpd-config-version.cmake
-- Installing: /usr/local/lib/libcpd.so.0.5.0
-- Up-to-date: /usr/local/lib/libcpd.so.0
-- Up-to-date: /usr/local/lib/libcpd.so
-- Set runtime path of "/usr/local/lib/libcpd.so.0.5.0" to ""
-- Up-to-date: /usr/local/include/cpd
-- Up-to-date: /usr/local/include/cpd/affine.hpp
-- Up-to-date: /usr/local/include/cpd/rigid.hpp
-- Up-to-date: /usr/local/include/cpd/version.hpp
-- Up-to-date: /usr/local/include/cpd/transform.hpp
-- Up-to-date: /usr/local/include/cpd/gauss_transform_fgt.hpp
-- Up-to-date: /usr/local/include/cpd/nonrigid.hpp
-- Up-to-date: /usr/local/include/cpd/gauss_transform.hpp
-- Up-to-date: /usr/local/include/cpd/matrix.hpp
-- Up-to-date: /usr/local/include/cpd/normalization.hpp
-- Up-to-date: /usr/local/include/cpd/utils.hpp
-- Installing: /usr/local/lib/cmake/cpd/cpd-targets.cmake
-- Installing: /usr/local/lib/cmake/cpd/cpd-targets-noconfig.cmake
Might it be the problem of linking jsoncpp? Or it's something else?
The text was updated successfully, but these errors were encountered: