From: kk KKsingh on 16 Jul 2010 01:30 Hi ! In using mex file i am a novice ! So here is a question I have a mex file which uses FFTW ..FFTW is installed on my server in /user/local/lib and /usr/local/include .. so my file is example.c which has function which uses this libray ! so wont simple so mex example.c should make gcc compiler to work ! or i have to do some thing to call these libraries ! What should i do ! Akshay
From: kk KKsingh on 16 Jul 2010 01:40 "kk KKsingh" <akikumar1983(a)gmail.com> wrote in message <i1oqpe$5dp$1(a)fred.mathworks.com>... > Hi ! > > In using mex file i am a novice ! So here is a question I have a mex file which uses FFTW ..FFTW is installed on my server in /user/local/lib and /usr/local/include .. so my file is > example.c which has function which uses this libray ! so wont simple > > so mex example.c should make gcc compiler to work ! or i have to do some thing to call these libraries ! > > What should i do ! > > Akshay This is the error Can you tell me why i am getting this error ! I think FFTW is working is it due to gcc is it ! Warning: You are using gcc version "3.4.4". The earliest gcc version supported with mex is "4.0.0". The latest version tested for use with mex is "4.2.0". To download a different version of gcc, visit http://gcc.gnu.org potts_nfft.o(.text+0xaa): In function `nfft': : undefined reference to `nfft_init_guru' potts_nfft.o(.text+0xf4): In function `nfft': : undefined reference to `nfft_precompute_one_psi' potts_nfft.o(.text+0x138): In function `nfft': : undefined reference to `nfft_trafo' collect2: ld returned 1 exit status mex: link of 'potts_nfft.mexglx' failed. ??? Error using ==> mex at 208 Unable to complete successfully. Akshay
From: kk KKsingh on 16 Jul 2010 01:40 "kk KKsingh" <akikumar1983(a)gmail.com> wrote in message <i1oqpe$5dp$1(a)fred.mathworks.com>... > Hi ! > > In using mex file i am a novice ! So here is a question I have a mex file which uses FFTW ..FFTW is installed on my server in /user/local/lib and /usr/local/include .. so my file is > example.c which has function which uses this libray ! so wont simple > > so mex example.c should make gcc compiler to work ! or i have to do some thing to call these libraries ! > > What should i do ! > > Akshay This is the error Can you tell me why i am getting this error ! I think FFTW is working is it due to gcc is it ! Warning: You are using gcc version "3.4.4". The earliest gcc version supported with mex is "4.0.0". The latest version tested for use with mex is "4.2.0". To download a different version of gcc, visit http://gcc.gnu.org potts_nfft.o(.text+0xaa): In function `nfft': : undefined reference to `nfft_init_guru' potts_nfft.o(.text+0xf4): In function `nfft': : undefined reference to `nfft_precompute_one_psi' potts_nfft.o(.text+0x138): In function `nfft': : undefined reference to `nfft_trafo' collect2: ld returned 1 exit status mex: link of 'potts_nfft.mexglx' failed. ??? Error using ==> mex at 208 Unable to complete successfully. Akshay
From: kk KKsingh on 16 Jul 2010 01:41 "kk KKsingh" <akikumar1983(a)gmail.com> wrote in message <i1oqpe$5dp$1(a)fred.mathworks.com>... > Hi ! > > In using mex file i am a novice ! So here is a question I have a mex file which uses FFTW ..FFTW is installed on my server in /user/local/lib and /usr/local/include .. so my file is > example.c which has function which uses this libray ! so wont simple > > so mex example.c should make gcc compiler to work ! or i have to do some thing to call these libraries ! > > What should i do ! > > Akshay This is the error Can you tell me why i am getting this error ! I think FFTW is working is it due to gcc is it ! Warning: You are using gcc version "3.4.4". The earliest gcc version supported with mex is "4.0.0". The latest version tested for use with mex is "4.2.0". To download a different version of gcc, visit http://gcc.gnu.org potts_nfft.o(.text+0xaa): In function `nfft': : undefined reference to `nfft_init_guru' potts_nfft.o(.text+0xf4): In function `nfft': : undefined reference to `nfft_precompute_one_psi' potts_nfft.o(.text+0x138): In function `nfft': : undefined reference to `nfft_trafo' collect2: ld returned 1 exit status mex: link of 'potts_nfft.mexglx' failed. ??? Error using ==> mex at 208 Unable to complete successfully. Akshay
From: Jens Munk on 29 Jul 2010 08:20 Hey Akshay. You have to link to fftw3, fftw3f or fftw3l depending on which functions you are using. On linux you specify, -lfftw3 or -lfftw3f or -lfftw3l. Then you should dynamically link against the fftw that already reside in your library path setup by mex. After doing this it compiles but I get some segmentation faults on both linux, linux64, win32 and win64. I think it is because they have patched the fftw. When you find out, please let me know, my name is Jens and I will register in a bit.
|
Pages: 1 Prev: noise regions in an image Next: loading and using 2 mat files |