Makefile generator always add .lib to the name of a library

georg.viehoever

Well-known member
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:
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...
 

Attachments

  • generatorProblem.JPG
    generatorProblem.JPG
    71 KB · Views: 33
Back
Top