LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why does the 'make' command return with errors? (https://www.linuxquestions.org/questions/linux-newbie-8/why-does-the-make-command-return-with-errors-4175545783/)

bdturner15 06-18-2015 06:06 PM

Why does the 'make' command return with errors?
 
I have been trying to install AlephOne on Xubuntu 14.04 for about a week now. I have researched similar issues but haven't quite been able to understand the problem, much less fix it. I will paste the return message below this introduction to my issue below. Thank you so much for reading this post. I would greatly appreciate help. Have a beautiful day! :)
**Note: The command that's supposed to go before this - './configure' - went smoothly if you're wondering.

RETURN FROM TERMINAL:

brendan@brendan:~/Downloads/AlephOne$ sudo make
make all-recursive
make[1]: Entering directory `/home/brendan/Downloads/AlephOne'
Making all in Source_Files
make[2]: Entering directory `/home/brendan/Downloads/AlephOne/Source_Files'
make[3]: Entering directory `/home/brendan/Downloads/AlephOne'
make[3]: Leaving directory `/home/brendan/Downloads/AlephOne'
Making all in CSeries
make[3]: Entering directory `/home/brendan/Downloads/AlephOne/Source_Files/CSeries'
make[4]: Entering directory `/home/brendan/Downloads/AlephOne'
make[4]: Leaving directory `/home/brendan/Downloads/AlephOne'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/brendan/Downloads/AlephOne/Source_Files/CSeries'
Making all in Expat
make[3]: Entering directory `/home/brendan/Downloads/AlephOne/Source_Files/Expat'
make[4]: Entering directory `/home/brendan/Downloads/AlephOne'
make[4]: Leaving directory `/home/brendan/Downloads/AlephOne'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/brendan/Downloads/AlephOne/Source_Files/Expat'
Making all in Files
make[3]: Entering directory `/home/brendan/Downloads/AlephOne/Source_Files/Files'
make[4]: Entering directory `/home/brendan/Downloads/AlephOne'
make[4]: Leaving directory `/home/brendan/Downloads/AlephOne'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/brendan/Downloads/AlephOne/Source_Files/Files'
Making all in FFmpeg
make[3]: Entering directory `/home/brendan/Downloads/AlephOne/Source_Files/FFmpeg'
make[4]: Entering directory `/home/brendan/Downloads/AlephOne'
make[4]: Leaving directory `/home/brendan/Downloads/AlephOne'
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../Source_Files/CSeries -I../../Source_Files/Files -I../../Source_Files/GameWorld -I../../Source_Files/Input -I../../Source_Files/Misc -I../../Source_Files/ModelView -I../../Source_Files/Network -I../../Source_Files/Sound -I../../Source_Files/RenderMain -I../../Source_Files/RenderOther -I../../Source_Files/XML -I../../Source_Files -D__STDC_CONSTANT_MACROS -I/usr/include/libpng12 -D_FORTIFY_SOURCE=2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DSDL -g -O2 -MT Movie.o -MD -MP -MF .deps/Movie.Tpo -c -o Movie.o Movie.cpp
Movie.cpp: In member function ‘bool Movie::Setup()’:
Movie.cpp:494:61: error: ‘AVStream’ has no member named ‘quality’
audio_stream->codec->global_quality = audio_stream->quality = FF_QP2LAMBDA * (aq / 10);
^
Movie.cpp: In member function ‘void Movie::EncodeVideo(bool)’:
Movie.cpp:618:21: warning: ‘int avcodec_encode_video(AVCodecContext*, uint8_t*, int, const AVFrame*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4030) [-Wdeprecated-declarations]
int vsize = avcodec_encode_video(vcodec,
^
Movie.cpp:620:47: warning: ‘int avcodec_encode_video(AVCodecContext*, uint8_t*, int, const AVFrame*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4030) [-Wdeprecated-declarations]
frame);
^
make[3]: *** [Movie.o] Error 1
make[3]: Leaving directory `/home/brendan/Downloads/AlephOne/Source_Files/FFmpeg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/brendan/Downloads/AlephOne/Source_Files'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/brendan/Downloads/AlephOne'
make: *** [all] Error 2

bigrigdriver 06-19-2015 11:42 AM

Read the INSTALL.unix file in the AlephOne tarball. There is a dependency which you can install/make from source (SDL library) which is necessary for AlephOne to compile. Or, you can install from the Xubuntu repository the libsdl- libraries for SDL image, net, and dev instead of making from source.

bdturner15 06-19-2015 01:56 PM

Quote:

Originally Posted by bigrigdriver (Post 5379909)
Read the INSTALL.unix file in the AlephOne tarball. There is a dependency which you can install/make from source (SDL library) which is necessary for AlephOne to compile. Or, you can install from the Xubuntu repository the libsdl- libraries for SDL image, net, and dev instead of making from source.

I got this when trying to make SDL 2.0.3 (I have to build it for now because I can't find it in the repositories):

brendan@brendan:~/Downloads/SDL2-2.0.3$ make install
Warning, configure.in is out of date
#(cd /home/brendan/Downloads/SDL2-2.0.3 && sh autogen.sh && sh configure)
/bin/bash build-scripts/updaterev.sh
/bin/bash build-scripts/mkinstalldirs /usr/local/bin
/usr/bin/install -c -m 755 sdl2-config /usr/local/bin/sdl2-config
/usr/bin/install: cannot remove ‘/usr/local/bin/sdl2-config’: Permission denied
make: *** [install-bin] Error 1
brendan@brendan:~/Downloads/SDL2-2.0.3$

bigrigdriver 06-19-2015 05:52 PM

You need to run the make install phase as root, because the installation will try to write to directories that the normal user does not have permission to write to.

John VV 06-19-2015 07:51 PM

WHAT version are you building
http://sourceforge.net/projects/mara...es/Aleph20One/

the old one from 2014
or the one added THIS EVENING ( 6-19-2015)

Shadow_7 06-22-2015 08:23 AM

Code:

Movie.cpp: In member function bool Movie::Setup():
Movie.cpp:494:61: error: AVStream has no member named quality
audio_stream->codec->global_quality = audio_stream->quality = FF_QP2LAMBDA * (aq / 10);

This is why it's failing according to gcc. If you don't need that feature you can --disable-??? the option the puts it in the compile tree. But it's likely that you're missing something that it needs for that to work.

$ sudo apt-get install libsdl-dev

And probably many other -dev things. Watch the output of ./configure and notice all the "=no" items.


All times are GMT -5. The time now is 09:18 AM.