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

Build issue *, const GimpValueArray*, gpointer) #197

Open
blackPantherOS opened this issue Mar 20, 2024 · 0 comments
Open

Build issue *, const GimpValueArray*, gpointer) #197

blackPantherOS opened this issue Mar 20, 2024 · 0 comments

Comments

@blackPantherOS
Copy link

With Gimp-2.99.18

Info: ~/gmic-3.3.4/gmic-qt/.qmake.stash
Project MESSAGE: GMIC_PATH is set (~/gmic-3.3.4/src)
Project MESSAGE: G'MIC repository was found (~/gmic-3.3.4/src)
Project MESSAGE: G'MIC version is ................. 334
Project MESSAGE: CImg version is .................. 334
Project MESSAGE: gmic_stdlib_community.h version is 334
Project MESSAGE: Unix platform
Project MESSAGE: Target host software is GIMP
Project MESSAGE: OpenMP enabled, with g++
Project MESSAGE: Dynamic linking with libgmic
Project MESSAGE: Release build
make[2]: Entering directory '/usr/src/RPM/BUILD/gmic-3.3.4/gmic-qt'
/usr/lib64/qt5/bin/uic ui/inoutpanel.ui -o .ui/ui_inoutpanel.h
/usr/lib64/qt5/bin/uic ui/sourceswidget.ui -o .ui/ui_sourceswidget.h
/usr/lib64/qt5/bin/uic ui/multilinetextparameterwidget.ui -o .ui/ui_multilinetextparameterwidget.h
/usr/lib64/qt5/bin/uic ui/progressinfowindow.ui -o .ui/ui_progressinfowindow.h
/usr/lib64/qt5/bin/uic ui/dialogsettings.ui -o .ui/ui_dialogsettings.h
/usr/lib64/qt5/bin/uic ui/progressinfowidget.ui -o .ui/ui_progressinfowidget.h
/usr/lib64/qt5/bin/uic ui/mainwindow.ui -o .ui/ui_mainwindow.h
/usr/lib64/qt5/bin/uic ui/SearchFieldWidget.ui -o .ui/ui_SearchFieldWidget.h
/usr/lib64/qt5/bin/uic ui/headlessprogressdialog.ui -o .ui/ui_headlessprogressdialog.h
/usr/lib64/qt5/bin/uic ui/zoomlevelselector.ui -o .ui/ui_zoomlevelselector.h
/usr/lib64/qt5/bin/uic ui/languageselectionwidget.ui -o .ui/ui_languageselectionwidget.h
/usr/lib64/qt5/bin/uic ui/filtersview.ui -o .ui/ui_filtersview.h
g++ -c -pipe -std=gnu++0x -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fno-strict-aliasing -DPIC -fPIC -fopenmp -O3 -std=gnu++1z -pthread -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -Dcimg_use_cpp11=1 -Dcimg_use_fftw3 -Dcimg_use_zlib -Dcimg_use_abort -Dgmic_is_parallel -Dcimg_use_curl -Dcimg_use_png -Dcimg_use_jpeg -Dcimg_appname=\"gmic\" -Dcimg_display=1 -D_IS_UNIX_ -DGMIC_HOST=gimp -DGIMP_DISABLE_DEPRECATED -Dcimg_use_openmp -Dgmic_gui -Dgmic_core -Dgmic_is_parallel -Dgmic_community -Dcimg_use_abort -Dcimg_use_vt100 -DQT_NO_DEBUG_OUTPUT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I. -Isrc -I../src -I/usr/include/libpng16 -I/usr/include/gimp-3.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/webp -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libxml2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtCore -I.moc -I.ui -I/usr/lib64/qt5/mkspecs/linux-g++ -o .obj/host_gimp.o src/Host/Gimp/host_gimp.cpp
src/Host/Gimp/host_gimp.cpp: In function ‘void gmic_qt_init(GmicQtPlugin*)’:
src/Host/Gimp/host_gimp.cpp:137:41: warning: unused parameter ‘gmic_qt’ [-Wunused-parameter]
  137 | static void gmic_qt_init(GmicQtPlugin * gmic_qt) {}
      |                          ~~~~~~~~~~~~~~~^~~~~~~
