On Mon, Feb 27, 2012 at 12:05 PM, marco atzeri <marco.atz...@gmail.com> wrote:
> On 2/27/2012 8:38 AM, Juan Pablo Carbajal wrote:
>>
>> On Sun, Feb 26, 2012 at 1:14 PM, marco atzeri<marco.atz...@gmail.com>
>>  wrote:
>
>
>>
>> The compilation flag -mieee-fp is not recognized by mkoctfile. The
>> problem seems not to be related to geometry.
>> Now, the only thing that needs compilation is the octclip part of
>> geometry and in its make file there is no -mieee-fp flag.
>>
>> In the scripts you provided I fail to see who is adding this flag. Did
>> you change the make file of the octclip package?
>>
>
> I guess it is introduced by some form of
> recursive call/declaration of mkoctfile inside the Makefile
>
> Replacing the Makefile with the one attached, derived by other packages,
> it works:
>
> -----------------------------------------------------------------------
> + pkg ('install', '-noauto', '-global', '-verbose',
> 'geometry-1.4.0svn9614.tar.gz')
> mkdir (/tmp/oct-28d44c.3)
> untar (geometry-1.4.0svn9614.tar.gz, /tmp/oct-28d44c.3)
>
> warning: Copying subfolder src to package main dir, but multiple Makefiles
> are not handled
> make: Entering directory `/tmp/oct-28d44c.3/geometry/src'
> /usr/bin/mkoctfile-3.6.1 -I. -c compilador.c
> /usr/bin/mkoctfile-3.6.1 -I. -c errores.c
> /usr/bin/mkoctfile-3.6.1 -I. -c eucli.c
> /usr/bin/mkoctfile-3.6.1 -I. -c fgeneral.c
> /usr/bin/mkoctfile-3.6.1 -I. -c greiner.c
> /usr/bin/mkoctfile-3.6.1 -I. -c polig.c
> /usr/bin/mkoctfile-3.6.1 -I. -c ptopol.c
> /usr/bin/mkoctfile-3.6.1 -I. -c segmento.c
> /usr/bin/mkoctfile-3.6.1 -I. -c ventorno.c
> /usr/bin/mkoctfile-3.6.1 -v  -I. compilador.o errores.o eucli.o fgeneral.o
> greiner.o polig.o  ptopol.o segmento.o ventorno.o -s _oc_polybool.cc
> g++ -c -I/usr/include/octave-3.6.1/octave/..
> -I/usr/include/octave-3.6.1/octave -mieee-fp -I/usr/include/freetype2 -g -O2
> -pipe -I. _oc_polybool.cc -o _oc_polybool.o
> g++ -shared -Wl,--export-all-symbols -Wl,--enable-auto-import
> -Wl,--enable-runtime-pseudo-reloc -o compilador.oct compilador.o errores.o
> eucli.o fgeneral.o greiner.o polig.o ptopol.o segmento.o ventorno.o
> _oc_polybool.o -L/usr/lib/octave/3.6.1 -loctinterp -loctave -lcruft
> -Wl,-no-undefined
> strip compilador.oct
> rm fgeneral.o eucli.o polig.o compilador.o greiner.o segmento.o errores.o
> ventorno.o ptopol.o
> make: Leaving directory `/tmp/oct-28d44c.3/geometry/src'
> copyfile /tmp/oct-28d44c.3/geometry/src/compilador.oct
> /tmp/oct-28d44c.3/geometry/inst/i686-pc-cygwin-api-v48+
> + ## 1
> + dirlist = {"geom2d", "io", "polygons2d", "shape2d", "octclip", "graphs"};
> + dirname = fileparts (canonicalize_file_name (mfilename ("fullpath")));
> + ## If we are in Architecture dependent folder add from outside
> + arch = cstrcat (octave_config_info ("canonical_host_type"), "-",
> octave_config_info ("api_version"));
> + pp = strsplit (dirname, filesep (), true);
> + if strcmp (arch, pp {__end__})
> +   dirname = [strcat(filesep (), {pp{1:__end__ - 1}}){:}];
> + endif;
> + dirname = [strcat(filesep (), {pp{1:__end__ - 1}}){:}];
> + if (!exist (fullfile (dirname, "inst"), "dir"))
> +   for ii = 1:length (dirlist)
> +     addpath ([dirname, filesep, dirlist{ii}], "-end")
> +   endfor;
> + else
> +   warning ("geometry:Devel", "Adding path for testing.");
> +   for ii = 1:length (dirlist)
> +     addpath ([dirname, "/inst/", dirlist{ii}])
> +   endfor;
> + endif;
> + for ii = 1:length (dirlist)
> +   addpath ([dirname, filesep, dirlist{ii}], "-end")
> + endfor;
> + addpath ([dirname, filesep, dirlist{ii}], "-end")
> warning: addpath:
> /pub/devel/octave-forge/prova/octave-forge-20120224-1/inst/usr/lib/octave/packages/geometry-1.4.0/geom2d:
> No such file or directory
> + addpath ([dirname, filesep, dirlist{ii}], "-end")
> warning: addpath:
> /pub/devel/octave-forge/prova/octave-forge-20120224-1/inst/usr/lib/octave/packages/geometry-1.4.0/io:
> No such file or directory
> + addpath ([dirname, filesep, dirlist{ii}], "-end")
> warning: addpath:
> /pub/devel/octave-forge/prova/octave-forge-20120224-1/inst/usr/lib/octave/packages/geometry-1.4.0/polygons2d:
> No such file or directory
> + addpath ([dirname, filesep, dirlist{ii}], "-end")
> warning: addpath:
> /pub/devel/octave-forge/prova/octave-forge-20120224-1/inst/usr/lib/octave/packages/geometry-1.4.0/shape2d:
> No such file or directory
> + addpath ([dirname, filesep, dirlist{ii}], "-end")
> warning: addpath:
> /pub/devel/octave-forge/prova/octave-forge-20120224-1/inst/usr/lib/octave/packages/geometry-1.4.0/octclip:
> No such file or directory
> + addpath ([dirname, filesep, dirlist{ii}], "-end")
> warning: addpath:
> /pub/devel/octave-forge/prova/octave-forge-20120224-1/inst/usr/lib/octave/packages/geometry-1.4.0/graphs:
> No such file or directory
> + warning ('off', 'Octave:fopen-file-in-path');
> + clear ('dirlist', 'dirname', 'pp')
> + endscript;
>
> For information about changes from previous versions of the geometry
> package, run 'news ("geometry")'.
> + pkg ('unload', 'geometry')
>
> -------------------------------------------------------------
>
> attached the list of files installed
>
> Regards
> Marco

I modified the package geometry/octclip to include your Makefile.
Thank you very much
@José: You may want to add this Makefile to your distribution.
http://octave.svn.sf.net/viewvc/octave/trunk/octave-forge/main/geometry/inst/octclip/src/Makefile?revision=9710&view=markup

-- 
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to