Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | File Exchange
ATOMS : CGLAB details
Login with GitLab

CGLAB

Scilab interface to CGAL library
(3543 downloads for this version - 51966 downloads for all versions)
Details
Version
2.1
A more recent valid version exists: 2.3.2
Authors
Edyta Przymus
Naceur Meskini
Owner Organization
private individual
Maintainers
Simon MARCHETTO
Edyta Przymus
Category
License
Creation Date
July 23, 2012
Source created on
Scilab 5.4.x
Binaries available on
Scilab 5.4.x:
Linux 32-bit Linux 64-bit
Install command
--> atomsInstall("cglab")
Description
            cglab (2.1)
	
[ Edyta PRZYMUS ]
 * Various improvement in the code
 * License header added
	
[ Sylvestre Ledru ]
  * Port to Scilab 5.4.0            
Files (3)
[1.05 MB]
Source code archive

[3.14 MB]
Linux 32-bit binary for Scilab 5.4.x
Linux 32-bit
Automatically generated by the ATOMS compilation chain

[3.15 MB]
Linux 64-bit binary for Scilab 5.4.x
Linux 64-bit
Automatically generated by the ATOMS compilation chain

News (0)
Comments (7)     Leave a comment 
Comment from Craig Denman -- July 24, 2012, 02:35:58 AM    
Sylvestre,

I noticed that you posted the source code for the new updated version to work with 5.4.0 
by Friday and then saw the binary by Saturday morning -- thanks so much for your rapid 
work on this Toolbox.

Today, I downloaded the most recent Scilab master for x86_64, installed in Ubuntu 12.04, 
ran Scilab, opened Atoms and installed CGLAB 2.1 and restarted Scilab.  Unfortunately, it 
did not load on restart of Scilab.  Here is what I got:

       ___________________________________________        
                  scilab-master-1342794455

                    Scilab Enterprises
                Consortium Scilab (DIGITEO)
       Copyright (c) 2011-2012 (Scilab Enterprises)
              Copyright (c) 1989-2012 (INRIA)
              Copyright (c) 1989-2007 (ENPC)
        ___________________________________________        
 
 
Startup execution:
  loading initial environment

Start CG-lab
	Load macros
	Load gateways
atomsLoad: An error occurred while loading 'cglab-2.1-1':
	link: The shared archive was not loaded: libCGAL.so.4: cannot open shared object 
file: No such file or directory
 
----I know that you have it working (saw the examples on the forge.scilab.org site), but I

am getting a similar error as before.

Your help to resolve this would be much appreciated.

Craig
Comment from Sylvestre LEDRU -- July 26, 2012, 03:25:41 PM    
Craig, until we include the lib into the ATOMS package. You can do:
sudo apt-get install libcgal-dev
it should fix your problem.
Comment from Craig Denman -- July 31, 2012, 01:46:48 AM    
This is a follow-up message to those that I posted earlier to indicate that I was finally
successful with CGLAB.  After 
spending many hours working on the Mac OSX Lion platform, I decided to focus on getting
CGLAB to work on the 
Ubuntu 12.04 platform.  I can say that after the effort the reward was worth it;
especially, after seeing this on my 
Scilab console:
       ___________________________________________        
                  scilab-master-1342794455

                    Scilab Enterprises
                Consortium Scilab (DIGITEO)
       Copyright (c) 2011-2012 (Scilab Enterprises)
              Copyright (c) 1989-2012 (INRIA)
              Copyright (c) 1989-2007 (ENPC)
        ___________________________________________        
 
 
Startup execution:
  loading initial environment
 
-->exec loader.sce;
Start CG-lab
	Load macros
	Load gateways
	Load help
	Load demos
 
And, then, seeing one of the demo tests actually produce a Delaunay graphic.

I started by using the latest Scilab master, this one includes updates through July 20th
and was precompiled for 
Linux x86_64, and compiling CGLAB from its source (2.1-1-src).  However, prior to compiling
CGLAB all of the 
dependencies that it is looking for must be properly installed; in particular the dynamic
libraries from CGAL (4.0.2) 
must be installed.

