Skip to Content.
Sympa Menu

cgal-discuss - Unable to install using alternate BOOST path

Subject: CGAL users discussion list

List archive

Unable to install using alternate BOOST path


Chronological Thread 
  • From: "Segall, Edward" <>
  • To: <>
  • Subject: Unable to install using alternate BOOST path
  • Date: Wed, 26 Sep 2007 09:35:55 -0400

Title: Unable to install using alternate BOOST path

Hello,

I am attemting to install CGAL 3.3.1 in an environment where BOOST is in a non-standard location. Reading the top of the install_cgal script, I see a mechanism that appears to be designed to support this scenario. Under "advanced options", there is:

  --PACKAGENAME_INCL_DIR <dir>
               Add \"-I<dir>\" to CPPFLAGS. The valid PACKAGENAMEs in this
               context are BOOST, BOOST_PROGRAM_OPTIONS, BOOST_BIMAP, X11,
               GMP, GMPXX, MPFR, ZLIB, BLAS, LAPACK, LEDA, LEDAWIN, OPENGL,
               QT, TAUCS

To me, this says "if you specify --BOOST_INCL_DIR <dir> on the invocation line, then \"-I<dir>\" will be added to the command when the C++ compiler is invoked."

I tried this but it did not work. Here is how install_cgall was invoked:

$ ./install_cgal.copy --prefix=/cygdrive/c/Program\ Files/CGAL --BOOST_INCL_DIR "h:\downloaded\BOOST\boost_1_34_0"

(This is under cygwin running under Windows XP, with the target compiler Visual C++ 8. I am using the script install rather than the installer application because I am hoping to understand the changes made for installation. The overall goal  is to fit the CGAL installation into a larger build process for the application that uses it, and to make that work I need to see what it does.)

From install.log (after enabling INSTALL_VERBOSE):

Testing support for BOOST ...
    OK: requirements and incompatibilities.
    Testing with default flags.
    remark: BOOST test did not compile.
    vvvvvvvvvvvv compiler messages below vvvvvvvvvvvv
    Compiler call:
    --------------
    /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/BIN/CL.EXE -TP -GR -EHsc -Zm900 -nologo -MD -DCGAL_NO_AUTOLINK '-Ih:/downloaded/CGAL/CGAL-3.3/CGAL-3.3.1/include/CGAL/config/i686_CYGWINNT-5.1_CL.EXE-1400'   -c 'tmp_test.cpp'

   
    Got the following error messages:
    ---------------------------------
    tmp_test.cpp
    tmp_test.cpp(27) : fatal error C1083: Cannot open include file: 'boost/version.hpp': No such file or directory
    ^^^^^^^^^^^^ compiler messages above ^^^^^^^^^^^^
  Looking for BOOST in standard locations...
  - Looking for includes in /usr/include/\* ...
  - Looking for includes in /sw/include ...
Failed: BOOST test program.


As you can see, \"-I<dir>\" was not added to the command line. Have I named the option incorrectly, or perhaps misinterpreted its intention? I have done some tracing of install_cgal to try to understand the problem, but the way the command line is built is pretty intricate and as a result this tracing is very time consuming. From what I've found, I am pretty sure I could accomplish my goal by modifying STDINCLDIRS in H:\downloaded\CGAL\CGAL-3.3\CGAL-3.3.1\config\support\S05-BOOST, but that would be a hack and I'd prefer a clean solution, espcially since there seems to be a mechanism designed to accomplish this goal.

FYI I also tried specifying a unix-style path instead of a windows-style path, but that made no difference.

Thank you in advance for your help.

--Ed Segall


Confidentiality Notice This e-mail (including any attachments) is intended only for the recipients named above. It may contain confidential or privileged information and should not be read, copied or otherwise used by any other person. If you are not a named recipient, please notify the sender of that fact and delete the e-mail from your system.


Archive powered by MHonArc 2.6.16.

Top of Page