Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Programming and Hacking > Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th December 2013, 02:36   #1  |  Link
Nozdrum
Registered User
 
Join Date: May 2013
Posts: 31
x264 build issues (yasm not found)

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:

Code:
$ ./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.

Last edited by Nozdrum; 25th December 2013 at 02:38.
Nozdrum is offline   Reply With Quote
Old 25th December 2013, 02:54   #2  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
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 header files that are supposed to ship with the C compiler

Please try to make a clean re-install of MinGW. An up-to-date MinGW can be found, for example, at the MinGW-builds project, at TDM-GGC or at Komisar's site.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 25th December 2013 at 03:19.
LoRd_MuldeR is offline   Reply With Quote
Old 29th December 2013, 13:26   #3  |  Link
Nozdrum
Registered User
 
Join Date: May 2013
Posts: 31
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/#Getti...e_code_via_Git

Do I need anything else besides yasm and gcc to compile x264?
Nozdrum is offline   Reply With Quote
Old 29th December 2013, 14:32   #4  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Now the linker is complaining about missing references to some standard C functions

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?...9&postcount=33
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 29th December 2013 at 15:11.
LoRd_MuldeR is offline   Reply With Quote
Old 29th December 2013, 15:41   #5  |  Link
Nozdrum
Registered User
 
Join Date: May 2013
Posts: 31
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/20...n-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.

Last edited by Nozdrum; 29th December 2013 at 15:44.
Nozdrum is offline   Reply With Quote
Old 29th December 2013, 16:03   #6  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
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
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 29th December 2013 at 17:14.
LoRd_MuldeR is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:55.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.