Previous Thread
Next Thread
Print Thread
Joined: Aug 2012
Posts: 27
E
eris23 Offline OP
Member
OP Offline
Member
E
Joined: Aug 2012
Posts: 27
did r6199 cause the following error?

In file included from options.h:17:0,
from options.cpp:24:
joystick.h:11:17: fatal error: SDL.h: No such file or directory
#include <SDL.h>
^
compilation terminated.
In file included from options.h:17:0,
from qmc2main.cpp:37:
joystick.h:11:17: fatal error: SDL.h: No such file or directory
#include <SDL.h>


I noticed this near the beginning of the build:

qmake -makefile -o Makefile.qmake VERSION=0.45 QMC2_MINGW=0 SDL=1 TARGET=qmc2-sdlume CONFIG+=warn_off CONFIG+=release LIBS+='### WARNING: invalid SDL version '1' specified, only 1 or 2 allowed' INCLUDEPATH+='### WARNING: invalid SDL version '1' specified, only 1 or 2 allowed' 'DEFINES+=QMC2_VERSION=0.45 QMC2_SVN_REV=6201 BUILD_OS_NAME=Linux BUILD_OS_RELEASE=3.13.0-36-generic BUILD_MACHINE=x86_64 PREFIX=/usr/local DATADIR="/usr/local/share" SYSCONFDIR="/etc" QMC2_JOYSTICK=1 QMC2_OPENGL=0 QMC2_PHONON=0 QMC2_FADER_SPEED=500 QMC2_SDLUME QMC2_VARIANT_LAUNCHER QMC2_BROWSER_EXTRAS_ENABLED QMC2_BROWSER_PLUGINS_ENABLED QMC2_BROWSER_JAVA_ENABLED QMC2_BROWSER_JAVASCRIPT_ENABLED QMC2_WC_COMPRESSION_ENABLED QMC2_YOUTUBE_ENABLED ### WARNING: invalid SDL version '1' specified, only 1 or 2 allowed' qmc2.pro

Last edited by eris23; 09/07/14 02:25 AM.
Joined: May 2008
Posts: 4,899
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,899
Does "sdl-config" work for you?

Code:
rene@thunder:~/src/qmc2> sdl-config --version
1.2.15

rene@thunder:~/src/qmc2> sdl-config --cflags
-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT

rene@thunder:~/src/qmc2> sdl-config --libs
-L/usr/lib64 -lSDL -lpthread


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
Joined: May 2008
Posts: 4,899
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,899
Try SVN r6202. Seems that the interpreter linked to by /bin/sh isn't really bash-compatible in your case (i.e. on Debian/Ubuntu it's "/bin/dash" instead of "bin/bash" - WTF?!). I've now changed the scripts to explicitly use /bin/bash instead of /bin/sh, and this has been tested successfully on openSUSE, Debian and Ubuntu.

What's your actual distribution, BTW?


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
Joined: Aug 2012
Posts: 27
E
eris23 Offline OP
Member
OP Offline
Member
E
Joined: Aug 2012
Posts: 27
SVN r6203 builds without problems.

Actual distribution began as Xubuntu -- but I've added various PPAs as well as other non-Xubuntu software.

eris23@desktop:~$ sdl-config --version
1.2.15
eris23@desktop:~$ sdl-config --cflags
-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
eris23@desktop:~$ sdl-config --libs
-L/usr/lib/x86_64-linux-gnu -lSDL

I didn't realize that, while the login shell is bash
echo $BASH_VERSION
4.3.11(1)-release

ls -l /bin/sh
lrwxrwxrwx 1 root root 4 May 6 15:03 /bin/sh -> dash

Why dash? https://wiki.ubuntu.com/DashAsBinSh


Moderated by  qmc2 

Link Copied to Clipboard
Who's Online Now
0 members (), 23 guests, and 4 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,018
Posts118,409
Members5,010
Most Online890
Jan 17th, 2020
Forum Host
These forums are hosted by www.retrogamesformac.com
Forum hosted by www.retrogamesformac.com