Wesnoth 1.10.5 for iphone/ipad & source code is out now!

General feedback and discussion of the game.

Moderator: Forum Moderators

Locked
dailin
Posts: 123
Joined: September 29th, 2012, 8:34 am

Re: Wesnoth 1.10.5 for iphone/ipad & source code is out now!

Post by dailin »

yaxinhoo wrote:this is compile error of four libs, these libs compile make me crazy.
Don't worry, I help you to compile the project successfully. i will update the four libs tomorrow.
yaxinhoo
Posts: 17
Joined: February 19th, 2013, 8:40 am

Re: Wesnoth 1.10.5 for iphone/ipad & source code is out now!

Post by yaxinhoo »

thanks very much.
yaxinhoo
Posts: 17
Joined: February 19th, 2013, 8:40 am

Re: Wesnoth 1.10.5 for iphone/ipad & source code is out now!

Post by yaxinhoo »

hi dailin , i had pulled you lib source . now i can build the fontconfig & pango , but glib & cairo is can't built ever.
1\glib

Code: Select all

/Volumes/MacData/Work/wesnoth_ios/lib/glib/glib/gatomic.c
/Volumes/MacData/Work/wesnoth_ios/lib/glib/glib/gatomic.c:24: Config.h: No such file or directory
/Volumes/MacData/Work/wesnoth_ios/lib/glib/glib/gbookmarkfile.c
/Volumes/MacData/Work/wesnoth_ios/lib/glib/glib/gbookmarkfile.c:20: Config.h: No such file or directory
/Volumes/MacData/Work/wesnoth_ios/lib/glib/glib/gdataset.c
/Volumes/MacData/Work/wesnoth_ios/lib/glib/glib/gdataset.c:33: Config.h: No such file or directory
/Volumes/MacData/Work/wesnoth_ios/lib/glib/glib/gdate.c
/Volumes/MacData/Work/wesnoth_ios/lib/glib/glib/gdate.c:31: Config.h: No such file or directory
/Volumes/MacData/Work/wesnoth_ios/lib/glib/glib/glibintl.h
/Volumes/MacData/Work/wesnoth_ios/lib/glib/glib/glibintl.h:5: #error "config.h must be included prior to glibintl.h"
/Volumes/MacData/Work/wesnoth_ios/battleforwesnoth/lib/glib/glib/../../../../lib/glib/glib/gbookmarkfile.c:43: In file included from /Volumes/MacData/Work/wesnoth_ios/battleforwesnoth/lib/glib/glib/../../../../lib/glib/glib/gbookmarkfile.c
/Volumes/MacData/Work/wesnoth_ios/lib/glib/glib/glibintl.h:5: #error "config.h must be included prior to glibintl.h" in /Volumes/MacData/Work/wesnoth_ios/lib/glib/glib/glibintl.h
/Volumes/MacData/Work/wesnoth_ios/lib/glib/glib/glib_trace.h
/Volumes/MacData/Work/wesnoth_ios/lib/glib/glib/glib_trace.h:27: #error "config.h must be included prior to glib_trace.h"
/Volumes/MacData/Work/wesnoth_ios/battleforwesnoth/lib/glib/glib/../../../../lib/glib/glib/gdataset.c:45: In file included from /Volumes/MacData/Work/wesnoth_ios/battleforwesnoth/lib/glib/glib/../../../../lib/glib/glib/gdataset.c
/Volumes/MacData/Work/wesnoth_ios/lib/glib/glib/glib_trace.h:27: #error "config.h must be included prior to glib_trace.h" in /Volumes/MacData/Work/wesnoth_ios/lib/glib/glib/glib_trace.h
2\ cairo

Code: Select all

