Iris2.de
http://iris2.de/forum/

Iris under Ubuntu 8.04 Hardy Heron
http://iris2.de/forum/viewtopic.php?f=19&t=1192
Page 1 of 3

Author:  Arek M. [ Thu May 01, 2008 6:25 pm ]
Post subject:  Iris under Ubuntu 8.04 Hardy Heron

Hey guys,

I'm trying to make Iris work under Ubuntu.
I installed all packages through installdeps.ubuntu.sh.
I have UO:ML installed and updated to newest version (in wine environment).
Iris SVN is checkout is in my ~/Iris/stable_release/ dir (as you will see in a sec) and is updated to newest revision.

This is what happens when I try to run it:
Code:
arek@Arek:~/Iris/stable_release$ sh ./startbinary.sh
./startbinary.sh: 2: pushd: not found
./startbinary.sh: 7: ../linuxbin/iris: not found
./startbinary.sh: 8: popd: not found
arek@Arek:~/Iris/stable_release$


And this is what happens when I try to compile it:
Code:
arek@Arek:~/Iris/stable_release$ sh ./premakelinux.sh
Generating GNU makefiles:
...lugrelua
...cadune_treelib
...md5lib
...paged_geometrylib
...caelumlib
...lugrelib
...iris
==== Building lugrelua ====
make[1]: `liblugrelua.a' is up to date.
==== Building cadune_treelib ====
make[1]: `libcadune_treelib.a' is up to date.
==== Building md5lib ====
make[1]: `libmd5lib.a' is up to date.
==== Building paged_geometrylib ====
make[1]: `libpaged_geometrylib.a' is up to date.
==== Building caelumlib ====
make[1]: `libcaelumlib.a' is up to date.
==== Building lugrelib ====
lugre_net_L.cpp
lugre/src/lugre_net_L.cpp: In static member function ‘static int Lugre::cConnection_L::NtoA(lua_State*)’:
lugre/src/lugre_net_L.cpp:78: error: cast from ‘void*’ to ‘Lugre::uint32’ loses precision
make[1]: *** [obj/Debug/lugre_net_L.o] Error 1
make: *** [lugrelib] Error 2
arek@Arek:~/Iris/stable_release$


I appreciate your help.

Author:  ghoulsblade [ Fri May 02, 2008 1:56 pm ]
Post subject: 

hi =) do you have a 64bit system ?
i just changed something but couldn't try it out, please update (svn up) and try to compile again.

Author:  Arek M. [ Fri May 02, 2008 2:56 pm ]
Post subject: 

Yes, forgot to mention it. Running on 64-bit system. Therefore I changed lugre/include/lugre_profile.h and left out '#define ENABLE_PROFILING'.

Updated and still getting this error when compiling:
Code:
arek@Arek:~/Iris/stable_release$ sh ./premakelinux.sh
Generating GNU makefiles:
...lugrelua
...cadune_treelib
...md5lib
...paged_geometrylib
...caelumlib
...lugrelib
...iris
==== Building lugrelua ====
make[1]: `liblugrelua.a' is up to date.
==== Building cadune_treelib ====
make[1]: `libcadune_treelib.a' is up to date.
==== Building md5lib ====
make[1]: `libmd5lib.a' is up to date.
==== Building paged_geometrylib ====
make[1]: `libpaged_geometrylib.a' is up to date.
==== Building caelumlib ====
make[1]: `libcaelumlib.a' is up to date.
==== Building lugrelib ====
lugre_spritelist.cpp
lugre/src/lugre_spritelist.cpp: In constructor ‘Lugre::cRenderManager2D::cRenderManager2D(Ogre::SceneManager*, Ogre::uint8)’:
lugre/src/lugre_spritelist.cpp:260: error: cast from ‘Ogre::SceneManager*’ to ‘int’ loses precision
make[1]: *** [obj/Debug/lugre_spritelist.o] Error 1
make: *** [lugrelib] Error 2

Author:  ghoulsblade [ Fri May 02, 2008 3:45 pm ]
Post subject: 

ok, changed something, please update and compile again =)

Author:  Arek M. [ Fri May 02, 2008 4:03 pm ]
Post subject: 

