Compiling Error

Hi

Ever since probably version 1.7.3 or 1.7.4 I have not been able to compile GMIC any longer. I get the following in both my Debian Jessie and Ubuntu 14.04 installations. Both are 64 OS’s:

g++: error: gmic_libc.cpp: No such file or directory
g++: fatal error: no input files
compilation terminated.
Makefile:462: recipe for target 'libcgmic.o' failed
make[2]: *** [libcgmic.o] Error 4
make[2]: Leaving directory '/home/joe/Desktop/gmic-1.7.5/src'
Makefile:427: recipe for target 'libc' failed
make[1]: *** [libc] Error 2
make[1]: Leaving directory '/home/joe/Desktop/gmic-1.7.5/src'
Makefile:385: recipe for target 'all' failed
make: *** [all] Error 2

Any hints or tips?

Thanks!

Actually, since 1.7.5, the file gmic_libc.cpp is not provided anymore in the gmic/src folder, but in the gmic-community repository. It seems the Makefile has not been modified according to these changes.
Quick fix : for the entry all:, remove the libc and zart dependencies.
I’ll do it for the next release 1.7.6 (planed soon).

@joegiampaoli try the CMake way:

Why? Because the CMake method is way simpler and more automatic than the makefile method. It needs testing.

I’ve posted a new .tar.gz source archive here : http://gmic.eu/files/prerelease/gmic_source.tar.gz
which should solve the problem you have. Could you tell me if that’s the case ?
Thanks by advance

Hey David!

Thanks for your response and support!

Just downloaded and compiling will report back if I get any errors…

I also noticed that zart is no longer included in the sources, is this correct?

Hey Morgan! Thanks, I didn’t give your solution a go, David just posted what might be a fix, but I’ll for sure remember your solution if I ever encounter a similar problem again.

Thanks for your help!

Well, it compiled fine, but at install I got this:

mkdir -p `gimptool-2.0 --gimpplugindir`/plug-ins/
cp -f gmic_gimp `gimptool-2.0 --gimpplugindir`/plug-ins/
cp -f ../resources/gmic_film_cluts.gmz `gimptool-2.0 --gimpplugindir`/plug-ins/
mkdir -p /usr/bin/
cp -f gmic /usr/bin/
mkdir -p /usr/include/
cp -f gmic.h /usr/include/
cp -f gmic_libc.h /usr/include/
cp: cannot stat ‘gmic_libc.h’: No such file or directory
Makefile:597: recipe for target 'install' failed
make: *** [install] Error 1

EDIT: I think it kind of installed but partially, some modules are not in the GIMP’s list…

Well, I compiled gmic yesterday (nearly 24 hours ago) with no problems

Kubuntu 16.04 Gimp 2.9.5

git clone https://github.com/dtschump/gmic.git cd gmic/src && make gimp

Could not be easier.

Ah yes, probably my fault again :slight_smile: I’ll try to fix that as well.
ZArt is also a part of the gmic-community repository. To be able to compile it you should have something like this :

$ mkdir foo && cd foo/
$ git clone https://github.com/dtschump/gmic.git
$ git clone https://github.com/dtschump/gmic-community.git
$ cd gmic/src/
$ make zart

(same for libc actually).

It should be fixed as well now (with the latest pre-release .tar.gz).

Hey! Thanks David! Sorry I didn’t get back sooner, my internet has been terribly bad since last night and made even downloading a 2 MB tar.gz file very painful! I will test soon and let you know how all is.

I really appreciate your help!

EDIT: Meanwhile I’m using precompiled binaries…

Just an update so we can close this thread. I just downloaded sources for 1.7.6 and all compilation and installation went fine, all working good. I did have to delete my ~/.config/gmic folder because I was getting “not found” executions from my favorite list (mostly for dream smoothing), deleting that folder and just keeping the file “gimp_faves” reset-ed everything back to normal and dream smoothing works fine.

Thanks againg!

1 Like