Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This error am facing is strange and am not able to resolve this over 5 days. your help is much appreciated. I have detailed the issue below.
I compiled a ros package known as tum_ardrone. before running rosmake, the ld_library_path was
/opt/ros/fuerte/lib
when I ran
rosmake tum_ardrone
It showed the following error
undefined reference to `dgemm_'
I concluded that the error was related to missing links, through lapack and blas, and thus included the following into LD_LIBRARY_PATH.
/opt/ros/fuerte/lib:usr/lib
I tried rosmake againa nd still got the error.
After that, I modified the LD_LIBRARY_PATH to just
/usr/lib
and the pakcage was compiled without errors. However, all exe's pertaining to the package was created except one. The exe was defined and included in the **CMakeLists.txt** file as well. However the exe named drone_stateestimation was not created. And this is the exe that is connected to lapack and blas, the reason for those errors This has nothing to do with the package. It is a generic issue, I hope since the same package works fine in another laptop. I even tried reinstalling/downloading a new copy the package, but no use.
Can anybody please tell me what could be the problem?
Is there another interpretation for the following error, or a direct solution?
undefined reference to `dgemm_'
Please help. I have been stuck for really a long time.
about LD_LIBRARY_PATH:
it is used by running processes, but not by a make or a compilation (actually the compiler itself may need it to be able to work, but does not affect the result).
so my suggestion is: do not alter it at all.
about the error: undefined reference:
it looks like a linker error, probably your makefile is not complete or a library (.so) file is missing. Try to insert -llapack or -lblas. (actually I do not know which one, because I haven't seen your makefile).
#set the default path for built executables to the "bin" directory
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#set the default path for built libraries to the "lib" directory
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
# ------------------- add dynamic reconfigure api ------------------------------------
rosbuild_find_ros_package(dynamic_reconfigure)
include(${dynamic_reconfigure_PACKAGE_PATH}/cmake/cfgbuild.cmake)
gencfg()
# ---------------------------- Messages & Services --------------------------------------------------
#uncomment if you have defined messages
rosbuild_genmsg()
#uncomment if you have defined services
rosbuild_gensrv()
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.