Error Messages ?!?


Masen

Member
Joined
Dec 29, 2005
Messages
205
hi,

hab mal ne frage wie ich error messages ausgeben kann ... quasi printf oder cout ... jemand ne idee ?!?
 
Kommt darauf an, was du hast...

Hast du eine Terminal-Session zu deinem GP2X per seriellem Kabel (dann reicht ein simples printf) oder nicht.

Wenn nicht, dann kannst du die Fehlerausgabe in eine Datei auf der SD-Karte umleiten und nachher lesen. Siehe z.B. hier http://forum.gp2x.de/viewtopic.php?t=788

Hth
BNrXYZ
 
ne ich starte direkt von der karte ....

das mit der fehlerdatei find ich irgendwie nicht so praktisch ....

kann man das nicht irgendwie aus na konsole starten ???
 
Masen said:
wie kann ich den bei sterm die *.gpe ausführen ????

Erst wechselst du in dein Verzeichnis mit der gpe das sieht so aus:
Code:
cd /mnt/sd/da/wo/die/gpe_ist
Und dann einfach so starten:
Code:
./meine.gpe

PS: Du weiss das sterm vervollständigen kann?
Also wenn du /mnt/ tippen willst reicht schon ein /mn und dann ein druck auf den Stick und es wird zu /mnt/

MfG
IceOnly
 
Elektranox said:
<OFF_TOPIC>
wie siehts eigentlich in STerm mit den Pfeiltasten aus? speziel links/rechts? das wäre ganz nützlich um mal schnell ne config datei mit vi zu bearbeiten ;) (also ne 0 -> 1 oder so...)
</OFF_TOPIC>

sterm hasn't got the arrows, there's a backspace (R-shoulder-button), and a space can be entered to move around. Equivalent of arrows in vi are the 'h j k l' keys (when in beep-mode.) Also close together on the sterm entry line.

HOWEVER:
I had a short try at vi earlier, but the sterm terminal emulation isn't too great, and the screen got messed up, if I recall correctly. So you'd probably want to use sed or ed...
 
also ist das ganze praktisch nen Emu ??? sowas wie DOSBOX ??? kann man nicht direkt ne Konsole fürs GP Linux öffnen ???
 
Masen said:
also ist das ganze praktisch nen Emu ??? sowas wie DOSBOX ??? kann man nicht direkt ne Konsole fürs GP Linux öffnen ???

sterm is a (virtual) 'terminal-emulator' it saves you the money for a real vt100 (or whatever other type of serial terminal). As far as I know the gp2x doesn't have a console in the way you mean it... It's console is supposed to be wired to the serial port. The screen is just a graphics display. It has no sense of 'letters' or a character-cell display mode like PC graphics cards have, that can do the conversion from ascii (or whatever code) to a font in hardware.

I'd think anyone serious to do some programming for the gp2x will get a secondary display attached to either the serial or usb port, so the debug information doesn't mess with your primary output, and you can use a real keyboard too..
 
a serial cable and a terminal would be very nice ... but i havent time to build one ^^ maybe after a few months ^^
 
any links ??? ive only found the "How to build a serial cable" article on the wiki ...
 
da fällt mir ein , wenn das ganze ne art Emu ist, ist dann eigentlich gewährleistet das das prog dann auhc wenn man es mal normal startet (also wenn die SDL ausgabe ready ist ) auch genau so läuft ???
 
Back
Top