Hello Johannes,

-------- Original-Nachricht --------
> Betreff: [Opensg-users] Porting from OpenSG 1.8 to OpenSG 2.0: Image file     
> loading
> I'm facing an additional small problem with the CMake build system with
> respect to the specific image file types. Let me start by saying that
> I'm not using the support libs OpenSG provides. After some
> instrumentation I got the following output on running cmake (only JPEG
> on the compass)
> 
> -- Configuring jpeg...
> -- Searching on JPEG...
> -- ...JPEG found ok
> -- ...yes found ok
> -- ... and jpeg is found...
> -- ...OSG_WITH_JPG is 1
> 
> Because I'm unable to load jpeg images I found that the specific code is
> guarded by the preprocessor flag OSG_WITH_JPG.

do you get any relevant messages if you try it with the env var OSG_LOG_LEVEL 
set to DEBUG (preferably with a debug build) ?

> This flag is not set in
> my msdev project files generated by cmake or in any *.cmake or *.txt
> file in the build directory. In case that the code inside of the
> OSG_WITH_JPG has to be part of the 
> libraries (which I suspect) I think there is might be a hole in the
> setup. Beside, my jpeg.lib/jpegd.lib are linked to the OSGImageFileIO
> library.

the define is in OSGConfigured.h, which is generated in your build dir (in one 
of the subdirs belonging to libOSGBase) and installed together with the other 
headers.
 
> Additional note, I also added the call
> preloadSharedObject("OSGImageFileIO") before the osgInit(0,NULL) entry
> point unfortunately necessary on MS windows (but not a problem).

can you check what file suffixes are known to the system using: 
std::list<const Char8*> sufList;
ImageFileHandler::the()->getSuffixList(sufList);

    Cheers,
        Carsten

-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to