[flac-dev] Shared library won't build when cross-compiling.

Cristian Rodríguez crrodriguez at opensuse.org
Wed Dec 12 16:52:48 PST 2012


El 22/08/12 04:03, Nathan Osman escribió:
> I'm having trouble cross-compiling FLAC for Windows from Linux.
>
> I am using the following commands:
>
> ./configure --host=i686-w64-mingw32 --prefix=/usr/i686-w64-mingw32
> --enable-shared
> make
>
> The process completes successfully but I only end up with the static
> library. The following files are copied to the $(PREFIX)/lib directory
> when I run 'make install':
>
> - libFLAC.a
> - libFLAC++.a
> - libFLAC.la
> - libFLAC++.la
>
> ...and there aren't any DLLs in the $(PREFIX)/bin directory.


Works for me...

-=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-

   Configuration summary :

     FLAC version : ........................ 1.2.1

     Host CPU : ............................ x86_64
     Host Vendor : ......................... w64
     Host OS : ............................. mingw32

     Compiler is GCC : ..................... yes
     GCC version : ......................... 4.7.0



ls src/libFLAC/.libs/libFLAC-8.dll

-rwxr-xr-x 1 crrodriguez users 1,3M dic 12 21:49 libFLAC-8.dll



What compiler and flac version are you using ?




More information about the flac-dev mailing list