Unfortunately, when the Ubuntu Software Center or "sudo apt-get install
libcgal-dev" is used only the static libraries 
are installed (perhaps there is a way to change this).  I ended up downloading the source
from the CGAL website and 
performing the compilation and installation by hand.  This defaults to installation of the
dynamic libraries.  By using 
the "sudo ldconfig -v" command, you can double check that the dynamic libraries
for CGAL are indeed available.  I 
ended up having to also (first) load BOOST, GMP, and MPFR since they are a few of the
dependencies to CGAL.

I ended up getting an error during the compilation of CGLAB in Scilab due to dynamic links
that it finds within the 
"Thirdparty" folder of Scilab that are in conflict with newer versions that are
actually installed on my system.  
Becoming familiar with "sudo ldconfig -v" quickly helps you to locate the newest
versions so that you can simply 
delete and renew the simlinks that exist in the "Thirdparty" folder (e.g.
"sudo ln -s linked_to_dynamic_lib_file 
expected_file_in_thirdparty_folder_doing_the_simlink").  

I now want to get it working on the Mac.  As far as I can tell, the popular ports of the
open-source libraries via the 
Fink Project and MacPorts are both a bit behind when it comes to finding available ports
for OSX Lion.  Those for 
Snow Leopard appear to be available.  Consequently, finding all of the dependencies for
Snow Leopard seems straight 
forward, but for Lion it seems more difficult.

I hope this information is helpful.

Craig
Comment from Craig Denman -- August 8, 2012, 10:05:06 PM    
This comment has been deleted.
Answer from Sylvestre LEDRU -- August 8, 2012, 10:39:19 PM    
Hi, 

Would you mind continuing the discussion on the forge ?
http://forge.scilab.org/index.php/p/cglab/

thanks
S
Comment from Craig Denman -- December 17, 2012, 06:11:13 AM    
Hello Sylvestre,

I will drop a quick note here and complete my comments on the forge site:

After being away from this problem for the past few months, I decided to come back to it
this week in order to get 
CGLAB working on OSX Lion.  The good news is that I got it working and tested using the
Delaunay demo.  The bad 
news is the amount of code editing (though simple) and preparation of the Scilab
environment variables necessary to 
accomplish the CGLAB build.  I hope that the information that I have figured out is
helpful.

See you on the forge,

Craig
Comment from florian de vuyst -- January 11, 2013, 10:25:15 AM    
Hi,

I am from ENS Cachan,
I think it coulb be valuable to integrate by default CGLAB into Scilab, for any OS, 
especially under windows. 

At least, to creat a CGLAB atom available under Windows,

For my own interest, I could switch to Scilab for my PDE-based computer experiments and 
course (see http://m2s.jimdo.com ),

Regards,
florian


Answer from Samuel Gougeon -- August 27, 2015, 05:11:21 PM    
> I think it coulb be valuable to integrate by default CGLAB into Scilab, for any OS, 
> especially under windows. 
> 
> At least, to creat a CGLAB atom available under Windows,

I definitely agree that this excellent toolbox misses 80% of its potential users being
unavailable for Windows.
Extending it to Windows could be a priority. Unfortunately, all people involved in its
Forge have left Scilab.
By the way, although the Forge claims that CGLAB has been ported to MacOS, this portage is
not available on ATOMS. It's a pity.
Comment from Tony Scott -- February 17, 2016, 09:09:39 AM    
Hi Guys

I recently installed Scilab on a MAC OS X El Capitan  version 10.11.3

I tried to install  CGLAB via atoms namely:

-->atomsInstall("cglab")
 ans  =
 
!cglab  2.0-1  allusers  SCI/contrib/cglab/2.0-1  I  !


-->atomsAutoload()

Start CG-lab
	Load macros
	Load gateways
atomsLoad: An error occurred while loading 'cglab-2.0-1':
	link: The shared archive was not loaded: dlopen(/Applications/scilab-
5.5.2.app/Contents/MacOS/share/scilab/contrib/cglab/2.0-1/sci_gateway/c//../../src/cpp/libcgal_cpp.dylib,
10): image 
not found
 ans  =
 
     []

I seem to getting similar installation error messages I have seen reported in this forum. 
We are in Feb. 2016 and
the MAC version apparently downloaded version 2.0 of CGLAB.

What can be done here?

best wishes

Tony 
Leave a comment
You must register and log in before leaving a comment.
Login with GitLab
Email notifications
Send me email when this toolbox has changes, new files or a new release.
You must register and log in before setting up notifications.