Author Topic: Makefile generator always add .lib to the name of a library  (Read 3137 times)

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Hi,
on fedora14, I encountered the following problem with the script file generator:
- I want to add libfftw3.so to the linked libraries (located in /usr/lib64)
- whatever I do, I get invalid make files. One example are the settings shown in the attached png. When compiling with them, I get:
Code: [Select]
cd linux/g++;. ../../exportvars.sh;make -f makefile-x86_64-debug
g++ -m64 -fPIC -Wl,-z,noexecstack -Wl,-O1 -shared -L"/home/georg/PCL_1.0.94/lib/linux/x86_64" -L"/home/georg/PCL_1.0.94/bin" -o "/home/georg/Gradients/linux/g++/x86_64/Debug"/GradientDomain-pxm.so ./x86_64/Debug/GradientsHdrInstance.o ./x86_64/Debug/GradientsHdrInterface.o ./x86_64/Debug/GradientsHdrParameters.o ./x86_64/Debug/GradientsHdrProcess.o ./x86_64/Debug/GradientsModule.o ./x86_64/Debug/gradients.o ./x86_64/Debug/rgbPreserve.o -lfftw3.lib -lpthread -lPCL-pxi
/usr/bin/ld: cannot find -lfftw3.lib
collect2: ld gab 1 als Ende-Status zurück
make: *** ["/home/georg/Gradients/linux/g++/x86_64/Debug"/GradientDomain-pxm.so] Fehler 1
- makefile genetor add ".lib" to the library name (which may be ok on Windows, but not on Linux)
- Workaround: manual edit of the makefiles.

Georg

PS: It appears only the debug version of the makefile has this problem...
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)