discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] CMake/SWIG build problems


From: Rafael Diniz
Subject: Re: [Discuss-gnuradio] CMake/SWIG build problems
Date: Thu, 16 Aug 2012 07:49:34 -0700
User-agent: SquirrelMail/1.4.21

Hi Felix,
Do you have something in a ready-to-test state concerning the DRM
transmitter?
I got a new DRM receiver (DR111) which shows the MER and SNR of the
reception.

Best regards,
Rafael Diniz

> Hi Josh,
>
> That hint with the visibility option solved all my problems. I commented
> it out in the CMakeLists.txt and the undefined symbols were gone. Thank
> you so much!
>
> Best regards,
> Felix
>
>>
>>> It compiles without any errors or warnings, but when I try to import my
>>> module, I get "undefined symbol" errors. I looked at the swig shared
>>> library file using "nm" and noticed that I have lots of undefined
>>> symbols in the part that contains my former drm_init module. The C++
>>> shared library seems fine, so I guess it's a SWIG problem.
>>>
>>
>> You probably have some class or function thats defined in a header and
>> either missing from the library or not exported. SWIG basically uses all
>> of the functions/classes you feed it. So anything missing, so long as it
>> was defined in a header you fed to swig, is going to be heard about when
>> you import the module.
>>
>> Are you compiling with -fvisibility=hidden? you need to declare any
>> public symbols to be default visibility
>> http://gcc.gnu.org/wiki/Visibility
>>
>> Just a guess,
>> -josh
>>
>>> I would really appreciate it if somebody could give me a hint how I can
>>> configure CMake / SWIG correctly. The current (working) configuration
>>> can be found on github.com/fewu. The custom make file can be found
>>> under
>>> misc/, the other in the swig/ folder.
>>>
>>> Best regards,
>>> Felix
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Discuss-gnuradio mailing list
>>> address@hidden
>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>
>>
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]