ImageStack icon indicating copy to clipboard operation
ImageStack copied to clipboard

How to add SDL and JPEG library for Cygwin compilation?

Open longma624 opened this issue 8 years ago • 0 comments

Hi guys!

I am compiling the ImageStack project with Windows7 x64 platform and I chose Cygwin tool to build the project.

I noticed that there is a SDL library called "SDL-x86-static-mt.lib" in ImageStack-master_path/msvc/lib, so I copied it into /usr/local/lib folder as the Makefile.cygwin indicated. After renaming this lib file as SDL.lib and entering a soft-link command as "ln -sf /usr/local/lib/SDL.lib /usr/local/lib/libSDL.so", I compiled ImageStack in Cygwin window by the command "make -f makefiles/Makefile.cygwin".

The results told me that -ljpeg, -ltiff, -lpng, and -lfftw3f were not found, so I directly commented them out and continued to compile. To my surprise, numerous errors were appeared, most of which concerned about undefined deference on modules in SDL.lib.

I wonder if I included an incorrect SDL library. If it is true, how should I include the right one? Besides, how could I install SDL and JPEG libraries in my platform?

longma624 avatar Apr 28 '17 01:04 longma624