Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL 3.4 install with VC8 [winXP]

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL 3.4 install with VC8 [winXP]


Chronological Thread 
  • From: Laurent Saboret <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL 3.4 install with VC8 [winXP]
  • Date: Thu, 04 Jun 2009 15:24:05 +0200

Hi Luke,


a écrit :
Hi Laurent -

Last night I attempted to install CGAL 3.4 on a clean pc (also running xp and
vc8). Sadly, I reproduced the same error... . So I must be doing something
systematically wrong on the install. Attached below is the output from the
new
cmake session as well as the debug output from an example file (polygon.cpp). My suspicion (which I don't really trust) is that it may be a static vs.
dynamic library issue. Thus far I have had no luck producing anything but the
following CGAL libraries:
CGAL_Core-vc80-mt-gd.lib
CGAL_ImageIO-vc80-mt-gd.lib
CGAL_PDB-vc80-mt-gd.lib
CGAL_Qt4-vc80-mt-gd.lib
CGAL-vc80-mt-gd.lib

This is the normal result when compiling CGAL 3.4 and its sub-libraries (Core, ImageIO, ...) with VC++ 8 (CGAL.sln) in Debug mode.

Does the Release version compile?


CMAKE DIAGNOSTIC:
CGAL_MAJOR_VERSION=3
CGAL_MINOR_VERSION=4
CGAL_BUILD_VERSION=
CGAL_SONAME_VERSION=3
CGAL_SOVERSION =3.0.0
CGAL_REFERENCE_CACHE_DIR=
Building static libraries
CMake Warning (dev) at CMakeLists.txt:88 (include):
Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH
and POP. Run "cmake --help-policy CMP0011" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

The included script

C:/Program Files/CGAL-3.4/cmake/modules/CGAL_Common.cmake

affects policy settings. CMake is implying the NO_POLICY_SCOPE option for
compatibility, so the effects are applied to the including context.
This warning is for project developers. Use -Wno-dev to suppress it.

Targetting Visual Studio 8 2005
Target build enviroment supports auto-linking
Using VC80 compiler.
Generator uses intermediate configuration directory: $(OutDir)
USING CMake version: 2.6.3
System: Windows
Build type: Release
USING CXXFLAGS = ' /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR
-D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE
-D_CRT_SECURE_NO_WARNINGS
-D_SCL_SECURE_NO_WARNINGS /MD /O2 /Ob2 /D NDEBUG -D_SECURE_SCL=0'
USING LDFLAGS = ' '
GMP include: C:/Program Files/CGAL-3.4/auxiliary/gmp/include
GMP libraries: GMP definitions: USING GMP_VERSION = '4.2.4'
MPFR include: C:/Program Files/CGAL-3.4/auxiliary/gmp/include
MPFR libraries: MPFR definitions: USING MPFR_VERSION = '2.3.2'
Boost include: C:/Program Files/boost/boost_1_38
Boost libraries: optimized;C:/Program
Files/boost/boost_1_38/lib/libboost_thread-vc80-mt-1_38.lib;debug;C:/Program
Files/boost/boost_1_38/lib/libboost_thread-vc80-mt-gd-1_38.lib
Boost definitions: USING BOOST_VERSION = '1.38.0'
CMAKE_INSTALL_PREFIX=C:/Program Files/CGAL
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
OpenGL include: OpenGL libraries: glu32;opengl32
NOTICE: CGAL_ImageIO needs ZLib to read compressed files. That feature will
not
be activated.
CGAL_Qt3 needs Qt3, cannot be configured.
USING QT4_VERSION = '4.5.0'
OpenGL include: OpenGL libraries: glu32;opengl32
OpenGL definitions: Qt4 include: C:/Qt/4.5.0/include
Qt4 libraries: optimized;C:/Qt/4.5.0/lib/qtmain.lib;debug;C:/Qt/4.5.0/lib/qtmaind.lib;optimized;C:/Qt/4.5.0/lib/QtOpenGL4.lib;debug;C:/Qt/4.5.0/lib/QtOpenGLd4.lib;opengl32.lib
glu32.lib gdi32.lib
user32.lib;optimized;C:/Qt/4.5.0/lib/QtGui4.lib;debug;C:/Qt/4.5.0/lib/QtGuid4.lib;imm32;winmm;optimized;C:/Qt/4.5.0/lib/QtCore4.lib;debug;C:/Qt/4.5.0/lib/QtCored4.lib;ws2_32
Qt4 definitions: -DQT_DLL
moc executable: C:/Qt/4.5.0/bin/moc.exe
uic executable: C:/Qt/4.5.0/bin/uic.exe
Configuring done
Generating done

This is the regular CMake output for CGAL 3.4 and its sub-libraries with VC++
8.


C++ DEBUG OUTPUT:
'test1.exe': Loaded 'C:\Program
Files\CGAL-3.4\examples\Polygon\test1\debug\test1.exe', Symbols loaded.
'test1.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'test1.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'test1.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcp80d.dll',
Symbols loaded.
'test1.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll',
Symbols loaded.
'test1.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
'test1.exe': Loaded 'C:\Program
Files\CGAL-3.4\auxiliary\gmp\lib\gmp-vc80-mt-gd.dll', Symbols loaded.
LDR: LdrpWalkImportDescriptor() failed to probe C:\Program
Files\CGAL-3.4\auxiliary\gmp\lib\gmp-vc80-mt-gd.dll for its manifest, ntstatus
0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process
load
The program '[3520] test1.exe: Native' has exited with code -1072365566
(0xc0150002).

Again, any help would be greatly appreciated.
Best, - Luke

This is the output when *running* 'C:\Program Files\CGAL-3.4\examples\Polygon\test1\debug\test1.exe' in Debug mode.
This part does not seem correct.

You should instead:
* Define %CGAL_DIR%=C:\Program Files\CGAL-3.4 (if not already done by CGAL
installer)
* Run CMake in C:\Program Files\CGAL-3.4\examples\Polygon. This step will create C:\Program Files\CGAL-3.4\examples\Polygon\Polygon_example.sln.
* Open Polygon_example.sln with VC++ 8 and compile it. This step will create Example.exe, Polygon.exe and polygon_algorithms.exe in D:\Libs\CGAL-3.4\examples\Polygon\debug (same thing for release).
* Then, try to run these executables.

Best regards,
--
Laurent Saboret
INRIA Sophia-Antipolis




Archive powered by MHonArc 2.6.16.

Top of Page