Check if your jpeglib.h and libjpeg.so match. This type of problem could crop up if the header and library are from different versions (or if you have multiple headers installed and the wrong one is used).
-- ES On Mar 28, 2008, at 11:39 PM, Elio Cuevas Gómez wrote: > Hi! > > I wanted to try Crystal Space but it doesn't work in my system. The > code compiles and install correctly, but when I try to run walktest > or any other of the included programs I get a segmentation fault: > > [...] > crystalspace.canvas.openglcommon: > OpenGL renderer: GeForce 6200/AGP/SSE2 (vendor: NVIDIA > Corporation) version > 2.1.2 NVIDIA 169.12 > Using windowed mode at resolution 640x480. > Pixel format: Color: 24 Alpha: 8 Depth: 24 Stencil: 8 AccumColor: 48 > AccumAlpha: 16 MultiSamples: 0 > Multisample: disabled > > crystalspace.graphics3d.opengl: > Using VBO with 64 MB of VBO memory > > crystalspace.system: > Loading map 'castle'. > Segmentation fault > > > Running the program throught GDB I get this backtrace: > > #0 0x00002aaab4d90867 in jpeg_CreateDecompress () from /usr/lib/ > libjpeg.so.62 > #1 0x00002aaab4fbc819 in > CS::Plugin::JPGImageIO::ImageJpgFile::JpegLoader::InitOk > (this=0x2aaab3abdaf4) at ../plugins/video/loader/jpg/jpgimage.cpp:440 > #2 0x00002aaab4fbdd5b in > CS::Plugin::JPGImageIO::ImageJpgFile::InitLoader ( > this=0x2aaab3dda70c, [EMAIL PROTECTED]) > at ../plugins/video/loader/jpg/jpgimage.cpp:612 > #3 0x00002aaab4fe4cc8 in csCommonImageFile::Load > (this=0x2aaab3dda70c, > [EMAIL PROTECTED]) > at ../libs/csplugincommon/imageloader/commonimagefile.cpp:123 > #4 0x00002aaab4fbd102 in CS::Plugin::JPGImageIO::csJPGImageIO::Load ( > this=0x2aaab3dda5fc, buf=0x2aaab4284b5c, iFormat=65537) > at ../plugins/video/loader/jpg/jpgimage.cpp:177 > #5 0x00002aaaacaf24eb in > CS::Plugin::ImgPlex::csImageIOMultiplexer::Load ( > this=0x2b7de9829d54, buf=0x2aaab4284b5c, iFormat=65537) > at ../plugins/video/loader/mplex/imgplex.cpp:135 > #6 0x00002aaaae3cdffd in csLoader::LoadImage (this=0x2b7de982e8dc, > buf=0x2aaab4284b5c, fname=0x9b3ac0 "/lib/std/castle/castle- > detail1_d.jpg", > Format=65537) at ../plugins/csparser/loadtex.cpp:119 > #7 0x00002aaaae3ce1a4 in csLoader::LoadImage (this=0x2b7de982e8dc, > fname=0x9b3ac0 "/lib/std/castle/castle-detail1_d.jpg", > Format=65537) > at ../plugins/csparser/loadtex.cpp:226 > #8 0x00002aaaae3941b8 in csLoader::ParseTexture (this=0x2b7de982e8dc, > ldr_context=0x2aaab06a39f4, node=0x2aaab069e564) > at ../plugins/csparser/prstex.cpp:343 > #9 0x00002aaaae395a89 in csLoader::ParseTextureList > (this=0x2b7de982e8dc, > ldr_context=0x2aaab06a39f4, node=0x2aaab287fc14) > at ../plugins/csparser/prstex.cpp:114 > #10 0x00002aaaae3b60b9 in csLoader::LoadMap (this=0x2b7de982e8dc, > ldr_context=0x2aaab06a39f4, worldnode=0x2aaab0ee76cc, ssource=0x0, > missingdata=0x0) at ../plugins/csparser/csloader.cpp:1294 > #11 0x00002aaaae3b6670 in csLoader::LoadMap (this=0x2b7de982e8dc, > world_node=0x2aaab0ee76cc, clearEngine=false, region=0x0, > curRegOnly=true, > checkdupes=false, ssource=0x0, missingdata=0x0) > at ../plugins/csparser/csloader.cpp:900 > #12 0x00002aaaae3a3ecb in csLoader::LoadMapFile (this=0x2b7de982e8dc, > file=0x55309c "world", clearEngine=false, region=0x0, > curRegOnly=true, > checkdupes=false, ssource=0x0, missingdata=0x0) > at ../plugins/csparser/csloader.cpp:875 > #13 0x000000000042de6d in WalkTest::Initialize (this=0x7ec0e0, argc=1, > argv=0x7fffc12d2c58, iConfigName=0x553e70 "/config/walktest.cfg") > at ../apps/walktest/walktest.cpp:1244 > #14 0x000000000042ecac in main (argc=1, argv=0x7fffc12d2c58) > at ../apps/walktest/walktest.cpp:1432 > #15 0x00002b7dea3b2b74 in __libc_start_main () from /lib/libc.so.6 > #16 0x0000000000403099 in _start () > > > Does anyone know what could be causing this problem? My system is > Gentoo Linux in AMD64. > > Disabling jpeg in configure seems to fix it except that I don't get > jpeg support which kind of makes this pointless. > > Thanks. Elio. > ---------------------------------------------------------------------- > --- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/ > marketplace_______________________________________________ > Crystal-main mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/crystal-main > Unsubscribe: mailto:[EMAIL PROTECTED] > subject=unsubscribe ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]
