Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old October 1, 2007, 09:37   #1
pupnik
Rookie
 
pupnik's Avatar
 
Join Date: Oct 2007
Posts: 5
pupnik is on a distinguished road
Talking (cross)Compiling for Nokia 770 / N800 Tablets

Hello...

Buildling 3.0.9 (and for testing, svn) in various modes in scratchbox/maemo for Nokia 770 (and Dawnmist on N800 -- ~waves~)

Ncurses: builds with ncurses 5.4 using the "bool hack" in
src/autoconf.h.in

/* Define to 1 if stdbool.h conforms to C99. */
/* #undef HAVE_STDBOOL_H */
SDL:

[sbox-SB_Arm2: ~/Angband/angband-3.0.9] > ./configure --with-setgid=29999 --disable-x11 --enable-sdl --enable-sdl-mixer && make
main-sdl.c:3389: error: structure has no member named `current_w'
main-sdl.c:3390: error: structure has no member named `current_h'

(edit) just hacked main-sdl.c to device's native resolution

full_w = 800;
full_h = 480;
//full_w = VideoInfo->current_w;
//full_h = VideoInfo->current_h;


GTK:

[sbox-SB_Arm2: ~/Angband/angband-3.0.9] > ./configure --with-noinstall --disable-x11 --disable-sdl --disable-sdl-mixer --enable-gtk && make
...
main-gtk.c:47: error: syntax error before "cairo_t"
main-gtk.c:47: warning: no semicolon at end of struct or union
main-gtk.c:65: error: syntax error before '}' token
main-gtk.c: In function `set_foreground_color':
main-gtk.c:116: error: dermain-gtk.c:120: error: dereferencing pointer to incomplete type
main-gtk.c:121: warning: implicit declaration of function `cairo_set_source_rgb'
main-gtk.c:121: error: dereferencing pointer to incomplete type
main-gtk.c: At top level:
main-gtk.c:146: error: syntax error before '*' token
main-gtk.c: In function `c_rect':
main-gtk.c:148: warning: implicit declaration of function `cairo_rectangle'
main-gtk.c:148: error: `cr' undeclared (first use in this function)
main-gtk.c:148: error: (Each undeclared identifier is reported only once
main-gtk.c:148: error: for each function it appears in.)
main-gtk.c:148: error: `r' undeclared (first use in this function)
main-gtk.c: In function `Term_clear_gtk':
main-gtk.c:161: error: dereferencing pointer to incomplete type

// further incomplete type errors baleeted //

main-gtk.c:166: warning: implicit declaration of function `cairo_save
main-gtk.c:173: warning: implicit declaration of function `cairo_restore'
main-gtk.c: In function `Term_text_gtk':
main-gtk.c:237: warning: implicit declaration of function `cairo_move_to'
main-gtk.c:238: warning: implicit declaration of function `pango_cairo_show_layout'1: warning: implicit declaration of function `cairo_close_path'
...main-gtk.c: In function `init_gtk':
main-gtk.c:1214: error: invalid use of undefined type `struct term_data'
main-gtk.c:1227: error: invalid use of undefined type `struct term_data'
main-gtk.c: At top level:
main-gtk.c:71: error: storage size of `data' isn't known
make[2]: *** [main-gtk.o] Error

the x11 build makes no sense for the nokia, as it's a gtk/hildon based device - but SDL is a reasonable option if an alternate input method is built (onscreen buttons).

Will look into this cairo problem - thought the core devs should know about the sdl issue, as that appears to be internal to angband.

Cheers!

Last edited by pupnik; October 1, 2007 at 09:50. Reason: added a /
pupnik is offline   Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:50.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.