Ask Your Question
0

Problem with CMakeList.txt of Slam visual markers

asked 2018-01-03 11:06:23 -0600

flperez gravatar image

I am trying to create a slam visual markers's CMakeList.txt because it was created to qt creator. I have linked the necessary libraries but when I get the 100% I received the next message: /usr/bin/ld: cannot find -lJderobotInterfaces /usr/bin/ld: cannot find -ljderobotutil /usr/bin/ld: cannot find -lparallelIce /usr/bin/ld: cannot find -lcolorspacesmm /usr/bin/ld: cannot find -lxmlParser /usr/bin/ld: cannot find -lprogeo

I tried create a simbolink link with sudo ln -s /opt/jderobot/lib/libJderobotInterfaces.so /usr/lib/libJderobotInterfaces.so, and I didn't receive the messages but I had fails to reference to Ice. I think I am not linking correctly JdeRobot library:

includedirectories(/opt/jderobot/include /opt/jderobot/include/jderobot) linkdirectories(${JDELIBS}) targetlinklibraries(camautoloc

                    #${Ice_LIBRARY} 
                    ${easyiceconfig_LIBRARIES}
                    ${ZeroCIce_LIBRARIES}                           
                    jderobotutil
                    qfi
            parallelIce
                colorspacesmm
            xmlParser
                progeo
                    ${GLOG_LIBRARIES})
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-01-04 02:23:14 -0600

aitormf gravatar image

updated 2018-01-04 02:29:02 -0600

Hi,

try to add following to your cmakelist:

INCLUDE_DIRECTORIES(/opt/jderobot/include)
LINK_DIRECTORIES(/opt/jderobot/lib)

and don't use variables for libraries like ${easyiceconfig_LIBRARIES} because its onli works in jderobot project, put the name of the library easyiceconfig

regards, Aitor

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-01-03 11:06:23 -0600

Seen: 6 times

Last updated: Jan 04

Related questions