[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Need help with gr how to create a signal processi
Re: [Discuss-gnuradio] Need help with gr how to create a signal processing block template
Mon, 24 May 2010 15:36:35 -0700 (PDT)
Thanks Eric for your reply. The suggestion was immensely helpful. I was
looking for the wrong documentation initially and could not understand how
Automake works, think I had the Make one open.
As the documentation is very comprehensive, I was only able to grasp a few
things but I was able to fix 2 of the errors, the ones related to my own
library file implementations not being defined. However, for the
implementation of the other API functions which are a part of Matlab
internal libraries I don't have the .cc or .cpp file and just the .so files
which contain all the implementations inside the Matlab root folder.
Although shared libraries are covered in the Automake document and the
followup Libtool document, but there are many instances and I'm not sure
where exactly should I be looking for my specific case. I figured out that I
need to add the full path to the API function library file in the
lib/makefile.am, under lib_LTLIBRARIES however as expected it is saying that
a .la (libtool library) is needed. I'm not sure if this is what I should be
doing, so any guidance would be great. Thank you for your time.
These and some other Matlab API function errors are appearing.
undefined reference to `mclTerminateApplication_proxy'
undefined reference to `mclInitializeApplication_proxy'
Eric Blossom wrote:
> On Mon, May 24, 2010 at 12:01:17PM -0700, H.Raza wrote:
>> Thanks a lot for the reply Tom, I figured out that part after looking at
>> number of sample Makefile.am files in different projects. I used the
>> flag to include the directories and the compilation began, but after a
>> steps I received the following error.
>> ====================== from Terminal===================
>> libtool: link: g++ -g -O2 -g -O2 -o .libs/test_all test_all.o
>> -L/usr/local/lib -L/usr/lib /usr/lib/libcppunit.so -ldl -lboost_thread-mt
>> -lrt -lboost_date_time-mt /usr/local/lib/libgnuradio-core.so
>> /usr/local/lib/libgruel.so /usr/lib/libfftw3f.so -lgsl -lgslcblas -lm
>> /usr/local/lib/libgromnithread.so -pthread
>> undefined reference to `libmatinvTerminate'
>> undefined reference to `mclTerminateApplication_proxy'
>> undefined reference to `mclInitializeApplication_proxy'
>> undefined reference to `libmatinvInitialize'
>> collect2: ld returned 1 exit status
>> In the above errors libmatinv is the name of my generated library from
>> matlab mcc. The library is already in the lib folder. The C driver
>> implementation is also in the lib folder inside generalwork function
>> I have been searching around for this error and I heard from someone that
>> might have to use -L<dir> and "small L"-l<dir> flags to give the compiler
>> the implementation of the functions in my library header, along with the
>> -I<dir> but I am not exactly sure which files does it need. Any
>> in this regard are highly appreciated.
>> Also Tom you mentioned M4 config files, I am planning to release these
>> on once my target is achieved. Would you kindly guide me a little, so I
>> a decent idea where to start learning about these files and then take it
>> step at a time. Thanks again.
> You have apparently failed to add the additional link-time dependency
> when you are bulding libgnuradio-howto.so. The library that's missing
> is the one that contains libmatinvTerminate, et al.
> I suggest that you spend a few minutes with the automake documentation:
> Discuss-gnuradio mailing list
View this message in context:
Sent from the GnuRadio mailing list archive at Nabble.com.