P.S. I already have FPC, I just need to intall libraries for Symbian types and procedures I guess...
You will need to:
1 - Download latest subversion Free Pascal Source code
2 - Install stable Free Pascal 2.0.4 binaries
3 - Download and install Symbian UIQ 3 SDk. That´s the current target ... others will follow on the future.
4 - Use fpc 2.0.4 to create a cross-compiler with fpc 2.1.1 source code. The command is:
cd fpc21\compiler
make i386
5 - Use the cross-compiler to compile symbian rtl
cd fpc21\rtl\symbian
make PPC=C:\fpc21\compiler\ppci386.exe <not sure about this command>
You need to be in Windows for all of this, because Symbian OS SDK only works on Windows.
This is how far I got...
I svn-ed the newest source of fpc...
used the stable to create the cross compiler
replaced the ppci386.exe with the newly compiler one (saved the old one) and tried to do the make on it (before I replaced it with new one it complained for not knowing what -Tsymbian is and it doesn't anymore, so I'm guessing it's ok . )
when I enter rtl/symbian and do make it complains for not having i386-symbian-as.exe (the assembler for symbian) ... and I'm stuck there ... what should I do?
P.S. I skipped the step of getting Symbian UIQ 3 SDK before getting this all done...
SambucusELF
my make output is this:
C:\fpc21\rtl\symbian>c:\lazarus\fpc\2.0.4\bin\i386-win32\make.exe
c:/lazarus/fpc/2.0.4/bin/i386-win32/ppc386.exe -Tsymbian -XPi386-symbian- -Xc -X
r -Fi../inc -Fi../i386 -FE. -FU../../rtl/units/i386-symbian -di386 -Us -Sg syst
em.pp
Free Pascal Compiler version 2.3.1 [2007/04/11] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Symbian OS for i386
Compiling system.pp
math.inc(161,23) Warning: Use of -offset(%ebp) is not recommended for local vari
able access
math.inc(163,23) Warning: Use of -offset(%ebp) is not recommended for local vari
able access
math.inc(165,25) Warning: Use of -offset(%ebp) is not recommended for local vari
able access
math.inc(166,22) Warning: Use of -offset(%ebp) is not recommended for local vari
able access
math.inc(172,22) Warning: Use of -offset(%ebp) is not recommended for local vari
able access
math.inc(180,23) Warning: Use of -offset(%ebp) is not recommended for local vari
able access
math.inc(182,23) Warning: Use of -offset(%ebp) is not recommended for local vari
able access
math.inc(184,25) Warning: Use of -offset(%ebp) is not recommended for local vari
able access
math.inc(185,22) Warning: Use of -offset(%ebp) is not recommended for local vari
able access
math.inc(190,22) Warning: Use of -offset(%ebp) is not recommended for local vari
able access
sstrings.inc(409,5) Note: Local variable "e" not used
astrings.inc(253,3) Note: Local variable "destcopy" is assigned but never used
variant.inc(768,25) Warning: Automatic type conversion from floating type to COM
P which is an integer type
setjump.inc(24,16) Warning: Use of +offset(%ebp) for parameters invalid here
setjump.inc(30,2) Warning: Use of +offset(%ebp) for parameters invalid here
sysheap.inc(21,10) Warning: Function result does not seem to be set
sysfile.inc(20,10) Warning: Function result does not seem to be set
sysfile.inc(46,10) Warning: Function result does not seem to be set
sysfile.inc(52,10) Warning: Function result does not seem to be set
sysfile.inc(58,10) Warning: Function result does not seem to be set
sysfile.inc(70,10) Warning: Function result does not seem to be set
sysfile.inc(76,10) Warning: Function result does not seem to be set
text.inc(720,5) Note: Local variable "e" not used
system.pp(123,10) Warning: Function result does not seem to be set
system.pp(171,10) Warning: Function result does not seem to be set
system.pp(173,3) Note: Local variable "ST" not used
system.inc(46,3) Note: Local variable "initialstklen" not used
i386.inc(23,3) Note: Local variable "sse_check" is assigned but never used
genmath.inc(77,7) Note: Local variable "sincof" not used
genmath.inc(84,7) Note: Local variable "coscof" not used
system.pp(121,3) Note: Local variable "ModuleName" not used
system.pp(169,3) Note: Local variable "_SS" not used
system.pp(191,3) Warning: Variable "ProcessID" read but nowhere assigned
Assembling system
system.pp(211) Error: Assembler i386-symbian-as.exe not found, switching to exte
rnal assembling
system.pp(211) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
c:\lazarus\fpc\2.0.4\bin\i386-win32\make.exe: *** [system.ppu] Error 1
C:\fpc21\rtl\symbian>