Last active
December 17, 2015 11:48
-
-
Save guitorri/5604523 to your computer and use it in GitHub Desktop.
My notes on compiling Gramps on OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
My notes on compiling Gramps on OSX | |
========== | |
System: | |
OSX 10.8.3 | |
XCode 4.6.3 | |
~ $ xcodebuild -showsdks | |
OS X SDKs: | |
Mac OS X 10.7 -sdk macosx10.7 | |
OS X 10.8 -sdk macosx10.8 | |
========== | |
Sources: | |
http://www.gramps-project.org/wiki/index.php?title=Mac_OS_X:Build_from_source:Application_package | |
https://developer.gnome.org/jhbuild/stable/command-reference.html.en | |
https://live.gnome.org/GTK%2B/OSX/Building#Installing_XCode_3_on_XCode_4_systems | |
http://winswitch.org/dev/macosx.html | |
https://github.com/translate/virtaal/blob/master/devsupport/mac-bundle/builder.sh | |
In case you try to install XCode 3 and encounter the message: | |
'In order to continue installation, please close the following application: | |
iTunes' | |
http://www.macosxtips.co.uk/index_files/fix-xcode-instsaller-please-close-itunes.php | |
========== | |
1) Checkout Gramps 'setup files': | |
cd ~ | |
svn co https://svn.code.sf.net/p/gramps/code/trunk/mac gramps-mac | |
========== | |
2) Setup jhbuild / gtk (re-run to get the latest modulesets and jhbuildrc) | |
cd ~ | |
wget http://git.gnome.org/browse/gtk-osx/plain/gtk-osx-build-setup.sh | |
sh gtk-osx-build-setup.sh | |
========== | |
3) Add into '~/.bash_profile': | |
export PATH=~/.local/bin:$PATH # make jhbuild available on path | |
alias jhbuild="PATH=~/gtk/bin:$PATH jhbuild" # let it use its own tools | |
========== | |
4)'If you're going to bundle GRAMPS, you'll need to add [to] .jhbuildrc-custom'. | |
Uncomment the line 57: | |
_gtk_osx_use_jhbuild_python = True | |
========== | |
5) Start compiling base system: | |
$jhbuild bootstrap --ignore-system | |
========== | |
6) Compile dependencies: | |
$jhbuild build meta-gtk-osx-bootstrap meta-gtk-osx-freetype meta-gtk-osx-gtk3 berkeleydb python | |
========== | |
7) Compile remaining dependencies and finaly Gramps | |
$jhbuild --moduleset=gramps-mac/gramps.modules build gramps-svn | |
==> Problem: | |
mv: rename .deps/update_mime_database-update-mime-database.Tpo to .deps/update_mime_database-update-mime-database.Po: No such file or directory | |
make[1]: *** [update_mime_database-update-mime-database.o] Error 1 | |
make[1]: *** Waiting for unfinished jobs.... | |
Merging translations into freedesktop.org.xml. | |
Merging translations into freedesktop.org.xml. | |
CREATED freedesktop.org.xml | |
CREATED freedesktop.org.xml | |
make: *** [check-recursive] Error 1 | |
*** Error during phase build of shared-mime-info: ########## Error running make -j 16 *** [24/44] | |
==> Solution: '[1] Rerun phase checkout' and it should continue. | |
Wait for: | |
*** success *** [44/44] | |
========== | |
8) Launch Gramps | |
$jhbuild shell | |
$gramps | |
==> Problem: | |
~ $ jhbuild shell | |
Prefix: /Users/guilherme/gtk/inst | |
Entered jhbuild shell, type 'exit' to return. | |
~ $ gramps | |
ResourcePath.ERROR: Resource Path /Users/guilherme/gtk/inst/_jhbuild/root-gramps-svn/Users/guilherme/gtk/inst/share is invalid | |
~ $ ls gtk/inst/_jhbuild/ | |
manifests packagedb.xml | |
==> John Ralls reply | |
To fix the startup problem, cd to ~/gtk/src/gramps-svn and run | |
python setup.py install | |
which should re-write the ResourcePath without the jhbuild noise. Note that if you're going to work on | |
Gramps you'll want to just run | |
python Gramps.py | |
from the source directory so you don't have an install in your write-test loop. | |
---- | |
needed to install XCode 3 | |
setup_sdk("10.5", "10.5",["i386"]) | |
skip.append("perl-xml-parser") | |
export DEVELOPER_DIR=/Users/guilherme/local/developer/ | |
$DEVELOPER_DIR/usr/bin jhbuild ... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment