Hi Andy,

One thing that looked suspicious about the OOTB CMake x64 build was that
it was explicitly specifying the /MACHINE:I386 option to the linker --
which is wrong -- but it still worked because the /machine:x64 option
was explicitly specified after it and overrode it.  It looks like your
link line is missing the /machine:x64 option for some reason.  If you
can figure out how to get that back it'll likely fix your problem.

-Mike


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:osg-users-
> [EMAIL PROTECTED] On Behalf Of Andy Skinner
> Sent: Monday, July 16, 2007 2:30 PM
> To: osg users
> Subject: RE: [osg-users] building on windows 64
> 
> I'm still able to build x64 with OSG on its own (out of the box).  I
> currently think that it is something about our environment, because it
> fails when I build it as part of a makefile using our flags, etc, all
> handled down through CMake variables.
> 
> I've got BuildLog.htm files for the out-of-the-box build that works
and
> the in-our-own-box build that doesn't.  If you know enough about
Windows
> command lines to help me pick out where it is I'm messing up, I'll
send
> them.  (I attached the BuildLog.htm for the build that didn't work in
> the previous message, but I also have a BuildLog.htm file for a
similar
> build that worked.)
> 
> I'm expecting it is something I've inherited from our build commands.
> 
> thanks
> andy
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Mike
Wittman
> Sent: Monday, July 16, 2007 3:03 PM
> To: osg users
> Subject: RE: [osg-users] building on windows 64
> 
> Hi Andy,
> 
> I believe you're correct in your analysis, but I don't know why you're
> seeing that architecture inconsistency.  For me OSG 2.0 builds without
> error for both x86 and x64 when I run both CMake and the build on 64
bit
> Windows, and it didn't require any special configuration beyond
> selecting the appropriate architecture in CMake.  I build the INSTALL
> target from the command line with devenv.com.
> 
> Did you by any chance open the dsw or dsp in the win32 directory and
> cause the CMake-generated vcproj file to be overwritten?
> 
> You may want to give the out-of-source build a try and see if that
makes
> a difference.
> 
> -Mike
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:osg-users-
> > [EMAIL PROTECTED] On Behalf Of Andy Skinner
> > Sent: Friday, July 13, 2007 8:22 AM
> > To: osg users
> > Subject: RE: [osg-users] building on windows 64
> >
> > I mean that I wonder whether the arguments going to the compilation
of
> > OpenThreads C++ files are built for one architecture (64 bits) and
the
> > link of the OpenThreads library for another (32).  I'm guessing, to
be
> > honest, but it is my attempt at explaining the error:
> > ----
> > .\openthreads.dir\release\WIN32Condition.obj : fatal error LNK1112:
> > module machine type 'x64' conflicts with target machine type 'X86'
> > ----
> > during the link.
> >
> >
> > Did my attachment come through, showing all the arguments?  If
someone
> > windows-friendly could take a look at it, I'd appreciate it.
> >
> > I've built on win64 in the past.  I ran cmake on my 32-bit box, then
> > built in visual studio on the win64 box.  This time, I've got it
> hooked
> > into our build system, and I'm running cmake and the actual build
(not
> > from visual studio) on win64.  I think it is probably something I
can
> > configure, but think I need input from someone with more windows
_and_
> > building OSG experience than I have.
> >
> > thanks
> > andy
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Robert
> > Osfield
> > Sent: Friday, July 13, 2007 9:08 AM
> > To: osg users
> > Subject: Re: [osg-users] building on windows 64
> >
> > On 7/13/07, Andy Skinner <[EMAIL PROTECTED]> wrote:
> > > Yes, my OpenThreads is inside OpenSceneGraph/src.
> > >
> > > Could someone explain to me the win32 subdirectory in OpenThreads?
> Is
> > > that supposed to work with Windows 64?
> >
> > Yes.  Many win32 API's are still applicable to 64 bit build.
> >
> > Others have reported success on building the OSG on 64 windows so I
> > don't believe there is any major issue.
> >
> > > Maybe my problem is just that the compile is using one machine
> > > architecture, and the link is using another.
> >
> > When you say link, you mean you app that links to the OSG is built
on
> > a machine with another architecture?
> >
> > Robert.
> > _______________________________________________
> > osg-users mailing list
> > osg-users@openscenegraph.net
> > http://openscenegraph.net/mailman/listinfo/osg-users
> > http://www.openscenegraph.org/
> > _______________________________________________
> > osg-users mailing list
> > osg-users@openscenegraph.net
> > http://openscenegraph.net/mailman/listinfo/osg-users
> > http://www.openscenegraph.org/
> 
> Mike Wittman
> [EMAIL PROTECTED]
> ___________________________________________________
> Seismic Micro-Technology, Inc.
> 8584 Katy Freeway, Suite 400 / Houston, Texas 77024
> Tel.  +1 (713) 464-6188
> Fax. +1 (713) 464-6440
> Web:  www.seismicmicro.com
> ___________________________________________________
> Seismic through Simulation with KINGDOM, (RC)2, and SURE! - CONTACT US
> TODAY for more information.
> _______________________________________________
> osg-users mailing list
> osg-users@openscenegraph.net
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
> _______________________________________________
> osg-users mailing list
> osg-users@openscenegraph.net
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to