Re: [osg-users] problem compiling OSG2.4 on MinGW

2008-05-05 Thread Jean-Sébastien Guay

Hi Philip,

The Find modules distributed as part of OSG with CMake search 
C:/Program Files/OpenSceneGraph/lib at configure time (not sure why).


Because that's where the Win32 binary installer puts the OSG libs and 
3rd party libs. It's one of the possible locations where they might be 
on a system.


Unfortunately on Windows there is no system-wide lib path, so all we can 
do is look in a few possible locations, or hope that the user has 
defined OSG_LIB_PATH. Otherwise, the user will have to manually specify 
the path to each lib.


J-S
--
__
Jean-Sebastien Guay[EMAIL PROTECTED]
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] problem compiling OSG2.4 on MinGW

2008-05-02 Thread Philip Lowman
On Thu, May 1, 2008 at 5:43 PM, Linh Phan [EMAIL PROTECTED] wrote:

 Hi,

  I'm having a cannot find -ljpeg problem compiling OSG2.4 on MinGW,
 but when I do a ls on C:/Program Files/OpenSceneGraph/lib, I see:

 C:/Program Files/OpenSceneGraph/lib/libjpeg.lib
 C:/Program Files/OpenSceneGraph/lib/libjpegD.lib

 (these are Michael's Prebuilt OSG binaries for Windows.)  Do you know
 what I did wrong?


You did nothing wrong, this is an existing issue I've come across before
too.  The Find modules distributed as part of OSG with CMake search
C:/Program Files/OpenSceneGraph/lib at configure time (not sure why).  I
mentioned this on osg-users a while back and nobody seemed to care much.
This probably should be changed, though.  It might cause some people a bit
of grief though if they are relying on installing the prebuilt OSG binaries
to pick up 3rd-party dependencies for VS8 instead of simply using the 3rd
party deps repository when they compile their own builds of the OSG.

Your best workaround for now is to search through the CMake cache using the
GUI and fix any places where you see a reference to a .lib file with an
actual MinGW-compiled library, aka .dll.a or .a file.

-- 
Philip Lowman
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] problem compiling OSG2.4 on MinGW

2008-05-02 Thread Linh Phan
I did that and it passed that problem.  Now I'll just keep getting the 
sources of the missing libraries and compile it myself; I was hoping 
someone would have all the MinGW compiled osg dependent libraries 
available on the web.


Thanks Philip,

Linh
Philip Lowman wrote:

On Thu, May 1, 2008 at 5:43 PM, Linh Phan [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Hi,

 I'm having a cannot find -ljpeg problem compiling OSG2.4 on MinGW,
but when I do a ls on C:/Program Files/OpenSceneGraph/lib, I see:

C:/Program Files/OpenSceneGraph/lib/libjpeg.lib
C:/Program Files/OpenSceneGraph/lib/libjpegD.lib

(these are Michael's Prebuilt OSG binaries for Windows.)  Do you know
what I did wrong?


You did nothing wrong, this is an existing issue I've come across 
before too.  The Find modules distributed as part of OSG with CMake 
search C:/Program Files/OpenSceneGraph/lib at configure time (not sure 
why).  I mentioned this on osg-users a while back and nobody seemed to 
care much.  This probably should be changed, though.  It might cause 
some people a bit of grief though if they are relying on installing 
the prebuilt OSG binaries to pick up 3rd-party dependencies for VS8 
instead of simply using the 3rd party deps repository when they 
compile their own builds of the OSG.


Your best workaround for now is to search through the CMake cache 
using the GUI and fix any places where you see a reference to a .lib 
file with an actual MinGW-compiled library, aka .dll.a or .a file.


--
Philip Lowman



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] problem compiling OSG2.4 on MinGW

2008-05-01 Thread 王韬
I have compiled OSG on devcpp , and OK.

I transform all .lib to .a like these steps:
 pexports zlib1.dll  zlib1.def
 dlltool -k -d zlib1.def -l libzlib1.a
or like these steps
 reimp -d libmysql.lib
 dlltool -k -d libmysql.def -l libmysql.a

and under CMAKE,choose these .a files instead of .lib files.

I hope i have explained clearly.i am poor in english. 


[EMAIL PROTECTED]
2008-05-02 
- Original Message - 
From: Linh Phan 
To: OpenSceneGraph Users 
Sent: 2008-05-02, 05:43:57
Subject: [osg-users] problem compiling OSG2.4 on MinGW


Hi,

  I'm having a cannot find -ljpeg problem compiling OSG2.4 on MinGW, 
but when I do a ls on C:/Program Files/OpenSceneGraph/lib, I see:

C:/Program Files/OpenSceneGraph/lib/libjpeg.lib
C:/Program Files/OpenSceneGraph/lib/libjpegD.lib

(these are Michael's Prebuilt OSG binaries for Windows.) Do you know 
what I did wrong?

Thanks,

Linh

make[2]: Entering directory `/g/pkgs/osg/buildosg'
Linking CXX shared module ../../../lib/osgPlugins-2.4.0/mingw_osgdb_jpeg.dll
cd /G/pkgs/osg/buildosg/src/osgPlugins/jpeg  /C/Program\ Files/CMake\ 
2.4/bin/cmake.exe -P CMakeFiles/osgdb_ jpeg.dir/cmake_clean_target.cmake
cd /G/pkgs/osg/buildosg/src/osgPlugins/jpeg  
/C/Devel/MinGW/bin/g++.exe -shared -o ../../../lib/osgPlugin 
s-2.4.0/mingw_osgdb_jpeg.dll 
-Wl,--major-image-version,0,--minor-image-version,0 
CMakeFiles/osgdb_jpeg.dir/Re aderWriterJPEG.obj 
-L/G/pkgs/osg/buildosg/lib -LC:/Program\ Files/OpenSceneGraph/lib 
-lOpenThreads -losg -lo sgDB -losgUtil -ljpeg -losg -lOpenThreads 
-lglu32 -lopengl32
c:\Devel\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: 
cannot find -ljpeg
collect2: ld returned 1 exit status
make[2]: *** [lib/osgPlugins-2.4.0/mingw_osgdb_jpeg.dll] Error 1
make[2]: Leaving directory `/g/pkgs/osg/buildosg'
make[1]: *** [src/osgPlugins/jpeg/CMakeFiles/osgdb_jpeg.dir/all] Error 2
make[1]: Leaving directory `/g/pkgs/osg/buildosg'
make: *** [all] Error 2


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org