Closed kt10aan closed 10 years ago
Have you cleaned cmake cache before building it? It looks like that it is still looking for the system version of the library...
Yes, I have cleaned the cmake cache.
/usr/lib/x86_64-linux-gnu/libtinyxml.so
is the path of the system tinyxml, either the package wasn't removed correctly from your system, or something is left in the cache (either YARP or QtYARP cache)
please run:
sudo apt-get remove --purge libtinyxml-dev
and try removing all TinyXML from YARP cache (you can just run cmake -U *TinyXML* -U *TINYXML*
) and rebuild yarp, then the remove QtYARP cache and try again.
It's very strange (cause I expected some leftover cache in YARP to be the issue too) but I still get the error remove/purging libtinyxml-dev after cleaning up the build directory in YARP, recmaking, recompiling and reinstalling, then cleaning up the build directory in qtyarp, recmaking and recompiling, I get the same error.
Since you are using yarp installed, perhaps you have cmake files from 2 different versions... we recently switched to use an unversioned folder (see robotology/yarp#159)
Can you check the
Thanks @drdanz, I had two YARP folders. Cleaning up my install dir and reinstalling fixed my problem. I had seen the unversioned folders change but I forgot it could affect the above.
Perfect, thanks for the feedback. Closing this issue
Hi,
In a previous issue, CMake was failing without libtinyxml-dev. This is fixed now, without libtinyxml-dev, cmake proceeds normally. However, compilation fails with:
[ 73%] Building CXX object QtYARPManager/CMakeFiles/QtYARPManager.dir/genericviewwidget.cpp.o [ 78%] Building CXX object QtYARPManager/CMakeFiles/QtYARPManager.dir/resourceviewwidget.cpp.o [ 84%] Building CXX object QtYARPManager/CMakeFiles/QtYARPManager.dir/entitiestreewidget.cpp.o [ 89%] Building CXX object QtYARPManager/CMakeFiles/QtYARPManager.dir/safe_manager.cpp.o [ 94%] Building CXX object QtYARPManager/CMakeFiles/QtYARPManager.dir/qrc_res.cpp.o [100%] Building CXX object QtYARPManager/CMakeFiles/QtYARPManager.dir/QtYARPManager_automoc.cpp.o make[2]: * No rule to make target
/usr/lib/x86_64-linux-gnu/libtinyxml.so', needed by
bin/QtYARPManager'. Stop. make[1]: * [QtYARPManager/CMakeFiles/QtYARPManager.dir/all] Error 2 make: *\ [all] Error 2Tested on Ubuntu 14.04 and Debian Jessie