Saturday, July 02, 2011

Building clang for use with GNUstep

1) Build using the instructions here: http://clang.llvm.org/get_started.html

2) Once that's done, download the latest version of Hans Boehm's garbage collector here: http://www.hpl.hp.com/personal/Hans_Boehm/gc/

3) Untar, Build and install boehm-gc.... it should be gc-7.1.tar.gz
    build it with clang like so:
              ./configure CC=clang LD=gcc && make CC=clang LD=gcc
          make install
    NOTE: You only need to do step 2 & 3 if you want garbage collection, if not you can skip it.

4) Build gnustep-make like so and install it:

              ./configure CC=clang LD=gcc && make CC=clang LD=gcc
          make install

5) Build libobj2 and install it:
              make CC=clang CXX=clang++ LD=gcc
         make install
              
6) Build base, gui and back and install them:
         ./configure CC=clang CXX=clang++ LD=gcc && make CC=clang CXX=clang++ LD=gcc messages=yes
         su
         . /usr/GNUstep/System/Library/Makefiles/GNUstep.sh && make GNUSTEP_INSTALLATION_DOMAIN=SYSTEM install

That should be all there is too it.  Not much, but a few little details which might serve to make it enough of a pain to discourage some people.

4 comments:

the ancient said...

for libobjc2 can also make boehm_gc=no
for Objective-C++ I'm more happy with clang trunk

Sarah Saad said...

شركة نقل عفش بالرياض
شركة نقل اثاث بجدة
شركة نقل عفش بالمدينة المنورة
شركة نقل عفش بالدمام
easteldmam
east-eldmam
شركة نقل عفش بالدمام

Oliver Maurice said...

If you want to check out some common writing tools I recommend that you look here https://topgoodessays.net/essay-writing-rules/ You will find everything that you need at this blog post

christine said...

Hey there, You have done a fantastic job. I’ll definitely digg it and personally recommend to my friends.I am confident they’ll be benefited from this website Poker Online Terpercaya
Tips bermain poker
Tips Bandarqq
DivaQQ
MisterQQ

https://hakimpoker.com/

Swift->ObjC interop

Some interesting notes. I will update this posting as i find more: * https://dart.dev/guides/libraries/objective-c-interop