You are not logged in.

#1 2012-01-22 11:26:05

donbex
Member
Registered: 2010-12-23
Posts: 53

[SOLVED] make fails but makepkg works fine (when building zathura git)

Hello,
when I build the "zathura-girara-git" AUR package with makepkg everything works fine, but if I try to build zathura after cloning the git repo make fails with some errors.

make output from makepkg:

zathura build options:
CFLAGS  = -march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -std=c99 -pedantic -Wall -Wno-format-zero-length -Wextra   -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14  
LIBS    = -lgirara-gtk2   -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   -ldl -lpthread -lm
DFLAGS  = -g
CC commands.c
CC      = cc
CC document.c
CC render.c
CC zathura.c
CC completion.c
CC bookmarks.c
CC utils.c
CC shortcuts.c
CC config.c
CC callbacks.c
CC print.c
CC database-plain.c
CC -o zathura
installing executable file
installing header files
installing manual pages
which: no rst2man in (/usr/lib/ccache/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/bin/:/home/bexie/bin)
installing desktop file
installing pkgconfig file

make output:

zathura build options:
CFLAGS  = -std=c99 -pedantic -Wall -Wno-format-zero-length -Wextra   -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14    
LIBS    = -lgirara-gtk2   -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   -lsqlite3   -ldl -lpthread -lm
DFLAGS  = -g
CC      = cc
CC commands.c
In file included from commands.c:3:0:
commands.h:7:20: fatal error: girara.h: No such file or directory
compilation terminated.
make: *** [commands.o] Error 1

I tried exporting the enviroment variables from /etc/makepkg.conf, to no avail. I also tried adding the girara include files to CFLAGS, but it throws the same kind of error about some gtk dependency.
I don't know if this is a general issue, but as I can compile it through makepkg I don't think this is due to zathura.
Does anyone have a clue on what could be wrong here?

Last edited by donbex (2012-01-22 12:56:59)

Offline

#2 2012-01-22 12:03:21

Stemp
Member
From: Paris, Europe
Registered: 2011-04-26
Posts: 61
Website

Re: [SOLVED] make fails but makepkg works fine (when building zathura git)

In the PKGBUILD, they are cloning the repo by doing :

_gitroot="git://pwmt.org/zathura.git"
_gitname="zathura"

git clone $_gitroot
cd $_gitname && git checkout --track -b develop origin/develop

Are you doing the same ?


Sorry for my English - Home Page - «Violence never settles anything.» : Genghis Khan, 1162-1227

Offline

#3 2012-01-22 12:56:36

donbex
Member
Registered: 2010-12-23
Posts: 53

Re: [SOLVED] make fails but makepkg works fine (when building zathura git)

I wasn't doing the "git checkout --track -b develop origin/develop" part. Now it works, thank you.

Offline

Board footer

Powered by FluxBB