/Volumes/MacData/Work/wesnoth_ios/lib/libpng-1.4.4/include/png.h
/Volumes/MacData/Work/wesnoth_ios/lib/libpng-1.4.4/include/png.h:1: Expected '=', ',', ';', 'asm' or '__attribute__' before '/' token
/Volumes/MacData/Work/wesnoth_ios/battleforwesnoth/lib/cairo/cairo/../../../../lib/cairo-1.10.0/src/cairo-png.c:46: In file included from /Volumes/MacData/Work/wesnoth_ios/battleforwesnoth/lib/cairo/cairo/../../../../lib/cairo-1.10.0/src/cairo-png.c
/Volumes/MacData/Work/wesnoth_ios/lib/libpng-1.4.4/include/png.h:1: Expected '=', ',', ';', 'asm' or '__attribute__' before '/' token in /Volumes/MacData/Work/wesnoth_ios/lib/libpng-1.4.4/include/png.h
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:75: Expected ')' before 'png'
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:99: Expected ')' before 'png'
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:121: Expected ')' before 'png'
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:138: Expected ')' before 'png'
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:154: Expected ')' before 'png_ptr'
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:160: Expected declaration specifiers or '...' before 'png_rw_ptr'
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:168: 'png_struct' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:168: 'png' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:169: 'png_info' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:169: 'info' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:170: 'png_byte' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:170: Expected expression before 'volatile'
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:171: 'png_color_16' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:171: Expected ';' before 'white'
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:198: 'rows' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:198: Expected expression before ')' token
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:205: Expected expression before ')' token
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:207: 'PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:208: 'png_simple_error_callback' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:209: 'png_simple_warning_callback' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:226: 'write_func' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:226: 'png_simple_output_flush_fn' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:232: 'PNG_COLOR_TYPE_RGB' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:234: 'PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:242: 'PNG_COLOR_TYPE_GRAY' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:262: 'PNG_INTERLACE_NONE' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:263: 'PNG_COMPRESSION_TYPE_DEFAULT' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:264: 'PNG_FILTER_TYPE_DEFAULT' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:266: 'white' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:271: 'png_time' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:271: Expected ';' before 'pt'
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:273: 'pt' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:284: 'unpremultiply_data' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:286: 'convert_data_to_bytes' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:287: 'PNG_FILLER_AFTER' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:306: Expected ')' before 'png'
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:362: 'stdio_write_func' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:362: Too many arguments to function 'write_png'
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:376: Expected ')' before 'png'
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:421: 'stream_write_func' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:421: Too many arguments to function 'write_png'
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:434: Expected ')' before 'png'
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:465: Expected ')' before 'png'
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:501: Expected ')' before 'png'
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:522: 'png_struct' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:522: 'png' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:523: 'png_info' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:523: 'info' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:524: 'png_byte' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:524: 'data' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:525: 'row_pointers' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:526: 'png_uint_32' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:526: Expected ';' before 'png_width'
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:534: Dereferencing pointer to incomplete type
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:537: 'PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:539: 'png_simple_error_callback' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:540: 'png_simple_warning_callback' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:552: 'stream_read_func' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:565: 'png_width' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:565: 'png_height' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:573: 'PNG_COLOR_TYPE_PALETTE' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:577: 'PNG_COLOR_TYPE_GRAY' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:586: 'PNG_INFO_tRNS' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:597: 'PNG_COLOR_TYPE_GRAY_ALPHA' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:602: 'PNG_INTERLACE_NONE' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:605: 'PNG_FILLER_AFTER' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:613: 'PNG_COLOR_TYPE_RGB' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:614: 'PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:627: 'premultiply_data' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:632: 'convert_bytes_to_data' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:676: Dereferencing pointer to incomplete type
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:679: Dereferencing pointer to incomplete type
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:706: Dereferencing pointer to incomplete type
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:709: Dereferencing pointer to incomplete type
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:738: Storage size of 'png_closure' isn't known
/Volumes/MacData/Work/wesnoth_ios/lib/cairo-1.10.0/src/cairo-png.c:792: Storage size of 'png_closure' isn't known
dailin
Posts: 123
Joined: September 29th, 2012, 8:34 am

Re: Wesnoth 1.10.5 for iphone/ipad & source code is out now!

Post by dailin »

You can use project config.h in glib and rm the first blank in png.h
yaxinhoo
Posts: 17
Joined: February 19th, 2013, 8:40 am

Re: Wesnoth 1.10.5 for iphone/ipad & source code is out now!

Post by yaxinhoo »

i want to generate the glib config by ./configure . but i got

Code: Select all

checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
configure: error: 
*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
i had install gettext with port install.
dailin
Posts: 123
Joined: September 29th, 2012, 8:34 am

Re: Wesnoth 1.10.5 for iphone/ipad & source code is out now!

Post by dailin »

My git default setting add config.* to ignore list, so you lose config.h
This is config.h
Attachments
config.h
(141 Bytes) Downloaded 146 times
yaxinhoo
Posts: 17
Joined: February 19th, 2013, 8:40 am

Re: Wesnoth 1.10.5 for iphone/ipad & source code is out now!

Post by yaxinhoo »

i pulled out, but

