Open Smattr opened 1 month ago
Hello. Thanks for reporting this issue. I've tested and it's working here for me (using Ubuntu 22.04 LTS and g++ 11.4.0). Could you please give me some details on which distribution you encounter this error ?
As a work-around, I'd suggest to use the custom Makefile that is already present in folder src/
, just as described in the G'MIC Download page : https://gmic.eu/download.html#linux
Thanks.
This is on a vanilla Ubuntu 22.04 Desktop with the same compiler. This is a VM with an almost out-of-the-box Ubuntu 22.04, upgraded to the latest packages via apt
, so I’m not really sure what could be going wrong.
I’ll try the custom Makefile and report back…
Sorry for the delay on this. Following the instructions on that page, I still can’t get a successful build though the problem I hit is different:
$ sudo apt install git build-essential libgimp2.0-dev libcurl4-openssl-dev libfftw3-dev libtiff-dev libjpeg-dev libopenexr-dev qtbase5-dev qttools5-dev-tools
…
$ wget https://gmic.eu/files/source/gmic_3.4.0.tar.gz && tar zxvf gmic_3.4.0.tar.gz && cd gmic-3.4.0/src
…
$ make all
…
**
** Warning: folder 'zart' was not found !
** It is mandatory to compile 'zart'.
** Trying to retrieve it, with: $ cd ../../ && git clone https://github.com/c-koi/zart.git
**
Cloning into 'zart'...
remote: Enumerating objects: 735, done.
remote: Counting objects: 100% (163/163), done.
remote: Compressing objects: 100% (112/112), done.
remote: Total 735 (delta 102), reused 99 (delta 49), pack-reused 572
Receiving objects: 100% (735/735), 818.15 KiB | 7.05 MiB/s, done.
Resolving deltas: 100% (550/550), done.
**
** Success !
**
cd ../zart && qmake CONFIG+=release GMIC_PATH=/tmp/tmp.AgN8qlxPkW/gmic-3.4.0/src zart.pro && make && strip zart
Info: creating stash file /tmp/tmp.AgN8qlxPkW/zart/.qmake.stash
Project MESSAGE: GMIC_PATH is set (/tmp/tmp.AgN8qlxPkW/gmic-3.4.0/src)
Project ERROR: Cannot find OpenCV
make[1]: *** [Makefile:637: zart] Error 3
make[1]: Leaving directory '/tmp/tmp.AgN8qlxPkW/gmic-3.4.0/src'
make: *** [Makefile:374: all] Error 2
…
Thanks for all your help with this, but I’m going to step down from the JOSS review. We don’t seem to be making progress and I am quite time-poor, so I’d prefer to unblock the review by letting someone else take over who might be able to get things working.
Following https://github.com/GreycLab/gmic/issues/55, my next attempt at building from the release tarball:
gmic
apparently does something incorrect with mutexes when generating the Bash completions. Any suggestions?