Did not compile, but there are different errors. That means we're actually moving forward :D
Code:
arek@Arek:~/Iris/stable_release$ sh ./premakelinux.sh
Generating GNU makefiles:
...lugrelua
...cadune_treelib
...md5lib
...paged_geometrylib
...caelumlib
...lugrelib
...iris
==== Building lugrelua ====
make[1]: `liblugrelua.a' is up to date.
==== Building cadune_treelib ====
make[1]: `libcadune_treelib.a' is up to date.
==== Building md5lib ====
make[1]: `libmd5lib.a' is up to date.
==== Building paged_geometrylib ====
make[1]: `libpaged_geometrylib.a' is up to date.
==== Building caelumlib ====
make[1]: `libcaelumlib.a' is up to date.
==== Building lugrelib ====
make[1]: `liblugrelib.a' is up to date.
==== Building iris ====
Linking iris
./liblugrelua.a(loslib.o): In function `os_tmpname':
/home/arek/Iris/stable_release/lugre/lib/lua-5.1.3//src/loslib.c:60: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
./liblugrelib.a(lugre_scripting.general.o): In function `l_ProfileDumpCallCount':
/home/arek/Iris/stable_release/lugre/src/lugre_scripting.general.cpp:108: undefined reference to `Lugre::ProfileDumpCallCount()'
collect2: ld returned 1 exit status
make[1]: *** [bin/iris] Error 1
make: *** [iris] Error 2

Author:  ghoulsblade [ Sat May 03, 2008 1:47 am ]
Post subject: 

ok, i think i fixed it , please update and compile again =)

Author:  Arek M. [ Sat May 03, 2008 6:26 am ]
Post subject: 

Good job, I successfully compiled it!

There is another problem though...
I run Iris, choose a shard, then choose a server and a black screen follows. It eventually (in 2 min or so) disappears, crashing down the client. This is what console tells me.

Code:
cNet::ConnectSocket : socket connect failed (port:2594)
cNet::Connect : ConnectSocket failed (195.181.253.87:2594)
ERROR : kPacket_Server_Redirect : login server redirect failed


I tried 4 servers from the list and all end up like that.

Also, with the menu there should be an orange screen I guess. My screen is blinking and changes for a short while to black like once a sec, if you know what I mean...

Author:  Arek M. [ Sat May 03, 2008 6:39 am ]
Post subject: 

Ah, let's skip the login issue (I will be logging on a shard where I can modify scripts to make it work), I started it in Offline mode, so I could try it out. I saw some textures for a sec and then this:
Code:
Welcome to Iris
stop music
warning : terrain : groundblock loader doesn't support group loading, falling back to copy, but it's a bit slower (group loading not implemented yet)
PrintLuaStackTrace:
./start.sh: line 5: 14091 Segmentation fault      ./iris $1 $2 $3 $4 $5 $6 $7 $8
~/Iris/stable_release

Author:  hagish [ Sat May 03, 2008 11:01 am ]
Post subject: 

if you have gdb you can try the following:

cd IRISDIR
cd bin
gdb ./iris
r -so
*play until it crashes*
bt
*post the output of bt*

Author:  Arek M. [ Sat May 03, 2008 11:34 am ]
Post subject: 

Can't do that. I start Iris by r -so. I see some game graphics and then only black screen. There is no way to close Iris then, but kill gdb process...

Author:  ghoulsblade [ Sat May 03, 2008 12:04 pm ]
Post subject: 

maybe try without fullscreen mode ? or pipe gdb out into a file ?

Author:  Arek M. [ Sat May 03, 2008 12:21 pm ]
Post subject: 

I'm running it in a window. How do I pipe it out?

Author:  ghoulsblade [ Sat May 03, 2008 12:59 pm ]
Post subject: 

instead of
gdb ./iris
try
gdb ./iris > myfile.txt
or if that doesn't work

gdb ./iris > myfile.txt 2>&1

error output redirect
(doesn't work in all shells, try in bash)

Author:  hagish [ Sat May 03, 2008 1:06 pm ]
Post subject: 

you could try the following:

ctrl-alt-f1
login as the same user the x session is running
> declare -x DISPLAY=":0.0"
> cd IRISDIR
> cd bin
> gdb ./iris
> r -so
now iris should run under your x
ctrl-alt-f7 (probably) to return to the x session
if iris crashed
ctrl-alt-f1
> bt

Author:  Arek M. [ Sat May 03, 2008 1:18 pm ]
Post subject: 

Sorry to say that, but does not do anything either. The only way I manage to crash Iris by itself is by launching just ./iris or ./start.sh. Otherwise it just stays idle with gdb and waits for me to kill it.

This is only error message I get:
Code:
warning : terrain : groundblock loader doesn't support group loading, falling back to copy, but it's a bit slower (group loading not implemented yet)
PrintLuaStackTrace:
Segmentation fault


I guess it could be connected with blinking of the main screen, I will try to record my desktop to show you that.

Page 1 of 3 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/