chrisidefix / cgal-bindings

Automatically exported from code.google.com/p/cgal-bindings
Boost Software License 1.0
0 stars 0 forks source link

Problem building latest cgal-bindings with local CGAL-4.0.2 #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I had trouble building cgal-bindings using the CGAL 3.9 installed on my Ubuntu 
12.04 machine using "sudo apt-get install", so I decided to build CGAL 4.0.2 
from source:

cmake -DCMAKE_INSTALL_PREFIX=/home/epifanio .
make
make install

The install went fine, but when I tried to build "cgal-bindings" using this 
distribution, I got an error 
"CMake Error: Error processing file:GAL_DIR=/home/epifanio/lib/CGAL

Here's what I did:

epifanio@gam:~/rps/cgal-bindings/build/CGAL-4.02_release$ cmake 
-CGAL_DIR=/home/epifanio/lib/CGAL  -DJAVA_OUTDIR_PREFIX=../../examples/java 
-DPYTHON_OUTDIR_PREFIX=../../examples/python ../..
loading initial cache file GAL_DIR=/home/epifanio/lib/CGAL
CMake Error: Error processing file:GAL_DIR=/home/epifanio/lib/CGAL
-- Build type: Release
-- USING CXXFLAGS = '-g -O2 -fstack-protector --param=ssp-buffer-size=4 
-Wformat -Wformat-security  -frounding-math -O3 -DNDEBUG'
-- USING EXEFLAGS = ' -Wl,-Bsymbolic-functions -Wl,-z,relro '
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- Release mode with g++: using -fno-strict-aliasing flags
-- Found Python libs.
-- CGAL-SWIG Python files and libraries will be written in 
/home/epifanio/rps/cgal-bindings/examples/python/CGAL.
-- Found JNI: JNI include dirs /usr/lib/jvm/java-6-sun/include 
/usr/lib/jvm/java-6-sun/include/linux.
-- CGAL-SWIG Java libraries and files will be respectively written in 
/home/epifanio/rps/cgal-bindings/examples/java/lib and 
/home/epifanio/rps/cgal-bindings/examples/java/CGAL.
-- Configuring incomplete, errors occurred!

Thanks,
Rich

Original issue reported on code.google.com by rsignell on 31 Jul 2012 at 2:39

GoogleCodeExporter commented 9 years ago
try with -DCGAL_DIR=/home/epifanio/lib/CGAL

Original comment by sloriot...@gmail.com on 1 Aug 2012 at 5:04

GoogleCodeExporter commented 9 years ago
That's exactly what I tried. See the output above.

Original comment by rsignell on 1 Aug 2012 at 10:03

GoogleCodeExporter commented 9 years ago
Ah, wait, I see.  I forgot the -D.

Original comment by rsignell on 1 Aug 2012 at 10:03

GoogleCodeExporter commented 9 years ago

Original comment by sloriot...@gmail.com on 1 Aug 2012 at 11:15