You are not logged in.

#1 2013-11-17 13:51:54

Senseoflife
Member
Registered: 2009-02-19
Posts: 25

[SOLVED] Compiling smaragd

Hi,
I'm trying to compile smaragd (or smaragd-git, same problem) and this is the output:

==> Building and installing package
==> Making package: smaragd 0.0.7-1 (Sun Nov 17 14:43:45 CET 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading 125162-smaragd-0.0.7.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 66776  100 66776    0     0  13428      0  0:00:04  0:00:04 --:--:-- 18704
==> Validating source files with md5sums...
    125162-smaragd-0.0.7.tar.gz ... Passed
==> Extracting sources...
  -> Extracting 125162-smaragd-0.0.7.tar.gz with bsdtar
==> Starting build()...
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt-Version 4.8.5 (using /usr/bin/qmake-qt4)
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.1e") 
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Found Automoc4: /usr/bin/automoc4  
-- Found Perl: /usr/bin/perl (found version "5.18.1") 
-- Found Phonon: /usr/include/qt4 (Required is at least version "4.3.80") 
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found KDE 4.11 include dir: /usr/include
-- Found KDE 4.11 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found KDE4Workspace: /usr/lib64/cmake/KDE4Workspace/KDE4WorkspaceConfig.cmake  
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- Found GLIB2: /usr/lib64/libglib-2.0.so  
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/yaourt-tmp-stefano/aur-smaragd/src/smaragd-0.0.7/build
Scanning dependencies of target kwin3_smaragd_automoc
Generating kwin_smaragd.moc
[  0%] Built target kwin3_smaragd_automoc
Scanning dependencies of target kwin3_smaragd
[  6%] Building CXX object src/CMakeFiles/kwin3_smaragd.dir/kwin3_smaragd_automoc.o
[ 13%] Building CXX object src/CMakeFiles/kwin3_smaragd.dir/kwin_smaragd.o
/tmp/yaourt-tmp-stefano/aur-smaragd/src/smaragd-0.0.7/src/kwin_smaragd.cpp:37:19: fatal error: cairo.h: No such file or directory
 #include <cairo.h>
                   ^
compilation terminated.
src/CMakeFiles/kwin3_smaragd.dir/build.make:80: recipe for target 'src/CMakeFiles/kwin3_smaragd.dir/kwin_smaragd.o' failed
make[2]: *** [src/CMakeFiles/kwin3_smaragd.dir/kwin_smaragd.o] Error 1
CMakeFiles/Makefile2:112: recipe for target 'src/CMakeFiles/kwin3_smaragd.dir/all' failed
make[1]: *** [src/CMakeFiles/kwin3_smaragd.dir/all] Error 2
Makefile:126: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build smaragd.

Cairo is obviously installed

locate cairo.h                
/usr/include/cairo/cairo.h
/usr/include/gtk-2.0/gdk/gdkcairo.h
/usr/include/gtk-3.0/gdk/gdkcairo.h
/usr/include/librsvg-2.0/librsvg/rsvg-cairo.h
/usr/include/pango-1.0/pango/pangocairo.h
/usr/include/pycairo/py3cairo.h
/usr/include/pycairo/pycairo.h
/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-linux/rb_cairo.h
/usr/share/doc/cairomm-1.0/reference/html/namespaceCairo.html
/usr/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html

I'm now on x86_64 so I tried to compile it on another pc (i686) and was able to compile succesfully.
Now? What's wrong with this x86_64 pc?

Last edited by Senseoflife (2013-11-17 14:32:55)

Offline

#2 2013-11-17 14:09:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Compiling smaragd

Do you have base-devel group installed?

Offline

#3 2013-11-17 14:18:18

Senseoflife
Member
Registered: 2009-02-19
Posts: 25

Re: [SOLVED] Compiling smaragd

Ok.. this is weird!
I installed base-devel during arch installation. I've reinstalled it now and.. now smaragd is compiling!
Thanks for your help! smile

Offline

#4 2013-11-17 14:26:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Compiling smaragd

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB