Iris2.de

Iris2-Forum
It is currently Fri Apr 26, 2024 3:03 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: compiling error
PostPosted: Sun Jul 29, 2007 3:16 pm 
Offline

Joined: Sun Jul 29, 2007 3:11 pm
Posts: 5
Location: Portugal
I i'm using Fedora 7 and i add this error :

make[1]: Entering directory `/home/nuno/Desktop/iris_2.0.1240/src'
g++ -DHAVE_CONFIG_H -I. -I../include -I/usr/include -I/usr/local/include/fmodex -DOGRE_GUI_gtk -DOGRE_NO_FREEIMAGE -DOGRE_CONFIG_LITTLE_ENDIAN -I/usr/include/OGRE -I/usr/include/OIS -g -O2 -MT data.o -MD -MP -MF .deps/data.Tpo -c -o data.o data.cpp
data.cpp: In member function ‘const float cUniFontFileLoader::GetLetterUsage()’:
data.cpp:826: error: cast from ‘const char*’ to ‘int’ loses precision
make[1]: *** [data.o] Error 1
make[1]: Leaving directory `/home/nuno/Desktop/iris_2.0.1240/src'
make: *** [all-recursive] Error 1


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 29, 2007 3:30 pm 
Offline
iris2-developer
User avatar

Joined: Tue Aug 22, 2006 1:21 pm
Posts: 173
Location: Munich, Germany
which gcc version do you use? it seems that your gcc stops at "cast warnings".

_________________
O-->---


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 29, 2007 3:34 pm 
Offline

Joined: Sun Jul 29, 2007 3:11 pm
Posts: 5
Location: Portugal
[nuno@devils iris_2.0.1240]$ gcc --version
gcc (GCC) 4.1.2 20070502 (Red Hat 4.1.2-12)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 29, 2007 4:37 pm 
Offline

Joined: Sun Jul 29, 2007 3:11 pm
Posts: 5
Location: Portugal
i use have gcc 4.1 and fedora 7 x86_64!

thx in advance


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 29, 2007 9:26 pm 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
do you have a 64bit system ? iris isn't 64 bit save (yet).

also those flags are strange : -DOGRE_NO_FREEIMAGE -DOGRE_CONFIG_LITTLE_ENDIAN

iris assumes intel endian (don't know which is little and which is big just now), so it will not run on old motorola, and we DO use freeimage from ogre.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 29, 2007 11:11 pm 
Offline

Joined: Sun Jul 29, 2007 3:11 pm
Posts: 5
Location: Portugal
how can i workaround?

can someone send me a compiled version?


(i have a Amd64....)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 14, 2008 12:39 pm 
Offline
User avatar

Joined: Sat May 03, 2003 6:04 pm
Posts: 10
change 'int' to 'long'
there are a few the same eoros in other file


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 22, 2008 9:28 pm 
Offline

Joined: Sun Jul 29, 2007 3:11 pm
Posts: 5
Location: Portugal
thanks for replay

the change work's an i was able to compile.

then i run ./start.sh

ogre engine setup apears:

FSAA = 0
FullScreen = No
RTT = FBO
VIDEOMOD=1024x768

Then.... Black sreen.... nothing apens


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

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:  
cron
Powered by phpBB® Forum Software © phpBB Group