The Following User Says Thank You to Estel For This Useful Post: | ||
![]() |
2013-03-20
, 12:23
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#12
|
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: fpc-2.6.0: Depends: fp-units-gtk-2.6.0 (>= 2.6.0-maemo4) but it is not going to be installed Depends: fp-units-gnome1-2.6.0 (>= 2.6.0-maemo4) but it is not going to be installed E: Broken packageswhat to do ?
![]() |
2013-07-30
, 14:35
|
Posts: 3 |
Thanked: 3 times |
Joined on Jul 2013
|
#13
|
When i try to installfpc-2.6.0 package i get this error:
Code:home/user # apt-get install fpc-2.6.0 Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: fpc-2.6.0: Depends: fp-units-gtk-2.6.0 (>= 2.6.0-maemo4) but it is not going to be installed Depends: fp-units-gnome1-2.6.0 (>= 2.6.0-maemo4) but it is not going to be installed Depends: fp-units-multimedia-2.6.0 (>= 2.6.0-maemo4) but it is not going to be installed E: Broken packages
The Following User Says Thank You to ernesbolso_94 For This Useful Post: | ||
![]() |
2013-08-05
, 18:38
|
Posts: 3 |
Thanked: 3 times |
Joined on Jul 2013
|
#14
|
Free Pascal Compiler [1] version 2.4.4 [2] is now on extras-devel [3]. It contains packages:
Compiler and units-rtl are needed for compiling. Units contains big set of units/packages [4] packed in one debian-package, you need it if you want do 'anything non-trivial'.Code:fpc-2.4.4 - Free Pascal - SDK-2.4.4 metapackage fp-compiler-2.4.4 - Free Pascal - Compiler fp-units-rtl-2.4.4 - Free Pascal - Runtime Library fp-units-2.4.4 - Free Pascal - base units fp-utils-2.4.4 - Free Pascal - Utils
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)
make fileCode:apt-get install fp-compiler-2.4.4
Compile it withCode:program Hello; begin writeln ('Hello, world.') end.
(With sb2, use sb2 -e fpc hello.pas)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 wget http://cc.oulu.fi/~rantalai/gles20demo.pp fpc gles20demo.pp
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.
The Following User Says Thank You to ernesbolso_94 For This Useful Post: | ||
![]() |
2013-08-05
, 18:51
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#15
|
apt-get install fpc fpc-2.6.0 fp-units-gtk-2.6.0 fp-units-gnome1-2.6.0 fp-units-multimedia-2.6.0
apt-get install fpc fpc-2.6.0 fp-units-gtk-2.6.0 fp-units-gnome1-2.6.0 fp-units-multimedia-2.6.0 libgtk2.0-dev libogg-dev libvorbis-dev libpango1.0-dev libcairo2-dev libc6-dev
The Following 2 Users Say Thank You to AapoRantalainen For This Useful Post: | ||
![]() |
2013-08-05
, 20:24
|
Posts: 3 |
Thanked: 3 times |
Joined on Jul 2013
|
#16
|
What happens if you then run:
It might give list of another packages, and then you can continue (example):Code:apt-get install fpc fpc-2.6.0 fp-units-gtk-2.6.0 fp-units-gnome1-2.6.0 fp-units-multimedia-2.6.0
Until it tells why it can't install them.Code:apt-get install fpc fpc-2.6.0 fp-units-gtk-2.6.0 fp-units-gnome1-2.6.0 fp-units-multimedia-2.6.0 libgtk2.0-dev libogg-dev libvorbis-dev libpango1.0-dev libcairo2-dev libc6-dev
apt-get install fpc fpc-2.6.0
E: Malformed line 6 in source list /etc/apt/sources.list.d/hildon-application-manager.list (absolute dist) E: The list of sources could not be read.
The Following User Says Thank You to ernesbolso_94 For This Useful Post: | ||
![]() |
2013-08-05
, 21:20
|
Posts: 2,006 |
Thanked: 3,351 times |
Joined on Jun 2010
@ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
|
#17
|
![]() |
2013-08-05
, 21:20
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#18
|
I
Did you know what i have to do to fix it? thanks in advanceCode:E: Malformed line 6 in source list /etc/apt/sources.list.d/hildon-application-manager.list (absolute dist) E: The list of sources could not be read.
deb http://repository.maemo.org/ fremantle/sdk free non-free
The Following User Says Thank You to AapoRantalainen For This Useful Post: | ||
![]() |
Tags |
fremantle, pascal compile |
Thread Tools | |
|
Otherwise, instead of ignoring them, I would just re-package it to optify more things (if possible).
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!