{"action":"created","issue":{"url":"https://api.github.com/repos/robotology/yarp/issues/903","repository_url":"https://api.github.com/repos/robotology/yarp","labels_url":"https://api.github.com/repos/robotology/yarp/issues/903/labels{/name}","comments_url":"https://api.github.com/repos/robotology/yarp/issues/903/comments","events_url":"https://api.github.com/repos/robotology/yarp/issues/903/events","html_url":"https://github.com/robotology/yarp/issues/903","id":175169884,"number":903,"title":"YARP master compilation fails (tinyXML related)","user":{"login":"kt10aan","id":1415279,"avatar_url":"https://avatars.githubusercontent.com/u/1415279?v=3","gravatar_id":"","url":"https://api.github.com/users/kt10aan","html_url":"https://github.com/kt10aan","followers_url":"https://api.github.com/users/kt10aan/followers","following_url":"https://api.github.com/users/kt10aan/following{/other_user}","gists_url":"https://api.github.com/users/kt10aan/gists{/gist_id}","starred_url":"https://api.github.com/users/kt10aan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kt10aan/subscriptions","organizations_url":"https://api.github.com/users/kt10aan/orgs","repos_url":"https://api.github.com/users/kt10aan/repos","events_url":"https://api.github.com/users/kt10aan/events{/privacy}","received_events_url":"https://api.github.com/users/kt10aan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-06T06:30:24Z","updated_at":"2016-09-21T09:58:43Z","closed_at":null,"body":"Hello,\r\n\r\nYARP from master (https://github.com/robotology/yarp/commit/b447d15718383f1fd97ea6175e421ff1d083f647) fails to compile. The problem is related to tinyXML and in ``yarprobotinterface``.\r\nPlease note that I am using the tinyXML from the ``extern`` folder, I have not installed the ``libtinyxml2-dev`` package.\r\nSystem is ``Ubuntu 16.04``.\r\n\r\nHere is the output of make:\r\n\r\n```\r\n[ 67%] Linking CXX executable ../../bin/yarprobotinterface\r\nCMakeFiles/yarprobotinterface.dir/XMLReader.cpp.o: In function `RobotInterface::XMLReader::Private::readActionTag(TiXmlElement*)':\r\nXMLReader.cpp:(.text+0x515e): undefined reference to `TiXmlAttributeSet::Find(std::string const&) const'\r\nXMLReader.cpp:(.text+0x5679): undefined reference to `TiXmlAttributeSet::Find(std::string const&) const'\r\ncollect2: error: ld returned 1 exit status\r\nsrc/yarprobotinterface/CMakeFiles/yarprobotinterface.dir/build.make:332: recipe for target 'bin/yarprobotinterface' failed\r\nmake[2]: *** [bin/yarprobotinterface] Error 1\r\nCMakeFiles/Makefile2:2524: recipe for target 'src/yarprobotinterface/CMakeFiles/yarprobotinterface.dir/all' failed\r\nmake[1]: *** [src/yarprobotinterface/CMakeFiles/yarprobotinterface.dir/all] Error 2\r\nMakefile:149: recipe for target 'all' failed                                                                                                                                                                      \r\nmake: *** [all] Error 2\r\n```"},"comment":{"url":"https://api.github.com/repos/robotology/yarp/issues/comments/248565865","html_url":"https://github.com/robotology/yarp/issues/903#issuecomment-248565865","issue_url":"https://api.github.com/repos/robotology/yarp/issues/903","id":248565865,"user":{"login":"drdanz","id":1100056,"avatar_url":"https://avatars.githubusercontent.com/u/1100056?v=3","gravatar_id":"","url":"https://api.github.com/users/drdanz","html_url":"https://github.com/drdanz","followers_url":"https://api.github.com/users/drdanz/followers","following_url":"https://api.github.com/users/drdanz/following{/other_user}","gists_url":"https://api.github.com/users/drdanz/gists{/gist_id}","starred_url":"https://api.github.com/users/drdanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drdanz/subscriptions","organizations_url":"https://api.github.com/users/drdanz/orgs","repos_url":"https://api.github.com/users/drdanz/repos","events_url":"https://api.github.com/users/drdanz/events{/privacy}","received_events_url":"https://api.github.com/users/drdanz/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T09:58:43Z","updated_at":"2016-09-21T09:58:43Z","body":"@kt10aan `-ltinyxml` in the link command means that you are actually linking TinyXML installed somewhere on your system.\r\nAlso the CMakeCache.txt shows that you are using it:\r\n\r\n```\r\n\r\n//Additional compiler flags for TinyXML\r\nTinyXML_DEFINITIONS:STRING=\r\n\r\n//The directory containing a CMake configuration file for TinyXML.\r\nTinyXML_DIR:PATH=TinyXML_DIR-NOTFOUND\r\n\r\n//TinyXML include directory\r\nTinyXML_INCLUDE_DIRS:PATH=\r\n\r\n//Path to a library.\r\nTinyXML_TINYXML_LIBRARY_DEBUG:FILEPATH=TinyXML_TINYXML_LIBRARY_DEBUG-NOTFOUND\r\n\r\n//Path to a library.\r\nTinyXML_TINYXML_LIBRARY_RELEASE:FILEPATH=/usr/lib/x86_64-linux-gnu/libtinyxml.so\r\n\r\n//Use system-installed TinyXML, rather than a private copy (recommended)\r\nYARP_USE_SYSTEM_TINYXML:BOOL=ON\r\n\r\n//Use package TinyXML\r\nYARP_USE_TINYXML:BOOL=ON\r\n\r\n//Details about finding TinyXML\r\nFIND_PACKAGE_MESSAGE_DETAILS_TinyXML:INTERNAL=[/usr/lib/x86_64-linux-gnu/libtinyxml.so][v(2.6)]\r\n//ADVANCED property for variable: TinyXML_DEFINITIONS\r\nTinyXML_DEFINITIONS-ADVANCED:INTERNAL=1\r\n//ADVANCED property for variable: TinyXML_DIR\r\nTinyXML_DIR-ADVANCED:INTERNAL=1\r\n//ADVANCED property for variable: TinyXML_INCLUDE_DIRS\r\nTinyXML_INCLUDE_DIRS-ADVANCED:INTERNAL=1\r\n//ADVANCED property for variable: TinyXML_TINYXML_LIBRARY_DEBUG\r\nTinyXML_TINYXML_LIBRARY_DEBUG-ADVANCED:INTERNAL=1\r\n//ADVANCED property for variable: TinyXML_TINYXML_LIBRARY_RELEASE\r\nTinyXML_TINYXML_LIBRARY_RELEASE-ADVANCED:INTERNAL=1\r\n```\r\n\r\nIf you uninstalled TinyXML, try running `cmake . -U*TinyXML* -U*TINYXML*` (that will remove all TinyXML related variables from your CMakeCache, and try again.\r\n\r\nOtherwise you can just set `YARP_USE_SYSTEM_TINYXML=OFF` that will ensure that you are using the `extern` copy of the library.\r\n"}}
{"actor":{"display_login":"drdanz"}}