chunky
12-12-2007 01:59:00
I hope you don't mind me spamming the forums with all these questions, I'm just still a little overwhelmed.
I tried getting all my code to build on linux, but ran into a problem in the skinmanager code:
The line of my code that causes this is:
I tried appending a resource group parameter ("General", in this case), but it didn't change anything. This is the exact code that works on OSX just fine. I don't have a windows build box right now to compare with, sadly.
Any suggestions as to what I should look for?
Thank-you very much (again!)
Gary (-;
I tried getting all my code to build on linux, but ran into a problem in the skinmanager code:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1241262368 (LWP 2677)]
0xb619d660 in FreeImage_SetTagValue () from /usr/lib/libfreeimage.so.3
(gdb) bt
#0 0xb619d660 in FreeImage_SetTagValue () from /usr/lib/libfreeimage.so.3
#1 0xb6177f8e in ?? () from /usr/lib/libfreeimage.so.3
#2 0xb6164741 in FreeImage_LoadFromHandle () from /usr/lib/libfreeimage.so.3
#3 0xb616355b in FreeImage_LoadFromMemory () from /usr/lib/libfreeimage.so.3
#4 0xb79a0529 in Ogre::FreeImageCodec::decode (this=0x82663e0, input=@0xbf9fa800) at OgreFreeImageCodec.cpp:338
#5 0xb779b364 in Ogre::Image::load (this=0xbf9fa8ec, strFileName=@0x828ed6c, group=@0x823840c) at OgreImage.cpp:329
#6 0x0815b91b in QuickGUI::SkinSet::buildTexture (this=0x828dc60) at /home/chunky/src/tuxwars3/src/libs/QuickGUI/src/QuickGUISkinSet.cpp:367
#7 0x0815c663 in SkinSet (this=0x828dc60, skinName=@0xbf9faa64, t=QuickGUI::SkinSet::IMAGE_TYPE_PNG, resourceGroup=@0x82382c0) at /home/chunky/src/tuxwars3/src/libs/QuickGUI/src/QuickGUISkinSet.cpp:28
#8 0x081609b5 in QuickGUI::SkinSetManager::loadSkin (this=0x8279c60, skinName=@0xbf9faa64, t=QuickGUI::SkinSet::IMAGE_TYPE_PNG, resourceGroup=@0x82382c0)
at /home/chunky/src/tuxwars3/src/libs/QuickGUI/src/QuickGUISkinSetManager.cpp:73
#9 0x0805b776 in TWGUI (this=0x827a530, scnmgr=0x8297300, vp=0x82a46c0) at /home/chunky/src/tuxwars3/src/gui/maingui.cpp:10
#10 0x080559db in TWMain (this=0x825fe58, argc=1, argv=0xbf9fabe4) at /home/chunky/src/tuxwars3/src/game/maingame.cpp:111
#11 0x08054d61 in main (argc=1, argv=0xbf9fabe4) at /home/chunky/src/tuxwars3/src/game/main.cpp:5
(gdb)
The line of my code that causes this is:
QuickGUI::SkinSetManager::getSingleton().loadSkin("qgui",QuickGUI::SkinSet::IMAGE_TYPE_PNG);
I tried appending a resource group parameter ("General", in this case), but it didn't change anything. This is the exact code that works on OSX just fine. I don't have a windows build box right now to compare with, sadly.
Any suggestions as to what I should look for?
Thank-you very much (again!)
Gary (-;