src/Host/Gimp/host_gimp.cpp: In function ‘GList* gmic_qt_query(GimpPlugIn*)’:
src/Host/Gimp/host_gimp.cpp:1153:43: warning: unused parameter ‘plug_in’ [-Wunused-parameter]
 1153 | static GList * gmic_qt_query(GimpPlugIn * plug_in)
      |                              ~~~~~~~~~~~~~^~~~~~~
src/Host/Gimp/host_gimp.cpp: In function ‘GimpValueArray* gmic_qt_run(GimpProcedure*, GimpRunMode, GimpImage*, gint, GimpDrawable**, const GimpValueArray*, gpointer)’:
src/Host/Gimp/host_gimp.cpp:1164:110: warning: unused parameter ‘n_drawables’ [-Wunused-parameter]
 1164 | static GimpValueArray * gmic_qt_run(GimpProcedure * procedure, GimpRunMode run_mode, GimpImage * image, gint n_drawables, GimpDrawable ** drawables, const GimpValueArray * args, gpointer run_data)
      |                                                                                                         ~~~~~^~~~~~~~~~~
src/Host/Gimp/host_gimp.cpp:1164:139: warning: unused parameter ‘drawables’ [-Wunused-parameter]
 1164 | static GimpValueArray * gmic_qt_run(GimpProcedure * procedure, GimpRunMode run_mode, GimpImage * image, gint n_drawables, GimpDrawable ** drawables, const GimpValueArray * args, gpointer run_data)
      |                                                                                                                           ~~~~~~~~~~~~~~~~^~~~~~~~~
src/Host/Gimp/host_gimp.cpp:1164:188: warning: unused parameter ‘run_data’ [-Wunused-parameter]
 1164 | n(GimpProcedure * procedure, GimpRunMode run_mode, GimpImage * image, gint n_drawables, GimpDrawable ** drawables, const GimpValueArray * args, gpointer run_data)
      |                                                                                                                                                 ~~~~~~~~~^~~~~~~~

src/Host/Gimp/host_gimp.cpp: In function ‘GimpProcedure* gmic_qt_create_procedure(GimpPlugIn*, const gchar*)’:
src/Host/Gimp/host_gimp.cpp:1208:84: error: invalid conversion from ‘GimpValueArray* (*)(GimpProcedure*, GimpRunMode, GimpImage*, gint, GimpDrawable**, const GimpValueArray*, gpointer)’ {aka ‘_GimpValueArray* (*)(_GimpProcedure*, GimpRunMode, _GimpImage*, int, _GimpDrawable**, const _GimpValueArray*, void*)’} to ‘GimpRunImageFunc’ {aka ‘_GimpValueArray* (*)(_GimpProcedure*, GimpRunMode, _GimpImage*, int, _GimpDrawable**, _GimpProcedureConfig*, void*)’} [-fpermissive]
 1208 |     procedure = gimp_image_procedure_new(plug_in, name, GIMP_PDB_PROC_TYPE_PLUGIN, gmic_qt_run, NULL, NULL);
      |                                                                                    ^~~~~~~~~~~
      |                                                                                    |
      |                                                                                    GimpValueArray* (*)(GimpProcedure*, GimpRunMode, GimpImage*, gint, GimpDrawable**, const GimpValueArray*, gpointer) {aka _GimpValueArray* (*)(_GimpProcedure*, GimpRunMode, _GimpImage*, int, _GimpDrawable**, const _GimpValueArray*, void*)}
In file included from /usr/include/gimp-3.0/libgimp/gimp.h:51,
                 from src/Host/Gimp/host_gimp.cpp:25:
/usr/include/gimp-3.0/libgimp/gimpimageprocedure.h:88:66: note:   initializing argument 4 of ‘GimpProcedure* gimp_image_procedure_new(GimpPlugIn*, const gchar*, GimpPDBProcType, GimpRunImageFunc, gpointer, GDestroyNotify)’
   88 |                                                GimpRunImageFunc  run_func,
      |                                                ~~~~~~~~~~~~~~~~~~^~~~~~~~
make: *** [Makefile:2012: .obj/host_gimp.o] Error 1
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

1 participant