-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linking error with assimp-mrpt library #519
Comments
Update: |
Have you tried starting from an empty build cmake directory? Just in case...
|
Yes. Didn't work. |
Travis installs libassimp-dev Isn't this failing when it tries to use the internal version in otherlibs? I'm in favor of removing assimp from otherlib, which would force users to use an external version if they want to use assimp. Is there a good reason to use the internal one? |
I think this was the suggestion in #359 |
Windows users. In particular, lazy Windows users. Many potential users shall fall in this category ;-)
Correct! Anyone wanting to take an eye on #359 ? Perhaps someone from the GSOC2017 gang (cc: @shivangag @pranjal-rai @spsancti @raghavendersahdev @LisGein ) wanting to gain a good insight into MRPT CMake scripts? ;-) |
@jlblancoc I have a very little knowledge on CMake, however, I can try this on weekend :) |
@spsancti Learning CMake is an valuable skill. Its worth spending time learning how to do it properly. There are a fair number of conventions that are important to know and understand, but that are often neglected. MRPT is a good place to learn how to use it effectively. |
I think we can close this one and leave the open working line #359 , ok? |
I came across the following linking error when trying to compile MRPT.
Tinkering with the produced Makefiles and by-products, the link.txt responsible for providing the linking command is wrong. In the following command the mrpt build directory is /home/berger/mrpt_build, and
assimp-mrpt.so
is successfully produced in the/home/berger/mrpt_build/lib
directory. However, the corresponding-L
flag in c++ is-L/home/berger/lib
Having tested this a second time, with the build directory being located in e.g. /home/berger/X/Y make produces-L/home/berger/X/lib
so it essentially skips the last directory in the path.The linking error occurs also in the linking of mrpt-opengl, mrpt-graphs and mrpt-gui, mrpt-vision libraries.
Manually correcting the path in all corresponding link.txt files solves the problem and the compilation finishes successfully.
Attached are files containing the failing command, OS/installed software information as well as the CMakeCache of the build directory at the time of compilation.
P.S. Current issue is not related with the ongoing PR.
CMakeCache.txt
failing_make_command.txt
software_versions.txt
The text was updated successfully, but these errors were encountered: