[CMake] Doesn't support SHARED libraries during cross compiling using ARM RVCT40.
jianhua
yujianhua1982 at 126.com
Wed Jun 15 21:13:39 EDT 2011
Hi Neundorf;
Thanks for your continuous help, you have helped me to solve 2 threads now.
After remove line SET (CMAKE_SYSTEM_NAME Generic) now it works.
The target device OS is Brew MP, something like eCos, but it is much simpler, powered by Qualcomm.
At 2011-06-16 01:14:11,"Alexander Neundorf" <a.neundorf-work at gmx.net> wrote:
>On Wednesday 15 June 2011, jianhua wrote:
>> Hi All;
>>
>> No matter Linux or Windows, when try to build SHARED library, it will
>> always get the following error message. ADD_LIBRARY(hello SHARED hello.c)
>>
>> ADD_LIBRARY for library hello is used with the SHARED option, but the
>> target platform supports only STATIC libraries. Building it STATIC
>> instead. This may lead to problems.
>>
>> My question:
>> a) Why not support it? Is my CMakeLists any wrong for cross compiling?
>> b) Is there any method available to support it?
>>
>> I have searched in google and found the following threat, but after
>> SET_PROPERTY(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS TRUE), it still
>> got the same error message.
>> http://web.archiveorange.com/archive/v/5y7PkYdzD3pM4MX0QSD9
>>
>> Anyone who has idea about it please help, thanks.
>>
>> >>>>>>>>>>>>>>>> brewmp-arm.cmake
>>
>> INCLUDE (CMakeForceCompiler)
>
>Are you sure you need this ?
>This is in general a bad idea.
>
>>
>> SET (CMAKE_SYSTEM_NAME Generic)
>
>"Generic" operating system does not support shared libs.
>Do you have an operation system on your target device ?
>
>Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110616/2c321757/attachment.htm>
More information about the CMake
mailing list