wiki:Dev/C

C/C++

build 32bit object on x64

Fail Safe C

  • Ubuntu 12.04 LTS x86_64
  • mitty@precise:~$ sudo aptitude install ocaml-nox ocaml-native-compilers ocaml-findlib libextlib-ocaml-dev camlp4 libgc-dev libgdbm-dev
    The following NEW packages will be installed:
      camlp4 ledit{a} libextlib-ocaml{a} libextlib-ocaml-dev
      libfindlib-ocaml{a} libfindlib-ocaml-dev{a} libgc-dev libgc1c2{a}
      libgdbm-dev ocaml-base-nox{a} ocaml-findlib ocaml-interp{a}
      ocaml-native-compilers ocaml-nox
    0 packages upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
    Need to get 31.6 MB of archives. After unpacking 106 MB will be used.
    
  • mitty@precise:~$ svn co https://svn.rcis.jp/FailSafeC/pub/trunk FailSafeC-trunk
    Checked out revision 2255.
    

fix version getter script

  • mitty@precise:~/FailSafeC-trunk$ vim tools/disthelpers/svn-get-revision.pl
    • tools/disthelpers/svn-get-revision.pl

       
      99while (<F>) { 
      1010# 123456 1234567890 12345678 123456789012  
      1111# A  +            -     1723 yutaka       local-packaging/debian-dir 
      12     /(^[AMDR\+ \?]{6}) ([ \-\d]{10}) ([ \-\d\?]{8}) .{12} (..*)$/ or die "cannot parse svn output: \"$_\"\n "; 
       12    /(^[AMDR\+ \?]{7}) ([ \-\d]{10}) ([ \-\d\?]{8}) .{12} (..*)$/ or die "cannot parse svn output: \"$_\"\n "; 
      1313    $fname = $4; 
      1414    $frev = $3 + 0; 
      1515#    print $_; 
  • mitty@precise:~/FailSafeC-trunk$ ./tools/disthelpers/svn-get-revision.pl
    2255+20120602T162127Z
    
  • mitty@precise:~/FailSafeC-trunk$ ./configure
  • mitty@precise:~/FailSafeC-trunk$ make
  • mitty@precise:~/FailSafeC-trunk$ sudo make install
Last modified 3 years ago Last modified on Dec 16, 2013 5:02:55 PM