Ciao Luigi,

Your patch worked beautifully! 

Also, thank you for removing the hard coded "cow.osg" ... that was my
next job after fixing the build. I will eventually add some guards to
gracefully exit if no parameter is passed on the command line.

Will you submit this patch for inclusion in SVN now?

Thanks for the help,
Gian

Gian Lorenzetto
Software & IT Manager
Anatomics Pty Ltd
Suite 4 Level 1, 568 St Kilda Rd, Melbourne VIC 3004 Australia
Telephone +61 (0) 3 9529 8088
Facsimile +61 (0) 3 9529 8099
Email [EMAIL PROTECTED]
www.anatomics.com
 Anatomics Logo

The information transmitted is intended solely for the person or entity
to which it is addressed to and may contain confidential and /or
privileged materials. If you are not the intended recipient of this
message, you are hereby notified that any use, review, retransmissions
or dissemination is prohibited. If you received this email in error,
please notify the sender and delete the email and attached material. Any
views expressed in this message are those of the individual sender and
may not necessarily reflect the views of the company.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:osg-users-
> [EMAIL PROTECTED] On Behalf Of Luigi Calori
> Sent: Thursday, 17 May 2007 6:52 PM
> To: osg users
> Cc: [EMAIL PROTECTED]
> Subject: Re: [osg-users] osgsimpleviewerWX and cmake definitions
> 
> I' ve built your example using wxWidgets-2.8.0
> 
> I' ve done some patching , attache is the patch file:
> I had to mod the macro, so other 2 examples are affected, that were
> using command type of linking
> Let me know if it works for you
> 
> Gian Lorenzetto wrote:
> 
> > Hi all,
> >
> > Just checked out the latest SVN and I'm having a few problems
building
> > the wxWidgets example under Windoze.
> >
> > Using WinXP, VS 7.1, plus totally new to CMake, so be kind ...
> >
> > PROBLEM 1:
> >
> > During linking the following error occurs:
> >
> > Examples osgsimpleviewerWX error LNK2019: unresolved external symbol
> > _main referenced in function _mainCRTStartup
> >
> you have to add WIN32 to the ADD_EXECUTABLE line, this is inside the
> macros, so I have changed the line
> 
> ADD_EXECUTABLE(${TARGET_TARGETNAME} WIN32 ${TARGET_SRC}
> ${TARGET_H})
> 
> inside OsgMacroUtils.cmake
> This let you specify the type of application,
> 
> 
> 
> 
> > This can be fixed by changing the /SUBSYSTEM:CONSOLE option to
> > /SUBSYSTEM:WINDOWS.
> >
> > I don't know how to do this in CMake. If someone can point me at an
> > example of what to do, I'll patch and test ...
> >
> > PROBLEM 2:
> >
> > wxWidgets requires certain pre-processor defines for correct
> > compilation. In the CMakeLists.txt file there is the line:
> >
> > ADD_DEFINITIONS( ${wxWidgets_DEFINITIONS} )
> >
> > which looks likely, but using CMakeSetup doesn't let me edit the
> > "wxWidgets_DEFINITIONS" value. Is this just a place holder? Again,
if
> > someone can point me at an example of what to do, I'll patch with
the
> > appropriate values ...
> >
> The variable wxWidgets_DEFINITIONS is defined inside the
> FindwxWidgets.cmake under the share\cmake-2.4\Modules folder of your
> cmake installation folder.
> You can see from the patch that I ' ve added the line
> INCLUDE(${wxWidgets_USE_FILE})
> to the CMakeLists.txt, this is something suggested inside comment in
the
> Find module, it should add the additional dir to both include and lib
> paths and should also take care of adding proper definitions, for me
it
> worked
> 
> I ' ve also substituted cow.osg with argv[1]
> 
> Hope it helps
> 
> Luigi Calori
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to