omdown wrote:
> 
> omdown wrote:
> > 
> > Frederic Bouvier wrote:
> > > ----- "Kris Dale" a écrit :
> > > 
> > > 
> > > Kris Dale wrote:
> > > > 
> > > > Afternoon all! 
> > > > 
> > > > I'm having a bit of an issue I've never run into before trying to build 
> > > > OSG. Hoping someone can point me in the right direction. 
> > > > 
> > > > I have all of the image library .libs and includes in a directory 
> > > > labled "ImageLibraries" under my third party director. CMake finds all 
> > > > the libs and everything okay, links them into the solution and 
> > > > generates just fine. But, when I go to build, I get unresolved 
> > > > externals on curl, FreeType, GIF, GLUT, JPEG, PNG, and TIFF (and a 
> > > > couple others that I can't remember off hand). 
> > > > 
> > > > General format of the errors are: 
> > > > 
> > > > 
> > > > > ReaderWriterPNG.obj : error LNK2019: unresolved external symbol
> > > > > png_get_io_ptr referenced in function "void __cdecl
> > > > > png_read_istream(struct png_struct_def *,unsigned char *,unsigned
> > > > > __int64)" (?png_read_istream@@YAXPEAUpng_struct_def@@pea...@z)
> > > > > 
> > > > 
> > > > 
> > > 
> > > 
> > > 
> > > I fixed that by downloading and compiling libpng 1.4
> > > 
> > > -Fred
> > > 
> > 
> > 
> > 
> > Thanks for your reply.  :)
> > 
> > I'm currently trying that out, but I'm having a hell of a time getting it 
> > to build (came without zlib but the solution has a zlib project as a 
> > dependency...), but do you have any idea why I'm having this problem when 
> > I've had no trouble with these libraries before?  It's all very strange, 
> > and even if this works, I'm not sure what to do about JPEG and the others...
> 
> 
> Just as a side note, I did a dumpbin /SYMBOLS libjpeg.lib and checked for 
> "_jpeg_resync_to_restart" and it DOES appear in the list of symbols, but I 
> get a linking error saying it's an unresolved external.  Plugins jpeg is set 
> up to link against it...  strange?



For anyone interested, it turns out...  I had accidentally configured cmake to 
build OSG to x64 while all the third party libs were x86.  I could go back and 
rebuild all the third party libs to x64 but I was having trouble with that 
sooo..  rebuilt it to x86 and everything seems fine now.  :)

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=30659#30659





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to