Thread: CGAL in Linux

  1. #1
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694

    CGAL in Linux

    Hello from ubuntu 12.04.

    I want to use CGAL and I installed it. The examples run just fine. The graphical applications seem to have a problem (the require Qt I guess), but that's ok for now.

    I can build the examples like this
    Code:
    cmake -DCGAL_DIR=$HOME/CGAL-3.6.1 . 
    make
    Then I run them with the typical way.

    However, I am not able to build a new example.
    I create a new .cpp and I copy the exact same code from another example (that was built and run ok).

    I tried to modified the Makefile that was already there, but no result.

    Any idea? :/ I am stuck for good!
    Code - functions and small libraries I use


    It’s 2014 and I still use printf() for debugging.


    "Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson

  2. #2
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    Are you also making these new files in the same directory as your working examples?

  3. #3
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    Yes. But these examples were already there, as their makefile.

    If I understood correctly, I should somehow invoke cmake in the play!
    Code - functions and small libraries I use


    It’s 2014 and I still use printf() for debugging.


    "Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson

  4. #4
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    What are the errors you're getting specifically? Like, what's the compiler or cmake or w/e spitting out at you? Or is it just a silent failure?

  5. #5
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    It ignores my new file. When I try something like compilation by hand, the screen can't hold the errors :P
    I guess, I just have to read carefully again their info in their site.
    Code - functions and small libraries I use


    It’s 2014 and I still use printf() for debugging.


    "Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson

  6. #6
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    Now, I tried with cgal_create_cmake_script (instead of cgal_create_CMakeLists) and it is ok. The script name depends on which version of Cgal you use.
    Cgal users tell me to install a newer version of Cgal.
    I had found this, which is where the also told me to look. I am on ubuntu 12.04. However, I know only how to handle the terminal for coding purposes (not installing, etc.) and I do not know what to do.
    Code - functions and small libraries I use


    It’s 2014 and I still use printf() for debugging.


    "Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson

  7. #7
    11DE784A SirPrattlepod's Avatar
    Join Date
    Aug 2013
    Posts
    485
    What are the errors? Are they happening with cmake or make? If there are too many to post, redirect stderr and put them on pastebin or something... E.g.:

    make 2> mkerrs.txt

  8. #8
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    Try sudo apt-get install cgal

  9. #9
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    Yesterday, the 4.3 version was released and I installed it successfully.
    If someone wants to know how, he can find the instructions I followed in pseusosite.
    Code - functions and small libraries I use


    It’s 2014 and I still use printf() for debugging.


    "Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson

  10. #10
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    I think command on ubuntu was actualy

    sudo apt-get install libcgal-dev

    Using native package managers is always better when not using source based distros, at least imo.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Convex hull with CGAL
    By std10093 in forum Tech Board
    Replies: 1
    Last Post: 12-20-2012, 08:39 PM
  2. CGAL in Ubuntu 12.04
    By anirban in forum Tech Board
    Replies: 10
    Last Post: 07-25-2012, 09:52 AM
  3. CGAL question
    By disruptivetech in forum C++ Programming
    Replies: 0
    Last Post: 04-28-2008, 11:34 AM
  4. good ide for linux ( mandriva linux )
    By abhijeetnayak in forum Linux Programming
    Replies: 3
    Last Post: 05-28-2006, 05:49 AM
  5. i'm new to linux - which linux to install?
    By wakish in forum Linux Programming
    Replies: 38
    Last Post: 02-27-2006, 12:40 PM