[Discuss-gnuradio] FFTW3 error in GNURADIO

2014-03-21 Thread Nasi
Hi all, I am using ubuntu 13.04 and GNURADIO 3.7. In project  https://github.com/BogdanDIA/gr-dvbt , in reference_signals_impl.cc in /lib, I add inside one of the functions: fftw_complex *in2, *out2; out2 = (fftw_complex*) fftw_malloc(NFFT*2*sizeof(fftw_complex)); in2 = (fftw_complex*)

Re: [Discuss-gnuradio] FFTW3 error in GNURADIO

2014-03-21 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The (F) was meant to say: Use FFTW3_LIBRARIES if you want to use the double precision version, use FFTW3F_LIBRARIES if you want the single (float, 'F') precision version of the library. Since you're using fftw_malloc (without f suffix), you're trying

Re: [Discuss-gnuradio] FFTW3 error in GNURADIO

2014-03-21 Thread Nasi
Thanks for quick reply! It does not work even if I use float precision as fftwf_complex *in2, *out2; out2 = (fftwf_complex*) fftwf_malloc(NFFT*2*sizeof(fftwf_complex)); in2 = (fftwf_complex*) fftwf_malloc(NFFT*2*sizeof(fftwf_complex)); I attach cmake files. It would be nice of you if you take a

Re: [Discuss-gnuradio] FFTW3 error in GNURADIO

2014-03-21 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Your main CMakeLists.txt is still looking for the double FFTW3. replace find_package(FFTW3) by find_package(FFTW3f) and use the FindFFTW3f.cmake from the gnuradio source tree. You'll have to replace all occurences of FFTW3_ by FFTW3F_ in your CMake

Re: [Discuss-gnuradio] FFTW3 error in GNURADIO

2014-03-21 Thread Nasi
It does not work anyway. I attach again files. Fri, 21 Mar 2014 11:45:01 +0100 от Marcus Müller mar...@hostalia.de: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Your main CMakeLists.txt is still looking for the double FFTW3. replace find_package(FFTW3) by find_package(FFTW3f) and use the

Re: [Discuss-gnuradio] FFTW3 error in GNURADIO

2014-03-21 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You need to add the FFTW3F_LIBRARIES to the target_link_libraries. On 21.03.2014 12:02, Nasi wrote: target_link_libraries(gnuradio-dvbt ${Boost_LIBRARIES} ${GNURADIO_RUNTIME_LIBRARIES} ${VOLK_LIBRARIES}) -BEGIN PGP SIGNATURE- Version: GnuPG

Re: [Discuss-gnuradio] FFTW3 error in GNURADIO

2014-03-21 Thread Nasi
I added   target_link_libraries(gnuradio-dvbt ${Boost_LIBRARIES} ${GNURADIO_RUNTIME_LIBRARIES} ${VOLK_LIBRARIES} ${FFTW3F_LIBRARIES}). But that does not help.  Fri, 21 Mar 2014 12:07:52 +0100 от Marcus Müller mar...@hostalia.de: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You need to add

Re: [Discuss-gnuradio] FFTW3 error in GNURADIO

2014-03-21 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Then I'm out of clues. You have basically the same setup up as gr-fft now. Your module *should* be linked against FFTW3f. Are you sure you replace fftw_malloc and fftw_whatever by fftwf_whatever in your C++ code? On 21.03.2014 12:13, Nasi wrote: I

Re: [Discuss-gnuradio] FFTW3 error in GNURADIO

2014-03-21 Thread Nasi
cool! it worked. I deleted build folder and recompiled everything. Thanks a lot!!! Fri, 21 Mar 2014 12:17:26 +0100 от Marcus Müller mar...@hostalia.de: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Then I'm out of clues. You have basically the same setup up as gr-fft now. Your module *should*