[osg-users] under devcpp , can't find dll to run program
wontor at gmail.com
Wed Oct 17 22:53:49 PDT 2007
i have copy freetype6.dll to the same folder where osgtext exists.
but when i execute osgtext ,it pops a error:
can't find the entry point _FT_Done_Face in freetype6.dll
I download plugin's dll (freetype6.dll,jpeg62.dll...),
and use command
pexports freetype6.dll | sed "s/^_//" > freetype6.def
dlltool -U -d freetype6.def -l libfreetype.a
to change them to .a , and compiles OSG OK.
if use jpeg62.dll directly,there will be a error while linking:
Linking CXX shared module ../../../lib/osgPlugins-2.0.0/libosgdb_jpeg.dll
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -ljpeg
collect2: ld returned 1 exit status
make: *** [lib/osgPlugins-2.0.0/libosgdb_jpeg.dll] Error 1
make: *** [src/osgPlugins/jpeg/CMakeFiles/osgdb_jpeg.dir/all] Error 2
make: *** [all] Error 2
there must be something i misunderstood.thanks again.
王韬，wontor at gmail.com
----- Original Message -----
From: Alberto Luaces
To: OpenSceneGraph Users
Sent: 2007-10-17, 19:09:32
Subject: Re: [osg-users] under devcpp , can't find dll to run program
El Wednesday 17 October 2007 12:06:18 王韬 escribió:
> I have compiled osg without example under devcpp(126.96.36.199)
> successfully,and get all dlls.(I downloaded the plugin's dlls and changed
> them to .a)
You shouldn't have to rename any dll. Mingw gcc, the compiler that devcpp
uses, is usually clever enough to link to a dll. In fact, a ".a" lib is in
the mingw world either a static library or an import library, but never a
> but,i compiled the osgtext example and when run it, error
> popped that it can't find freetype6.dll (why need it?), but
> libosgdb_freetype.dll (all dlls) is in the same folder.
You need freetype6.dll because libosgdb_freetype.dll is a plugin that deals
with the Freetype integration into OSG, so the Freetype functionality is
still found on its own dll. Make sure freetype6.dll is in your PATH or copy
it beside libosgdb_freetype.dll.
osg-users mailing list
osg-users at lists.openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the osg-users