19 | | === Compile among everything (recommended) === |
20 | | |
21 | | Use the [source:flair-dev/trunk/scripts/flair_compile_all.sh flair_compile_all.sh] script using documentation from [wiki:compile_all this page]. |
22 | | |
23 | | All libs, tools and demos will be compiled for all supported architectures (the ones with an installed toolchain). |
24 | | |
25 | | === Recompile only this demo === |
26 | | |
27 | | If you have already done the previous step (compile among everything) and you want to just recompile this particular demo, do the following: |
28 | | {{{ |
29 | | $ cd $FLAIR_ROOT/flair-build/build/demos/Sinus |
30 | | $ make install |
31 | | }}} |
32 | | |
33 | | It will compile for x86_64 architecture. To compile for a different architecture, go to the corresponding directory, for example: |
34 | | {{{ |
35 | | $ cd $FLAIR_ROOT/flair-build/build_armv5te/demos/Sinus |
36 | | or |
37 | | $ cd $FLAIR_ROOT/flair-build/build_armv7a_neon/demos/Sinus |
38 | | or |
39 | | $ cd $FLAIR_ROOT/flair-build/build_cortexa7thf_neon_vfpv4/demos/Sinus |
40 | | }}} |
41 | | |
42 | | Calling ''make'' compile both real time and non real time version of the demo. |
43 | | |
44 | | === Generate and compile it alone === |
45 | | |
46 | | You can also generate this demo's project where you want, and compile it. Yet, you need to have [wiki:compile_all compiled and installed] Flair libs before to have all needed development files. But it is not necessary to recompile libs each time you want to compile the demo. |
47 | | |
48 | | The following assumes you want to place the project in ''$FLAIR_ROOT/flair-build/mywork/sinus'' |
49 | | {{{ |
50 | | $ mkdir -p $FLAIR_ROOT/flair-build/mywork/sinus |
51 | | $ cd $FLAIR_ROOT/flair-build/mywork/sinus |
52 | | $ $FLAIR_ROOT/flair-dev/scripts/cmake_codelite_outofsource.sh $FLAIR_ROOT/flair-src/demos/Sinus/ |
53 | | $ cd build |
54 | | $ make install |
55 | | }}} |
56 | | |
57 | | It will compile for x86_64 architecture. To compile for a different architecture, go to the corresponding directory, for example: |
58 | | {{{ |
59 | | $ cd build_armv5te |
60 | | or |
61 | | $ cd build_armv7a_neon |
62 | | or |
63 | | $ cd build_cortexa7thf_neon_vfpv4 |
64 | | }}} |
| 19 | * [wiki:compile_all#CompileFlairlibrariestoolsanddemosalltogether Compile among everything] (recommended), maybe you have already done it! |
| 20 | * [wiki:compile_all#Recompileaparticularproject Recompile only this demo] |
| 21 | * [wiki:compile_all#Compileyourownproject Generate and compile it alone] |