Hallöchen zusammen,
ich dachte mich ich versuche heute nachmittag mal den homebrew channel zu kompilieren, da der ja mittlerweile open source ist.
Nur leider scheitere ich im Moment daran herauszufinden, was los ist. Ich versuche es mit Linux Mint und habe alle Pakete installiert, die in der Readme aufgeführt sind.
Aufgrund eines Fehlers, dass MAXPATHLEN nicht definert war, verwende ich devkitPPC r27. Trotzdem bekomme ich folgende Fehlermeldung:
Spoiler anzeigen
make
make[1]: Verzeichnis „/home/_/Schreibtisch/hbc-master/channel/channelapp“ wird betreten
banner_bin.o
bubble1_png.o
cursor_drag_png.o
button_small_focus_png.o
apps_list_hover_png.o
progress_png.o
cursor_shade_png.o
button_png.o
apps_list_png.o
dlg_error_png.o
bubble3_png.o
button_tiny_png.o
apps_next_png.o
cursor_drag_shade_png.o
content_arrow_down_png.o
throbber_png.o
about_png.o
button_tiny_focus_png.o
bubble2_png.o
background_png.o
cursor_pic_png.o
apps_next_hover_png.o
icon_usbgecko_png.o
button_small_png.o
content_arrow_up_png.o
dlg_confirm_png.o
icon_usbgecko_active_png.o
icon_network_png.o
dlg_info_png.o
button_focus_png.o
apps_previous_hover_png.o
background_wide_png.o
icon_network_active_png.o
logo_png.o
apps_grid_png.o
apps_grid_hover_png.o
apps_previous_png.o
dialog_background_png.o
dlg_warning_png.o
japanese.enc.po
japanese.mo
japanese_mo.o
italian.enc.po
italian.mo
italian_mo.o
german.enc.po
german.mo
german_mo.o
french.enc.po
french.mo
french_mo.o
spanish.enc.po
spanish.mo
spanish_mo.o
dutch.enc.po
dutch.mo
dutch_mo.o
droidbold_ttf.o
droid_ttf.o
rm build/japanese.enc.po build/dutch.enc.po build/italian.mo build/italian.enc.po build/spanish.mo build/german.enc.po build/spanish.enc.po build/german.mo build/dutch.mo build/french.mo build/japanese.mo build/french.enc.po
panic.o
title.o
theme.o
manage.o
sha1.o
controls.o
dialogs.o
playtime.o
tcp.o
loader.o
source/loader.c: In function 'loader_handle_zip_app':
source/loader.c:976:3: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'u32' [-Wformat=]
sprintf(buf2, "%lu KB", result->bytes / 1024u);
^
source/loader.c:976:3: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'u32' [-Wformat=]
appentry.o
xml.o
m_main.o
source/m_main.c: In function 'm_main_theme_reinit':
source/m_main.c:116:4: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 's32' [-Wformat=]
IOS_GetRevisionMinor());
^
source/m_main.c:116:4: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32' [-Wformat=]
source/m_main.c:116:4: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 's32' [-Wformat=]
source/m_main.c:116:4: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 's32' [-Wformat=]
source/m_main.c:116:4: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32' [-Wformat=]
source/m_main.c:116:4: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 's32' [-Wformat=]
tex.o
source/tex.c:27:26: error: unknown type name 'png_structp'
static void pngcb_error (png_structp png_ptr, png_const_charp error_msg) {
^
source/tex.c:27:47: error: unknown type name 'png_const_charp'
static void pngcb_error (png_structp png_ptr, png_const_charp error_msg) {
^
source/tex.c:31:25: error: unknown type name 'png_structp'
static void pngcb_read (png_structp png_ptr, png_bytep data,
^
source/tex.c:31:46: error: unknown type name 'png_bytep'
static void pngcb_read (png_structp png_ptr, png_bytep data,
^
source/tex.c:32:7: error: unknown type name 'png_size_t'
png_size_t length) {
^
source/tex.c: In function 'tex_from_png':
source/tex.c:40:2: error: unknown type name 'png_structp'
png_structp png_ptr;
^
source/tex.c:41:2: error: unknown type name 'png_infop'
png_infop info_ptr;
^
source/tex.c:42:2: error: unknown type name 'png_uint_32'
png_uint_32 w, h;
^
source/tex.c:43:2: error: unknown type name 'png_bytepp'
png_bytepp rows;
^
source/tex.c:52:2: warning: implicit declaration of function 'png_sig_cmp' [-Wimplicit-function-declaration]
res = png_sig_cmp ((u8 *) data, 0, 4);
^
source/tex.c:59:2: warning: implicit declaration of function 'png_create_read_struct' [-Wimplicit-function-declaration]
png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, NULL, pngcb_error,
^
source/tex.c:59:36: error: 'PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, NULL, pngcb_error,
^
source/tex.c:59:36: note: each undeclared identifier is reported only once for each function it appears in
source/tex.c:59:65: error: 'pngcb_error' undeclared (first use in this function)
png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, NULL, pngcb_error,
^
source/tex.c:68:2: warning: implicit declaration of function 'png_create_info_struct' [-Wimplicit-function-declaration]
info_ptr = png_create_info_struct (png_ptr);
^
source/tex.c:71:3: warning: implicit declaration of function 'png_destroy_read_struct' [-Wimplicit-function-declaration]
png_destroy_read_struct (&png_ptr, (png_infopp)NULL, (png_infopp)NULL);
^
source/tex.c:71:39: error: 'png_infopp' undeclared (first use in this function)
png_destroy_read_struct (&png_ptr, (png_infopp)NULL, (png_infopp)NULL);
^
source/tex.c:76:2: warning: implicit declaration of function 'setjmp' [-Wimplicit-function-declaration]
if (setjmp (png_jmpbuf (png_ptr))) {
^
source/tex.c:76:2: warning: implicit declaration of function 'png_jmpbuf' [-Wimplicit-function-declaration]
source/tex.c:83:2: warning: implicit declaration of function 'png_set_read_fn' [-Wimplicit-function-declaration]
png_set_read_fn (png_ptr, &data, pngcb_read);
^
source/tex.c:83:35: error: 'pngcb_read' undeclared (first use in this function)
png_set_read_fn (png_ptr, &data, pngcb_read);
^
source/tex.c:84:2: warning: implicit declaration of function 'png_set_user_limits' [-Wimplicit-function-declaration]
png_set_user_limits (png_ptr, width, height);
^
source/tex.c:85:2: warning: implicit declaration of function 'png_set_add_alpha' [-Wimplicit-function-declaration]
png_set_add_alpha (png_ptr, 0xff, PNG_FILLER_BEFORE);
^
source/tex.c:85:36: error: 'PNG_FILLER_BEFORE' undeclared (first use in this function)
png_set_add_alpha (png_ptr, 0xff, PNG_FILLER_BEFORE);
^
source/tex.c:86:2: warning: implicit declaration of function 'png_read_png' [-Wimplicit-function-declaration]
png_read_png (png_ptr, info_ptr, PNG_TRANSFORM_PACKING |
^
source/tex.c:86:35: error: 'PNG_TRANSFORM_PACKING' undeclared (first use in this function)
png_read_png (png_ptr, info_ptr, PNG_TRANSFORM_PACKING |
^
source/tex.c:87:6: error: 'PNG_TRANSFORM_EXPAND' undeclared (first use in this function)
PNG_TRANSFORM_EXPAND | PNG_TRANSFORM_SWAP_ALPHA,
^
source/tex.c:87:29: error: 'PNG_TRANSFORM_SWAP_ALPHA' undeclared (first use in this function)
PNG_TRANSFORM_EXPAND | PNG_TRANSFORM_SWAP_ALPHA,
^
source/tex.c:88:7: error: 'png_voidp' undeclared (first use in this function)
(png_voidp)NULL);
^
source/tex.c:90:2: warning: implicit declaration of function 'png_get_image_width' [-Wimplicit-function-declaration]
w = png_get_image_width (png_ptr, info_ptr);
^
source/tex.c:91:2: warning: implicit declaration of function 'png_get_image_height' [-Wimplicit-function-declaration]
h = png_get_image_height (png_ptr, info_ptr);
^
source/tex.c:100:2: warning: implicit declaration of function 'png_get_rows' [-Wimplicit-function-declaration]
rows = png_get_rows (png_ptr, info_ptr);
^
source/tex.c:108:14: error: subscripted value is neither array nor pointer nor vector
s = &rows[y + r][x << 2];
^
source/tex.c:121:14: error: subscripted value is neither array nor pointer nor vector
s = &rows[y + r][x << 2];
^
source/tex.c:43:13: warning: variable 'rows' set but not used [-Wunused-but-set-variable]
png_bytepp rows;
^
source/tex.c: In function 'save_rgba_png':
source/tex.c:185:2: error: unknown type name 'FILE'
FILE *fp = NULL;
^
source/tex.c:186:2: error: unknown type name 'png_structp'
png_structp png_ptr = NULL;
^
source/tex.c:187:2: error: unknown type name 'png_infop'
png_infop info_ptr;
^
source/tex.c:188:2: error: unknown type name 'png_bytep'
png_bytep *row_pointers;
^
source/tex.c:195:3: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
sprintf(fn, SCREENSHOT_FILENAME, screenshot_index);
^
source/tex.c:195:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
source/tex.c:195:3: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'u32' [-Wformat=]
source/tex.c:208:18: error: 'png_bytep' undeclared (first use in this function)
row_pointers = (png_bytep *) pmalloc(y * sizeof(png_bytep));
^
source/tex.c:208:29: error: expected expression before ')' token
row_pointers = (png_bytep *) pmalloc(y * sizeof(png_bytep));
^
source/tex.c:210:2: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
fp = fopen(fn, "wb");
^
source/tex.c:210:5: warning: assignment makes pointer from integer without a cast [enabled by default]
fp = fopen(fn, "wb");
^
source/tex.c:216:2: warning: implicit declaration of function 'setbuf' [-Wimplicit-function-declaration]
setbuf(fp, NULL);
^
source/tex.c:218:2: warning: implicit declaration of function 'png_create_write_struct' [-Wimplicit-function-declaration]
png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, 0, 0, 0);
^
source/tex.c:218:36: error: 'PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, 0, 0, 0);
^
source/tex.c:235:2: warning: implicit declaration of function 'png_init_io' [-Wimplicit-function-declaration]
png_init_io(png_ptr, fp);
^
source/tex.c:237:2: warning: implicit declaration of function 'png_set_compression_level' [-Wimplicit-function-declaration]
png_set_compression_level(png_ptr, Z_BEST_COMPRESSION);
^
source/tex.c:238:2: warning: implicit declaration of function 'png_set_IHDR' [-Wimplicit-function-declaration]
png_set_IHDR(png_ptr, info_ptr, x, y, 8,
^
source/tex.c:239:5: error: 'PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use in this function)
PNG_COLOR_TYPE_RGB_ALPHA, PNG_INTERLACE_NONE,
^
source/tex.c:239:31: error: 'PNG_INTERLACE_NONE' undeclared (first use in this function)
PNG_COLOR_TYPE_RGB_ALPHA, PNG_INTERLACE_NONE,
^
source/tex.c:240:5: error: 'PNG_COMPRESSION_TYPE_DEFAULT' undeclared (first use in this function)
PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
^
source/tex.c:240:35: error: 'PNG_FILTER_TYPE_DEFAULT' undeclared (first use in this function)
PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
^
source/tex.c:242:2: warning: implicit declaration of function 'png_write_info' [-Wimplicit-function-declaration]
png_write_info(png_ptr, info_ptr);
^
source/tex.c:247:2: warning: implicit declaration of function 'png_set_swap_alpha' [-Wimplicit-function-declaration]
png_set_swap_alpha(png_ptr);
^
source/tex.c:249:2: warning: implicit declaration of function 'png_write_image' [-Wimplicit-function-declaration]
png_write_image(png_ptr, row_pointers);
^
source/tex.c:250:2: warning: implicit declaration of function 'png_write_end' [-Wimplicit-function-declaration]
png_write_end(png_ptr, info_ptr);
^
source/tex.c:257:3: warning: implicit declaration of function 'png_destroy_write_struct' [-Wimplicit-function-declaration]
png_destroy_write_struct(&png_ptr, (png_infopp)NULL);
^
source/tex.c:257:39: error: 'png_infopp' undeclared (first use in this function)
png_destroy_write_struct(&png_ptr, (png_infopp)NULL);
^
source/tex.c:260:2: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
fclose(fp);
^
Makefile:179: die Regel für Ziel „build/tex.o“ scheiterte
make[3]: *** [build/tex.o] Fehler 1
Makefile:81: die Regel für Ziel „all“ scheiterte
make[2]: *** [all] Fehler 2
Makefile:86: die Regel für Ziel „channel“ scheiterte
make[1]: *** [channel] Fehler 2
make[1]: Verzeichnis „/home/___/Schreibtisch/hbc-master/channel/channelapp“ wird verlassen
Makefile:4: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2
Es scheint wohl ein Problem mit den png-befehlen zu geben. Ich krieg seid 2 Stunden nicht heraus, wo das Problem liegt.
Ich hoffe mir kann jemand weiterhelfen.
Danke schonmal
ich dachte mich ich versuche heute nachmittag mal den homebrew channel zu kompilieren, da der ja mittlerweile open source ist.
Nur leider scheitere ich im Moment daran herauszufinden, was los ist. Ich versuche es mit Linux Mint und habe alle Pakete installiert, die in der Readme aufgeführt sind.
Aufgrund eines Fehlers, dass MAXPATHLEN nicht definert war, verwende ich devkitPPC r27. Trotzdem bekomme ich folgende Fehlermeldung:
make
make[1]: Verzeichnis „/home/_/Schreibtisch/hbc-master/channel/channelapp“ wird betreten
banner_bin.o
bubble1_png.o
cursor_drag_png.o
button_small_focus_png.o
apps_list_hover_png.o
progress_png.o
cursor_shade_png.o
button_png.o
apps_list_png.o
dlg_error_png.o
bubble3_png.o
button_tiny_png.o
apps_next_png.o
cursor_drag_shade_png.o
content_arrow_down_png.o
throbber_png.o
about_png.o
button_tiny_focus_png.o
bubble2_png.o
background_png.o
cursor_pic_png.o
apps_next_hover_png.o
icon_usbgecko_png.o
button_small_png.o
content_arrow_up_png.o
dlg_confirm_png.o
icon_usbgecko_active_png.o
icon_network_png.o
dlg_info_png.o
button_focus_png.o
apps_previous_hover_png.o
background_wide_png.o
icon_network_active_png.o
logo_png.o
apps_grid_png.o
apps_grid_hover_png.o
apps_previous_png.o
dialog_background_png.o
dlg_warning_png.o
japanese.enc.po
japanese.mo
japanese_mo.o
italian.enc.po
italian.mo
italian_mo.o
german.enc.po
german.mo
german_mo.o
french.enc.po
french.mo
french_mo.o
spanish.enc.po
spanish.mo
spanish_mo.o
dutch.enc.po
dutch.mo
dutch_mo.o
droidbold_ttf.o
droid_ttf.o
rm build/japanese.enc.po build/dutch.enc.po build/italian.mo build/italian.enc.po build/spanish.mo build/german.enc.po build/spanish.enc.po build/german.mo build/dutch.mo build/french.mo build/japanese.mo build/french.enc.po
panic.o
title.o
theme.o
manage.o
sha1.o
controls.o
dialogs.o
playtime.o
tcp.o
loader.o
source/loader.c: In function 'loader_handle_zip_app':
source/loader.c:976:3: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'u32' [-Wformat=]
sprintf(buf2, "%lu KB", result->bytes / 1024u);
^
source/loader.c:976:3: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'u32' [-Wformat=]
appentry.o
xml.o
m_main.o
source/m_main.c: In function 'm_main_theme_reinit':
source/m_main.c:116:4: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 's32' [-Wformat=]
IOS_GetRevisionMinor());
^
source/m_main.c:116:4: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32' [-Wformat=]
source/m_main.c:116:4: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 's32' [-Wformat=]
source/m_main.c:116:4: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 's32' [-Wformat=]
source/m_main.c:116:4: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32' [-Wformat=]
source/m_main.c:116:4: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 's32' [-Wformat=]
tex.o
source/tex.c:27:26: error: unknown type name 'png_structp'
static void pngcb_error (png_structp png_ptr, png_const_charp error_msg) {
^
source/tex.c:27:47: error: unknown type name 'png_const_charp'
static void pngcb_error (png_structp png_ptr, png_const_charp error_msg) {
^
source/tex.c:31:25: error: unknown type name 'png_structp'
static void pngcb_read (png_structp png_ptr, png_bytep data,
^
source/tex.c:31:46: error: unknown type name 'png_bytep'
static void pngcb_read (png_structp png_ptr, png_bytep data,
^
source/tex.c:32:7: error: unknown type name 'png_size_t'
png_size_t length) {
^
source/tex.c: In function 'tex_from_png':
source/tex.c:40:2: error: unknown type name 'png_structp'
png_structp png_ptr;
^
source/tex.c:41:2: error: unknown type name 'png_infop'
png_infop info_ptr;
^
source/tex.c:42:2: error: unknown type name 'png_uint_32'
png_uint_32 w, h;
^
source/tex.c:43:2: error: unknown type name 'png_bytepp'
png_bytepp rows;
^
source/tex.c:52:2: warning: implicit declaration of function 'png_sig_cmp' [-Wimplicit-function-declaration]
res = png_sig_cmp ((u8 *) data, 0, 4);
^
source/tex.c:59:2: warning: implicit declaration of function 'png_create_read_struct' [-Wimplicit-function-declaration]
png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, NULL, pngcb_error,
^
source/tex.c:59:36: error: 'PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, NULL, pngcb_error,
^
source/tex.c:59:36: note: each undeclared identifier is reported only once for each function it appears in
source/tex.c:59:65: error: 'pngcb_error' undeclared (first use in this function)
png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, NULL, pngcb_error,
^
source/tex.c:68:2: warning: implicit declaration of function 'png_create_info_struct' [-Wimplicit-function-declaration]
info_ptr = png_create_info_struct (png_ptr);
^
source/tex.c:71:3: warning: implicit declaration of function 'png_destroy_read_struct' [-Wimplicit-function-declaration]
png_destroy_read_struct (&png_ptr, (png_infopp)NULL, (png_infopp)NULL);
^
source/tex.c:71:39: error: 'png_infopp' undeclared (first use in this function)
png_destroy_read_struct (&png_ptr, (png_infopp)NULL, (png_infopp)NULL);
^
source/tex.c:76:2: warning: implicit declaration of function 'setjmp' [-Wimplicit-function-declaration]
if (setjmp (png_jmpbuf (png_ptr))) {
^
source/tex.c:76:2: warning: implicit declaration of function 'png_jmpbuf' [-Wimplicit-function-declaration]
source/tex.c:83:2: warning: implicit declaration of function 'png_set_read_fn' [-Wimplicit-function-declaration]
png_set_read_fn (png_ptr, &data, pngcb_read);
^
source/tex.c:83:35: error: 'pngcb_read' undeclared (first use in this function)
png_set_read_fn (png_ptr, &data, pngcb_read);
^
source/tex.c:84:2: warning: implicit declaration of function 'png_set_user_limits' [-Wimplicit-function-declaration]
png_set_user_limits (png_ptr, width, height);
^
source/tex.c:85:2: warning: implicit declaration of function 'png_set_add_alpha' [-Wimplicit-function-declaration]
png_set_add_alpha (png_ptr, 0xff, PNG_FILLER_BEFORE);
^
source/tex.c:85:36: error: 'PNG_FILLER_BEFORE' undeclared (first use in this function)
png_set_add_alpha (png_ptr, 0xff, PNG_FILLER_BEFORE);
^
source/tex.c:86:2: warning: implicit declaration of function 'png_read_png' [-Wimplicit-function-declaration]
png_read_png (png_ptr, info_ptr, PNG_TRANSFORM_PACKING |
^
source/tex.c:86:35: error: 'PNG_TRANSFORM_PACKING' undeclared (first use in this function)
png_read_png (png_ptr, info_ptr, PNG_TRANSFORM_PACKING |
^
source/tex.c:87:6: error: 'PNG_TRANSFORM_EXPAND' undeclared (first use in this function)
PNG_TRANSFORM_EXPAND | PNG_TRANSFORM_SWAP_ALPHA,
^
source/tex.c:87:29: error: 'PNG_TRANSFORM_SWAP_ALPHA' undeclared (first use in this function)
PNG_TRANSFORM_EXPAND | PNG_TRANSFORM_SWAP_ALPHA,
^
source/tex.c:88:7: error: 'png_voidp' undeclared (first use in this function)
(png_voidp)NULL);
^
source/tex.c:90:2: warning: implicit declaration of function 'png_get_image_width' [-Wimplicit-function-declaration]
w = png_get_image_width (png_ptr, info_ptr);
^
source/tex.c:91:2: warning: implicit declaration of function 'png_get_image_height' [-Wimplicit-function-declaration]
h = png_get_image_height (png_ptr, info_ptr);
^
source/tex.c:100:2: warning: implicit declaration of function 'png_get_rows' [-Wimplicit-function-declaration]
rows = png_get_rows (png_ptr, info_ptr);
^
source/tex.c:108:14: error: subscripted value is neither array nor pointer nor vector
s = &rows[y + r][x << 2];
^
source/tex.c:121:14: error: subscripted value is neither array nor pointer nor vector
s = &rows[y + r][x << 2];
^
source/tex.c:43:13: warning: variable 'rows' set but not used [-Wunused-but-set-variable]
png_bytepp rows;
^
source/tex.c: In function 'save_rgba_png':
source/tex.c:185:2: error: unknown type name 'FILE'
FILE *fp = NULL;
^
source/tex.c:186:2: error: unknown type name 'png_structp'
png_structp png_ptr = NULL;
^
source/tex.c:187:2: error: unknown type name 'png_infop'
png_infop info_ptr;
^
source/tex.c:188:2: error: unknown type name 'png_bytep'
png_bytep *row_pointers;
^
source/tex.c:195:3: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
sprintf(fn, SCREENSHOT_FILENAME, screenshot_index);
^
source/tex.c:195:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
source/tex.c:195:3: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'u32' [-Wformat=]
source/tex.c:208:18: error: 'png_bytep' undeclared (first use in this function)
row_pointers = (png_bytep *) pmalloc(y * sizeof(png_bytep));
^
source/tex.c:208:29: error: expected expression before ')' token
row_pointers = (png_bytep *) pmalloc(y * sizeof(png_bytep));
^
source/tex.c:210:2: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
fp = fopen(fn, "wb");
^
source/tex.c:210:5: warning: assignment makes pointer from integer without a cast [enabled by default]
fp = fopen(fn, "wb");
^
source/tex.c:216:2: warning: implicit declaration of function 'setbuf' [-Wimplicit-function-declaration]
setbuf(fp, NULL);
^
source/tex.c:218:2: warning: implicit declaration of function 'png_create_write_struct' [-Wimplicit-function-declaration]
png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, 0, 0, 0);
^
source/tex.c:218:36: error: 'PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, 0, 0, 0);
^
source/tex.c:235:2: warning: implicit declaration of function 'png_init_io' [-Wimplicit-function-declaration]
png_init_io(png_ptr, fp);
^
source/tex.c:237:2: warning: implicit declaration of function 'png_set_compression_level' [-Wimplicit-function-declaration]
png_set_compression_level(png_ptr, Z_BEST_COMPRESSION);
^
source/tex.c:238:2: warning: implicit declaration of function 'png_set_IHDR' [-Wimplicit-function-declaration]
png_set_IHDR(png_ptr, info_ptr, x, y, 8,
^
source/tex.c:239:5: error: 'PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use in this function)
PNG_COLOR_TYPE_RGB_ALPHA, PNG_INTERLACE_NONE,
^
source/tex.c:239:31: error: 'PNG_INTERLACE_NONE' undeclared (first use in this function)
PNG_COLOR_TYPE_RGB_ALPHA, PNG_INTERLACE_NONE,
^
source/tex.c:240:5: error: 'PNG_COMPRESSION_TYPE_DEFAULT' undeclared (first use in this function)
PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
^
source/tex.c:240:35: error: 'PNG_FILTER_TYPE_DEFAULT' undeclared (first use in this function)
PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
^
source/tex.c:242:2: warning: implicit declaration of function 'png_write_info' [-Wimplicit-function-declaration]
png_write_info(png_ptr, info_ptr);
^
source/tex.c:247:2: warning: implicit declaration of function 'png_set_swap_alpha' [-Wimplicit-function-declaration]
png_set_swap_alpha(png_ptr);
^
source/tex.c:249:2: warning: implicit declaration of function 'png_write_image' [-Wimplicit-function-declaration]
png_write_image(png_ptr, row_pointers);
^
source/tex.c:250:2: warning: implicit declaration of function 'png_write_end' [-Wimplicit-function-declaration]
png_write_end(png_ptr, info_ptr);
^
source/tex.c:257:3: warning: implicit declaration of function 'png_destroy_write_struct' [-Wimplicit-function-declaration]
png_destroy_write_struct(&png_ptr, (png_infopp)NULL);
^
source/tex.c:257:39: error: 'png_infopp' undeclared (first use in this function)
png_destroy_write_struct(&png_ptr, (png_infopp)NULL);
^
source/tex.c:260:2: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
fclose(fp);
^
Makefile:179: die Regel für Ziel „build/tex.o“ scheiterte
make[3]: *** [build/tex.o] Fehler 1
Makefile:81: die Regel für Ziel „all“ scheiterte
make[2]: *** [all] Fehler 2
Makefile:86: die Regel für Ziel „channel“ scheiterte
make[1]: *** [channel] Fehler 2
make[1]: Verzeichnis „/home/___/Schreibtisch/hbc-master/channel/channelapp“ wird verlassen
Makefile:4: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2
Es scheint wohl ein Problem mit den png-befehlen zu geben. Ich krieg seid 2 Stunden nicht heraus, wo das Problem liegt.
Ich hoffe mir kann jemand weiterhelfen.
Danke schonmal
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von send0r ()