Hi, Compiling CMake for Raspberri Pi (Raspbian Jessie) used to work <http://osdevlab.blogspot.de/2015/12/how-to-install-latest-cmake-for.html> simply as:
./bootstrap make sudo make install with CMake 3.6.1, build fails with: make [ 3%] Built target cmsys [ 3%] Built target cmsysTestDynload [ 4%] Built target cmsys_c [ 4%] Built target cmsysTestProcess [ 5%] Built target cmsysTestSharedForward [ 5%] Built target cmsysTestsC [ 7%] Built target cmsysTestsCxx [ 9%] Built target kwiml_test [ 11%] Built target cmzlib [ 30%] Built target cmcurl [ 30%] Built target LIBCURL [ 30%] Built target cmcompress [ 31%] Built target cmbzip2 [ 42%] Built target cmliblzma [ 60%] Built target cmlibarchive [ 61%] Built target cmexpat *[ 62%] Built target cmjsoncpp* [ 82%] Built target CMakeLib [ 85%] Built target CPackLib [ 93%] Built target CTestLib [ 93%] Linking CXX executable ../bin/cmake libCMakeLib.a(cmGlobalGenerator.cxx.o): In function `cmGlobalGenerator::WriteSummary(cmGeneratorTarget*)': cmGlobalGenerator.cxx:(.text+0x117a8): undefined reference to `Json::Value::Value(Json::ValueType)' cmGlobalGenerator.cxx:(.text+0x117b8): undefined reference to `Json::Value::operator[](char const*)' cmGlobalGenerator.cxx:(.text+0x117cc): undefined reference to `Json::Value::Value(Json::ValueType)' cmGlobalGenerator.cxx:(.text+0x117dc): undefined reference to `Json::Value::operator=(Json::Value)' cmGlobalGenerator.cxx:(.text+0x117f0): undefined reference to `Json::Value::~Value()' cmGlobalGenerator.cxx:(.text+0x117fc): undefined reference to `Json::Value::operator[](char const*)' cmGlobalGenerator.cxx:(.text+0x1181c): undefined reference to `Json::Value::Value(std::string const&)' cmGlobalGenerator.cxx:(.text+0x1182c): undefined reference to `Json::Value::operator=(Json::Value)' cmGlobalGenerator.cxx:(.text+0x11838): undefined reference to `Json::Value::~Value()' cmGlobalGenerator.cxx:(.text+0x11844): undefined reference to `Json::Value::operator[](char const*)' cmGlobalGenerator.cxx:(.text+0x11858): undefined reference to `Json::Value::Value(Json::ValueType)' cmGlobalGenerator.cxx:(.text+0x11868): undefined reference to `Json::Value::operator=(Json::Value)' cmGlobalGenerator.cxx:(.text+0x1187c): undefined reference to `Json::Value::~Value()' cmGlobalGenerator.cxx:(.text+0x1188c): undefined reference to `Json::Value::operator[](char const*)' cmGlobalGenerator.cxx:(.text+0x118a0): undefined reference to `Json::Value::Value(Json::ValueType)' cmGlobalGenerator.cxx:(.text+0x118b0): undefined reference to `Json::Value::operator=(Json::Value)' cmGlobalGenerator.cxx:(.text+0x118c4): undefined reference to `Json::Value::~Value()' cmGlobalGenerator.cxx:(.text+0x11a1c): undefined reference to `Json::Value::Value(std::string const&)' cmGlobalGenerator.cxx:(.text+0x11a2c): undefined reference to `Json::Value::append(Json::Value const&)' cmGlobalGenerator.cxx:(.text+0x11a38): undefined reference to `Json::Value::~Value()' cmGlobalGenerator.cxx:(.text+0x11c1c): undefined reference to `Json::Value::Value(Json::ValueType)' cmGlobalGenerator.cxx:(.text+0x11c2c): undefined reference to `Json::Value::append(Json::Value const&)' cmGlobalGenerator.cxx:(.text+0x11c40): undefined reference to `Json::Value::~Value()' cmGlobalGenerator.cxx:(.text+0x11c98): undefined reference to `Json::Value::operator[](char const*)' cmGlobalGenerator.cxx:(.text+0x11cac): undefined reference to `Json::Value::Value(std::string const&)' cmGlobalGenerator.cxx:(.text+0x11cbc): undefined reference to `Json::Value::operator=(Json::Value)' cmGlobalGenerator.cxx:(.text+0x11cc8): undefined reference to `Json::Value::~Value()' cmGlobalGenerator.cxx:(.text+0x11d40): undefined reference to `Json::Value::operator[](char const*)' cmGlobalGenerator.cxx:(.text+0x11d54): undefined reference to `Json::Value::Value(Json::ValueType)' cmGlobalGenerator.cxx:(.text+0x11d64): undefined reference to `Json::Value::operator=(Json::Value)' cmGlobalGenerator.cxx:(.text+0x11d78): undefined reference to `Json::Value::~Value()' cmGlobalGenerator.cxx:(.text+0x11e58): undefined reference to `Json::Value::Value(std::string const&)' cmGlobalGenerator.cxx:(.text+0x11e68): undefined reference to `Json::Value::append(Json::Value const&)' cmGlobalGenerator.cxx:(.text+0x11e74): undefined reference to `Json::Value::~Value()' cmGlobalGenerator.cxx:(.text+0x11f60): undefined reference to `Json::Value::~Value()' cmGlobalGenerator.cxx:(.text+0x11fd0): undefined reference to `Json::Value::~Value()' cmGlobalGenerator.cxx:(.text+0x11fe0): undefined reference to `Json::Value::~Value()' cmGlobalGenerator.cxx:(.text+0x11ff0): undefined reference to `Json::Value::~Value()' libCMakeLib.a(cmGlobalGenerator.cxx.o):cmGlobalGenerator.cxx:(.text+0x12000): more undefined references to `Json::Value::~Value()' follow ../Utilities/cmjsoncpp/libcmjsoncpp.a(json_writer.cpp.o): In function `Json::FastWriter::writeValue(Json::Value const&)': json_writer.cpp:(.text+0xc4c): undefined reference to `Json::Value::type() const' json_writer.cpp:(.text+0xcbc): undefined reference to `Json::Value::asLargestInt() const' json_writer.cpp:(.text+0xd08): undefined reference to `Json::Value::asLargestUInt() const' json_writer.cpp:(.text+0xd54): undefined reference to `Json::Value::asDouble() const' json_writer.cpp:(.text+0xd98): undefined reference to `Json::Value::asCString() const' json_writer.cpp:(.text+0xddc): undefined reference to `Json::Value::asBool() const' json_writer.cpp:(.text+0xe30): undefined reference to `Json::Value::size() const' json_writer.cpp:(.text+0xe70): undefined reference to `Json::Value::operator[](int) const' json_writer.cpp:(.text+0xec4): undefined reference to `Json::Value::getMemberNames() const' json_writer.cpp:(.text+0xfc4): undefined reference to `Json::Value::operator[](std::string const&) const' ../Utilities/cmjsoncpp/libcmjsoncpp.a(json_writer.cpp.o): In function `Json::StyledWriter::writeValue(Json::Value const&)': json_writer.cpp:(.text+0x1254): undefined reference to `Json::Value::type() const' json_writer.cpp:(.text+0x12dc): undefined reference to `Json::Value::asLargestInt() const' json_writer.cpp:(.text+0x1320): undefined reference to `Json::Value::asLargestUInt() const' json_writer.cpp:(.text+0x1364): undefined reference to `Json::Value::asDouble() const' json_writer.cpp:(.text+0x13a0): undefined reference to `Json::Value::asCString() const' json_writer.cpp:(.text+0x13dc): undefined reference to `Json::Value::asBool() const' json_writer.cpp:(.text+0x1434): undefined reference to `Json::Value::getMemberNames() const' json_writer.cpp:(.text+0x1520): undefined reference to `Json::Value::operator[](std::string const&) const' ../Utilities/cmjsoncpp/libcmjsoncpp.a(json_writer.cpp.o): In function `Json::StyledWriter::writeArrayValue(Json::Value const&)': json_writer.cpp:(.text+0x1794): undefined reference to `Json::Value::size() const' json_writer.cpp:(.text+0x189c): undefined reference to `Json::Value::operator[](unsigned int) const' ../Utilities/cmjsoncpp/libcmjsoncpp.a(json_writer.cpp.o): In function `Json::StyledWriter::isMultineArray(Json::Value const&)': json_writer.cpp:(.text+0x1b30): undefined reference to `Json::Value::size() const' json_writer.cpp:(.text+0x1b88): undefined reference to `Json::Value::operator[](int) const' json_writer.cpp:(.text+0x1ba4): undefined reference to `Json::Value::isArray() const' json_writer.cpp:(.text+0x1bb8): undefined reference to `Json::Value::isObject() const' json_writer.cpp:(.text+0x1bcc): undefined reference to `Json::Value::size() const' json_writer.cpp:(.text+0x1c78): undefined reference to `Json::Value::operator[](int) const' ../Utilities/cmjsoncpp/libcmjsoncpp.a(json_writer.cpp.o): In function `Json::StyledWriter::writeCommentBeforeValue(Json::Value const&)': json_writer.cpp:(.text+0x1fcc): undefined reference to `Json::Value::hasComment(Json::CommentPlacement) const' json_writer.cpp:(.text+0x2014): undefined reference to `Json::Value::getComment(Json::CommentPlacement) const' ../Utilities/cmjsoncpp/libcmjsoncpp.a(json_writer.cpp.o): In function `Json::StyledWriter::writeCommentAfterValueOnSameLine(Json::Value const&)': json_writer.cpp:(.text+0x21b0): undefined reference to `Json::Value::hasComment(Json::CommentPlacement) const' json_writer.cpp:(.text+0x21d8): undefined reference to `Json::Value::getComment(Json::CommentPlacement) const' json_writer.cpp:(.text+0x2244): undefined reference to `Json::Value::hasComment(Json::CommentPlacement) const' json_writer.cpp:(.text+0x2280): undefined reference to `Json::Value::getComment(Json::CommentPlacement) const' ../Utilities/cmjsoncpp/libcmjsoncpp.a(json_writer.cpp.o): In function `Json::StyledWriter::hasCommentForValue(Json::Value const&)': json_writer.cpp:(.text+0x2354): undefined reference to `Json::Value::hasComment(Json::CommentPlacement) const' json_writer.cpp:(.text+0x236c): undefined reference to `Json::Value::hasComment(Json::CommentPlacement) const' json_writer.cpp:(.text+0x2384): undefined reference to `Json::Value::hasComment(Json::CommentPlacement) const' ../Utilities/cmjsoncpp/libcmjsoncpp.a(json_writer.cpp.o): In function `Json::StyledStreamWriter::writeValue(Json::Value const&)': json_writer.cpp:(.text+0x25e8): undefined reference to `Json::Value::type() const' json_writer.cpp:(.text+0x2670): undefined reference to `Json::Value::asLargestInt() const' json_writer.cpp:(.text+0x26b4): undefined reference to `Json::Value::asLargestUInt() const' json_writer.cpp:(.text+0x26f8): undefined reference to `Json::Value::asDouble() const' json_writer.cpp:(.text+0x2734): undefined reference to `Json::Value::asCString() const' json_writer.cpp:(.text+0x2770): undefined reference to `Json::Value::asBool() const' json_writer.cpp:(.text+0x27c8): undefined reference to `Json::Value::getMemberNames() const' json_writer.cpp:(.text+0x28b4): undefined reference to `Json::Value::operator[](std::string const&) const' ../Utilities/cmjsoncpp/libcmjsoncpp.a(json_writer.cpp.o): In function `Json::StyledStreamWriter::writeArrayValue(Json::Value const&)': json_writer.cpp:(.text+0x2b2c): undefined reference to `Json::Value::size() const' json_writer.cpp:(.text+0x2c30): undefined reference to `Json::Value::operator[](unsigned int) const' ../Utilities/cmjsoncpp/libcmjsoncpp.a(json_writer.cpp.o): In function `Json::StyledStreamWriter::isMultineArray(Json::Value const&)': json_writer.cpp:(.text+0x2ec0): undefined reference to `Json::Value::size() const' json_writer.cpp:(.text+0x2f14): undefined reference to `Json::Value::operator[](int) const' json_writer.cpp:(.text+0x2f30): undefined reference to `Json::Value::isArray() const' json_writer.cpp:(.text+0x2f44): undefined reference to `Json::Value::isObject() const' json_writer.cpp:(.text+0x2f58): undefined reference to `Json::Value::size() const' json_writer.cpp:(.text+0x3000): undefined reference to `Json::Value::operator[](int) const' ../Utilities/cmjsoncpp/libcmjsoncpp.a(json_writer.cpp.o): In function `Json::StyledStreamWriter::writeCommentBeforeValue(Json::Value const&)': json_writer.cpp:(.text+0x327c): undefined reference to `Json::Value::hasComment(Json::CommentPlacement) const' json_writer.cpp:(.text+0x32b0): undefined reference to `Json::Value::getComment(Json::CommentPlacement) const' ../Utilities/cmjsoncpp/libcmjsoncpp.a(json_writer.cpp.o): In function `Json::StyledStreamWriter::writeCommentAfterValueOnSameLine(Json::Value const&)': json_writer.cpp:(.text+0x3350): undefined reference to `Json::Value::hasComment(Json::CommentPlacement) const' json_writer.cpp:(.text+0x3378): undefined reference to `Json::Value::getComment(Json::CommentPlacement) const' json_writer.cpp:(.text+0x33e4): undefined reference to `Json::Value::hasComment(Json::CommentPlacement) const' json_writer.cpp:(.text+0x3420): undefined reference to `Json::Value::getComment(Json::CommentPlacement) const' ../Utilities/cmjsoncpp/libcmjsoncpp.a(json_writer.cpp.o): In function `Json::StyledStreamWriter::hasCommentForValue(Json::Value const&)': json_writer.cpp:(.text+0x34f4): undefined reference to `Json::Value::hasComment(Json::CommentPlacement) const' json_writer.cpp:(.text+0x350c): undefined reference to `Json::Value::hasComment(Json::CommentPlacement) const' json_writer.cpp:(.text+0x3524): undefined reference to `Json::Value::hasComment(Json::CommentPlacement) const' collect2: error: ld returned 1 exit status Source/CMakeFiles/cmake.dir/build.make:130: recipe for target 'bin/cmake' failed make[2]: *** [bin/cmake] Error 1 CMakeFiles/Makefile2:2049: recipe for target 'Source/CMakeFiles/cmake.dir/all' failed make[1]: *** [Source/CMakeFiles/cmake.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 CMake comes with batteries included and it should just work. No idea why it can't find its own cmjsoncpp library Cheers, Cristian.
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers