LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-01-2012, 04:21 PM   #1
lgoldma
LQ Newbie
 
Registered: Jul 2003
Location: Lexington, MA
Distribution: Mandriva 2011
Posts: 29

Rep: Reputation: 2
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?
 
Old 11-01-2012, 04:33 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
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"
 
Old 11-01-2012, 06:00 PM   #3
lgoldma
LQ Newbie
 
Registered: Jul 2003
Location: Lexington, MA
Distribution: Mandriva 2011
Posts: 29

Original Poster
Rep: Reputation: 2
Question

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.

Last edited by lgoldma; 11-01-2012 at 06:06 PM.
 
Old 03-07-2013, 04:00 PM   #4
mwilner
LQ Newbie
 
Registered: Nov 2010
Posts: 8

Rep: Reputation: 0
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.

Last edited by mwilner; 03-08-2013 at 12:26 PM. Reason: added new context that I later received.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can not compile gcc, fatal error: stdio.h: No such file or directory StefanTh Linux - Newbie 6 02-10-2014 12:06 AM
gcc fatal error :no such file or directory question NoobLion Programming 2 08-26-2011 12:53 AM
[SOLVED] dpkg fatal error unable to open files list file Stale NFS file handle cmr26 Linux - Software 5 09-06-2009 04:10 PM
awk: fatal:cannot open file for reading (no such file or Directory) in Linux sangati vishwanath Linux - Software 4 07-06-2005 12:59 AM
The file or directory file:/misc/cdrom does not exist rangerssg Linux - Newbie 5 08-29-2004 05:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration