Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win32 configure only release problems #38

Open
GoogleCodeExporter opened this issue Mar 16, 2015 · 4 comments
Open

win32 configure only release problems #38

GoogleCodeExporter opened this issue Mar 16, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

<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 [email protected] on 19 Apr 2011 at 8:00

@GoogleCodeExporter
Copy link
Author

Hi, I believe this issue has been addressed in the trunk. 

Could you try to compile the latest version?

Original comment by [email protected] on 19 Apr 2011 at 9:12

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 19 Apr 2011 at 9:14

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 19 Apr 2011 at 9:16

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 19 Apr 2011 at 9:32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant