ogg icon indicating copy to clipboard operation
ogg copied to clipboard

enabled versioned MinGW-w64 .dlls on cmake

Open Adsun701 opened this issue 6 years ago • 3 comments

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

Adsun701 avatar Sep 02 '19 19:09 Adsun701

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

willson-chen avatar Sep 05 '19 03:09 willson-chen

@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.

Adsun701 avatar Sep 05 '19 14:09 Adsun701

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.

willson-chen avatar Sep 12 '19 06:09 willson-chen