Editing Compile FreePascal on device

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 114: Line 114:
</li>
</li>
<li>
<li>
-
If you have compilation error like this
 
-
<pre>
 
-
__missing_command_DATA2INC fpc
 
-
</pre>
 
-
it means compiler cannot find "data2inc" file and we need to provide path for that, so the command is
 
-
<pre>
 
-
make clean all PP=/path/to/newlycopied/ppcarm DATA2INC="/path/to/fpc_source/utils/data2inc" PREFIX="/opt/fpc-svn" OPT="-dFPC_ARMEL -O- -dFPC_ABI_EABI"
 
-
</pre>
 
Then, make install with the same options
Then, make install with the same options
<pre>
<pre>
Line 136: Line 128:
In order to create a config file, do:
In order to create a config file, do:
<pre>
<pre>
-
/opt/fpc-svn/bin/fpcmkcfg -d basepath=/opt/fpc-svn/lib/fpc/2.5.1/ -o /etc/fpc.cfg
+
/opt/fpc-svn/bin/fpcmkcfg -d basepath=/opt/fpc-svn/lib/fpc/2.5.1 -o /etc/fpc.cfg
</pre>
</pre>
</li>
</li>
Line 216: Line 208:
<pre>
<pre>
make clean all
make clean all
-
</pre>
 
-
if it fails with
 
-
<pre>
 
-
Need "lazarus_0.9.31.orig.tar.gz" to build for DEBBUILD = ""
 
-
</pre>
 
-
then you will be able to compile it with
 
-
<pre>
 
-
make DEBUSESVN=1 clean all
 
-
</pre>
 
-
 
-
if it still fails with
 
-
<pre>
 
-
make -C ide ide
 
-
make[1]: Entering directory `/media/mmc1/noch/src/freepascal/lazarus-svn-2011-02-10/ide'
 
-
../tools/svn2revisioninc .. revision.inc
 
-
make[1]: *** [revisioninc] Segmentation fault
 
-
make[1]: Leaving directory `/media/mmc1/noch/src/freepascal/lazarus-svn-2011-02-10/ide'
 
-
make: *** [ide] Error 2
 
-
</pre>
 
-
then according to [http://bugs.freepascal.org/bug_view_page.php?bug_id=18271 this] link it could be solved by USESVN2REVISIONINC=0
 
-
<pre>
 
-
make LCL_PLATFORM=gtk USESVN2REVISIONINC=0 DEBUSESVN=1 clean all
 
</pre>
</pre>
</li>
</li>

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)