Changes between Version 4 and Version 5 of Build_Cocotron

Show
Ignore:
Timestamp:
09/21/08 13:30:15 (2 years ago)
Author:
farcaller (IP: 94.178.13.112)
Comment:

Updated

Legend:

Unmodified
Added
Removed
Modified
  • Build_Cocotron

    v4 v5  
    1010}}} 
    1111 
    12 Building cocotron's Foundation is not as simple as GCC, so I'll be commenting all the steps. 
     12Building cocotron's Foundation is not as simple as GCC, so I'll be commenting all the steps.  
    1313 
    1414{{{ 
    1515cd cocotron-trunk/Foundation # we're building only Foundation 
    16 wget http://fow.farcaller.net/trac/raw-attachment/wiki/Build_Cocotron/CMakeLists.txt # get the build rules 
     16}}} 
     17get the build script from this ticket: http://code.google.com/p/cocotron/issues/detail?id=168 and put it in current directory 
     18{{{ 
    1719mkdir build 
    1820cd build 
     
    2022    -DCMAKE_CXX_COMPILER=/opt/objc/bin/g++ \ 
    2123    -DCMAKE_INSTALL_PREFIX=/opt/objc .. 
    22 # configure Foundation to build with our toolchain 
    2324}}} 
    24  
    25 Now some dirty tricks :) 
    26 {{{ 
    27 cd ../ 
    28 mkdir -p includes/Foundation 
    29 cd includes/Foundation 
    30 find ../.. -type f -name '*.h' -exec ln -s '{}' \; 
    31 cd ../.. 
    32 }}} 
    33  
    34 This gathers all Foundation headers in one place. XCode is clever about that, so in POSIX world we have to do that by hand 
    3525 
    3626If you have cocotron trunk r242 or below do and fix one nasty bug: 
     
    5040cd build 
    5141make 
    52 sudo cp libFoundation.so /opt/objc/lib/ 
    53 sudo cp -rL ../includes/Foundation /opt/objc/include/ 
     42sudo make install 
    5443}}} 
    55  
    56 TODO: copy objc/* headers 
    57 TODO: fix linking with Foundation/objc/platform_linux/objc_msg_sendv.s 
    5844 
    5945== Test code == 
     
    7359Build with: 
    7460{{{ 
    75 /opt/objc/bin/gcc test.m -o test -I../cocotron-trunk/ -lFoundation -lpthread -ldl \ 
    76     ../cocotron-trunk/Foundation/objc/platform_linux/objc_msg_sendv.s 
     61/opt/objc/bin/gcc test.m -o test -I/opt/objc/include -L/opt/objc/lib -lFoundation -lpthread -ldl 
    7762}}} 
     63 
     64You might also be interested in adding /opt/objc/lib into your /etc/ld.so.conf and running ldconfig