Forums » General Questions » Ubuntu 12.04 LTS 64x Compiling SM5 building ffmpeg failed

1
So i pretty much did everything on this page, but when i got to the "./Utils/build.sh" part, this is what popped up...

Configuring ffmpeg...okay.

Building ffmpeg...failed.
Consider passing --verbose to ./Utils/build.sh. Pass --help for details.


Typing "sudo" before the "./Utils/build.sh" doesn't help either. =/ So is that Wiki outdated, or is it something in my Linux that's preventing it from working?
Reply
Consider passing --verbose to ./Utils/build.sh. Pass --help for details.
So run "Utils/build.sh --verbose" to see why building ffmpeg failed.
"sudo" wouldn't do anything because this problem has nothing to do with permissions and you shouldn't be building stepmania as root anyway.
< cybik> til Kyzentun fixes bugs for breakfast
--
< maxvg1> shakesoda: then why do i still play lol
<@shakesoda> because you're an ITG player. And thus, a masochist
--
<@shakesoda> Kyzentun: I think you might need to put down the meshes for a bit
Reply
Consider passing --verbose to ./Utils/build.sh. Pass --help for details.
"sudo" wouldn't do anything because this problem has nothing to do with permissions and you shouldn't be building stepmania as root anyway.


Well i just tried "Utils/build.sh --verbose" by itself and it wouldnt work..

Configuring ffmpeg...

./configure: 1177: ./configure: cannot create config.err: Permission denied
./configure: 1178: ./configure: cannot create config.err: Permission denied
Configuring ffmpeg...failed.


Using "sudo" before it gave me better results, but still crapped out... only thing i can gather from all that is that I'm missing some files

Configuring ffmpeg...

install prefix /home/user/stepmania/ffmpeg-r8448/_inst
source path /home/user/stepmania/ffmpeg-r8448
C compiler gcc
make make
.align is power-of-two no
ARCH x86_64 (generic)
big-endian no
MMX enabled yes
CMOV enabled no
CMOV is fast no
gprof enabled no
debug symbols no
strip symbols yes
optimize small
static yes
shared no
postprocessing support no
software scaler enabled no
video hooking no
network support no
threading support no
SDL support no
Sun medialib support no
AVISynth enabled no
liba52 support no
liba52 dlopened no
libdts support no
libfaac enabled no
libfaad enabled no
faadbin enabled no
libgsm enabled no
libmp3lame enabled no
libnut enabled no
libogg enabled no
libtheora enabled no
libvorbis enabled no
x264 enabled no
XviD enabled no
zlib enabled yes
AMR-NB float support no
AMR-NB fixed support no
AMR-WB float support no
AMR-WB IF2 support no
License: LGPL
Creating config.mak and config.h...
grep: /home/user/stepmania/ffmpeg-r8448/libswscale/swscale.h: No such file or directory
config.h is unchanged
Configuring ffmpeg...okay.
Building ffmpeg...
make -C libavutil install-libs
make[1]: Entering directory `/home/user/stepmania/ffmpeg-r8448/libavutil'
install -d "/home/user/stepmania/ffmpeg-r8448/_inst/lib"
install -m 644 libavutil.a "/home/user/stepmania/ffmpeg-r8448/_inst/lib"
ranlib "/home/user/stepmania/ffmpeg-r8448/_inst/lib/libavutil.a"
make[1]: Leaving directory `/home/user/stepmania/ffmpeg-r8448/libavutil'
make -C libavcodec install-libs
make[1]: Entering directory `/home/user/stepmania/ffmpeg-r8448/libavcodec'
gcc -I"/home/user/stepmania/ffmpeg-r8448"/libswscale -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/home/user/stepmania/ffmpeg-r8448" -I"/home/user/stepmania/ffmpeg-r8448" -I"/home/user/stepmania/ffmpeg-r8448"/libavutil -Dattribute_deprecated= -fomit-frame-pointer -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Os -c -o imgresample.o imgresample.c
imgresample.c:28:21: fatal error: swscale.h: No such file or directory
compilation terminated.
make[1]: *** [imgresample.o] Error 1
make[1]: Leaving directory `/home/user/stepmania/ffmpeg-r8448/libavcodec'
make: *** [install-libs] Error 2
Building ffmpeg...failed.
Reply
Consider passing --verbose to ./Utils/build.sh. Pass --help for details.
"sudo" wouldn't do anything because this problem has nothing to do with permissions and you shouldn't be building stepmania as root anyway.


Well i just tried "Utils/build.sh --verbose" by itself and it wouldnt work..

Configuring ffmpeg...

./configure: 1177: ./configure: cannot create config.err: Permission denied
./configure: 1178: ./configure: cannot create config.err: Permission denied
Configuring ffmpeg...failed.


This happened because you mistakenly used sudo before when you shouldn't have. When you ran "sudo build.sh", it created a config.err file that only root could write to. That's why when you ran build.sh without sudo it didn't have permission to modify that file. You should run "sudo make distclean" to clean up the junk from previous attempts at building. Then don't run build.sh as root again.

I don't actually know why ffmpeg failed to build for you. Are you using the beta3 code, or is this some older checkout?
This is what github has for the SM5-beta3 tag, and I just finished testing it on my debian machine, so I know it works for me.
I recommend "./autogen.sh &> agen.out" then "Utils/build.sh -f -r --verbose &> build.out"
The "&> foo" part redirects all the output to a file so you can read it later more easily.
< cybik> til Kyzentun fixes bugs for breakfast
--
< maxvg1> shakesoda: then why do i still play lol
<@shakesoda> because you're an ITG player. And thus, a masochist
--
<@shakesoda> Kyzentun: I think you might need to put down the meshes for a bit
Reply
Also, build.sh will be going away in the next version. The sources will include ffmpeg in the source tarball and it gets built as part of the configure && make process.

You can try this right now by checking out current git.
Reply