View Full Version : x264 build issues (yasm not found)
Nozdrum
25th December 2013, 02:36
How do you set the assembler for ./configure? I've already installed NASM and Yasm, the path in windows variables for NASM is there too and I copied yasm-1.2.0-win64/32 to both bin folders of MinGW and msys, in MinGW "nasm" command is also accepted, but whenever I try to use ./configure it returns this:
$ ./configure
Found no assembler
Minimum version is yasm-1.2.0
If you really want to compile without asm, configure with --disable-asm.
I tried with --disable-asm and it works but then when I use make, it gives a lot of errors:
http://pastebin.com/DbPAq6Wv
Is it something related to x264 or it's something that I did wrong?
I didn't know where to post this, I'm sorry if this is the wrong thread.
LoRd_MuldeR
25th December 2013, 02:54
You only need YASM, I don't think x264 needs or supports NASM. Also, you don't want to build without ASM, because it would be sloooow ;)
Just put the "yasm.exe" file (should have exactly that name!) into one of the directories in your PATH and that's it. The most simple way probably is copying it into your "msys/bin" folder.
About your other errors: It seems you are missing some standard (http://stackoverflow.com/a/2029106) header files that are supposed to ship with the C compiler :confused:
Please try to make a clean re-install of MinGW. An up-to-date MinGW can be found, for example, at the MinGW-builds (http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/) project, at TDM-GGC (http://tdm-gcc.tdragon.net/) or at Komisar's site (http://komisar.gin.by/mingw/index.html).
Nozdrum
29th December 2013, 13:26
Now it's giving new errors: http://pastebin.com/T6QqKw3h
I'm using the official x264 git url that I found here:
https://wiki.videolan.org/Git/#Getting_VLC_or_x264_source_code_via_Git
Do I need anything else besides yasm and gcc to compile x264?
LoRd_MuldeR
29th December 2013, 14:32
Now the linker is complaining about missing references to some standard C functions :confused:
Seems like something with your build environment is still messed up. Did you try a clean re-install of MinGW, as suggested before?
Also please see the instructions here:
http://forum.doom9.org/showpost.php?p=1659399&postcount=33
Nozdrum
29th December 2013, 15:41
Yes I did reinstall everything, but now I manged to fix it reinstalling everything once again, this guide helped a bit:
http://mediaretriever.blogspot.fr/2011/05/compile-x264-on-windows.html
Though they forgot to mentoin that the C compiler is needed, besides the C++ compiler, I've compiled a 1.5 MB binary and it seems to work, do you know where can I find the syntax to add more features using ./configure? I opened the confgure file and there're some commands but I wanted to add lavf ffms, mp4 ad anything else that is needed to make x264 work, like the official builds.
LoRd_MuldeR
29th December 2013, 16:03
You can type "./configure --help" for a list of commands. But if you want to enable external libraries like LAVF, FFMS and MP4 you will need to compile those libraries first!
For LAVF support you need ffmpeg/libav (libavcodec, libavformat, libavutils), for FFMS support you need FFMS2 and for MP4 support you need either L-SMASH or GPAC/MP4Box.
Once the required header files (.h) are in your include path and the required lib files (.a) are in your library path, the configure script will find them automatically :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.