can not link library files
Hi, I am using ubuntu natty 11.04 and i am trying to use external library: ueye_api while using ueye camera to capture frames and publish them as ros messages by creating a node roscam
To include external library files I made the necessary changes in CMakeLists.txt file:
rosbuild_add_executable(roscam src/roscam.cpp) link_directories(/usr/lib /usr/local/share/ueye/ /usr/include /usr/local/share/ueye/ueyeusbd) include_directories(/usr/lib /usr/local/share/ueye/ /usr/include /usr/local/share/ueye/ueyeusbd) target_link_libraries(roscam libueye_api libueye_api.so libueye_api.so.1 libueye_api.so.3.82)
But still I received following error while compiling a program:
Linking CXX executable ../bin/roscam /usr/bin/ld: cannot find -llibueye_api /usr/bin/ld: cannot find -llibueye_api.so.1 /usr/bin/ld: cannot find -llibueye_api.so.3.82 collect2: ld returned 1 exit status