Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL demos on Windows won't configure

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL demos on Windows won't configure


Chronological Thread 
  • From: Jeffrey Bush <>
  • To: "" <>
  • Subject: Re: [cgal-discuss] CGAL demos on Windows won't configure
  • Date: Thu, 31 Jan 2013 01:17:06 -0800

Another note. When trying to get the AABB demo to work in VS the program generated cannot be run (cannot be started correct 0xC000007B - bad image) . It can't even be debugged. I have used Qt before on this computer and the QGLViewer demos I tried all worked. The AABB_examples all worked as well (they have no GUI though). I have tried changing many of the build parameters in the generated VS project to no avail.

It seems as though Windows / MSVS support should be listed as "partial" until all these issues can be worked out (an installer that places files in a place that other scripts which have bugs fail to use, not including the Boost libs even when CMAKE successfully detects them, unable to run a demo). Tomorrow I will try on a Linux machine and hopefully have more luck.

Also, you give no help in the documentation on how to create a new program that uses CGAL on a Windows machine. Everything depends on running the shell script cgal_create_CMakeLists which cannot be done on Windows.

Jeff


On Thu, Jan 31, 2013 at 12:43 AM, Jeffrey Bush <> wrote:
Thanks. However, just so you know, the CGAL installer installs to Program Files (x86) on Windows x64.

I ended up getting around it by building just the examples and demos I wanted. However in the process of building all of this I have identified more problems. The boost libraries are not added to the import list in the resulting project, only the include directories are added. Each project needs to have the boot libraries manually entered. The CMAKE GUI shows the boost libraries it will add, with all the right path information, however these don't end up in the resulting VS project.

Thanks again - although I am still having problems getting things to work just right, it kind of makes sense that a library as massive as this takes time to even get it going.

Jeff


On Thu, Jan 31, 2013 at 12:04 AM, Laurent Rineau (CGAL/GeometryFactory) <> wrote:
Le mercredi 30 janvier 2013 16:23:22 Jeffrey Bush a écrit :
> Hi,
>
> When trying to build the CGAL demos CMAKE fails. If doing everything
> besides the demos (core, ImageIO, examples) it works fine. Not all of the
> demos cause errors, but most (~25 do). They all seem to be about not being
> able to access certain paths, which are paths that are like C:/.../C:/.../
> - notice it trying to re-root itself there? It shouldn't be doing that.
> Running with CMAKE_USE_RELATIVE_PATHS does not help.
>
> An example error message that is shown here and the entire cmake log is
> attached.
>
> == Generating build files for demos ==
>
> -- Configuring demo in demo/C:/Program Files (x86)/CGAL-4.1/demo/AABB_tree
>
> Requested component: Qt4
>
> Requested component: MPFR
>
> Requested component: GMP
>
> Found QGLViewer:
> C:/Qt/libQGLViewer-2.3.17/QGLViewer/release64/QGLViewer2.lib
>
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/Qt4Macros.cmake:111 (file):
>
> file Internal CMake error when trying to open file: C:/Program Files
>
> (x86)/CGAL-4.1/demo/C:/Program Files
>
> (x86)/CGAL-4.1/demo/AABB_tree/MainWindow_moc.cpp_parameters for writing.

Do not use a sub-directory of "C:\Program Files (x86)" as binary directory for
CMake. That causes a bug in Qt4 CMake macros.

Anyway, you should compile CGAL in your user directory, and not in the system
directory "C:\Program Files (x86)". Note that you can at the end, *install*
the compiled CGAL libraries there.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory           http://www.geometryfactory.com/
Release Manager of the CGAL Project       http://www.cgal.org/


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss







Archive powered by MHonArc 2.6.18.

Top of Page