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 On Wed, Mar 31, 2010 at 7:07 PM, Mattias Helsing <helsin...@gmail.com>wrote: > 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 > > On Tue, Mar 30, 2010 at 8:00 PM, Anders Backman <ande...@cs.umu.se> wrote: > > 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 > > > > 2010/3/30 andersb <ande...@cs.umu.se> > >> > >> 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 > >> <jean-sebastien.g...@cm-labs.com> 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.g...@cm-labs.com > >>> http://www.cm-labs.com/ > >>> http://whitestar02.webhop.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 > > > > > _______________________________________________ > 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