GreycLab / CImg

The CImg Library is a small and open-source C++ toolkit for image processing
http://cimg.eu
Other
1.48k stars 282 forks source link

no member named permute_axes #372

Open Pro-pra opened 1 year ago

Pro-pra commented 1 year ago

Hi all, I compile gmic-3.1.6, and build fail with error:

DEBUG: g++ -o libcgmic.o -c gmic_libc.cpp -fPIC -O2 -fomit-frame-pointer -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -fstack-protector-strong --param=ssp-buffer-size=4 -m64 -mtune=generic -Dcimg_date=\"\" -Dcimg_time=\"\" -Dcimg_use_zlib -I.  -Dgmic_prerelease=\"230111\"  -std=c++11 -pedantic -Wall -Wextra -Wfatal-errors -Werror=unknown-pragmas -Werror=unused-label -Wshadow -Dcimg_use_vt100 -Dcimg_use_abort -Dgmic_is_parallel -Dcimg_use_fftw3  -Dcimg_use_curl  -Dcimg_use_png -I/usr/include/libpng16  -Dcimg_use_jpeg  -Dcimg_use_tiff  -fopenmp -Dcimg_use_openmp -Dcimg_display=1   -Dcimg_use_openexr -I/usr/include/OpenEXR -pthread -I/usr/include/Imath  -O2 -fomit-frame-pointer -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -fstack-protector-strong --param=ssp-buffer-size=4 -m64 -mtune=generic
DEBUG: gmic_libc.cpp: In function 'int gmic_call(const char*, unsigned int*, gmic_interface_image*, gmic_interface_options*)':
DEBUG: gmic_libc.cpp:70:17: error: 'struct cimg_library::CImg<unsigned char>' has no member named 'permute_axes'
DEBUG:    70 |         img_tmp.permute_axes("YZCX");
DEBUG:       |                 ^~~~~~~~~~~~
DEBUG: compilation terminated due to -Wfatal-errors.

permute_axes missung?

Pro-pra commented 1 year ago

hmmm may be https://github.com/GreycLab/gmic-community/commit/312e1d286bed4935bde02e2501d548ab945a3d8e not needed? yes revert this patch help me, and i add symlink to CImg.h