Praktikum 1 - XabslEditor

Benutzeravatar
Katrin
Erstie
Erstie
Beiträge: 13
Registriert: 20. Nov 2005 15:27

Praktikum 1 - XabslEditor

Beitrag von Katrin »

Hallo,

was muss ich im XabslEditor als Compiler einstellen? Zur Zeit mache ich in der Konsole immer ein "make" - ist ok, aber wenn es "grafisch" ginge, wär's auch schick. Ist da was möglich?

franzose
BASIC-Programmierer
BASIC-Programmierer
Beiträge: 146
Registriert: 9. Okt 2009 00:08

Re: Praktikum 1 - XabslEditor

Beitrag von franzose »

wenn ich versuche "make" ider "start-game.bash" auszuführen, bekomme ich folgende Fehlermeldung. Ich habe leider keine Ahnung und wäre für Hilfe sehr dankbar....

bei make:

Code: Alles auswählen

copying files for rollers team
compiling and linking soccer
soccer.c:48:20: error: curses.h: No such file or directory
soccer.c:53: error: expected constructor, destructor, or type conversion before ‘*’ token
soccer.c: In function ‘void report_score(int, int)’:
soccer.c:80: error: ‘sprintf’ was not declared in this scope
soccer.c:81: error: ‘mvaddstr’ was not declared in this scope
soccer.c:83: error: ‘mvaddstr’ was not declared in this scope
soccer.c:84: error: ‘game_win’ was not declared in this scope
soccer.c:84: error: ‘wrefresh’ was not declared in this scope
soccer.c: In function ‘int replace_ball()’:
soccer.c:97: error: ‘mvaddch’ was not declared in this scope
soccer.c:105: error: ‘mvaddch’ was not declared in this scope
soccer.c:106: error: ‘game_win’ was not declared in this scope
soccer.c:106: error: ‘wrefresh’ was not declared in this scope
soccer.c: In function ‘int nudge_ball()’:
soccer.c:120: error: ‘mvaddch’ was not declared in this scope
soccer.c:134: error: ‘mvaddch’ was not declared in this scope
soccer.c: In function ‘int init()’:
soccer.c:178: error: ‘game_win’ was not declared in this scope
soccer.c:178: error: ‘wclear’ was not declared in this scope
soccer.c:200: error: ‘mvaddch’ was not declared in this scope
soccer.c:205: error: ‘mvaddch’ was not declared in this scope
soccer.c:219: error: ‘mvaddch’ was not declared in this scope
soccer.c:224: error: ‘mvaddch’ was not declared in this scope
soccer.c:230: error: ‘game_win’ was not declared in this scope
soccer.c:230: error: ‘wrefresh’ was not declared in this scope
soccer.c: In function ‘int main(int, char**)’:
soccer.c:283: error: ‘sscanf’ was not declared in this scope
soccer.c:284: error: ‘stderr’ was not declared in this scope
soccer.c:284: error: ‘fprintf’ was not declared in this scope
soccer.c:292: error: ‘sscanf’ was not declared in this scope
soccer.c:293: error: ‘stderr’ was not declared in this scope
soccer.c:293: error: ‘fprintf’ was not declared in this scope
soccer.c:297: error: ‘stderr’ was not declared in this scope
soccer.c:297: error: ‘fprintf’ was not declared in this scope
soccer.c:308: error: ‘initscr’ was not declared in this scope
soccer.c:309: error: ‘cbreak’ was not declared in this scope
soccer.c:310: error: ‘noecho’ was not declared in this scope
soccer.c:311: error: ‘game_win’ was not declared in this scope
soccer.c:311: error: ‘stdscr’ was not declared in this scope
soccer.c:311: error: ‘LINES’ was not declared in this scope
soccer.c:311: error: ‘COLS’ was not declared in this scope
soccer.c:311: error: ‘subwin’ was not declared in this scope
soccer.c:312: error: ‘game_win’ was not declared in this scope
soccer.c:312: error: ‘wmove’ was not declared in this scope
soccer.c:313: error: ‘game_win’ was not declared in this scope
soccer.c:313: error: ‘wrefresh’ was not declared in this scope
soccer.c:515: error: ‘mvaddch’ was not declared in this scope
soccer.c:561: error: ‘mvaddch’ was not declared in this scope
soccer.c:595: error: ‘mvaddch’ was not declared in this scope
soccer.c:626: error: ‘mvaddch’ was not declared in this scope
soccer.c:629: error: ‘mvaddch’ was not declared in this scope
soccer.c:633: error: ‘mvaddch’ was not declared in this scope
soccer.c:635: error: ‘game_win’ was not declared in this scope
soccer.c:635: error: ‘wrefresh’ was not declared in this scope
soccer.c:647: error: ‘printf’ was not declared in this scope
soccer.c:648: error: ‘stdout’ was not declared in this scope
soccer.c:648: error: ‘fflush’ was not declared in this scope
soccer.c:660: error: ‘printf’ was not declared in this scope
soccer.c:661: error: ‘stdout’ was not declared in this scope
soccer.c:661: error: ‘fflush’ was not declared in this scope
soccer.c:703: error: ‘getch’ was not declared in this scope
soccer.c:729: error: ‘printf’ was not declared in this scope
soccer.c:731: error: ‘mvaddch’ was not declared in this scope
soccer.c:739: error: ‘game_win’ was not declared in this scope
soccer.c:739: error: ‘wrefresh’ was not declared in this scope
soccer.c:752: error: ‘endwin’ was not declared in this scope
soccer.c:753: error: ‘printf’ was not declared in this scope
make[1]: *** [soccer.o] Error 1
make: *** [ascii-soccer/soccer.exe] Error 2
bei ./start-game.bash brute

Code: Alles auswählen

copying files for brute team
compiling and linking soccer
soccer.c:48:20: error: curses.h: No such file or directory
soccer.c:53: error: expected constructor, destructor, or type conversion before ‘*’ token
soccer.c: In function ‘void report_score(int, int)’:
soccer.c:80: error: ‘sprintf’ was not declared in this scope
soccer.c:81: error: ‘mvaddstr’ was not declared in this scope
soccer.c:83: error: ‘mvaddstr’ was not declared in this scope
soccer.c:84: error: ‘game_win’ was not declared in this scope
soccer.c:84: error: ‘wrefresh’ was not declared in this scope
soccer.c: In function ‘int replace_ball()’:
soccer.c:97: error: ‘mvaddch’ was not declared in this scope
soccer.c:105: error: ‘mvaddch’ was not declared in this scope
soccer.c:106: error: ‘game_win’ was not declared in this scope
soccer.c:106: error: ‘wrefresh’ was not declared in this scope
soccer.c: In function ‘int nudge_ball()’:
soccer.c:120: error: ‘mvaddch’ was not declared in this scope
soccer.c:134: error: ‘mvaddch’ was not declared in this scope
soccer.c: In function ‘int init()’:
soccer.c:178: error: ‘game_win’ was not declared in this scope
soccer.c:178: error: ‘wclear’ was not declared in this scope
soccer.c:200: error: ‘mvaddch’ was not declared in this scope
soccer.c:205: error: ‘mvaddch’ was not declared in this scope
soccer.c:219: error: ‘mvaddch’ was not declared in this scope
soccer.c:224: error: ‘mvaddch’ was not declared in this scope
soccer.c:230: error: ‘game_win’ was not declared in this scope
soccer.c:230: error: ‘wrefresh’ was not declared in this scope
soccer.c: In function ‘int main(int, char**)’:
soccer.c:283: error: ‘sscanf’ was not declared in this scope
soccer.c:284: error: ‘stderr’ was not declared in this scope
soccer.c:284: error: ‘fprintf’ was not declared in this scope
soccer.c:292: error: ‘sscanf’ was not declared in this scope
soccer.c:293: error: ‘stderr’ was not declared in this scope
soccer.c:293: error: ‘fprintf’ was not declared in this scope
soccer.c:297: error: ‘stderr’ was not declared in this scope
soccer.c:297: error: ‘fprintf’ was not declared in this scope
soccer.c:308: error: ‘initscr’ was not declared in this scope
soccer.c:309: error: ‘cbreak’ was not declared in this scope
soccer.c:310: error: ‘noecho’ was not declared in this scope
soccer.c:311: error: ‘game_win’ was not declared in this scope
soccer.c:311: error: ‘stdscr’ was not declared in this scope
soccer.c:311: error: ‘LINES’ was not declared in this scope
soccer.c:311: error: ‘COLS’ was not declared in this scope
soccer.c:311: error: ‘subwin’ was not declared in this scope
soccer.c:312: error: ‘game_win’ was not declared in this scope
soccer.c:312: error: ‘wmove’ was not declared in this scope
soccer.c:313: error: ‘game_win’ was not declared in this scope
soccer.c:313: error: ‘wrefresh’ was not declared in this scope
soccer.c:515: error: ‘mvaddch’ was not declared in this scope
soccer.c:561: error: ‘mvaddch’ was not declared in this scope
soccer.c:595: error: ‘mvaddch’ was not declared in this scope
soccer.c:626: error: ‘mvaddch’ was not declared in this scope
soccer.c:629: error: ‘mvaddch’ was not declared in this scope
soccer.c:633: error: ‘mvaddch’ was not declared in this scope
soccer.c:635: error: ‘game_win’ was not declared in this scope
soccer.c:635: error: ‘wrefresh’ was not declared in this scope
soccer.c:647: error: ‘printf’ was not declared in this scope
soccer.c:648: error: ‘stdout’ was not declared in this scope
soccer.c:648: error: ‘fflush’ was not declared in this scope
soccer.c:660: error: ‘printf’ was not declared in this scope
soccer.c:661: error: ‘stdout’ was not declared in this scope
soccer.c:661: error: ‘fflush’ was not declared in this scope
soccer.c:703: error: ‘getch’ was not declared in this scope
soccer.c:729: error: ‘printf’ was not declared in this scope
soccer.c:731: error: ‘mvaddch’ was not declared in this scope
soccer.c:739: error: ‘game_win’ was not declared in this scope
soccer.c:739: error: ‘wrefresh’ was not declared in this scope
soccer.c:752: error: ‘endwin’ was not declared in this scope
soccer.c:753: error: ‘printf’ was not declared in this scope
make[1]: *** [soccer.o] Error 1
make: *** [ascii-soccer/soccer.exe] Error 2

FabianM
Neuling
Neuling
Beiträge: 9
Registriert: 16. Okt 2009 11:04

Re: Praktikum 1 - XabslEditor

Beitrag von FabianM »

Hallo,

Du benötigst libncurses.
Für debian z.B. http://packages.debian.org/lenny/lib64ncurses5-dev oder die 32bit Version, je nach dem.

Damit sollte es funktionieren

franzose
BASIC-Programmierer
BASIC-Programmierer
Beiträge: 146
Registriert: 9. Okt 2009 00:08

Re: Praktikum 1 - XabslEditor

Beitrag von franzose »

vielen Dank für die Erklärung, ich hatte das libncurses5-dev Paket nicht installiert, jetzt funktioniert es :)

W0x
Erstie
Erstie
Beiträge: 16
Registriert: 16. Okt 2009 14:46

Re: Praktikum 1 - XabslEditor

Beitrag von W0x »

Hätte mir jemand ein Tutorial für die Nutzung unter Win 7?

gregor
BASIC-Programmierer
BASIC-Programmierer
Beiträge: 101
Registriert: 14. Okt 2008 07:20
Wohnort: Darmstadt
Kontaktdaten:

Re: Praktikum 1 - XabslEditor

Beitrag von gregor »

http://www.robocup.informatik.tu-darmst ... nload.html

da kannst du XABSL-Soccer-with-WIN32-Binaries.zip runterladen und eine kurze erläuterung steht da auch.

thalane
Windoof-User
Windoof-User
Beiträge: 31
Registriert: 17. Jan 2010 21:04

Re: Praktikum 1 - XabslEditor

Beitrag von thalane »

Hallo,

immer wenn ich make in die Konsole eingebe, bekomme ich gesagt, dass der Befehl nicht gefunden werde konnte oder falsch geschrieben ist. Kann mir jemand helfen? ^^


P.S.: Ich befinde mich im Ordner ...\XABSL-Soccer-CE_plain und benutze Win7 - 64Bit

Benutzeravatar
igor.a
BASIC-Programmierer
BASIC-Programmierer
Beiträge: 143
Registriert: 28. Sep 2009 16:05

Re: Praktikum 1 - XabslEditor

Beitrag von igor.a »

Unter Windows gibts make nicht ohne Weiteres. Versuch s mal unter Linux.

MaMaj
Endlosschleifenbastler
Endlosschleifenbastler
Beiträge: 158
Registriert: 8. Okt 2007 15:38
Wohnort: Dreieich
Kontaktdaten:

Re: Praktikum 1 - XabslEditor

Beitrag von MaMaj »

thalane hat geschrieben:Hallo,

immer wenn ich make in die Konsole eingebe, bekomme ich gesagt, dass der Befehl nicht gefunden werde konnte oder falsch geschrieben ist. Kann mir jemand helfen? ^^


P.S.: Ich befinde mich im Ordner ...\XABSL-Soccer-CE_plain und benutze Win7 - 64Bit

Du kannst cygwin installieren. Hab ich auch gemacht und es funktioniert.

Allerdings wirst du wohl beim Make-Befehl einen Fehler haben. Das liegt jedoch nicht daran, dass libncurses nicht installiert ist (curses.h wird nicht gefunden), sondern weil im Quellcode von soccer.h der Header curses.h als nativ angenommen wird (#include <curses.h>) das ist aber bei Windows bzw. cygwin nicht der Fall. Du musst dann einfach <> duch "" ersetzen bzw. den absoluten Pfad zur Datei angeben. Suche einfach im cygwin-Ordner nach der Header-Datei und kopier dir den Pfad. Danach läuft alles.

Tipp: cygwin bilder ja die Linux-Ordnerstruktur nach. Pack am besten alle Projektdateien in "cygwin/home", dann kannste sofort mit der minitty-Console (Teil von cygwin) loslegen.

W0x
Erstie
Erstie
Beiträge: 16
Registriert: 16. Okt 2009 14:46

Re: Praktikum 1 - XabslEditor

Beitrag von W0x »

Hi

Ich habe mir jetzt mal das cygwin installiert, finde aber kein #include <curses.h> in der soccer.h
In der soccer.c gibt es diese Zeile. Allerdings finde ich im cygwin-Ordner nirgends eine curses.h...

Außerdem meint cygwin "ls: cannot access ascii-soccer/teams: No such file or directory".
Ich rufe z.B. "/home/XABSL_Soccer-CE_plain/start-game.bash brute" auf.

Kann mir jemand weiterhelfen? Den Ordner ascii-soccer/teams gibt es natürlich.

Vielen Dank!

MaMaj
Endlosschleifenbastler
Endlosschleifenbastler
Beiträge: 158
Registriert: 8. Okt 2007 15:38
Wohnort: Dreieich
Kontaktdaten:

Re: Praktikum 1 - XabslEditor

Beitrag von MaMaj »

ja, stimmt... du musst die soccer.c editieren.

Die curses.h ist bei meiner cygwin-Installation unter "cygwin\usr\include\ncurses\curses.h" zu finden. Ich habe jetzt einfach in der soccer.c den absoluten Pfad (mit "D:\bla\bla\cygwin\usr\include\ncurses\curses.h") gesetzt.

Falls du in dem angegebenen Ordner kein curses.h findest, starte nochmal die cygwin-Setup Datei und gib in der Paketauswahl im Suchfenster einfach mal curses ein. Dann müssten drei Einträge erscheinen, du du mit einem Klick auf das runde Pfeilsymbol als "install", oder "reinstall" kennzeichnest. Dann wird der ganze Spaß auch nochmal nachinstalliert und dann sollte es wirklich gehen.

Antworten

Zurück zu „Archiv“