Subject: CGAL users discussion list
List archive
- From: Rahul Kavalapara <>
- To:
- Subject: Re: [cgal-discuss] How to configure? (Ubuntu+EclipseCDT+CGAL+QT4)
- Date: Tue, 6 Oct 2009 10:54:18 -0600
Samay,
If you happen to install CGAL and QT from synaptic package manager or using a .deb file, all the libraries would be installed in /usr/lib and include path is /usr/include/CGAL. You will have the demos and examples in /usr/share/doc/ligcgal-demo/
You would want to specify the path settings in eclipse depending on your library and include paths. To specify the path settings follow Amy's explanation in 2.
FYI:
You don't require to write a CMAKE build script to compile your program. A simple compile command " g++ testProg.cpp -lCGAL" in terminal would as well work for a normal console application.
In your .bashrc export the environment variables LD_LIBRARY_PATH.
This line would help:
export LD_LIBRARY_PATH=$HOME/lib:.:/usr/lib:/usr/local/lib:../lib
--
Rahul Kavalapara
On Tue, Oct 6, 2009 at 7:15 AM, Amy Tabb <> wrote:
Hello Samay,
I use Eclipse (Galileo) on an 64 bit machine running Ubuntu 9.04 with CGAL 3.4. I don't use QT, so I won't be able to help you there. First, go through the installation process in the manual (http://www.cgal.org/Manual/3.4/doc_html/installation_manual/Chapter_installation_manual.html). You DO have to perform the commands detailed there with the cmake-gui (section 4.1), but that doesn't mean that your projects have to use CMake.
Here's my settings:
1. Turn the indexer off or on very low settings (Indexer is found under Project properties, C/C++ General, Indexer. You can choose project specific settings so that all of the projects in your workspace can have different settings). Eclipse will try to index all of CGAL's include files and this results in an out of memory error, and quickly, Eclipse crashes. Before you start adding files to a project is a good time to adjust these indexer settings.
2. Under Project "Properties," then C/C++ Build, then Settings:
a. Under C++ Compiler, Directories: /usr/local/cgal (or wherever you installed cgal, this is the default)
b. Under C++ Compiler, Miscellaneous: -frounding-math (More on why we need this can be found in multiple listserv messages)
c. Under C++ Linker, libraries, then Libraries (-l): CGAL
d. Under C++ Linker, libraries, then Library search path (-L): /usr/local/lib (you should find libCGAL.so there)
Best,
Amy--
Samay Kumar wrote:
*** Sorry, for multiple copies ***
Hello Friends,
I want to know if any of can help configuring new C++ project on Eclipse CDT (on Ubuntu 32 bit machine) using QT4 and CGAL libraries. I read some stuff about CMake but as of I am new bee, I will prefer to use Eclipse IDE. Any help would be helpful.
Greetings,
Samay
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Amy Tabb
PhD candidate
Robot Vision Laboratory
Electrical and Computer Engineering Department
465 Northwestern Avenue
West Lafayette, Indiana 47907-2035
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- [cgal-discuss] How to configure? (Ubuntu+EclipseCDT+CGAL+QT4), Samay Kumar, 10/06/2009
- Re: [cgal-discuss] How to configure? (Ubuntu+EclipseCDT+CGAL+QT4), Amy Tabb, 10/06/2009
- Re: [cgal-discuss] How to configure? (Ubuntu+EclipseCDT+CGAL+QT4), Rahul Kavalapara, 10/06/2009
- Re: [cgal-discuss] How to configure? (Ubuntu+EclipseCDT+CGAL+QT4), Matthew Denno, 10/06/2009
- Re: [cgal-discuss] How to configure? (Ubuntu+EclipseCDT+CGAL+QT4), Amy Tabb, 10/06/2009
Archive powered by MHonArc 2.6.16.