Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Build static library for WIN32 #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

flynnhe
Copy link

@flynnhe flynnhe commented Jun 25, 2015

In WIN32 the current branch will build a dll file, but not a usable one. JPEG source files are not designed to be built as a dll on windows, so no symbols will be exported. I tried building a DLL and did not get a .lib file. So I think static library is the only option.

@zchrissirhcz
Copy link

We need this line before add_library( )

set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)

@zchrissirhcz
Copy link

People may have a look at my PR which resolved this problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants