Skip to content
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

Cannot mix static lib and dynamic lib under linux 64-bit #9

Closed
GoogleCodeExporter opened this issue May 29, 2015 · 2 comments
Closed

Comments

@GoogleCodeExporter
Copy link
Contributor

What steps will reproduce the problem?
1. Compile BTK with Matlab support

No error, nor warning to compile libBTKCommon, libBTKIO or libBTKBasicFilters. 
However, when GCC starts to compile the MEX functions, the following error 
appears: "The compile relocation R_X86_64_32 against `.LC1' can not be used 
when making a shared object; recompile with -fPIC"

Original issue reported on code.google.com by arnaud.barre on 1 Feb 2011 at 6:06

@GoogleCodeExporter
Copy link
Contributor Author

From the web, it is not possible to link a static library into a shared library 
(the MEX functions). As proposed in the message, you can use the flag "-fPIC" 
but this is like creating a dynamic library. It is proposed to force the 
project to compile BTK libraries as shared dynamic object using the CMake 
option BUILD_SHARED_LIBS.

Original comment by arnaud.barre on 1 Feb 2011 at 6:07

@GoogleCodeExporter
Copy link
Contributor Author

Original comment by arnaud.barre on 3 Feb 2011 at 9:28

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant