Hallo Patrick,

Du schriebst am Sat, 11 Aug 2012 17:54:32 -0400:

> This is my first attempt at cross compiling anything, so I am sure it 
> will take me a few / several / a lot of tries before I get it to work.

As long as you don't get system specific - i.e. use units like BaseUnix or
even libc directly - in your programs, cross compiling with fpc really just
is as complex as specifying the right -T<system> switch, and possibly
giving the required extension for the output file.
With MSE-IDE, it gets a bit more involved, because it includes a couple
system specific units, but they are cleanly separated in separate
subdirectories. Nonetheless, they have to be specified correctly for the
compiler, which makes the "TARGET" macro neccessary.
And, of course, it requires that you have the (binary) units for _both_
systems installed correctly, so that the compiler can use them.

(As an aside: My first attempt at cross compiling with fpc was a demo
version of a user interface. I developed it on Linux with MSE-IDE, but was
asked for a Windows version as well. So I simply took the MSE-IDE command
line, changed every "linux" to "win32", and let the compiler run. It ran
through without an error, producing an executable without the .exe
extension AFAIR, but after adding this, a quick test with wine or so showed
it was running well! No fuss, no problems - but no system specific
functions, either... ;)

-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
-----------------------------------------------------------
Mit freundlichen Grüßen, S. Schicktanz
-----------------------------------------------------------


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to