Re: [Inkscape-devel] Error during building the Inkscape 0.45.
On 2007-03-16, at 09:20, jiho wrote:
I think that with gcc 3.3 on Mac you had to use: #define isNaN(_a) (__isnan(_a)) #define isFinite(_a) (__isfinite(_a)) This is judging by the state of isnan.h before I started committing Tiger changes to it.
Could you please see if it compiles with: #define isFinite(_a) (__isfinite(_a))
If it does I will add the following case to src/isnan.h for SVN and for the release branch: #if defined(__APPLE__) && __GNUC__ == 3 # define isFinite(_a) (__isfinite(_a)) // MacOSX definition gcc 3.x
Hi areozol, so michael looked at your issue with his usual efficiency. here is the modified file (attached). you need to put it in src/ in the inkscape directory (replacing the version that is already there) and then try to recompile (./osx-build b). In addition my build script is now in Inkscape code base so will be in the next version (in 0.45.1). If your compilation issue is solved, we are close to having Inkscape packages for 10.3.9!
<isnan.h> Keep me informed.
I have substituted the appropriate header files with this attachements, and I still get this error:
object-edit.cpp: In function `void sp_spiral_outer_set(SPItem*, const NR::Point&, const NR::Point&, unsigned int)': object-edit.cpp:921: error: `isfinite' undeclared in namespace `std' make[2]: *** [object-edit.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
I have started the compilation just from scratch, from freshly unpacked archives, just for sure.
On Fri, 16 Mar 2007, Areozol wrote:
On 2007-03-16, at 09:20, jiho wrote:
I think that with gcc 3.3 on Mac you had to use: #define isNaN(_a) (__isnan(_a)) #define isFinite(_a) (__isfinite(_a)) This is judging by the state of isnan.h before I started committing Tiger changes to it.
Could you please see if it compiles with: #define isFinite(_a) (__isfinite(_a))
If it does I will add the following case to src/isnan.h for SVN and for the release branch: #if defined(__APPLE__) && __GNUC__ == 3 # define isFinite(_a) (__isfinite(_a)) // MacOSX definition gcc 3.x
so michael looked at your issue with his usual efficiency. here is the modified file (attached). you need to put it in src/ in the inkscape directory (replacing the version that is already there) and then try to recompile (./osx-build b).
I have substituted the appropriate header files with this attachements, and I still get this error:
object-edit.cpp: In function `void sp_spiral_outer_set(SPItem*, const NR::Point&, const NR::Point&, unsigned int)': object-edit.cpp:921: error: `isfinite' undeclared in namespace `std' make[2]: *** [object-edit.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
I have started the compilation just from scratch, from freshly unpacked archives, just for sure.
You shouldn't see that error with the updated isnan.h -- you may still see an error but it would be a different one. Something must have gone wrong... possibly the file was copied into the wrong directory, or the isnan.h had an error.
Could you please try again by copying this version of isnan.h: http://www.csse.monash.edu.au/~mwybrow/isnan.h over the existing one in the src/ directory inside the unzipped inkscape-0.45 directory, and then run the build process as jiho specified above.
Thanks, Michael
participants (2)
-
Areozol
-
Michael Wybrow