Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: FFTW on C++ starte edition



Permlink Replies: 5 - Last Post: Apr 4, 2018 2:36 AM Last Post By: Roger Dunk Threads: [ Previous | Next ]
Mario Armando N...

Posts: 3
Registered: 2/9/12
FFTW on C++ starte edition
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 10, 2018 3:14 AM
I am trying to run on RAD Studio 10.2.2 c++ ( starter edition ) the FFTW package following suggestions of an old post on this subject, but I am unable to run.

Here below what I did :

1 - I downloaded the package fftw-3.3.5-dll32

2 - I did the implib for the three files :
implib -a fftw3-3.lib libfftw3-3.dll
implib -a fftw3f-3.lib libfftw3f-3.dll
implib -a fftw3l-3.lib libfftw3l-3.dll

3 - I added to my project ( Project->Add to project ) the three .lib

4 - I added #include "fftw3.h"

When I run the projects I always receive an error message that says that the program was not able to find LIBFFTW3-3.DLL.

I also tried to move the .dll in the system32 folder and register with regsvr32 , but no luck .

Thaks in advance, Mario
Greg Reese

Posts: 100
Registered: 7/15/05
Re: FFTW on C++ starte edition
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 13, 2018 5:41 AM   in response to: Mario Armando N... in response to: Mario Armando N...
Mario,
I'm unable to replicate your problem. My test program runs fine. What framework (VCL or FMX or none) are you using? What compiler?
Greg Reese
Mario Armando N...

Posts: 3
Registered: 2/9/12
Re: FFTW on C++ starte edition
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 14, 2018 5:03 AM   in response to: Greg Reese in response to: Greg Reese
Thanks Greg for your answer !

I am using VCL and I believe that I found the bug : I moved the .dll in the Win32->Debug directory and now the progran runs. Most likely I will need to find a way to include .dll if I want to use the .exe on another PC ! But for now I am ok .

Thanks again, Mario

Greg Reese wrote:
Mario,
I'm unable to replicate your problem. My test program runs fine. What framework (VCL or FMX or none) are you using? What compiler?
Greg Reese
Greg Reese

Posts: 100
Registered: 7/15/05
Re: FFTW on C++ starte edition
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 14, 2018 5:38 AM   in response to: Mario Armando N... in response to: Mario Armando N...
Mario Armando Natali wrote:
I am using VCL and I believe that I found the bug : I moved the .dll in the Win32->Debug directory and now the progran runs. Most likely I will need to find a way to include .dll if I want to use the .exe on another PC ! But for now I am ok .

I'm glad you got things working Mario but I don't understand why your program is even looking for a DLL if the static libraries have been linked in. Does your program have explicit calls to load DLL's? If so, you should remove them if you're linking in the static libraries.

As for using the program with DLL's on other PC's, you must either 1) put the DLL's in the same directory as the executable; 2) put the DLL's in a directory that is in the system path; 3) put the DLL's in a directory that is not on the system path but then add that directory to the path (the installer can usually do this) or 4) include the path to the DLL in your call to load it.

Greg Reese
Mario Armando N...

Posts: 3
Registered: 2/9/12
Re: FFTW on C++ starte edition
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 14, 2018 7:51 AM   in response to: Greg Reese in response to: Greg Reese
Thanks again Greg,

I do not have any explicit call to the .dll in my program, so must be the FFTW that makes the call and needs to see the .dll in the directory were the program is executed.

This must be something related to Embarcadero as I tried FFTW with QT and everyhting was very easy.

Anyway I learned something new and this is good !

Mario

Greg Reese wrote:
Mario Armando Natali wrote:
I am using VCL and I believe that I found the bug : I moved the .dll in the Win32->Debug directory and now the progran runs. Most likely I will need to find a way to include .dll if I want to use the .exe on another PC ! But for now I am ok .

I'm glad you got things working Mario but I don't understand why your program is even looking for a DLL if the static libraries have been linked in. Does your program have explicit calls to load DLL's? If so, you should remove them if you're linking in the static libraries.

As for using the program with DLL's on other PC's, you must either 1) put the DLL's in the same directory as the executable; 2) put the DLL's in a directory that is in the system path; 3) put the DLL's in a directory that is not on the system path but then add that directory to the path (the installer can usually do this) or 4) include the path to the DLL in your call to load it.

Greg Reese
Roger Dunk

Posts: 17
Registered: 7/24/10
Re: FFTW on C++ starte edition
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 4, 2018 2:36 AM   in response to: Greg Reese in response to: Greg Reese
I'm glad you got things working Mario but I don't understand why your program is even looking for a DLL if the static libraries have been linked in. Does your program have explicit calls to load DLL's? If so, you should remove them if you're linking in the static libraries.

It's because they're import libraries, not static libraries. It's very unusual in this day and age to find anyone producing static libraries that are compatible with the Borland compilers.

Cheers...
Roger
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02