Page 1 of 1

Compile problem in Linux

Posted: Mon Oct 08, 2012 9:07 pm
by outolumo
Hi!

I'm running 64bit Ubuntu 12.04.

I followed the wiki instruction on compiling up to the point:

Code: Select all

premake4 gmake && make
I get error:
particles.c
../src/particles.c: In function ‘particles_emit’:
../src/particles.c:406:53: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../src/particles.c: In function ‘thread_particle_run’:
../src/particles.c:515:60: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../src/particles.c:515:68: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../src/particles.c: In function ‘thread_particle_init’:
../src/particles.c:545:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../src/particles.c:593:47: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../src/particles.c: In function ‘free_particles_thread’:
../src/particles.c:907:72: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../src/particles.c: In function ‘create_particles_thread’:
../src/particles.c:944:3: error: too many arguments to function ‘SDL_CreateThread’
/usr/local/include/SDL/SDL_thread.h:142:1: note: declared here
make[1]: *** [../obj/Debug/TEngine/particles.o] Error 1
make: *** [TEngine] Error 2
Basically, it says that there's 3 parameters in the function call, while it tries to match it against two on that line in the header file.

There are three places, where this function is called. grep tells:
src/music.c: sound->loaderThread = SDL_CreateThread(streamingLoader, "steamer", sound);
src/particles.c: thread = SDL_CreateThread(thread_particles, "particles", pt);
src/profile.c: thread = SDL_CreateThread(thread_profile, "profile", profile);
What should I do?

Edit: svn 5511, a.k.a. beta42.