gnthibault / siril

Other
46 stars 9 forks source link

Build fail with missing AutoPtr #3

Closed yoeluk closed 8 months ago

yoeluk commented 8 months ago

ninja: Entering directory `_build' [19/133] Compiling C++ object src/libsiril.a.p/core_exif.cpp.o FAILED: src/libsiril.a.p/core_exif.cpp.o c++ -Isrc/libsiril.a.p -Isrc -I../src -Isubprojects/librtprocess/CMake_build/src -I../subprojects/librtprocess/__CMake_build/src -I../subprojects/librtprocess/src -I../subprojects/librtprocess/src/include -Isubprojects/librtprocess/CMake_build -I../subprojects/librtprocess/CMake_build -Isubprojects/librtprocess -I../subprojects/librtprocess -Isubprojects/htmesh/__CMake_build -I../subprojects/htmesh/CMake_build -Isubprojects/htmesh -I../subprojects/htmesh -Isubprojects/kplot -I../subprojects/kplot -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/cloudproviders -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/fribidi -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/opencv4 -I/usr/include/wcslib -I/usr/include/json-glib-1.0 -I/usr/include/libraw -I/usr/include/webp -fdiagnostics-color=always -Wall -Winvalid-pch -std=c++14 -O3 -fPIC -fopenmp -pthread -DHAVE_CONFIG_H -fcommon -fno-math-errno -D_FILE_OFFSET_BITS=64 -DHAVE_FFTW3F_OMP -MD -MQ src/libsiril.a.p/core_exif.cpp.o -MF src/libsiril.a.p/core_exif.cpp.o.d -o src/libsiril.a.p/core_exif.cpp.o -c ../src/core/exif.cpp ../src/core/exif.cpp: In function ‘gchar siril_get_date_from_exif(const char)’: ../src/core/exif.cpp:127:31: error: ‘AutoPtr’ is not a member of ‘Exiv2::Image’ 127 | Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(WIDEN(filename)); | ^~~ ../src/core/exif.cpp:128:21: error: ‘image’ was not declared in this scope 128 | if (image.get() == 0) { | ^~~~~ ../src/core/exif.cpp:133:42: error: ‘image’ was not declared in this scope 133 | read_metadata_threadsafe(image); | ^~~~~ ../src/core/exif.cpp:72:3: note: in definition of macro ‘read_metadata_threadsafe’ 72 | image->readMetadata(); \ | ^~~~~ ../src/core/exif.cpp:135:46: error: ‘image’ was not declared in this scope 135 | Exiv2::ExifData &exif_data = image->exifData(); | ^~~~~ [26/133] Compiling C object src/libsiril.a.p/io_path_parse.c.o ../src/io/path_parse.c: In function ‘path_parse’: ../src/io/path_parse.c:320:91: warning: ‘val’ may be used uninitialized [-Wmaybe-uninitialized] 320 | int success = (isint) ? sprintf(buf, subs[1], (int)val) : sprintf(buf, subs[1], val); | ^~~~~~ ../src/io/path_parse.c:312:32: note: ‘val’ was declared here 312 | double val; | ^~~ [27/133] Compiling C object src/libsiril.a.p/io_image_formats_internal.c.o ../src/io/image_formats_internal.c: In function ‘import_pnm_to_fits’: ../src/io/image_formats_internal.c:508:33: warning: pointer ‘olddata’ may be used after ‘realloc’ [-Wuse-after-free] 508 | free(olddata); | ^~~~~ ../src/io/image_formats_internal.c:503:29: note: call to ‘realloc’ here 503 | fit->data = realloc(fit->data, stride fit->ry sizeof(WORD)); | ^~~~~~~~~~~ ../src/io/image_formats_internal.c:569:41: warning: pointer ‘olddata’ may be used after ‘realloc’ [-Wuse-after-free] 569 | free(olddata); | ^~~~~ ../src/io/image_formats_internal.c:564:37: note: call to ‘realloc’ here 564 | fit->data = realloc(fit->data, stride fit->ry sizeof(WORD)); | ^~~~~~~~~~~ [36/133] Compiling C++ object src/libsiril.a.p/filters_deconvolution_gf_estimate.cpp.o ninja: build stopped: subcommand failed.