1. Thank you so much for your time and your answer.
I need some time to understand details of your writing, including:
- how to check my Fink instalation and uninstall it,
- witch environment variables clean up
- and how to set up or clean the "quartz variant"
(I guess it is enough to edit /opt/local/etc/macports/variants.conf
changing this: "+quartz +atsui +no_x11 -x11")
I can confirm I use Mac OS X Leopard 10.5.8 (64 bit) on a
MacBookPro4,1 with Intel Core 2 Duo.
File System: Journaled HFS+
2. I did try in macport also the following command:
sudo port install inkscape
without any script and it worked:
I get a working program, with no X11, but is fairly unstable:
(inkscape:43802): GVFS-RemoteVolumeMonitor-WARNING **: cannot open
directory /opt/local/share/gvfs/remote-volume-monitors: Errore
nell'aprire la directory "/opt/local/share/gvfs/remote-volume-
monitors": No such file or directory
Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at http://www.inkscape.org
with a detailed description of the steps leading to the crash, so we
can fix it.
I installed dependencies according to
-bash-3.2$ port installed cairo
The following ports are currently installed:
cairo @1.10.2_4+no_x11+quartz (active)
pango @1.28.4_1+no_x11+quartz (active)
python26 @2.6.7_1 (active)
gtk2 @2.24.6_0+no_x11+quartz (active)
poppler @0.16.7_0+quartz (active)
3. I can change my script according to your attached.
the script I downloaded contains folowing text:
# Set environment variables
# Specific environment variables
# automake seach path
# configure search path
# export CPPFLAGS="-I$LIBPREFIX/include -I /System/Library/Frameworks/
# compiler arguments
export CFLAGS="-O3 -Wall"
so I added
+# use Apple's gcc 4.2
get following error:
-bash-3.2$ ./osx-build.sh a c b i -s p
./osx-build.sh: line 173: +#: command not found
./osx-build.sh: line 239: syntax error near unexpected token `fi'
./osx-build.sh: line 239: `fi'
4. I even downloaded versions like "Inkscape-0.48.1-1-LEOPARD+" and
all regressions to 0.47
does not work, so I guess I missed up my system but I do not know how.
Should I try again changing /opt/local/etc/macports/variants.conf
from: "+quartz +atsui +no_x11 -x11")
removing "+quartz +no_x11 -x11"
and activitig all the dependencies to X11 version (cairo / pango /
python26 / gtk2 / poppler) ?
Is that enough?
Il giorno 15/set/11, alle ore 12:17, ~suv ha scritto:
> On 14/9/11 19:14, daniele rossi wrote:
>> using macport Version: 2.0.3
>> bzr branch lp:inkscape
>> cd inkscape/packaging/macosx/
>> -bash-3.2$ ./osx-build.sh a c b i -s p
>> checking build system type... i386-apple-darwin9.8.0
>> checking host system type... i386-apple-darwin9.8.0
> Is it correct to assume that you work on Mac OS X Leopard 10.5.8
> on an Intel Mac?
>> GTK+ backend target: quartz
> See 
>> make all-recursive
>> Making all in src
>> make all-am
>> CXX conn-avoid-ref.o
>> In file included from helper/geom-curves.h:15,
>> from conn-avoid-ref.cpp:23:
>> ./2geom/hvlinesegment.h:1: error: stray ‘\239’ in program
>> ./2geom/hvlinesegment.h:1: error: stray ‘\187’ in program
>> ./2geom/hvlinesegment.h:1: error: stray ‘\191’ in program
>> make: *** [conn-avoid-ref.o] Error 1
>> make: *** [all] Error 2
>> make: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>> Build failed
> Based on googling the error message: for whatever reason your tool
> (GCC, CPP, libiconv, ... I don't know - I'm not a developer myself)
> seems to fail due to an encoding issue -> errors when encountering
> non-printable characters in a source file, or possibly the BOM - which
> that header file does have, AFAICT:
>> $ od -c src/2geom/hvlinesegment.h | head -n 1
>> 0000000 357 273 277 / * * \n * \ f i l
>> e \n
> The numbers in the error messages (\239, \187, \191) are supposed to
> octal (?), but if that were true, why do they include the digits '8'
> - Compiler version:
>> checking GNU compiler version... 4.0.1
> Have you tried using Apple's GCC 4.2.1 instead of Apple's GCC 4.0?
> (see attached patch for 'packaging/macosx/osx-build.sh')
> - Environment:
> You have fink installed along with MacPorts: does it possibly
> with your build tool chain from Xcode and MacPorts?
> - File system/Unicode:
> Or the encoding issue is possibly related to the local file system
> and/or the bazaar configuration?
> Note: Building inkscape trunk with GTK+/X11 2.24.4 as well as with
> GTK+/Quartz 2.24.4 on Mac OS X 10.5.8 (i386) with Apple's GCC
> 4.2.1 works for me without above build failure.  AFAICT based
> on older log files, I did not encounter such errors either while
> still using Apple's GCC 4.0.
> I don't have (or had) Fink installed, the file system is
> 'Journaled HFS+', locale ($LANG) in the shell is 'en_US.UTF-8'.
>  You are trying to build Inkscape.app with gtk2+no_x11+quartz?
> Please note that using Inkscape with the Quartz backend of GTK+ is
> WIP (unstable), currently (for trunk) has only been tested with an
> alternative packaging script (as far as I'm aware of), and requires
> patches to the sources as described in the related blueprint (at
> least those removing the ige-mac-* stuff, other ones have already
> been committed to trunk):
>  Caveat: I'm still on MacPorts 1.9.2 - postponing the upgrade to
> MacPorts 2.0.x because the release of Lion brought too many changes
> and I want to avoid any risks to break my current build system. I
> can't comment on whatever changes MacPorts 2.0.x might have
> introduced (in general, and with regard to fixes to make ports
> compatible for Lion).
> === modified file 'packaging/macosx/osx-build.sh'
> --- packaging/macosx/osx-build.sh 2010-04-20 12:22:54 +0000
> +++ packaging/macosx/osx-build.sh 2011-09-15 06:55:34 +0000
> @@ -170,6 +170,9 @@
> # compiler arguments
> export CFLAGS="-O3 -Wall"
> export CXXFLAGS="$CFLAGS"
> +# use Apple's gcc 4.2
> +export CC="/usr/bin/gcc-4.2"
> +export CXX="/usr/bin/g++-4.2"
> if [[ "$UNIVERSAL" == "t" ]]