LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   fatal error: goo/gmem.h: No such file or directory; but file does exist!! (http://www.linuxquestions.org/questions/linux-general-1/fatal-error-goo-gmem-h-no-such-file-or-directory%3B-but-file-does-exist-4175435142/)

lgoldma 11-01-2012 04:21 PM

fatal error: goo/gmem.h: No such file or directory; but file does exist!!
 
I am trying to compile cups-filters. configure went OK. with make I had to set a couple of environmental variable to the directory locations. The directory is /usr/lib64 for the libs and /usr/include for the headers. After I did that the make went without errors.

When I did make install it aborted with this error:
filter/pdftoopvp/oprs/OPRS.cxx:27:22: fatal error: goo/gmem.h: No such file or directory
compilation terminated.
make: *** [pdftoopvp-OPRS.o] Error 1

But, if I do a locate I get:
/usr/include/glib-2.0/glib/gmem.h
/usr/include/poppler/goo/gmem.h
/usr/include/xpdf/goo/gmem.h

so the file does exist. How do I get the compiler to find the file?

custangro 11-01-2012 04:33 PM

Set your LD_LIBRARY_PATH to include the path you want to compile against.

Then run a "make clean" then (you don't have to but it's nice) run a "configure" again. Then run your "make"

lgoldma 11-01-2012 06:00 PM

Thank you.
So I did an export LD_LIBRARY_PATH= and put in it all the directories such as /usr/include/poppler
Then I did a make clean, ran configure again, and then make and I got the same error
Now what?

I did the export as root, make clean as root, but the configure and make as user. Don't know if that matters.

mwilner 03-07-2013 04:00 PM

i figured this one out but ...
 
Hello,
I had the same issues and figured out that with setting CXXFLAGS="-I/usr/include/poppler" and CFLAGS="-I/usr/include/poppler" I can finally compile with the result that now the following error appears:
OPVPSplash.cxx:(.text+0x2898): undefined reference to `SplashBitmap::SplashBitmap(int, int, int, SplashColorMode, bool, bool)'
pdftoopvp-OPVPOutputDev.o: In function `OPVPOutputDev::clipToStrokePath(GfxState*)':
OPVPOutputDev.cxx:(.text+0x22e2): undefined reference to `SplashBitmap::SplashBitmap(int, int, int, SplashColorMode, bool, bool)'
pdftoopvp-OPVPOutputDev.o: In function `OPVPOutputDev::drawMaskedImage(GfxState*, Object*, Stream*, int, int, GfxImageColorMap*, bool, Stream*, int, int, bool, bool)':
OPVPOutputDev.cxx:(.text+0x3e76): undefined reference to `SplashBitmap::SplashBitmap(int, int, int, SplashColorMode, bool, bool)'
pdftoopvp-OPVPOutputDev.o: In function `OPVPOutputDev::drawSoftMaskedImage(GfxState*, Object*, Stream*, int, int, GfxImageColorMap*, bool, Stream*, int, int, GfxImageColorMap*, bool)':
OPVPOutputDev.cxx:(.text+0x4708): undefined reference to `SplashBitmap::SplashBitmap(int, int, int, SplashColorMode, bool, bool)'
OPVPOutputDev.cxx:(.text+0x47af): undefined reference to `Splash::drawImage(bool (*)(void*, unsigned char*, unsigned char*), void*, SplashColorMode, bool, int, int, double*, bool)'

This happens with the cups-filters-1.0-20130306 and cups-filters-1.0-20130307.
Is there a stable version that doesn't need to be fixed so that I can actually start working on my actual problem and add new code to the cups driver?
It is very frustrating to not have a clear outline on what is needed, where to get it and how to compile it properly to get a working cups dev environment.
Hope someone has some insight?
Thank you,
\Manfred


P.S.
So I was told today that the error should be fixed in the latest version and I should get it here:
Should be fixed with
http://bzr.linuxfoundation.org/logge.../revision/7035
which is part of 1.0.30 (released 07-Mar-2013)

but downloading and building just showed the same error. BTW. the latest version is 7043 at time of download.
I am really frustrated as nothing seems to be easy in Linux land and nothing seems to be stable either unless you are installing a released OS version which works nicely.


All times are GMT -5. The time now is 07:45 AM.