Changeset 21114 in project


Ignore:
Timestamp:
10/28/10 13:11:24 (11 years ago)
Author:
Christian Kellermann
Message:

cross development: {{ does not span over line endings...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/man/4/Cross development

    r21098 r21114  
    3232repository, then build the libraries and necessary development files:
    3333
    34 {{
    35 make ARCH= \
     34 make ARCH= \
    3635     PREFIX=/usr \
    3736     PLATFORM=linux
     
    4039     TARGET_FEATURES="-no-feature x86 -feature arm" \
    4140     libs install-dev
    42 }}
    4341
    4442This will build the CHICKEN libraries and install them in {{~/target}},
     
    8583You should now have these files on {{~/target}}:
    8684
    87 {{
    88 `-- usr
     85  `-- usr
    8986    |-- include
    9087    |   |-- chicken-config.h
     
    9794    |   `-- libchicken.so
    9895    `-- share
    99 }}
    10096
    10197You should now transfer {{libchicken.so}} to the target system, and place
     
    111107{{make(1)}} once again:
    112108
    113 {{
    114 make PLATFORM=linux \
     109 make PLATFORM=linux \
    115110     PREFIX=$HOME/cross-chicken \
    116111     TARGETSYSTEM=arm-none-linux-gnueabi \
     
    119114     TARGET_RUN_PREFIX=/usr \
    120115     install
    121 }}
    122116
    123117* {{PREFIX}} gives the place where the "cross chicken" should be installed
     
    144138In {{~/cross-chicken}}, you should find the following:
    145139
    146 {{
    147 |-- bin
    148 |   |-- arm-chicken
    149 |   |-- arm-chicken-bug
    150 |   |-- arm-chicken-install
    151 |   |-- arm-chicken-profile
    152 |   |-- arm-chicken-status
    153 |   |-- arm-chicken-uninstall
    154 |   |-- arm-csc
    155 |   `-- arm-csi
    156 |-- include
    157 |   |-- chicken-config.h
    158 |   `-- chicken.h
    159 |-- lib
    160 |   |-- chicken
    161 |   |   `-- 5
    162 |   |       :
    163 |   |
    164 |   |-- libchicken.a
    165 |   |-- libchicken.so -> libchicken.so.5
    166 |   `-- libchicken.so.5
    167 `-- share
    168     |-- chicken
    169     |   |-- doc
    170     :   ;   :
    171     |   |
    172     |   `-- setup.defaults
    173     `-- man
    174         `-- man1
    175             :
    176 }}
     140 |-- bin
     141 |   |-- arm-chicken
     142 |   |-- arm-chicken-bug
     143 |   |-- arm-chicken-install
     144 |   |-- arm-chicken-profile
     145 |   |-- arm-chicken-status
     146 |   |-- arm-chicken-uninstall
     147 |   |-- arm-csc
     148 |   `-- arm-csi
     149 |-- include
     150 |   |-- chicken-config.h
     151 |   `-- chicken.h
     152 |-- lib
     153 |   |-- chicken
     154 |   |   `-- 5
     155 |   |       :
     156 |   |
     157 |   |-- libchicken.a
     158 |   |-- libchicken.so -> libchicken.so.5
     159 |   `-- libchicken.so.5
     160 `-- share
     161     |-- chicken
     162     |   |-- doc
     163     :   ;   :
     164     |   |
     165     |   `-- setup.defaults
     166     `-- man
     167         `-- man1
     168             :
    177169
    178170To make sure that the right C compiler is used, we ask {{arm-csc}} to show
     
    222214the import-library into the repository of the host compiler:
    223215
    224 {{
    225 # optionally, you can compile the import library:
    226 # ~/cross-chicken/arm-csc -O3 -d0 -s target-only-extension.import.scm
    227 cp target-only-extension.import.scm ~/cross-chicken/lib/chicken/5
    228 }}
     216 # optionally, you can compile the import library:
     217 # ~/cross-chicken/arm-csc -O3 -d0 -s target-only-extension.import.scm
     218 cp target-only-extension.import.scm ~/cross-chicken/lib/chicken/5
    229219
    230220=== Final notes
Note: See TracChangeset for help on using the changeset viewer.