Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling problem #1

Open
curkychen opened this issue Jul 19, 2017 · 2 comments
Open

Compiling problem #1

curkychen opened this issue Jul 19, 2017 · 2 comments

Comments

@curkychen
Copy link

curkychen commented Jul 19, 2017

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!

@jswelling
Copy link
Owner

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?

@jswelling
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants