Log in

View Full Version : Compiling l-smash for x64


jpsdr
22nd July 2014, 18:49
I ask this here, hoping there is a good chance that people who compile x264 know also how to compile l-smash.

I've msys and mingw installed (i've took gcc and libpack from komisar's builds).
I've git cloned l-smash.
In msys i do "./configure" and "make", and, i've x86 builds.

Now... how can i build the x64 version of liblsmash.a ?
I've take a look at the configure file, but don't find any option for x64...
:confused:

MasterNobody
22nd July 2014, 21:08
If you use multilib MinGW (like komisar's build) than all you need is to specify:
./configure --extra-cflags="-m64" --extra-ldflags="-m64"
If you use cross-compile MinGW (like nevcairiel's build) than you also need to specify --cross-prefix param (--extra-cflags/--extra-ldflags can be skipped in this case) i.e. for example:
./configure --cross-prefix=x86_64-w64-mingw32- --extra-cflags="-m64" --extra-ldflags="-m64"

jpsdr
22nd July 2014, 22:02
:thanks:

minaust
28th July 2014, 13:40
If you use multilib MinGW (like komisar's build) than all you need is to specify:
./configure --extra-cflags="-m64" --extra-ldflags="-m64"
Thanks. That worked. This thread was just what I was looking for. But one more question - I'm kinda new at this - where does my newly created 64-bit library go? I too am using komisar's build and libpack.