Hi Pieter,

thanks for your advice, now it is working in 64-bit!

There seems to be a problem with libgit/src/*.o files which are already compiled, so I had to manually run a 'make clean' in libgit2 to get rid of them.

I changed the script to:

...
cd libgit2
ARCHS=`ruby -e 'puts ARGV[0].split.map {|a| "-arch #{a}"}.join(" ")' "$VALID_ARCHS"` # if (libgit2_archs.txt != "$ARCHS") goto noclean # symolic code, I'm not a bash programmer, uuh!
# make clean
#noclean:
# echo "$ARCHS" > libgit2_archs.txt
rm -f libgit2.a
make CFLAGS="$ARCHS"
ranlib libgit2.a

The build settings you asked for are simply accessible via environment variables.

For the names you have to go to XCcode > Project > Edit Project Settings and right-click on 'Valid Architectures' you get a Menu and then choose 'Show Setting Names'

http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/XcodeBuildSystem/300-Build_Settings/bs_build_settings.html

---

Back to MacRuby in GitX:

I defined my own Controller in MacRuby, f.e.:

class RubyController
attr_accessor :history # points to the PBGitHistoryController, set in IB
    def clicked(sender)
      p self
      p history
      p history.repository
      puts history.repository.workingDirectory
      history.setRawView sender
    end
end

Works fine!

Now I can prototype code in MacRuby and not in the uncomfortable ObjC (for me)...

Greets,

Bernd

---
bo <[email protected]>: development on 7zz




Reply via email to