Discussion:
VS2010
Anders Backman
2010-03-27 02:00:26 UTC
Permalink
Anyone tried to build osg 2.8.2 with visual studio 2010?

Seems that there quite some files missing:

#include <iterator>

Lots of errors related to:

back_insert() not part of std::

These are the files where I had to add #include <iterator>

include/osg/NodeTrackerCallback
include/osgGA/NodeTrackerManipulator
src/osg/GraphicsContext.cpp
src/osgDB/DatabasePager.cpp
src/osgPlugins/ive/Text.cpp
src/osgPlugins/ive/Text3D.cpp
src/osgPlugins/osgText/IO_TextBase.cpp
src/osgShadow/ConvexPolyhedron.cpp
src/osgText/String.cpp
src/osgUtil/DelaunayTriangulator.cpp
src/osgUtil/Optimizer.cpp
src/osgUtil/SceneView.cpp
src/osgUtil/Simplifier.cpp
src/osgUtil/TriStripVisitor.cpp
src/osgViewer/View.cpp


Also, something I havent been able to solve, I get an error when I install
OpenThreads, anyone experienced something like this?
Im using VS2010 RC.



3>------ Build started: Project: INSTALL, Configuration: Release Win32
------
3> CMake Error at src/OpenThreads/win32/cmake_install.cmake:50 (FILE):
3> file INSTALL cannot find
3>
"C:/projects/agx_dependencies/build/x86/osg/bin/Release/../../bin/ot11-OpenThreads.dll".
3> Call Stack (most recent call first):
3> src/OpenThreads/cmake_install.cmake:36 (INCLUDE)
3> src/cmake_install.cmake:32 (INCLUDE)
3> cmake_install.cmake:36 (INCLUDE)
3>
3>
3> -- Install configuration: "Release"
3> -- Up-to-date:
C:/projects/agx_dependencies/lib/pkgconfig/openscenegraph.pc
3> -- Up-to-date: C:/projects/agx_dependencies/lib/pkgconfig/openthreads.pc
3> -- Up-to-date: C:/projects/agx_dependencies/lib/OpenThreads.lib
3>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
MSB3073: The command ""C:\Program Files (x86)\CMake 2.8\bin\cmake.exe"
-DBUILD_TYPE=Release -P cmake_install.cmake
3>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
MSB3073: :VCEnd" exited with code 1.
========== Build: 2 succeeded, 1 failed, 77 up-to-date, 0 skipped ==========


/Anders

--
Martin Beckett
2010-03-27 23:45:44 UTC
Permalink
It's not osg specific
VS2008 (erronously) didn't have <iterator> as a separate header vs2010 obeys the standard - you may as well include it wherever you have std::Vector.

http://blogs.msdn.com/vcblog/archive/2009/05/25/stl-breaking-changes-in-visual-studio-2010-beta-1.aspx


Martin

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26230#26230
Anders Backman
2010-03-30 16:29:47 UTC
Permalink
Mm, ok, not the first time MS ignore the standard....

What about the install of OpenThreads, anyone seen it before?

/A
Post by Martin Beckett
It's not osg specific
VS2008 (erronously) didn't have <iterator> as a separate header vs2010
obeys the standard - you may as well include it wherever you have
std::Vector.
http://blogs.msdn.com/vcblog/archive/2009/05/25/stl-breaking-changes-in-visual-studio-2010-beta-1.aspx
Martin
------------------
http://forum.openscenegraph.org/viewtopic.php?p=26230#26230
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Martin Naylor
2010-03-30 16:53:35 UTC
Permalink
Hello,

What sort of error? I have never installed openthreads, I assumed it's been
merged into the OSG code, where as it used to be a separate download?



Regards



Martin.







From: osg-users-bounces-***@public.gmane.org
[mailto:osg-users-bounces-***@public.gmane.org] On Behalf Of Anders
Backman
Sent: 30 March 2010 17:30
To: osg-users
Subject: Re: [osg-users] VS2010



Mm, ok, not the first time MS ignore the standard....



What about the install of OpenThreads, anyone seen it before?



/A

On Sun, Mar 28, 2010 at 12:45 AM, Martin Beckett <mgb-***@public.gmane.org> wrote:

It's not osg specific
VS2008 (erronously) didn't have <iterator> as a separate header vs2010 obeys
the standard - you may as well include it wherever you have std::Vector.

http://blogs.msdn.com/vcblog/archive/2009/05/25/stl-breaking-changes-in-visu
al-studio-2010-beta-1.aspx


Martin


------------------
Read this topic online here:

http://forum.openscenegraph.org/viewtopic.php?p=26230#26230
Jean-Sébastien Guay
2010-03-30 17:00:06 UTC
Permalink
Hi Anders,
Post by Anders Backman
What about the install of OpenThreads, anyone seen it before?
Nope, I always run the INSTALL target after building (on VS2005 and
VS2008 though) and have never seen that. In my case the file it's trying
to find exists...

Were there any errors when building OpenThreads (maybe buried in the
output so you didn't see it)? The only reason why it shouldn't be there
is if it wasn't built, and sometimes the INSTALL target runs even if
dependent projects failed to build (which doesn't make sense to me, but
that's how CMake does it)...

J-S
--
______________________________________________________
Jean-Sebastien Guay jean-sebastien.guay-***@public.gmane.org
http://www.cm-labs.com/
http://whitestar02.webhop.org/
Anders Backman
2010-03-30 17:38:24 UTC
Permalink
Never write two things in one email :-)

In my first post, there was output of the error I get. I have looked around
on the web but haven't found anything helpful.
It complains that the openthreads dll file is missing, then some cmake/vs
jibberish:


Problem is really that the path of the dll-files are all wrong...
The Cmake install scripts are trying to locate them at:

c:/projects/agx_dependencies/build/x86/osg/bin/Release/../../bin/ot11-OpenThreads.dll"

Instead of

c:/projects/agx_dependencies/build/x86/osg/bin/Release/ot11-OpenThreads.dll"

Have to look into that some more, although Im running the same cmake-command
as with vs2008...
But with latest CMake (to get vs2010 support)...

Unfortunately I need to build it myself to get x64 libs which I need.
All libraries have built just fine until osg regarding install. Even collada
and boost!
Probably some trivial error.
Thanks

/A
------ Build started: Project: INSTALL, Configuration: Release Win32 ------
3> CMake Error at src/OpenThreads/win32/cmake_install.cmake:50 (FILE):
3> file INSTALL cannot find
3>
"C:/projects/agx_dependencies/build/x86/osg/bin/Release/../../bin/ot11-OpenThreads.dll".
3> Call Stack (most recent call first):
3> src/OpenThreads/cmake_install.cmake:36 (INCLUDE)
3> src/cmake_install.cmake:32 (INCLUDE)
3> cmake_install.cmake:36 (INCLUDE)
3>
3>
3> -- Install configuration: "Release"
3> -- Up-to-date:
C:/projects/agx_dependencies/lib/pkgconfig/openscenegraph.pc
3> -- Up-to-date: C:/projects/agx_dependencies/lib/pkgconfig/openthreads.pc
3> -- Up-to-date: C:/projects/agx_dependencies/lib/OpenThreads.lib
3>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
MSB3073: The command ""C:\Program Files (x86)\CMake 2.8\bin\cmake.exe"
-DBUILD_TYPE=Release -P cmake_install.cmake
3>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
MSB3073: :VCEnd" exited with code 1.
========== Build: 2 succeeded, 1 failed, 77 up-to-date, 0 skipped ==========



On Tue, Mar 30, 2010 at 7:00 PM, Jean-Sébastien Guay <
Hi Anders,
What about the install of OpenThreads, anyone seen it before?
Nope, I always run the INSTALL target after building (on VS2005 and VS2008
though) and have never seen that. In my case the file it's trying to find
exists...
Were there any errors when building OpenThreads (maybe buried in the output
so you didn't see it)? The only reason why it shouldn't be there is if it
wasn't built, and sometimes the INSTALL target runs even if dependent
projects failed to build (which doesn't make sense to me, but that's how
CMake does it)...
J-S
--
______________________________________________________
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Anders Backman
2010-03-30 18:00:32 UTC
Permalink
In the generated file: src\OpenThreads\Win32\cmake_install.cmake

I can see that .lib and .dll get the wrong path (cmake install is looking at
the wrong place). Header files seems ok:


I certainly havent added any '..' in the install path. Its a perfect
absolute path.

FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE
STATIC_LIBRARY OPTIONAL FILES
"C:/projects/agx_dependencies/build/x86/osg/lib/RelWithDebInfo/../OpenThreads.lib")
ENDIF("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES
"^([Rr][Ee][Ll][Ww][Ii][Tt][Hh][Dd][Ee][Bb][Ii][Nn][Ff][Oo])$")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL
"libopenthreads-dev")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL
"libopenthreads")
IF("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Dd][Ee][Bb][Uu][Gg])$")
FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE
SHARED_LIBRARY FILES
"C:/projects/agx_dependencies/build/x86/osg/bin/Debug/../../bin/ot11-OpenThreadsd.dll")
ENDIF("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Dd][Ee][Bb][Uu][Gg])$")


For some reason, .. is added before the .lib and ../../bin is added before
the .dll:s

In applications/osgviewer/cmake_install.cmake:

FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE EXECUTABLE
FILES
"C:/projects/agx_dependencies/build/x86/osg/bin/Release/../osgviewer.exe")

'..' added there too.

Arguments to cmake:

cmake -DCMAKE_INSTALL_PREFIX=C:\projects\agx_dependencies\ -G "Visual Studio
10"


Has anyone successfully built osg with vs2010?

/A
Post by Anders Backman
Never write two things in one email :-)
In my first post, there was output of the error I get. I have looked around
on the web but haven't found anything helpful.
It complains that the openthreads dll file is missing, then some cmake/vs
Problem is really that the path of the dll-files are all wrong...
c:/projects/agx_dependencies/build/x86/osg/bin/Release/../../bin/ot11-OpenThreads.dll"
Instead of
c:/projects/agx_dependencies/build/x86/osg/bin/Release/ot11-OpenThreads.dll"
Have to look into that some more, although Im running the same
cmake-command as with vs2008...
But with latest CMake (to get vs2010 support)...
Unfortunately I need to build it myself to get x64 libs which I need.
All libraries have built just fine until osg regarding install. Even
collada and boost!
Probably some trivial error.
Thanks
/A
Post by Anders Backman
------ Build started: Project: INSTALL, Configuration: Release Win32
------
3> file INSTALL cannot find
3>
"C:/projects/agx_dependencies/build/x86/osg/bin/Release/../../bin/ot11-OpenThreads.dll".
3> src/OpenThreads/cmake_install.cmake:36 (INCLUDE)
3> src/cmake_install.cmake:32 (INCLUDE)
3> cmake_install.cmake:36 (INCLUDE)
3>
3>
3> -- Install configuration: "Release"
C:/projects/agx_dependencies/lib/pkgconfig/openscenegraph.pc
C:/projects/agx_dependencies/lib/pkgconfig/openthreads.pc
3> -- Up-to-date: C:/projects/agx_dependencies/lib/OpenThreads.lib
3>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
MSB3073: The command ""C:\Program Files (x86)\CMake 2.8\bin\cmake.exe"
-DBUILD_TYPE=Release -P cmake_install.cmake
3>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
MSB3073: :VCEnd" exited with code 1.
========== Build: 2 succeeded, 1 failed, 77 up-to-date, 0 skipped ==========
On Tue, Mar 30, 2010 at 7:00 PM, Jean-Sébastien Guay <
Post by Anders Backman
Hi Anders,
What about the install of OpenThreads, anyone seen it before?
Nope, I always run the INSTALL target after building (on VS2005 and VS2008
though) and have never seen that. In my case the file it's trying to find
exists...
Were there any errors when building OpenThreads (maybe buried in the
output so you didn't see it)? The only reason why it shouldn't be there is
if it wasn't built, and sometimes the INSTALL target runs even if dependent
projects failed to build (which doesn't make sense to me, but that's how
CMake does it)...
J-S
--
______________________________________________________
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Martin Naylor
2010-03-30 21:57:37 UTC
Permalink
I will be trying it in a couple of weeks when its launched or as soon as i
get my hands on the non RC version. Don’t want to install it on my freshly
built machine.

Could you just use the old cmake and generate vs2008x64 ones and convert
them using vs2010 or is it you ironing out the build?





From: osg-users-bounces-***@public.gmane.org
[mailto:osg-users-bounces-***@public.gmane.org] On Behalf Of Anders
Backman
Sent: 30 March 2010 19:01
To: OpenSceneGraph Users
Subject: Re: [osg-users] VS2010



In the generated file: src\OpenThreads\Win32\cmake_install.cmake



I can see that .lib and .dll get the wrong path (cmake install is looking at
the wrong place). Header files seems ok:





I certainly havent added any '..' in the install path. Its a perfect
absolute path.



FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE
STATIC_LIBRARY OPTIONAL FILES
"C:/projects/agx_dependencies/build/x86/osg/lib/RelWithDebInfo/../OpenThread
s.lib")

ENDIF("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES
"^([Rr][Ee][Ll][Ww][Ii][Tt][Hh][Dd][Ee][Bb][Ii][Nn][Ff][Oo])$")

ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL
"libopenthreads-dev")



IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL
"libopenthreads")

IF("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Dd][Ee][Bb][Uu][Gg])$")

FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE
SHARED_LIBRARY FILES
"C:/projects/agx_dependencies/build/x86/osg/bin/Debug/../../bin/ot11-OpenThr
eadsd.dll")

ENDIF("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Dd][Ee][Bb][Uu][Gg])$")





For some reason, .. is added before the .lib and ../../bin is added before
the .dll:s



In applications/osgviewer/cmake_install.cmake:



FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE EXECUTABLE
FILES
"C:/projects/agx_dependencies/build/x86/osg/bin/Release/../osgviewer.exe")



'..' added there too.



Arguments to cmake:



cmake -DCMAKE_INSTALL_PREFIX=C:\projects\agx_dependencies\ -G "Visual Studio
10"





Has anyone successfully built osg with vs2010?



/A



2010/3/30 andersb <andersb-M9ekpT6mRt2zQB+***@public.gmane.org>

Never write two things in one email :-)



In my first post, there was output of the error I get. I have looked around
on the web but haven't found anything helpful.

It complains that the openthreads dll file is missing, then some cmake/vs
jibberish:





Problem is really that the path of the dll-files are all wrong...

The Cmake install scripts are trying to locate them at:



c:/projects/agx_dependencies/build/x86/osg/bin/Release/../../bin/ot11-OpenTh
reads.dll"



Instead of



c:/projects/agx_dependencies/build/x86/osg/bin/Release/ot11-OpenThreads.dll"



Have to look into that some more, although Im running the same cmake-command
as with vs2008...

But with latest CMake (to get vs2010 support)...



Unfortunately I need to build it myself to get x64 libs which I need.

All libraries have built just fine until osg regarding install. Even collada
and boost!

Probably some trivial error.

Thanks



/A
------ Build started: Project: INSTALL, Configuration: Release Win32 ------
3> CMake Error at src/OpenThreads/win32/cmake_install.cmake:50 (FILE):

3> file INSTALL cannot find

3>
"C:/projects/agx_dependencies/build/x86/osg/bin/Release/../../bin/ot11-OpenT
hreads.dll".

3> Call Stack (most recent call first):

3> src/OpenThreads/cmake_install.cmake:36 (INCLUDE)

3> src/cmake_install.cmake:32 (INCLUDE)

3> cmake_install.cmake:36 (INCLUDE)

3>

3>

3> -- Install configuration: "Release"

3> -- Up-to-date:
C:/projects/agx_dependencies/lib/pkgconfig/openscenegraph.pc

3> -- Up-to-date: C:/projects/agx_dependencies/lib/pkgconfig/openthreads.pc

3> -- Up-to-date: C:/projects/agx_dependencies/lib/OpenThreads.lib

