Problem with Mac OS X compile...
Hi,
trying to compile from a fresh SVN update, after following instructions on:
http://wiki.inkscape.org/wiki/index.php/CompilingMacOsX
I've got Mac OS 10.4.6, a full unstable fink installation, svn update from this evening. Various libs, like gtk* are installed (took all day to build on this laptop). gcc is 4.0.0 20041026. Ran configure, make...
Very early on, 'make' reports:
--- snip --- make make all-recursive Making all in src if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -DPOTRACE="potrace" -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/sigc++-2.0 -I/sw/lib/sigc++-2.0/include -I/sw/include/libxml2 -I/sw/include -I/sw/include/pango-1.0 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/sw/include/gtk-2.0 -I/sw/include/atk-1.0 -I/sw/lib/gtk-2.0/include -I/sw/include/glibmm-2.4 -I/sw/lib/glibmm-2.4/include -I/sw/include/pangomm-1.4 -I/sw/include/atkmm-1.6 -I/sw/include/gdkmm-2.4 -I/sw/lib/gdkmm-2.4/include -I/sw/include/gtkmm-2.4 -I/sw/lib/gtkmm-2.4/include -I../cxxtest -I/sw/include -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -O3 -Wall -MT conn-avoid-ref.o -MD -MP -MF ".deps/conn-avoid-ref.Tpo" -c -o conn-avoid-ref.o conn-avoid-ref.cpp; \ then mv -f ".deps/conn-avoid-ref.Tpo" ".deps/conn-avoid-ref.Po"; else rm -f ".deps/conn-avoid-ref.Tpo"; exit 1; fi sp-object.h:226: warning: unused parameter 'title' sp-object.h:231: warning: unused parameter 'desc' ./libnr/nr-maybe.h:41: warning: unused parameter 'n' ./libnr/nr-maybe.h:42: warning: unused parameter 'n' ./util/share.h:34: error: declaration of 'Inkscape::Util::ptr_shared<T>::operator bool() const' ./util/share.h:32: error: conflicts with previous declaration 'Inkscape::Util::ptr_shared<T>::operator const T1*() const' ./util/share.h: In instantiation of `Inkscape::Util::ptr_shared<char>': ./util/share.h:116: instantiated from here ./util/share.h:22: error: declaration of 'Inkscape::Util::ptr_shared<T>::operator bool() const [with T = char]' ./util/share.h:32: error: conflicts with previous declaration 'Inkscape::Util::ptr_shared<T>::operator const T1*() const [with T1 = T1, T = char]' xml/simple-node.cpp:102: warning: unused parameter 'prev' xml/simple-node.cpp:102: warning: unused parameter 'prev' xml/simple-node.cpp:169: warning: unused parameter 'old_content' xml/simple-node.cpp:169: warning: unused parameter 'old_content' xml/simple-node.cpp:207: warning: unused parameter 'old_value' xml/simple-node.cpp:207: warning: unused parameter 'old_value' xml/simple-node.cpp:388: warning: unused parameter 'is_interactive' xml/simple-node.cpp:622: warning: unused parameter 'is_interactive' conn-avoid-ref.cpp:248: warning: unused parameter 'mp' make[2]: *** [conn-avoid-ref.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 --- snip ---
I hope this is helpful. Can anyone see where I went wrong?
Thanks.
On Apr 19, 2006, at 12:51 PM, Andrew Wilson wrote:
I've got Mac OS 10.4.6, a full unstable fink installation, svn update from this evening. Various libs, like gtk* are installed (took all day to build on this laptop). gcc is 4.0.0 20041026. Ran configure, make...
Very early on, 'make' reports:
I'm not sure, but for my setup I had to explicitly use GCC 3.3 since that is what the fink projects were using.
Mmm, that's better. I tweaked the suggested set_env_variables.sh script with
export CC="gcc-3.3" export CXX="g++-3.3"
make is building now...
On Wed, 19 Apr 2006, Jon A. Cruz wrote:
On Apr 19, 2006, at 12:51 PM, Andrew Wilson wrote:
I've got Mac OS 10.4.6, a full unstable fink installation, svn update from this evening. Various libs, like gtk* are installed (took all day to build on this laptop). gcc is 4.0.0 20041026. Ran configure, make...
Very early on, 'make' reports:
I'm not sure, but for my setup I had to explicitly use GCC 3.3 since that is what the fink projects were using.
On Apr 19, 2006, at 1:07 PM, Andrew Wilson wrote:
Mmm, that's better. I tweaked the suggested set_env_variables.sh script with
export CC="gcc-3.3" export CXX="g++-3.3"
make is building now...
Good.
Oh, and here's the contents of my setup script I've got laying around
export CC='gcc-3.3' export CFLAGS='-Wall -W -g -O0' export CPP='g++-3.3 -E' export CXX='g++-3.3' export CXXCPP='g++-3.3 -E' export CXXFLAGS='-D__LONG_DOUBLE_128__ -g -O0 -I/sw/include' export LDFLAGS='-L/sw/lib' export LIBS='-lgc -lSystemStubs'
at one point the LONG_DOUBLE define was needed, but I'm not sure. And if you have link problems at the end, the -lSystemStubs was the more common fix.
Inkscape compiles and runs. I didn't need LONG_DOUBLE, indeed just ensuring that gcc-3.3 was used proved to be sufficient.
The dev version performs a 100-circle path-union operation in about 5 seconds on my laptop. That's a lot faster than with the current stable release ;)
On Wed, 2006-04-19 at 21:05, Jon A. Cruz wrote:
On Apr 19, 2006, at 1:07 PM, Andrew Wilson wrote:
Mmm, that's better. I tweaked the suggested set_env_variables.sh script with
export CC="gcc-3.3" export CXX="g++-3.3"
make is building now...
Good.
Oh, and here's the contents of my setup script I've got laying around
export CC='gcc-3.3' export CFLAGS='-Wall -W -g -O0' export CPP='g++-3.3 -E' export CXX='g++-3.3' export CXXCPP='g++-3.3 -E' export CXXFLAGS='-D__LONG_DOUBLE_128__ -g -O0 -I/sw/include' export LDFLAGS='-L/sw/lib' export LIBS='-lgc -lSystemStubs'
at one point the LONG_DOUBLE define was needed, but I'm not sure. And if you have link problems at the end, the -lSystemStubs was the more common fix.
On 20 Apr 2006, at 10:27 , Andrew Wilson wrote:
Inkscape compiles and runs. I didn't need LONG_DOUBLE, indeed just ensuring that gcc-3.3 was used proved to be sufficient.
I updated the wiki page about compiling on OS X in order to specify when gcc-3.3 was necessary about a week ago so it should have worked. The idea is that the same gcc version must be used in fink and in inkscape. I thought that gcc 3.3 was used on 10.3 and on 10.4 if your Fink tree was installed before, on 10.3. In fresh Finks installs on 10.4, gcc-4.0 is used by default. The fact that you followed the wiki indications and that compilation failed makes me think that the indications are wrong. what is the status of your fink installation (fresh on 10.4 or inherited from 10.3)? what is the version of gcc used in fink?
thank you in advance for your comments.
The dev version performs a 100-circle path-union operation in about 5 seconds on my laptop. That's a lot faster than with the current stable release ;)
JiHO --- Windows, c'est un peu comme le beaujolais nouveau : a chaque nouvelle cuvee on sait que ce sera degueulasse, mais on en prend quand meme par masochisme. --- http://jo.irisson.free.fr/
I installed fink from scratch on Mac OS X 10.4.6 a couple of days ago. The default gcc used was gcc-4.0 (gcc version 4.0.0 20041026 compiled by Apple), which had problems compiling the inkscape source.
On Thu, 20 Apr 2006, jiho wrote:
On 20 Apr 2006, at 10:27 , Andrew Wilson wrote:
Inkscape compiles and runs. I didn't need LONG_DOUBLE, indeed just ensuring that gcc-3.3 was used proved to be sufficient.
I updated the wiki page about compiling on OS X in order to specify when gcc-3.3 was necessary about a week ago so it should have worked. The idea is that the same gcc version must be used in fink and in inkscape. I thought that gcc 3.3 was used on 10.3 and on 10.4 if your Fink tree was installed before, on 10.3. In fresh Finks installs on 10.4, gcc-4.0 is used by default. The fact that you followed the wiki indications and that compilation failed makes me think that the indications are wrong. what is the status of your fink installation (fresh on 10.4 or inherited from 10.3)? what is the version of gcc used in fink?
thank you in advance for your comments.
The dev version performs a 100-circle path-union operation in about 5 seconds on my laptop. That's a lot faster than with the current stable release ;)
JiHO
Windows, c'est un peu comme le beaujolais nouveau : a chaque nouvelle cuvee on sait que ce sera degueulasse, mais on en prend quand meme par masochisme.
On Thu, 20 Apr 2006, Andrew Wilson wrote:
I installed fink from scratch on Mac OS X 10.4.6 a couple of days ago. The default gcc used was gcc-4.0 (gcc version 4.0.0 20041026 compiled by Apple), which had problems compiling the inkscape source.
If you have a fink tree compiled with gcc-4.0 you likely want to use gcc-4.0 to compile Inkscape too. Infact, anyone with a new Intel Mac only has this option since only gcc-4.0 produce code for the Intels (gcc-3.3 can be installed on these machines but only as a cross-compiler that can produce PPC code.)
I was just able to compile Inkscape from scratch on 10.4.6 with a fresh fink 10.4 install, so the only difference in the fact I'm using gcc 4.0.1 from Xcode 2.2.1, which is "(GCC) 4.0.1 (Apple Computer, Inc. build 5250)" I'd try updating to Xcode 2.2.1 and see if this fixes the compiler error you saw.
Cheers, Michael
participants (4)
-
Andrew Wilson
-
jiho
-
Jon A. Cruz
-
Michael Wybrow