Hi Randall

If you are rebuilding libjpeg for Windows from http://www.ijg.org/, it's a bit of a pain.

I'd suggest you to get the libjpeg dependency from the OSG 3rdParty package:
http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-2.8/binaries/Windows/VisualStudio9/3rdParty_Win32Binaries_vc90sp1.zip



But if you want to go ahead with the IJG version, you need the following:
1) The devs renamed all VC9 project files to some encoded, obfuscated name.
So you need to "decode" them:  :-)

- Rename makejvcp.vc9 to jpeg.vcproj
- Rename makejsln.vc9 to jpeg.sln
- Rename jconfig.vc to jconfig.h

2) In my environment I also had to change jconfig.h, commenting out the line with HAVE_STDLIB.

That should be enough to build the jpeg.lib, both in its Debug and Release versions.

3) Then you need to copy the following files into 3rdParty\include:
   jpeglib.h
   jerror.h
   jconfig.h

4) and copy the library into 3rdParty\lib:
   libjpeg.lib
   libjpegD.lib   (Debug version)

It's way easier to use the package of binary dependencies provided by OSG.

 Tom


Randall Green wrote:
Victhor,

You are absolutely amazing! But now I get file not found on jconfig.h.
Is it needed? I see the code looks like this:

#ifndef JCONFIG_INCLUDED    /* in case jinclude.h already did */
#include "jconfig.h"        /* widely used configuration options */
#endif

Can I just take out #define JCONFIG_INCLUDED in jinclude.h and go on?

Thanks,
Randy



----- Original Message -----
From: Victhor Foster <[email protected]>
Date: Tuesday, August 18, 2009 3:34 pm
Subject: Re: [Flightgear-devel] Using CVS of Simgear now - get file not found on jpeglib.h - am I missing something? To: FlightGear developers discussions <[email protected]>

>
> If you were on Linux, I'd guess you need libjpeg-dev. I think
> this > should do it: http://www.ijg.org/ There's a Windows link there :)
>
> > Victhor,
> >
> > Thanks. I'm using the CVS version of SimGear now and I get one
> error:>
> > file not found : jpeglib.h - included in jpgfactory.hxx
> >
> > Am I missing some other library?
> >
> >
> > Thanks,
> > Randy
------------------------------------------------------------------------

------------------------------------------------------------------------------
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
------------------------------------------------------------------------

_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

------------------------------------------------------------------------------
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
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to