3>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
MSB3073: The command ""C:\Program Files (x86)\CMake 2.8\bin\cmake.exe"
-DBUILD_TYPE=Release -P cmake_install.cmake

3>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
MSB3073: :VCEnd" exited with code 1.

========== Build: 2 succeeded, 1 failed, 77 up-to-date, 0 skipped ==========







On Tue, Mar 30, 2010 at 7:00 PM, Jean-Sébastien Guay
<jean-sebastien.guay-***@public.gmane.org> wrote:

Hi Anders,



What about the install of OpenThreads, anyone seen it before?



Nope, I always run the INSTALL target after building (on VS2005 and VS2008
though) and have never seen that. In my case the file it's trying to find
exists...

Were there any errors when building OpenThreads (maybe buried in the output
so you didn't see it)? The only reason why it shouldn't be there is if it
wasn't built, and sometimes the INSTALL target runs even if dependent
projects failed to build (which doesn't make sense to me, but that's how
CMake does it)...

J-S
--
______________________________________________________
Jean-Sebastien Guay jean-sebastien.guay-***@public.gmane.org
http://www.cm-labs.com/
http://whitestar02.webhop.org/
Mattias Helsing
2010-03-31 17:07:52 UTC
Permalink
Hi Anders,

All the ..'s are intended and put there with the purpose to avoid the
Release, Debug, RelWithDebugInfo and RelMinSize folders that Cmake
wants to put binaries (and other stuff like libs) in. You should look
in the other end - that is - why your cmake install script doesn't
pick up on this. I wasn't there in the beginning of osg cmake history
but this scheme has been there since then I think. I haven't got
vc2010 myself so can't test. Sorry.

2p
/Mattias
In the generated file: src\OpenThreads\Win32\cmake_install.cmake
I can see that .lib and .dll get the wrong path (cmake install is looking at
I certainly havent added any '..' in the install path. Its a perfect
absolute path.
    FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE
STATIC_LIBRARY OPTIONAL FILES
"C:/projects/agx_dependencies/build/x86/osg/lib/RelWithDebInfo/../OpenThreads.lib")
  ENDIF("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES
"^([Rr][Ee][Ll][Ww][Ii][Tt][Hh][Dd][Ee][Bb][Ii][Nn][Ff][Oo])$")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL
"libopenthreads-dev")
IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL
"libopenthreads")
  IF("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Dd][Ee][Bb][Uu][Gg])$")
    FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE
SHARED_LIBRARY FILES
"C:/projects/agx_dependencies/build/x86/osg/bin/Debug/../../bin/ot11-OpenThreadsd.dll")
  ENDIF("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Dd][Ee][Bb][Uu][Gg])$")
For some reason, .. is added before the .lib and ../../bin is added before
the .dll:s
    FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE EXECUTABLE
FILES
"C:/projects/agx_dependencies/build/x86/osg/bin/Release/../osgviewer.exe")
'..' added there too.
cmake -DCMAKE_INSTALL_PREFIX=C:\projects\agx_dependencies\ -G "Visual Studio
10"
Has anyone successfully built osg with vs2010?
/A
Post by Anders Backman
Never write two things in one email :-)
In my first post, there was output of the error I get. I have looked
around on the web but haven't found anything helpful.
It complains that the openthreads dll file is missing, then some cmake/vs
Problem is really that the path of the dll-files are all wrong...
c:/projects/agx_dependencies/build/x86/osg/bin/Release/../../bin/ot11-OpenThreads.dll"
Instead of
c:/projects/agx_dependencies/build/x86/osg/bin/Release/ot11-OpenThreads.dll"
Have to look into that some more, although Im running the same
cmake-command as with vs2008...
But with latest CMake (to get vs2010 support)...
Unfortunately I need to build it myself to get x64 libs which I need.
All libraries have built just fine until osg regarding install. Even
collada and boost!
Probably some trivial error.
Thanks
/A
------ Build started: Project: INSTALL, Configuration: Release Win32 ------
3>    file INSTALL cannot find
3>
 "C:/projects/agx_dependencies/build/x86/osg/bin/Release/../../bin/ot11-OpenThreads.dll".
3>    src/OpenThreads/cmake_install.cmake:36 (INCLUDE)
3>    src/cmake_install.cmake:32 (INCLUDE)
3>    cmake_install.cmake:36 (INCLUDE)
3>
3>
3>  -- Install configuration: "Release"
C:/projects/agx_dependencies/lib/pkgconfig/openscenegraph.pc
C:/projects/agx_dependencies/lib/pkgconfig/openthreads.pc
3>  -- Up-to-date: C:/projects/agx_dependencies/lib/OpenThreads.lib
3>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
MSB3073: The command ""C:\Program Files (x86)\CMake 2.8\bin\cmake.exe"
-DBUILD_TYPE=Release -P cmake_install.cmake
3>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
MSB3073: :VCEnd" exited with code 1.
========== Build: 2 succeeded, 1 failed, 77 up-to-date, 0 skipped ==========
On Tue, Mar 30, 2010 at 7:00 PM, Jean-Sébastien Guay
Hi Anders,
Post by Anders Backman
What about the install of OpenThreads, anyone seen it before?
Nope, I always run the INSTALL target after building (on VS2005 and
VS2008 though) and have never seen that. In my case the file it's trying to
find exists...
Were there any errors when building OpenThreads (maybe buried in the
output so you didn't see it)? The only reason why it shouldn't be there is
if it wasn't built, and sometimes the INSTALL target runs even if dependent
projects failed to build (which doesn't make sense to me, but that's how
CMake does it)...
J-S
--
______________________________________________________
                              http://www.cm-labs.com/
                       http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Anders Backman
2010-04-03 16:23:14 UTC
Permalink
Mm, there is certainly something in the way CMake generates project files
for vs2010.
I took the suggestion of creating projectfiles for vs2008, and load them
into vs2010. Works like a charm...

/A
Post by Jean-Sébastien Guay
Hi Anders,
All the ..'s are intended and put there with the purpose to avoid the
Release, Debug, RelWithDebugInfo and RelMinSize folders that Cmake
wants to put binaries (and other stuff like libs) in. You should look
in the other end - that is - why your cmake install script doesn't
pick up on this. I wasn't there in the beginning of osg cmake history
but this scheme has been there since then I think. I haven't got
vc2010 myself so can't test. Sorry.
2p
/Mattias
Post by Anders Backman
In the generated file: src\OpenThreads\Win32\cmake_install.cmake
I can see that .lib and .dll get the wrong path (cmake install is looking
at
Post by Anders Backman
I certainly havent added any '..' in the install path. Its a perfect
absolute path.
FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE
STATIC_LIBRARY OPTIONAL FILES
"C:/projects/agx_dependencies/build/x86/osg/lib/RelWithDebInfo/../OpenThreads.lib")
Post by Anders Backman
ENDIF("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES
"^([Rr][Ee][Ll][Ww][Ii][Tt][Hh][Dd][Ee][Bb][Ii][Nn][Ff][Oo])$")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}"
STREQUAL
Post by Anders Backman
"libopenthreads-dev")
IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL
"libopenthreads")
IF("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Dd][Ee][Bb][Uu][Gg])$")
FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE
SHARED_LIBRARY FILES
"C:/projects/agx_dependencies/build/x86/osg/bin/Debug/../../bin/ot11-OpenThreadsd.dll")
Post by Anders Backman
ENDIF("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES
"^([Dd][Ee][Bb][Uu][Gg])$")
Post by Anders Backman
For some reason, .. is added before the .lib and ../../bin is added
before
Post by Anders Backman
the .dll:s
FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE
EXECUTABLE
Post by Anders Backman
FILES
"C:/projects/agx_dependencies/build/x86/osg/bin/Release/../osgviewer.exe")
Post by Anders Backman
'..' added there too.
cmake -DCMAKE_INSTALL_PREFIX=C:\projects\agx_dependencies\ -G "Visual
Studio
Post by Anders Backman
10"
Has anyone successfully built osg with vs2010?
/A
Post by Anders Backman
Never write two things in one email :-)
In my first post, there was output of the error I get. I have looked
around on the web but haven't found anything helpful.
It complains that the openthreads dll file is missing, then some
cmake/vs
Post by Anders Backman
Post by Anders Backman
Problem is really that the path of the dll-files are all wrong...
c:/projects/agx_dependencies/build/x86/osg/bin/Release/../../bin/ot11-OpenThreads.dll"
Post by Anders Backman
Post by Anders Backman
Instead of
c:/projects/agx_dependencies/build/x86/osg/bin/Release/ot11-OpenThreads.dll"
Post by Anders Backman
Post by Anders Backman
Have to look into that some more, although Im running the same
cmake-command as with vs2008...
But with latest CMake (to get vs2010 support)...
Unfortunately I need to build it myself to get x64 libs which I need.
All libraries have built just fine until osg regarding install. Even
collada and boost!
Probably some trivial error.
Thanks
/A
------ Build started: Project: INSTALL, Configuration: Release Win32 ------
3> file INSTALL cannot find
3>
"C:/projects/agx_dependencies/build/x86/osg/bin/Release/../../bin/ot11-OpenThreads.dll".
Post by Anders Backman
Post by Anders Backman
3> src/OpenThreads/cmake_install.cmake:36 (INCLUDE)
3> src/cmake_install.cmake:32 (INCLUDE)
3> cmake_install.cmake:36 (INCLUDE)
3>
3>
3> -- Install configuration: "Release"
C:/projects/agx_dependencies/lib/pkgconfig/openscenegraph.pc
C:/projects/agx_dependencies/lib/pkgconfig/openthreads.pc
3> -- Up-to-date: C:/projects/agx_dependencies/lib/OpenThreads.lib
3>C:\Program Files
error
Post by Anders Backman
Post by Anders Backman
MSB3073: The command ""C:\Program Files (x86)\CMake 2.8\bin\cmake.exe"
-DBUILD_TYPE=Release -P cmake_install.cmake
3>C:\Program Files
error
Post by Anders Backman
Post by Anders Backman
MSB3073: :VCEnd" exited with code 1.
========== Build: 2 succeeded, 1 failed, 77 up-to-date, 0 skipped ==========
On Tue, Mar 30, 2010 at 7:00 PM, Jean-Sébastien Guay
Hi Anders,
Post by Anders Backman
What about the install of OpenThreads, anyone seen it before?
Nope, I always run the INSTALL target after building (on VS2005 and
VS2008 though) and have never seen that. In my case the file it's
trying to
Post by Anders Backman
Post by Anders Backman
find exists...
Were there any errors when building OpenThreads (maybe buried in the
output so you didn't see it)? The only reason why it shouldn't be there
is
Post by Anders Backman
Post by Anders Backman
if it wasn't built, and sometimes the INSTALL target runs even if
dependent
Post by Anders Backman
Post by Anders Backman
projects failed to build (which doesn't make sense to me, but that's
how
Post by Anders Backman
Post by Anders Backman
CMake does it)...
J-S
--
______________________________________________________
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Post by Anders Backman
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Martin Beckett
2010-03-30 17:19:41 UTC
Permalink
As a test, you can use the openthreads from vs2008 build.
As long as you are on the same number of bits the .dlls are compatible.

Cheers,
Martin

Unfortunately I can't swtich yet until Qt-vs-addin supports 2010.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26279#26279
Christian Buchner
2010-04-18 09:40:26 UTC
Permalink
Let me add my findings related to Visual C++ 2010 Release Candidate
and compiling OSG

I used cmake 2.6.4 to generate a Visual C++ 2008 solution which was
converted to a 2010 solution inside the IDE (which took forever!)

The build process was flaky, it would randomly report errors during
the build. However running the build 3 to 4 times in a row would
finally build all sub-targets succesfully.

Building the INSTALL project would not copy any binaries to their
final location. I had to do this manually.

Thinks may run more smoothly when using the latest cmake and targeting
Visual C++ 2010 directly, who knows.

Christian

Continue reading on narkive:
Loading...