xiph / ogg

Reference implementation of the Ogg media container
BSD 3-Clause "New" or "Revised" License
345 stars 168 forks source link

enabled versioned MinGW-w64 .dlls on cmake #62

Open Adsun701 opened 5 years ago

Adsun701 commented 5 years ago

This enables versioned .dll shared libraries on cmake using MinGW-w64, in concurrence with autotools also producing versioned .dll shared libraries.

willson-chen commented 5 years ago

I performed the following steps in Win10 with cmake and MinGW:

mkdir build
cd build
cmake -G"Unix Makefiles" ..
make

But I can't find any dll file. Did I do it wrong? @Adsun701

Adsun701 commented 5 years ago

@willson-chen The generator should be MSYS Makefiles.

EDIT: If you are using a Windows command prompt, the appropriate generator should be MinGW Makefiles. If you are using MSYS2 shell, use MSYS Makefiles. If you are cross-compiling from Linux, then use Unix Makefiles.

willson-chen commented 5 years ago

Sorry...It failed again. I had tried MSYS2 with cmake -G "MSYS Makefiles" .., but still no dll was found. And referencing #63 , I am not sure building dynamic and static libs at the same time is nessary.