examples and 0.4.2 on linux

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
dbu
Posts: 7
Joined: Mon Dec 01, 2003 4:36 pm
Contact:

examples and 0.4.2 on linux

Post by dbu »

hello,

i tried to run the examples on linux. with example 1 (hello world) i still can not see textures (the lady is just a white hole) when running opengl with a voodoo3 card (meaning i run in 16bit color depth). any ideas? when running on an other machine with no hardware accel and 24bit color depth, i see the textured lady...


example 2 just segfaults (it doesn't with 0.4.1), the stack trace is:
#0 0x080b2ccf in inflate_codes ()
#1 0x080b1ba3 in inflate_blocks ()
#2 0x080b0d36 in inflate ()
#3 0x08075240 in irr::io::CZipReader::openFile(int) ()
#4 0x08074fad in irr::io::CZipReader::openFile(char const*) ()
#5 0x0805e00f in irr::io::CFileSystem::createAndOpenFile(char const*) ()
#6 0x0806dc65 in irr::scene::CSceneManager::getMesh(char const*) ()
#7 0x0804a5e0 in main () at main.cpp:118

example 3 works fine, i have a colord pyramid rotating

example 4 segfaults
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 1482)]
0x0804af31 in MyEventReceiver::OnEvent(irr::SEvent) (this=0xbffff5e4, event=
{EventType = EET_LOG_TEXT_EVENT, {GUIEvent = {Caller = 0x80dcce8, EventType = EGET_ELEMENT_LEFT}, MouseInput = {X = 135122152, Y = 3, Event = 134540631}, KeyInput = {Key = 135122152, PressedDown = 3}, LogEvent = {Text = 0x80dcce8 "Irrlicht Engine version 0.4.2", Level = ELL_NONE}}}) at main.cpp:67
67 if (device->getSceneManager()->getActiveCamera())
(gdb) bt
#0 0x0804af31 in MyEventReceiver::OnEvent(irr::SEvent) (this=0xbffff5e4, event=
{EventType = EET_LOG_TEXT_EVENT, {GUIEvent = {Caller = 0x80dcce8, EventType = EGET_ELEMENT_LEFT}, MouseInput = {X = 135122152, Y = 3, Event = 134540631}, KeyInput = {Key = 135122152, PressedDown = 3}, LogEvent = {Text = 0x80dcce8 "Irrlicht Engine version 0.4.2", Level = ELL_NONE}}}) at main.cpp:67
#1 0x0805d5fe in irr::CLogger::log(char const*, irr::ELOG_LEVEL) ()
#2 0x0805d77a in irr::CLogger::log(wchar_t const*, irr::ELOG_LEVEL) ()
#3 0x08056d25 in irr::os::Printer::log(wchar_t const*, irr::ELOG_LEVEL) ()
#4 0x08056ef1 in irr::CIrrDeviceStub::CIrrDeviceStub(wchar_t const*, irr::IEventReceiver*) ()
#5 0x0804b160 in irr::CIrrDeviceLinux::CIrrDeviceLinux(irr::video::EDriverType, irr::core::dimension2d<int> const&, unsigned, bool, bool, irr::IEventReceiver*, wchar_t const*) ()
#6 0x0804e8b3 in irr::createDevice(irr::video::EDriverType, irr::core::dimension2d<int> const&, unsigned, bool, bool, irr::IEventReceiver*, wchar_t const*) ()
#7 0x0804a5f6 in main () at main.cpp:85

example 5 does not compile anymore because:
main.cpp: In member function `virtual bool
MyEventReceiver::OnEvent(irr::SEvent)':
main.cpp:101: error: no matching function for call to `
irr::gui::IGUIEnvironment::addWindow(irr::core::rect<s32>, int, int, const
wchar_t[12])'
../../include/IGUIEnvironment.h:104: error: candidates are: virtual
irr::gui::IGUIWindow* irr::gui::IGUIEnvironment::addWindow(const
irr::core::rect<s32>&, bool, const wchar_t*, irr::gui::IGUIElement*, int)

example 6
again only white, no textures with voodoo 3...

the two examples where i get only white are strange. does anybody know if this is a 16 bit X problem, a voodoo specific problem or something else?

please tell me if you need more informations or want me to test something to track the problem down.
Noldo
Posts: 15
Joined: Sat Dec 27, 2003 3:11 pm
Location: Lappeenranta,Finland

Post by Noldo »

I had very similar problems with 2nd example but using 0.4.2 fixed them (no textures).

Can't really help much, but just to be sure you should check that your libraries are up to date. (little far fetched maybe)

It would be easier to say something if you told which distribution you are using.
dbu
Posts: 7
Joined: Mon Dec 01, 2003 4:36 pm
Contact:

Post by dbu »

I have debian woody (stable) but with gcc 3.3.2. i did not change the X server.
Noldo
Posts: 15
Joined: Sat Dec 27, 2003 3:11 pm
Location: Lappeenranta,Finland

Post by Noldo »

How did you install the newer version of gcc?
dbu
Posts: 7
Joined: Mon Dec 01, 2003 4:36 pm
Contact:

Post by dbu »

i compiled it and made it install in /opt
then i changed the makefiles to use that version and copied the new libstd and stuff into the /lib directory.
but the lack of colored textures does not seem to be a gcc problem to me...
Post Reply