LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-01-2008, 08:58 AM   #1
vehn
Member
 
Registered: Dec 2007
Posts: 54

Rep: Reputation: 17
AWN + Xfce4, error compiling


New version AWN (avant windows navigator) don't need gnome's lib in dependences (!!! =). I compile AWN from source and get following error:

In file included from main.c:48:
awn-task.h:27:29: error: libwnck/libwnck.h: No such file or directory
awn-task.h:28:40: error: libwnck/window-action-menu.h: No such file or directory
In file included from awn-task.h:35,
from main.c:48:
awn-x.h:37: error: expected ')' before '*' token
awn-x.h:43: error: expected ')' before '*' token
awn-x.h:45: error: expected ')' before '*' token
In file included from main.c:48:
awn-task.h:72: error: expected declaration specifiers or '...' before 'WnckWindow'
awn-task.h:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

but: ls /var/log/packages/libwnck-2.18.3-i486-1
/var/log/packages/libwnck-2.18.3-i486-1

Source AWN https://launchpad.net/awn/0.2/0.2.6/...r-0.2.6.tar.gz

Can anyone help with this?

Thanks,
Murat.
 
Old 03-01-2008, 12:11 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Install libwnck. It's not a GNOME library just because it's developed by GNOME.
 
Old 03-02-2008, 01:17 AM   #3
vehn
Member
 
Registered: Dec 2007
Posts: 54

Original Poster
Rep: Reputation: 17
Yes, i have installed libwnck-2.18.3-i486-1
 
Old 03-02-2008, 01:20 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
libwnck-2.18.3-i486-1 is probably only the runtime files. You need to install the development package for libwnck. It will have a dev or devel in the name.

Never mind....that's a Slackware package isn't it?

Start with the first error. Do you have libwnck.h installed on your system?

Last edited by weibullguy; 03-02-2008 at 01:26 AM.
 
Old 03-02-2008, 03:10 AM   #5
vehn
Member
 
Registered: Dec 2007
Posts: 54

Original Poster
Rep: Reputation: 17
Quote:
Do you have libwnck.h installed on your system?
Yes.
#locate libwnck.h
/usr/include/libwnck-1.0/libwnck/libwnck.h

and..
#locate window-action-menu.h
/usr/include/xfce4/libxfcegui4/netk-window-action-menu.h
/usr/include/libwnck-1.0/libwnck/window-action-menu.h !!!!
/usr/share/gtk-doc/html/libwnck/libwnck-window-action-menu.html
 
Old 03-02-2008, 08:28 AM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
You need to make sure -I/usr/include/libwnck-1.0 is part of the CFLAGS for AWN to find the libwnck headers. libwnck provides a meta-data file for pkg-config to use. Do you have pkg-config installed? That would be the best route, otherwise try configuring AWN with the appropriate CFLAGS
Code:
CFLAGS="-I/usr/include/libwnck-1.0" ./configure
 
Old 03-02-2008, 11:57 AM   #7
vehn
Member
 
Registered: Dec 2007
Posts: 54

Original Poster
Rep: Reputation: 17
Yes! Thanks for your help =)) I had battle with this error full night
But now i have new error:
Quote:
CFLAGS="-I/usr/include/libwnck-1.0" ./configure --with-gconf=no --with-desktop=xfce4 --without-vala
............
/bin/sh ../libtool --tag=CC --mode=link gcc -I/usr/include/libwnck-1.0 -Wall -fno-strict-aliasing -fmessage-length=0 -D_FORTIFY_SOURCE=2 -o avant-window-navigator main.o awn-applet-manager.o awn-applet-proxy.o awn-bar.o awn-hotspot.o awn-marshallers.o awn-task.o awn-task-manager.o awn-window.o awn-x.o awn-utils.o xutils.o ..//usr/lib/pkgconfig/libwnck/libwnck-1.la -lgtk-x11-2.0 -lstartup-notification-1 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lXcomposite -lXfixes -lXrender -lX11 ../libawn/libawn.la -lm
libtool: link: cannot find the library `..//usr/lib/pkgconfig/libwnck/libwnck-1.la' or unhandled argument `..//usr/lib/pkgconfig/libwnck/libwnck-1.la'
............
#locate libwnck-1.la
/usr/lib/libwnck-1.la

I tryed CFLAGS="-I/usr/include/libwnck-1.0" LDFLAGS="-L/usr/lib" ./configure or CFLAGS="-I/usr/include/libwnck-1.0" LIBS="-l/usr/lib ./configure but it don't help for me. Here is my './configure --help', section "Some influential environment variables"
Quote:
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
CXX C++ compiler command
CXXFLAGS C++ compiler flags
CXXCPP C++ preprocessor
F77 Fortran 77 compiler command
FFLAGS Fortran 77 compiler flags
PYTHON_VERSION
The installed Python version to use, for example '2.3'. This
string will be appended to the Python interpreter canonical
name.
PKG_CONFIG path to pkg-config utility
PYGTK_CFLAGS
C compiler flags for PYGTK, overriding pkg-config
PYGTK_LIBS linker flags for PYGTK, overriding pkg-config
PYCAIRO_CFLAGS
C compiler flags for PYCAIRO, overriding pkg-config
PYCAIRO_LIBS
linker flags for PYCAIRO, overriding pkg-config
AWN_CFLAGS C compiler flags for AWN, overriding pkg-config
AWN_LIBS linker flags for AWN, overriding pkg-config
DOCK_CFLAGS C compiler flags for DOCK, overriding pkg-config
DOCK_LIBS linker flags for DOCK, overriding pkg-config
What i am doing wrong?
Sorry for my bad english, it is not my native language =)
 
Old 03-02-2008, 06:23 PM   #8
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
This is hosed!
Code:
//usr/lib/pkgconfig/libwnck/libwnck-1.la
Somehow you've got AWN looking in /usr/lib/pkgconfig/libwnck for the libwnck library!! I'm guessing you've got something screwed up in your environment variables; probably as a result of trying to fix the original problem. Did you pass /usr/lib/pkgconfig/libwnck to any env variables?
 
Old 03-03-2008, 03:23 AM   #9
vehn
Member
 
Registered: Dec 2007
Posts: 54

Original Poster
Rep: Reputation: 17
[solved] AWN + Xfce4, error

1. install libwnck from www.slacky.eu
2. configure: CFLAGS="-I/usr/include/libwnck-1.0" ./configure --prefix=/usr --with-gconf=no --with-desktop=xfce4 --without-vala

thanks to weibullguy
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
freebsd 6.2 xfce4.4 error phinux *BSD 1 06-17-2007 01:44 AM
xfce4 4.3.90.2 exo error davimint Linux - Software 2 08-19-2006 01:32 AM
Getting rid of XFCE4-panel...using xfce4 and Ubuntu jagibbs Linux - Software 1 04-06-2006 05:00 AM
xfce4 error at start elstefano Linux - Software 0 08-26-2005 06:50 AM
Compiling Xfce4 pauloco Linux - Software 0 06-10-2004 03:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:07 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