You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
when I tried to compile Fiasco use "make" on Fedora, I got this error message:
%%%% Creating directories for image_proc %%%%
%%%% Exporting include files from image_proc %%%%
%%%% Compiling mri_to_img.c %%%%
In file included from /usr/include/png.h:452:0,
from mri_to_img.c:43:
mri_to_img.c: In function ‘do_page’:
mri_to_img.c:640:25: error: dereferencing pointer to incomplete type
if (setjmp(png_ptr->jmpbuf)) {
^
mri_to_img.c:650:15: error: dereferencing pointer to incomplete type
info_ptr->width= col_out + bar_width;
^
mri_to_img.c:651:15: error: dereferencing pointer to incomplete type
info_ptr->height= row_out;
^
mri_to_img.c:655:10: error: dereferencing pointer to incomplete type
info_ptr->color_type= PNG_COLOR_TYPE_GRAY;
^
mri_to_img.c:660:10: error: dereferencing pointer to incomplete type
info_ptr->color_type= PNG_COLOR_TYPE_RGB;
^
mri_to_img.c:664:15: error: dereferencing pointer to incomplete type
info_ptr->bit_depth= 8;
^
mri_to_img.c:666:15: error: dereferencing pointer to incomplete type
info_ptr->gamma= opts->gamma;
^
mri_to_img.c:706:15: error: dereferencing pointer to incomplete type
info_ptr->num_text= 8;
^
mri_to_img.c:707:15: error: dereferencing pointer to incomplete type
info_ptr->max_text= 10;
^
mri_to_img.c:708:15: error: dereferencing pointer to incomplete type
info_ptr->text= notes;
^
make[2]: *** [/root/Fiasco/obj/LINUXX86_64/image_proc/mri_to_img.o] Error 1
make[2]: Leaving directory /root/Fiasco/src/image_proc' make[1]: *** [all] Error 1 make[1]: Leaving directory /root/Fiasco'
Is there any idea about how to fix it, I will appreciate it very much!
The text was updated successfully, but these errors were encountered:
Hi curkychen- this is probably resulting from a difference in compiler version. Your compiler is more strict than the one on which the code was tested. Can you tell me your compiler type and version number? It's very likely I can do a quick patch if I have the same compiler. Could you also attach the file config.mk from your top-level Fiasco directory?
Sorry curkychen, change that- the problem is with the version of the png library linked with the code. See for example blinry/gish#2 , Can you check the version of libpng you are linking against?
Hi,
when I tried to compile Fiasco use "make" on Fedora, I got this error message:
%%%% Creating directories for image_proc %%%%
%%%% Exporting include files from image_proc %%%%
%%%% Compiling mri_to_img.c %%%%
In file included from /usr/include/png.h:452:0,
from mri_to_img.c:43:
mri_to_img.c: In function ‘do_page’:
mri_to_img.c:640:25: error: dereferencing pointer to incomplete type
if (setjmp(png_ptr->jmpbuf)) {
^
mri_to_img.c:650:15: error: dereferencing pointer to incomplete type
info_ptr->width= col_out + bar_width;
^
mri_to_img.c:651:15: error: dereferencing pointer to incomplete type
info_ptr->height= row_out;
^
mri_to_img.c:655:10: error: dereferencing pointer to incomplete type
info_ptr->color_type= PNG_COLOR_TYPE_GRAY;
^
mri_to_img.c:660:10: error: dereferencing pointer to incomplete type
info_ptr->color_type= PNG_COLOR_TYPE_RGB;
^
mri_to_img.c:664:15: error: dereferencing pointer to incomplete type
info_ptr->bit_depth= 8;
^
mri_to_img.c:666:15: error: dereferencing pointer to incomplete type
info_ptr->gamma= opts->gamma;
^
mri_to_img.c:706:15: error: dereferencing pointer to incomplete type
info_ptr->num_text= 8;
^
mri_to_img.c:707:15: error: dereferencing pointer to incomplete type
info_ptr->max_text= 10;
^
mri_to_img.c:708:15: error: dereferencing pointer to incomplete type
info_ptr->text= notes;
^
make[2]: *** [/root/Fiasco/obj/LINUXX86_64/image_proc/mri_to_img.o] Error 1
make[2]: Leaving directory
/root/Fiasco/src/image_proc' make[1]: *** [all] Error 1 make[1]: Leaving directory
/root/Fiasco'Is there any idea about how to fix it, I will appreciate it very much!
The text was updated successfully, but these errors were encountered: