intel / openvino-ai-plugins-gimp

GIMP AI plugins with OpenVINO Backend
Apache License 2.0
422 stars 47 forks source link

Unable to follow the linux installation #73

Closed laurencejennings closed 1 month ago

laurencejennings commented 6 months ago

I'm trying to follow the linux installation instructions but I'm having trouble.

First off I assume there is a typo in the required packages: libgdk-pixbuf-2.0-dev. This package gives this output: E: Unable to locate package libgdk-pixbuf-2.0-dev E: Couldn't find any package by glob 'libgdk-pixbuf-2.0-dev' however libgdk-pixbuf2.0-dev works.

Is this a typo or my error in installing a different package?

In the step where I install gegl I get to another failure that I didn't manage to solve.

This is the final part of the error:


c++ -Itools/exp_combine.p -Itools -I../tools -I. -I.. -Igegl -I../gegl -Igegl/buffer -I../gegl/buffer -Igegl/graph -I../gegl/graph -Igegl/module -I../gegl/module -Igegl/opencl -I../gegl/opencl -Igegl/operation -I../gegl/operation -Igegl/process -I../gegl/process -Igegl/property-types -I../gegl/property-types -I/usr/local/include/babl-0.1 -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu++14 -O2 -g -DHAVE_CONFIG_H -Ofast -DGEGL_ENABLE_DEBUG -Winit-self -Wmissing-declarations -Wpointer-arith -Wno-unused-parameter -Wno-cast-function-type -ftree-vectorize -pthread -MD -MQ tools/exp_combine.p/exp_combine.cpp.o -MF tools/exp_combine.p/exp_combine.cpp.o.d -o tools/exp_combine.p/exp_combine.cpp.o -c ../tools/exp_combine.cpp
../tools/exp_combine.cpp: In function ‘gfloat expcombine_get_file_ev(const gchar*)’:
../tools/exp_combine.cpp:71:5: error: ‘gexiv2_metadata_try_get_exposure_time’ was not declared in this scope; did you mean ‘gexiv2_metadata_get_exposure_time’?
   71 |     gexiv2_metadata_try_get_exposure_time (e2m, &nom, &den, &error);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     gexiv2_metadata_get_exposure_time
../tools/exp_combine.cpp:74:14: error: ‘gexiv2_metadata_try_get_fnumber’ was not declared in this scope; did you mean ‘gexiv2_metadata_get_fnumber’?
   74 |   aperture = gexiv2_metadata_try_get_fnumber (e2m, &error);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              gexiv2_metadata_get_fnumber
../tools/exp_combine.cpp:77:7: error: ‘gexiv2_metadata_try_has_tag’ was not declared in this scope; did you mean ‘gexiv2_metadata_has_tag’?
   77 |   if (gexiv2_metadata_try_has_tag (e2m, "Exif.Image.ISOSpeedRatings", &error))
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |       gexiv2_metadata_has_tag
../tools/exp_combine.cpp:79:14: error: ‘gexiv2_metadata_try_get_iso_speed’ was not declared in this scope; did you mean ‘gexiv2_metadata_get_iso_speed’?
   79 |       gain = gexiv2_metadata_try_get_iso_speed (e2m, &error) / 100.0f;
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              gexiv2_metadata_get_iso_speed
[16/1015] Compiling C object operations/common-gpl3+/gegl-common-gpl3.so.p/mosaic.c.o
ninja: build stopped: subcommand failed.```

I'm trying this on an ubuntu hp 8540w laptop (intel core i7 and NVIDIA Corporation GP107GLM [Quadro P1000 Mobile] (rev a1))

Is there a problem with my laptop or am I missing something obvious?

Thank you very much for your help
RyanMetcalfeInt8 commented 6 months ago

Hi @laurencejennings,

Which version of Ubuntu are you using? The instructions were written based on my experience with Ubuntu 22.04 (jammy), and I don't think there's a typo as I see the package listed here: https://launchpad.net/ubuntu/jammy/+package/libgdk-pixbuf-2.0-dev

Edit: I do know that Ubuntu packages do sometimes change names from one release to the next (e.g. Ubuntu 20.04 --> Ubuntu 22.04), so it's likely that this is what you are observing.

In the step where I install gegl I get to another failure that I didn't manage to solve.

Sorry, which step from the instructions is this failure from?

Thanks! Ryan

laurencejennings commented 6 months ago

Thanks for your reply Ryan, Indeed I'm using an older version of Ubuntu (Ubuntu 20.04.6 LTS). I'll try updating and trying again. The step that fails is the ninja -C _build

gblong1 commented 6 months ago

Hi @laurencejennings - looks like the API name changed. You can see there is now a _try_ in the API name being called.
error: ‘gexiv2_metadata_try_get_exposure_time’ was not declared in this scope; did you mean ‘gexiv2_metadata_get_exposure_time’ My guess is that updating to 22.04 will pull an updated library which this will be consistent with. Otherwise you may need to roll back the version of gegl that is being used. If updating to 22.04 is an option for you, then I would recommend that path.

gblong1 commented 5 months ago

@laurencejennings - any update? were you able to move to 22.04 and resolve this issue?