robotology-legacy / qtyarp

QtYarp
1 stars 1 forks source link

Compilation fails without libtinyxml-dev #7

Closed kt10aan closed 10 years ago

kt10aan commented 10 years ago

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 bybin/QtYARPManager'. Stop. make[1]: * [QtYARPManager/CMakeFiles/QtYARPManager.dir/all] Error 2 make: *\ [all] Error 2

Tested on Ubuntu 14.04 and Debian Jessie

drdanz commented 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...

kt10aan commented 10 years ago

Yes, I have cleaned the cmake cache.

drdanz commented 10 years ago

/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.

kt10aan commented 10 years ago

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.

drdanz commented 10 years ago

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 /lib folder (if you didn't change it, should be /usr/local/lib), and if you see more than one "YARP*" folder? If you have, please remove all of them, install yarp again and try again.

kt10aan commented 10 years ago

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.

drdanz commented 10 years ago

Perfect, thanks for the feedback. Closing this issue