Posted by: Wildan Maulana | July 28, 2009

Compiling grsync on Mac OS X 10.4 (Tiger)

Update :

The grsync bundle for Tiger now available for download in the following address.

Download MacPorts and install preq. package to build grsync

  1. $export rsync_proxy=username:password:[proxy-host]:port$port -d selfupdate

    $port install gtk2

    Picture 1unpack grsync source coderun make & make install, add /usr/local/bin to your PATH

    and run :

    $grsync

    and bump…, i get this error :

    Picture 7install xorg to solve the problem

    $port install xorg

    i get this eror when try to install the xorg :

    --->  Building xterm
    Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xterm/work/xterm-243" && make all " returned error 2
    Command output: /usr/bin/gcc-4.0 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 -DSIGWINCH=28  -I/opt/local/include  -DFUNCPROTO=15 -DOSMAJORVERSION=8 -DOSMINORVERSION=11  -I/opt/local/include -I/opt/local/include/freetype2  -O2  -c ./charproc.c
    ./charproc.c: In function 'in_put':
    ./charproc.c:3364: error: 'fd_mask' undeclared (first use in this function)
    ./charproc.c:3364: error: (Each undeclared identifier is reported only once
    ./charproc.c:3364: error: for each function it appears in.)
    make: *** [charproc.o] Error 1
    
    Error: The following dependencies failed to build: xorg-apps xterm xtrap xorg-libXTrap xorg-trapproto xvinfo xorg-libXv xorg-videoproto xwd xwininfo xwud xorg-server xorg-evieproto xorg-fonts font-adobe-100dpi xorg-font-util font-adobe-75dpi font-adobe-utopia-100dpi font-adobe-utopia-75dpi font-adobe-utopia-type1 font-alias font-arabic-misc font-bh-100dpi font-bh-75dpi font-bh-lucidatypewriter-100dpi font-bh-lucidatypewriter-75dpi font-bh-ttf font-bh-type1 font-bitstream-100dpi font-bitstream-75dpi font-bitstream-speedo font-bitstream-type1 font-cronyx-cyrillic font-cursor-misc font-daewoo-misc font-dec-misc font-ibm-type1 font-isas-misc font-jis-misc font-micro-misc font-misc-cyrillic font-misc-ethiopic font-misc-meltho font-misc-misc font-mutt-misc font-schumacher-misc font-screen-cyrillic font-sony-misc font-sun-misc font-winitzki-cyrillic font-xfree86-type1 xorg-encodings xorg-glproto xorg-resourceproto
    Error: Status 1 encountered during processing.
    
    

UPDATE :

Following Beliveau advice, i unistall gtk installed using port (port uninstall gtk2) and build GTK OS X as described on the following address :

http://sourceforge.net/apps/trac/gtk-osx/wiki/Build

You have to make sure that the following command run successfully without any error :

$ jhbuild bootstrap
$ jhbuild build meta-gtk-osx-bootstrap
$ jhbuild build meta-gtk-osx-core

Here is grsync on OS X 10.4 aka Tiger (MacBook) :

Grsync on OS X 10.4

Grsync on OS X 10.4

Creating Application Bundle

After following Éric Béliveau instruction send by email, i can create grsync app bundle for my OS X 10.4 and everything run without any problem.

Due to limited upstream bandwidth and limited space on my personal hosting, i’ll try to upload
the package at http://sourceforge.telkomspeedy.com/projects/grsync/

Grsync Link on the Dock

Grsync Link on the Dock

Reference :

[1] MacPorts Guide, http://guide.macports.org/
[2] grsync Mac port, only for leopard (mac OS X 10.5) on intel, http://grsync-mac.tuxfamily.org/?lang=en
[3] GTK OS X Bundling, http://sourceforge.net/apps/trac/gtk-osx/wiki/Bundle


Responses

  1. The best is to use the X version from apple if you want to compile that way.

  2. Hi Beliveau,

    Thanks for the input.

    Bear in mind, i’m new in Mac, just got it 2 days ago.
    How can i use X version from apple ? i see there is no option for this (./configure –help)

    Is there any documentation you write to build grsync for mac on intel ?

    Thanks!

    Btw, you are the man behind grsync port for mac right .. ?🙂

  3. Hi Wildan,

    yes i am the man behind grsync mac and i am new to mac too, but much longer than 2 days🙂

    At this time, I haven’t write any documentation on how to build grsync for mac, but i will soon. There is no modifications to do in the source code to compile. I used –prefix=/opt/local as /opt/local/bin is the place where Darwinport install all the binaries …

    The X11 from apple is included on your Tiger DVD or can be downloaded from apple website. You only have to click on the package and should install by itseft.

    But, for my version of grsync, i used the native port of GTK that don’t use X. Instruction to build this GTK are here (should works on tiger) :http://sourceforge.net/apps/trac/gtk-osx/wiki/Build (build from every packages, don’t link anytings to darwinport). When building grsync you should be in jhbuild shell ($jhbuild shell). if that works, i can send you files to make a nice app bundle.

    I won’t have Internet connection until monday.

  4. AND most of the darwinport app will works with apple X11.

  5. FYI. I use macports and not darwinport.

    MacPorts *is* (or is the successor to) DarwinPorts.. (http://www.nabble.com/Darwin-Ports-td24648372.html)

    Ok, i’ll try your suggestion tomorrow and will inform you the result

    Thanks!
    Have a nice weekend …🙂

  6. If you don’t have your tiger DVD these links can help :

    http://support.apple.com/downloads/X11_for_Mac_OS_X_1_0

    http://support.apple.com/downloads/X11_Update_2006_1_1_3

  7. I use macports too🙂 but most people still call it darwinport !

  8. Hi Beliveau,

    Sorry, i just get a good internet connection today.

    I just re-build using procedure described at GTK-OSX Wiki page .., and it work’s !

    Thanks!

    Can you send me the file for crearing nice app bundle for grsync ?🙂 You can send the files to my gmail address : wildan.m[at]gmail.com

    I’ll upload the final package to the web.

    Warm Regards,
    Wildan

  9. Yeah ! Good work Wildan🙂 I’ll send the files to you this evening with instructions.

  10. very nice info…let me add my 2 cents to this blog by sharing a really good resource of mac applications at http://appslog.com/blog/1-blog/820-huge-list-of-very-useful-mac-applications.html

    they have hosted a huge list for mac users.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: