Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Peter Bako
Hello zonk and others!
Thank you for the idea to use dependency walker, I haven't used it before. Now 
I found out, that x86 libraries are used at runtime instead of x64, because I 
forgot to put the path to x64 dlls into the %PATH% variable.

Thank you very much!
Peter

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





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


Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Torben Dannhauer
Hi,

use dependencywalker to get an idea which dll is missing. additionally read 
windows' application log to get an more etailed error description.

Thank you!

Cheers,
Torben

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





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


Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Peter Bako
Hi!
Thank you very much, you were right, I have to include "windows.h" on the very 
beginning.

So now I am able to compile my app but now I get an error after launch :-(.

"The application was unable to start correctly (0xc07b). Click OK to close 
the application.

Does anyone have an idea what should I do?

Thank you once again!

Cheers,
Peter

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




Attachments: 
http://forum.openscenegraph.org//files/error_596.png


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


Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Martin Naylor
Hi Peter,

That quite a common issue, Mourad is probably correct, windows.h being
included after gl.h...instead of before.

Cheers

Martin


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Peter Bako
Sent: 04 January 2012 10:07
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] VS2010 64bit compile problem

Yes, sorry, I'm using VS2010 on Windows 7 64bit
Peter

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





___
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] VS2010 64bit compile problem

2012-01-04 Thread Frederic Bouvier
Hi Peter,

Le 04/01/2012 10:52, Peter Bako a écrit :
> Hi,
>
> I get errors, when I try to compile my project on visual studio for 64bit 
> platform. Before on ANYCPU configurations I had no problems. The error which 
> I get is 
>
>  variable "WINGDIAPI" is not a type name 
> c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 
>
> and other 150 errors because of this "wingdiapi".
>
> I changed the platform, preprocessor definitions to WIN64;_WIN64;_DEBUG, the 
> path to 64bit dlls, libs and include directory.
>
> What else should I change?
>
> I am sending my project in the attachment.
>
> One more question: Is there any performance or other advantage if compiled 
> for 64bit instead of anyCPU?
>
> Thank you!

There is no attachment to this thread, but IIRC, AnyCPU is a C# thing,
not C++
If you are really compiling C++, then, as Mourad said, be sure you
included  before 

Regards,
-Fred

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


Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Mourad Boufarguine
Hi,

On Wed, Jan 4, 2012 at 10:52 AM, Peter Bako  wrote:
> Hi,
>
> I get errors, when I try to compile my project on visual studio for 64bit 
> platform. Before on ANYCPU configurations I had no problems. The error which 
> I get is
>
>  variable "WINGDIAPI" is not a type name
> c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h
>
>

This error usually means that you need to #include  before
#including 

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


Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Torben Dannhauer
Hi,

sorry, I can't help you: I use VS 2008 in 32 and 64 bit.

Good luck!

Cheers,
Torben

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





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


Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Peter Bako
Yes, sorry, I'm using VS2010 on Windows 7 64bit
Peter

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





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


Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Torben Dannhauer
Hi,

You should post which OS version and which VS Version you use.


Cheers,
Torben

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





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


[osg-users] VS2010 64bit compile problem

2012-01-04 Thread Peter Bako
Hi,

I get errors, when I try to compile my project on visual studio for 64bit 
platform. Before on ANYCPU configurations I had no problems. The error which I 
get is 

 variable "WINGDIAPI" is not a type name 
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 

and other 150 errors because of this "wingdiapi".

I changed the platform, preprocessor definitions to WIN64;_WIN64;_DEBUG, the 
path to 64bit dlls, libs and include directory.

What else should I change?

I am sending my project in the attachment.

One more question: Is there any performance or other advantage if compiled for 
64bit instead of anyCPU?

Thank you!

Cheers,
Peter

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




Attachments: 
http://forum.openscenegraph.org//files/osg64bit_718.zip


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