ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Fri Nov 24, 2017 10:54 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Compile problem in Linux
PostPosted: Mon Oct 08, 2012 9:07 pm 
Offline
Wayist

Joined: Tue Sep 02, 2003 7:49 am
Posts: 25
Location: Finland
Hi!

I'm running 64bit Ubuntu 12.04.

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

Code:
premake4 gmake && make


I get error:

Quote:
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:

Quote:
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.

_________________
Lostsoul Maya


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group