Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-01

cross compile for WinCE under Linux

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi

Can I cross compile for WinCE under Linux? Or can this only be done from Windows?

I want to try and develop some apps (and fpGUI widget set) for my PDA running Windows Mobile 2003 SE.

Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342'

Reply by email

Felipe Monteiro de Carvalho
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Can I cross compile for WinCE under Linux? Or can this only be done from Windows?

There are several problems cross compiling from Linux to Windows CE, namely:

* The binutils utilized are pre-compiled for win32-to-wince. Maybe you can search the internet for precompiled binutils for linux-to-wince. If they don´t exist you will need to compile your own binutils.

* You can transfer the application to the PDA using ActiveSync. I don´t think you can use ActiveSync on Linux (because it´s a .exe created by microsoft =) )

* Another way to use the cross-compiler it to test the application on the emulator, but...... microsoft created the emulator =) So it only runs on Windows.

Basically it´s possible, but it will be a lot of work, and the end result may not be good.

Felipe Monteiro de Carvalho

Reply by email

Graeme Geldenhuys
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote
* The binutils utilized are pre-compiled for win32-to-wince. Maybe you can search the internet for precompiled binutils for linux-to-wince. If they don´t exist you will need to compile your own binutils.

I'll do a search or research the idea of compiling it myself. Should be fun! :-0

* You can transfer the application to the PDA using ActiveSync. I don´t think you can use ActiveSync on Linux (because it´s a .exe created by microsoft =) )

My PDA has software that makes it look like a external USB drive. That is normally how I copy files from Linux or Windows to my PDA. This is not a problem.

* Another way to use the cross-compiler it to test the application on the emulator, but...... microsoft created the emulator =) So it only runs on Windows.

The data on my PDA is regularly backed up, so testing directly on my PDA instead of a emulator should be ok. I think! :)

Basically it´s possible, but it will be a lot of work, and the end result may not be good.

Otherwise I guess I could always do what I do with fpGUI and my other cross platform projects. Develop under Linux, start up VMWare with Win2000 which can see the same code directory as used under Linux. Compile under the Win2000 session to test. Then for WinCE, I can just copy the executable to my PDA. This actually sounds easier I think.

Thanks for the info.

Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342'

Reply by email