kbale / osgocean

An ocean rendering nodekit for OpenSceneGraph
GNU Lesser General Public License v3.0
109 stars 56 forks source link

win32 configure only release problems #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
<code>
C:\repository\git\win32\3rdparty\osgOcean\Release>cmake -G "Visual Studio 9 
2008 Win64"  
-DOSG_INCLUDE_DIR:PATH="C:\repository\git\win32\3rdparty\x64\osg-2.9.10\include"
 -DCMAKE_INSTALL_PREFIX:PATH="C:\repository\git\win32\3rdparty\x64\osg-2.9.10" 
-DWIN32_USE_MP=ON 
-DFFTSS_INCLUDE_DIR:PATH="C:\repository\git\win32\3rdparty\fftss\include" 
-DFFTSS_LIBRARY:PATH="C:\repository\git\win32\3rdparty\x64\build\Release\fftss.l
ib" -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="/MD /Zi /Od /Ob0 /D NDEBUG" ..
-- Check for working C compiler using: Visual Studio 9 2008 Win64
-- Check for working C compiler using: Visual Studio 9 2008 Win64 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 9 2008 Win64
-- Check for working CXX compiler using: Visual Studio 9 2008 Win64 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found osg: C:/repository/git/win32/3rdparty/x64/osg-2.9.10/lib/osg.lib
-- Found osgDB: C:/repository/git/win32/3rdparty/x64/osg-2.9.10/lib/osgDB.lib
-- Found osgGA: C:/repository/git/win32/3rdparty/x64/osg-2.9.10/lib/osgGA.lib
-- Found osgViewer: 
C:/repository/git/win32/3rdparty/x64/osg-2.9.10/lib/osgViewer.lib
-- Found osgUtil: 
C:/repository/git/win32/3rdparty/x64/osg-2.9.10/lib/osgUtil.lib
-- Found osgText: 
C:/repository/git/win32/3rdparty/x64/osg-2.9.10/lib/osgText.lib
-- Found OpenThreads: 
C:/repository/git/win32/3rdparty/x64/osg-2.9.10/lib/OpenThreads.lib
OPENTHREADS_LIBRARYC:/repository/git/win32/3rdparty/x64/osg-2.9.10/lib/OpenThrea
ds.lib
-- Using FFTSS (LGPL) as FFT library.
CMake Error: The following variables are used in this project, but they are set 
to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake 
files:
OPENTHREADS_LIBRARY_DEBUG
    linked by target "osgOcean" in directory C:/repository/git/win32/3rdparty/osgOcean/src/osgOcean

-- Configuring incomplete, errors occurred!
</code>

Is it possible to build only release without debug libraries?

Original issue reported on code.google.com by izmmish...@gmail.com on 19 Apr 2011 at 8:00

GoogleCodeExporter commented 9 years ago
Hi, I believe this issue has been addressed in the trunk. 

Could you try to compile the latest version?

Original comment by kcb...@googlemail.com on 19 Apr 2011 at 9:12

GoogleCodeExporter commented 9 years ago
I have no time now, but I see in trunk/src/osgOcean/CMakeLists.txt 
(http://code.google.com/p/osgocean/source/browse/trunk/src/osgOcean/CMakeLists.t
xt#130)

same problem.

Original comment by izmmish...@gmail.com on 19 Apr 2011 at 9:14

GoogleCodeExporter commented 9 years ago
and in trunk/CMakeLists.txt 

<code>
find_package (OpenThreads REQUIRED)
include_directories(${OPENTHREADS_INCLUDE_DIR})

IF (NOT WIN32)
  IF (NOT OSG_LIBRARY_DEBUG)
    SET(OSG_LIBRARY_DEBUG ${OSG_LIBRARY})
  ENDIF()
  IF (NOT OSGDB_LIBRARY_DEBUG)
    SET(OSGDB_LIBRARY_DEBUG ${OSGDB_LIBRARY})
  ENDIF()
  IF (NOT OSGGA_LIBRARY_DEBUG)
    SET(OSGGA_LIBRARY_DEBUG ${OSGGA_LIBRARY})
  ENDIF()
  IF (NOT OSGVIEWER_LIBRARY_DEBUG)
    SET(OSGVIEWER_LIBRARY_DEBUG ${OSGVIEWER_LIBRARY})
  ENDIF()
  IF (NOT OSGUTIL_LIBRARY_DEBUG)
    SET(OSGUTIL_LIBRARY_DEBUG ${OSGUTIL_LIBRARY})
  ENDIF()
  IF (NOT OSGTEXT_LIBRARY_DEBUG)
    SET(OSGTEXT_LIBRARY_DEBUG ${OSGTEXT_LIBRARY})
  ENDIF()
  IF (NOT OPENTHREADS_LIBRARY_DEBUG)
    SET(OPENTHREADS_LIBRARY_DEBUG ${OPENTHREADS_LIBRARY})
  ENDIF()
ENDIF()
</code>

Original comment by izmmish...@gmail.com on 19 Apr 2011 at 9:16

GoogleCodeExporter commented 9 years ago
A quick fix for you would be to remove the IF(NOT WIN32) condition from the 
above cmake list. I'll have to see if I can disable a debug build on win32 
systems if the debug libraries aren't present since otherwise you'll get 
runtime errors through mixing debug and release DLLs.

Original comment by kcb...@googlemail.com on 19 Apr 2011 at 9:32