![]() |
[Announce] Free Pascal Compiler on extras-devel
Free Pascal Compiler [1] version 2.4.4 [2] is now on extras-devel [3]. It contains packages:
Code:
fpc-2.4.4 - Free Pascal - SDK-2.4.4 metapackage Packages are optified, if you are interested in to compile Pascal on N900-device. You need binutils installed, because it needs additionally 'as' and 'ld' [5]. -------- Usage: hello #install (to scratchbox) Code:
apt-get install fp-compiler-2.4.4 Code:
program Hello; Code:
fpc hello.pas Copy to device and run, no additional dependencies on phone (I don't know why "rtl"="runtime library", because it is not needed on phone). -------- Usage2: gles-2.0 test #Install also units (~70M unpacked) Code:
apt-get install fp-units-2.4.4 Some technical All maemo specific is on own git [6]. As you might know the FPC compiler is written in Pascal, so getting it on Maemo repository [7] needed some tricks. There were several approaches: * Crosscompile it. E.g. i386 fpc can produce arm-binaries. This is kinda tricky with autobuilder. * Use older version of FPC -Make binary-only-package (on non-free-repository) which contains fpc-binary. -Bundle old fpc-binary with sources. I used last option (you can try another ones). This is not big deal, because it is used only for first round of compiling, then it is compiled second time with new compiler. So at the end, resulting binary (fpc-2.4.4) is always compiled with fpc-2.4.4. Drawback is, that package can only be used with arm, i386 and x64 (it contains those pre-compiled binaries). [1] http://www.freepascal.org/ [2] From May 22th, 2011 [3] http://maemo.org/packages/view/fpc-2.4.4/ [4] http://wiki.freepascal.org/Unit [5] http://www.freepascal.org/faq.var#unix-asldmissing [6] https://gitorious.org/maemo-fpc [7] I found several talks and posts: fpc is used for long time on Maemo. |
Re: [Announce] Free Pascal Compiler on extras-devel
It seems, that compiler on fremantle autobuilder is not handling x86 targets.
It will give linking error for every library I have tried, e.g. Code:
/scratchbox/compilers/cs2007q3-glibc2.5-i486/bin/sbox-i486-pc-linux-gnu-ld: cannot find -llua5. Code:
ifneq (,$(findstring arm-linux,$(DEB_BUILD_GNU_TYPE))) |
Re: [Announce] Free Pascal Compiler on extras-devel
New upstream version: fpc-2.6.0 on extras-devel.
Install package fpc-2.6.0 and you will get everything you need. --------- Just for notes: Repackaged from Debian Sid. Code:
wget http://ftp.de.debian.org/debian/pool/main/f/fpc/fpc_2.6.0.orig.tar.gz Add to debian/rules +FPCMAKE=/opt/fpc/bin/fpcmake (because last version (2.4) was optified). debian/rules Foreach: -mv -t foo bar +mv bar foo -cp -t foo bar +cp bar foo (as builders cp and mv are out dated) debian/rules Skip making of documentation, just empty package. Because it is using 'hevea', which is difficult to package (because it needs ocaml). debian/control remove 'Breaks' (as dpkg in sb1 doesn't understand it (and it is not funny to use dpkg --force-depends, when apt-get would be easier)). debian/control For fp-units-gfx-2.6.0: no depends on libsvgalib. For fp-units-multimedia-2.6.0: depends on liba52-0.7.4-dev, no a52dec-dev For fp-units-multimedia-2.6.0: no depends on libdts-dev |
Re: [Announce] Free Pascal Compiler on extras-devel
I don't know if you are aware of it, TxPad has ObjPas(FPC) and Delphi syntax highlighting(and is written in Lazarus/FPC), so its useful for people using this...
Its sources are also useful because they have Maemo specific workarounds and problems solved.. Thanks for the package(s) btw ;) TRX. |
Re: [Announce] Free Pascal Compiler on extras-devel
When i try to installfpc-2.6.0 package i get this error:
Code:
home/user # apt-get install fpc-2.6.0 |
Re: [Announce] Free Pascal Compiler on extras-devel
Quote:
Code:
root |
Re: [Announce] Free Pascal Compiler on extras-devel
I enabled extras-devel and the SDK repository as shown above but when I try 'apt-get install fpc-2.6.0' I get the following:
Code:
The following packages have unmet dependencies: |
Re: [Announce] Free Pascal Compiler on extras-devel
Is there a way to tell apt-get to ignore the broken dependencies ?
I don't think I need those gtk thingies. |
Re: [Announce] Free Pascal Compiler on extras-devel
|
Re: [Announce] Free Pascal Compiler on extras-devel
Quote:
I only have 64MB left on rootfs. |
All times are GMT. The time now is 23:17. |
vBulletin® Version 3.8.8