Hi Robert,

This is the first time I have problems to compile OSG under Windows. My last 
SVN build is four to five weeks old with enabled Unicode support. There were no 
problems. I'm using VS2008 under Vista, OSG is compiled in 64-bit mode. I 
reverted FileUtils.cpp to rev. 9990 and compiled this file without any 
problems. Rev. 9991 of FileUtils.cpp cannot be build anymore. Lines 654 to 692 
were added in this revision. I saw there is new config option 
"OSG_PLUGIN_SEARCH_INSTALL_DIR_FOR_PLUGINS". Could it be that this option 
causes these problems?
        
Regards,
Oleg

-----Ursprüngliche Nachricht-----
Von: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] Im Auftrag von Robert 
Osfield
Gesendet: Freitag, 1. Mai 2009 09:46
An: OpenSceneGraph Users
Betreff: Re: [osg-users] Broken Windows build

Hi Oleg,

The OSG-2.8 release went out with the UTF8 code in place, svn/trunk
doesn't change this in any way.  Lots and lots of Windows users have
been testing it out across different compilers and not reported
problems.

What build suit are you using?  Have you compiled other OSG versions OK?

Robert.


On Thu, Apr 30, 2009 at 8:11 PM, Oleg Dedkow <oded...@gmx.de> wrote:
> Hi Robert,
>
>
>
> the latest SVN revision cannot be build under Windows if
> “OSG_USE_UTF8_FILENAME” config option is enabled. The error occurs in
> “FileUtils.cpp” file, line 663, since there is no UNICODE-capable version of
> the “GetProcAddress” function. The “OSGDB_WINDOWS_FUNCT_STRING” makro is
> defined as follows in that case
>
>
>
> #define OSGDB_WINDOWS_FUNCT_STRING(x) L ## #x L"W"
>
>
>
> Thus the second parameter cannot be converted from wchar_t to LPCSTR. Should
> we convert the second parameter from wchar_t* to LPCSTR or use the same
> definition for the “OSGDB_WINDOWS_FUNCT_STRING” makro in both cases?
>
>
>
> The second error occurs in the same file, line 669. The second parameter for
> the “pGetModuleHandleEx” function should be defined as wchar_t, but it’s
> defined as “static char static_variable” in the line 667.
>
>
>
> Best Regards,
>
> Oleg
>
> _______________________________________________
> 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


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

Reply via email to