Skip to content

How to add SDL and JPEG library for Cygwin compilation? #8

@longma624

Description

@longma624

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions