• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
PrestoChung

SDL 1.2.(14?) on Linux

8 posts in this topic

First time trying to initialize SDL on a linux system (Mint 12)...

Got the libraries installed and the headers included, but I am getting this error (the code was working on 1.2.13 last I can recall...)

[CODE]$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o debug/program.o -c -Wall -DDEBUG -lSDL src/program.cc
src/program.cc: In member function 'int Program::startSdl()':
src/program.cc:57:25: error: 'SDL_GL_CONTEXT_MAJOR_VERSION' was not declared in this scope
src/program.cc:58:22: error: 'SDL_GL_CONTEXT_MINOR_VERSION' was not declared in this scope
src/program.cc:64:30: error: 'SDL_WINDOWPOS_CENTERED' was not declared in this scope
src/program.cc:66:9: error: 'SDL_WINDOW_OPENGL' was not declared in this scope
src/program.cc:66:29: error: 'SDL_WINDOW_SHOWN' was not declared in this scope
src/program.cc:66:48: error: 'SDL_WINDOW_FULLSCREEN' was not declared in this scope
src/program.cc:67:5: error: 'SDL_CreateWindow' was not declared in this scope
src/program.cc:78:77: error: 'SDL_GL_CreateContext' was not declared in this scope
src/program.cc:81:26: error: 'SDL_GL_SetSwapInterval' was not declared in this scope
scons: *** [debug/program.o] Error 1
scons: building terminated because of errors.
[/CODE]

Looking at my SDL_version.h file, it looks like the version I have is 1.2.14.

Are these missing from that version of SDL? Not sure why I am getting these errors.
0

Share this post


Link to post
Share on other sites
Maybe this code was originally SDL 1.3...but now I can't find anything on SDL 1.3, is it now SDL 2.0 only?

I don't know how to upgrade on a linux system, those versions don't appear with aptitude search.

Do I just download the source code and copy over the include and lib directories?
0

Share this post


Link to post
Share on other sites
The switch from 1.3 to 2.0 surprise me too, but if an application is built for 1.2 it won't work on the other one since it changed quite a bit. Just a quick question, do you actually include sdl.h somewhere in your program.cc file (or any included file)? Look to me you just need to include the header.

edit: Sorry, I searched SDL_GL_CONTEXT_MAJOR_VERSION and it don't exist in 1.2. Bad information. You are probably on the right track to download and build 2.0 yourself since I doubt any linux repository have it yet.
0

Share this post


Link to post
Share on other sites
Okay I only had git installed so I installed mercurial, and autoconf (not a lot of experience building from the command line).
According to the install guide I ran ./autogen.sh which set me up to run ./configure, supposedly.

When I run ./configure, however, it does some stuff and ends off with this error:
[code]configure: error:
*** When building from Mercurial you should configure and build in a
separate directory so you don't clobber SDL_config.h, SDL_revision.h
[/code]

What does this mean, exactly. How can I run ./configure if I'm not in the SDL directory?
0

Share this post


Link to post
Share on other sites
[quote name='PrestoChung' timestamp='1334100273' post='4930035']
What does this mean, exactly. How can I run ./configure if I'm not in the SDL directory?
[/quote]
That usually means something along the lines of:
[code]mkdir sdl-build
cd sdl-build
../configure[/code]
I'm not sure though if it can be a sub-directory of the root SDL folder..
0

Share this post


Link to post
Share on other sites
You could consider grabbing the officially maintained Debian package from the [url="http://packages.debian.org/experimental/libsdl-1.3-0"]Debian archives[/url]. Mint is just a rebranded Ubuntu, which is a tweaked Debian, so there's a good chance it would work if you download and install the binary deb from there. Alternatively, you can download the source package and build using dpkg, so you can use aptitude to continue to install, replace, or remove the library as new officially supported releases come out.
0

Share this post


Link to post
Share on other sites
Well I did use 'sudo aptitude install libsdl1.2-dev' to install it. I'm now running SDL 2.0, trying to work out the openGL context. I'm getting a 2.1 context when I requested 3.3
0

Share this post


Link to post
Share on other sites
I suggested getting the SDL-1.3 debs from Debian. That's not at all the same thing as the Ubuntu version of SDL-1.2 that Mint provides. Try the SDL-1.3 package from the link I provided. You can download the .deb from there and use 'sudo dpkg -i' to install it.
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0