Code: Select all

/Volumes/MacData/Work/wesnoth_ios/lib/glib/gobject/gsourceclosure.c
/Volumes/MacData/Work/wesnoth_ios/lib/glib/gobject/gsourceclosure.c:25: Gmarshal.h: No such file or directory
/Volumes/MacData/Work/wesnoth_ios/lib/glib/gobject/gsourceclosure.c:188: 'g_cclosure_marshal_BOOLEAN__FLAGS' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/glib/gobject/gbinding.c
/Volumes/MacData/Work/wesnoth_ios/lib/glib/gobject/gbinding.c:108: Gmarshal.h: No such file or directory
/Volumes/MacData/Work/wesnoth_ios/lib/glib/gobject/gbinding.c:1166: 'g_cclosure_marshal_BOOLEAN__BOXED_BOXED' undeclared (first use in this function)
/Volumes/MacData/Work/wesnoth_ios/lib/glib/gobject/gobject.c
/Volumes/MacData/Work/wesnoth_ios/lib/glib/gobject/gobject.c:33: Gmarshal.h: No such file or directory
/Volumes/MacData/Work/wesnoth_ios/lib/glib/gobject/gobject.c:377: 'g_cclosure_marshal_VOID__PARAM' undeclared (first use in this function)
dailin
Posts: 123
Joined: September 29th, 2012, 8:34 am

Re: Wesnoth 1.10.5 for iphone/ipad & source code is out now!

Post by dailin »

:annoyed: ,the same reason, i update glib,you can try it again
yaxinhoo
Posts: 17
Joined: February 19th, 2013, 8:40 am

Re: Wesnoth 1.10.5 for iphone/ipad & source code is out now!

Post by yaxinhoo »

some runtime error , the sim is blackscreen.

why want window size 550,390 ???

Code: Select all

Fontconfig error: Cannot load default config file
xxx/battleforwesnoth.app/fonts
xxx/battleforwesnoth.app/data/core/music/main_menu.ogg
WML exception:
User message: Failed to show a dialog, which doesn't fit on the screen.
Dev message: /Volumes/MacData/Work/wesnoth_ios/battleforwesnoth/battleforwesnoth/gui/widgets/window.cpp:947 in function 'layout' found the following problem: Failed to size window; wanted size 550,390 available size 480,320 screen size 480,320.
yaxinhoo
Posts: 17
Joined: February 19th, 2013, 8:40 am

Re: Wesnoth 1.10.5 for iphone/ipad & source code is out now!

Post by yaxinhoo »

did u test you github?
dailin
Posts: 123
Joined: September 29th, 2012, 8:34 am

Re: Wesnoth 1.10.5 for iphone/ipad & source code is out now!

Post by dailin »

yaxinhoo wrote:some runtime error , the sim is blackscreen.

why want window size 550,390 ???
yaxinhoo wrote:did u test you github?
Can you run in ipad sim?if you run in iphone sim,pls change res folder to res-iphone.Good luck.
Fraggel76
Posts: 19
Joined: September 16th, 2012, 3:33 pm

Re: Wesnoth 1.10.5 for iphone/ipad & source code is out now!

Post by Fraggel76 »

In the newest version from App Store I am missing the coordinate display, how can I add this?
yaxinhoo
Posts: 17
Joined: February 19th, 2013, 8:40 am

Re: Wesnoth 1.10.5 for iphone/ipad & source code is out now!

Post by yaxinhoo »

thanks dailin , i had succeed built on xcode 4.6 (ios6.1) , i use xcode 4.4.1(ios4.1) ever.
yaxinhoo
Posts: 17
Joined: February 19th, 2013, 8:40 am

Re: Wesnoth 1.10.5 for iphone/ipad & source code is out now!

Post by yaxinhoo »

in the sim runtime tested , i found the game sound had some problem , it sound weird . it is much bad on multiplayer.
dailin
Posts: 123
Joined: September 29th, 2012, 8:34 am

Re: Wesnoth 1.10.5 for iphone/ipad & source code is out now!

Post by dailin »

yaxinhoo wrote:in the sim runtime tested , i found the game sound had some problem , it sound weird . it is much bad on multiplayer.
Not support ogg format very well in ios(maybe my mistake?),some sound well,some sound bad,i replace some terrible files.I think you can do it too.
Fraggel76 wrote:In the newest version from App Store I am missing the coordinate display, how can I add this?
iphone? ipad? and your ios version~ :)
Locked