Author Topic: Help needed with gpsdrive {Solved}  (Read 592 times)

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1318
Help needed with gpsdrive {Solved}
« on: November 27, 2010, 04:00:11 PM »
Hi all,

packaging gpsdrive, and got it built here by renaming a header folder back to the supposed name, now I need to rename the folder back and find a solution in the spec file somehow, here is where I can need some help. It's easy to rename back, I can alter the gtk package, but I assume it is with purpose they have been renamed (and now cannot be found normally).

We have a gdk-pixbug header library, and it's supposed to be placed in /usr/include/gdk-pixbuf

but because we also have the old 1.0 library both has been pushed down to
/usr/include/gdk-pixbuf-1.0 and
/usr/include/gdk-pixbuf-2.0

One of the headerfiles in gtk need to include one headerfile in gdk - but of course can't find it:
/usr/include/gtk-2.0/gdk/gdkpixbuf.h:37:35: error: gdk-pixbuf/gdk-pixbuf.h: No such file or directory

It should read gdk-pixbuf-2.0/gdk-pixbuf.h

if I rename gdk-pixbuf-2.0 to gdk-pixbuf it compiles 100%,

The build use cmake - how can I tell it where gdk-pixbuf.h is?

cheers,
MBantz
« Last Edit: November 27, 2010, 04:17:45 PM by MBantz »

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1318
Re: Help needed with gpsdrive
« Reply #1 on: November 27, 2010, 04:17:08 PM »
Solved by exporting compiler flags:

export CFLAGS="$RPM_OPT_FLAGS  -I/usr/include/gdk-pixbuf-2.0"
export CXXFLAGS="$RPM_OPT_FLAGS -I/usr/include/gdk-pixbuf-2.0"

cheers,
MBantz
« Last Edit: November 27, 2010, 04:19:30 PM by MBantz »