PDA

View Full Version : Looking for C/C++ Compiler for WM6


Digicrat
30th September 2008, 05:25 AM
I recently got myself an ATT Tilt (Kaiser), which I plan on taking with me to a conference in Europe next month, and I'm not planning on taking a laptop so I can travel lightly afterwards. The phone currently has WM6 on there (I'm not going to play with flashing the ROM until after my trip).

To the point: I want a C/C++ compiler on my phone that I can use for potentially testing a few things over there (assuming the application I have in mind will work, but that's another story). I'm assuming that if I get the compiler working, it will have access to the standard C libs, including network stack.


I've tried PocketGCC, but I can't get it to work. The cabs from pocketgcc.sourceforge.net install fine, but the CMD Prompt won't open (I click on the icon and nothing happens).

Searching these boards, the only reference I've found was to http://www.mobilitysite.com/boards/business-development/135816-pocket-c.html#post1187340, but the links it points to for getting the various files no longer work.

Any suggestions or alternate links on how to get a working compiler on my smartphone?

As a backup, is CeGCC the best option for pre-compiling for the phone? Anyone know if it runs under 64-bit linux? Or if not, under win32 cygwin? Ideally, I'd love to have a cygwin-equivalent on the phone...but I guess that'll be deprecated with Android later on.

Thanks,
- David

edgar0204
30th September 2008, 06:18 AM
Hi David,
I'm also looking for this and the best aproach was a DOS emulator (I think it is called Pocket DOS and there is another one that is free but don't remember the name) and Turbo C. I used it just to test very basic software that was just displayed in the DOS windows. But it was a really really little software (a couple of FORs and couple of variable incrementing), it was not fast to copile/run.
Hope this helps a little.

joemanb
30th September 2008, 09:05 AM
there is a cool project here (http://www.geocities.com/hrowson/wm5_software/index.htm), it's C#, not C++ but it might be of interest.

This one (http://freewareppc.com/utilities/pocketgcc.shtml) is supposed to be C++, but it is old and you may have problems with it. From what I recall, the command shell isn't compatible with wm6, but if you look around you may be able to find one to replace it that works.

Here (http://forum.xda-developers.com/showthread.php?t=348753) is a command shell that's supposed to work with WM5/6

Good luck and let us know if you find anything else.

Also, the link to Mamaich's Version (http://mamaich.uni.cc/ppc/pgcc.rar) on that page you referenced works

cr2
30th September 2008, 12:05 PM
I
is CeGCC the best option for pre-compiling for the phone? Anyone know if it runs under 64-bit linux?


mingw32ce (cegcc) is used to compile haret and roadmap (afaik vlc too).
It runs on amd64 very well. Have not tried it on my old DEC alpha.

Digicrat
1st October 2008, 04:34 AM
Thanks for the quick responses.

edgar: PocketDOS looks interesting, but where can I find versions of Turbo C/C++ compatible with the pocketPC?

The program I'll be testing is actually a simple command-line C application, but it does use networking, UDP to be precise.


The link to Mamiach's link works on that page, but not the links on there for PocketConsole, PocketCMD, or the .bat files, though the bat files can be taken from the rar file itself.

I tried the PocketConsole and PocketCMD versions from the pocketgcc.sourceforge.net site again, and managed to get them (mostly) working after changing the reg key value.

I tried the PocketGCC cab file from gforge. It kind of works, but the test program won't compile. I still had to manually set the path for this, and for some reason it doesn't include gcc but calls the various other parts of it.

I'll try uninstalling the PocketGCC Cab and extracting Mamiach's version again and see if I have better luck with that later in the week and see how that goes.

Digicrat
2nd October 2008, 04:19 AM
Looks like I got it working for the most part.

Compilation is slow, but I don't want to waste space on the internal memory extracting all those .rar libs, unless I can get it installed/moved to the SD card later and adjust the paths accordingly (using spaces in file paths is always annoying).

I'm using Mamiach's version of GCC from the link above (extracted to /pgcc), plus PocketConsole and PocketCMD cabs from the pocketgcc.sourceforge.net distribution.


The only lingering (and annoying) issue is that it does not save the PATH setting after closing the cmd prompt.

Correction, I just noticed another more important issue. After switching programs, the CMD prompt seems to disappear. If I open another application, and then close that program, it will take me back to the CMD prompt. However, if I return to the "Today" screen, that prompt is still open but I can't get it back. It does not appear in that little task-switcher icon, nor in the detailed 'Task Manager'.

Any ideas?

Thanks


Update:
I just installed Dotfred's Task Manager. It looks like the problem is that the CMD prompt is being seen as a Process and not as an application. Now the question is can I change that...