Problem compiling dockapp wmclock
Problem compiling dockapp wmclock
I'm trying to compile wmclock, a dockapp for the Window Maker window manager.
./configure works fine but when when I try 'make wmclock wmclock.c' I firstly get an error
wmclock.c:201:17: error: 'VERSION' undeclared here (not in a function)
If I temporarily fix this by changing the line...
char *version = VERSION;
to any old string, I get a bunch of undefined reference errors (eg 'undefined reference to XParseColor'). I've checked that all the header files exist (eg /usr/include/X11/Xatom.h) and tried changing the header declarations from <header> to "header" style but I still get the same errors.
Any ideas please, I'm a total novice in the compiling area having been brought up on IDE's!
Cheers
Paul
./configure works fine but when when I try 'make wmclock wmclock.c' I firstly get an error
wmclock.c:201:17: error: 'VERSION' undeclared here (not in a function)
If I temporarily fix this by changing the line...
char *version = VERSION;
to any old string, I get a bunch of undefined reference errors (eg 'undefined reference to XParseColor'). I've checked that all the header files exist (eg /usr/include/X11/Xatom.h) and tried changing the header declarations from <header> to "header" style but I still get the same errors.
Any ideas please, I'm a total novice in the compiling area having been brought up on IDE's!
Cheers
Paul
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
Re: Problem compiling dockapp wmclock
A simplePaulR wrote:..when I try 'make wmclock wmclock.c' I firstly get an error...
Code: Select all
make
...and if it had compiled without error then
Code: Select all
make install
Then it appears that you have dl a git snapshot, that likely needs to run some kind of autogen.sh inside to create the Makefile .
That above is my private screwed autogen.sh to give you an idea about it .
Code: Select all
#!/bin/sh
####### bootstrap scim-1.4.9 ###################
#set -x
# 1
#aclocal -I m4
# 2
#autoheader
# 3
#libtoolize -c --automake # --ltdl #1.4.10
# 4
#automake --add-missing --copy --include-deps
# 5
#autoconf
### @end 1
################################################
prefix=/usr/local/bin
#prefix=/usr/bin
# 1
#aclocal-1.9.6-orig
$prefix/acloocal
# 3
$prefix/libtoolize
# 2
$prefix/autoheader
# 5
$prefix/autoconf
# 4
#automake-1.9.6-orig --add-missing
$prefix/automake --add-missing
~ #
Thanks for the reply but I have no idea how to use the information you've given me. I downloaded the source from the 'official' dockapps site here:
http://dockapps.windowmaker.org/file.php/id/202
Paul
http://dockapps.windowmaker.org/file.php/id/202
Paul
imake
Looks that you have a tendency to choose very old sources with very special makes .
In this cas it is imake for creating the Makefile for make :
imake is not very good supported in Puppy .
My /etc/profile.d/imake looks as
so I have
when it comes to the rare use of imake, which is part of X: xutils-dev
In this cas it is imake for creating the Makefile for make :
Code: Select all
imake
ln -s lang.breton/month.xpm .
ln -s lang.breton/weekday.xpm .
make
My /etc/profile.d/imake looks as
Code: Select all
if [ -f /usr/lib/X11/config/Imake.tmpl ];then
IMAKEINCLUDE="-I/usr/lib/X11/config"
elif [ -f /usr/X11R7/lib/X11/config/Imake.tmpl ];then
IMAKEINCLUDE="-I/usr/X11R7/lib/X11/config"
elif [ -f /usr/local/lib/X11/config/Imake.tmpl ];then
IMAKEINCLUDE="-I/usr/local/lib/X11/config"
fi
export IMAKEINCLUDE
Code: Select all
echo $IMAKEINCLUDE
-I/usr/lib/X11/config
Last edited by Karl Godt on Thu 02 May 2013, 17:10, edited 1 time in total.
Sorry Karl I still don't understand what to do with the code you supplied.
First snippet, no idea what to do with this:
imake
ln -s....
Second snippet:
if [ -f....
I created a file /etc/profile.d/imake and added that code
Third snippet, don't know what to do with this:
echo $IMAKEINCLUDE
....
(it just echoes a blank line to the terminal).
It's a lot of hard work just to get the time/date on-screen isn't it?!!
Paul
First snippet, no idea what to do with this:
imake
ln -s....
Second snippet:
if [ -f....
I created a file /etc/profile.d/imake and added that code
Third snippet, don't know what to do with this:
echo $IMAKEINCLUDE
....
(it just echoes a blank line to the terminal).
It's a lot of hard work just to get the time/date on-screen isn't it?!!
Paul
Do you have imake ?
*
/etc/profile.d/* files should be run by /etc/profile . Normally it gets sourced by .bashrc . Probably needs a logout/login to show up .
*
as for ln -s I confused breton with britain ..
NOPE it is ln -s lang.english/*.xpm . Will fix that in the last post .
*
Hard as a Rock Linux t2 Puppy Linux .
Code: Select all
which imake
/etc/profile.d/* files should be run by /etc/profile . Normally it gets sourced by .bashrc . Probably needs a logout/login to show up .
*
as for ln -s I confused breton with britain ..
NOPE it is ln -s lang.english/*.xpm . Will fix that in the last post .
*
Hard as a Rock Linux t2 Puppy Linux .
It shoould be /etc/profile.d/ but am guessing a typo of yoursI've rebooted since creating 'imake' in /profile.d
Code: Select all
find /usr -iname Imake.tmpl
/usr/X11R7/lib/X11/config/Imake.tmpl
/usr/local/lib/X11/config/Imake.tmpl
*
Here's a shot of my directory :
- Attachments
-
- wmclock-directory.jpg
- (75.81 KiB) Downloaded 1023 times
Yes, sorry it was a typo - imake is in /etc/profile.d/
I've searched the entire system for Imake.tmpl but it doesn't exist.
As I haven't got an overview of what I'm supposed to be doing I'm now completely confused.
Are you saying that a script 'imake' will use a template to create a 'make' script so I can compile and build the program?
Thanks for bearing with me!
Paul
I've searched the entire system for Imake.tmpl but it doesn't exist.
As I haven't got an overview of what I'm supposed to be doing I'm now completely confused.
Are you saying that a script 'imake' will use a template to create a 'make' script so I can compile and build the program?
Thanks for bearing with me!
Paul
I have so much new on my Puppy-4 , wanted something from that age *2003* : http://archive.debian.net/source/hamm/xfree86 but 40 to 60 MB is a little too much for me today , also as it seems that these newer graphics chips seem to need recent Xorg :CRY:
So probably try this : [ firefox speaking my language .. ? How did I manage this ?? ] : Quellcode-Paket: xutils-dev (1:7.1.ds-6)
http://archive.debian.net/source/etch/xutils-dev
There is of course recent here :
http://packages.ubuntu.com/source/raring/xutils-dev
Download whatever of these and try to ./configure;make;make install in there .
I'll try with etch for now....
So probably try this : [ firefox speaking my language .. ? How did I manage this ?? ] : Quellcode-Paket: xutils-dev (1:7.1.ds-6)
http://archive.debian.net/source/etch/xutils-dev
There is of course recent here :
http://packages.ubuntu.com/source/raring/xutils-dev
Download whatever of these and try to ./configure;make;make install in there .
I'll try with etch for now....
there are 6 folders in the xutils-dev source pakage :
gccmakedep imake lndir makedepend util-macros xorg-cf-files
It is the " xorg-cf-files " directory that holds the imake template and conf files .
No problem to
./configure --prefix=/usr OR --prefix=/usr/X11
make
make install
these .
Check out on your system if you have many files in /usr/X11R7 or not .
Puppy4 , Wary/Racy and Slacko I think uses /usr/X11R7 quiet well, while in Debian/Ubuntu based Puppies /usr/X11R7 is a dummy folder , rarely used - to --prefix= correctly .
gccmakedep imake lndir makedepend util-macros xorg-cf-files
It is the " xorg-cf-files " directory that holds the imake template and conf files .
No problem to
./configure --prefix=/usr OR --prefix=/usr/X11
make
make install
these .
Check out on your system if you have many files in /usr/X11R7 or not .
Puppy4 , Wary/Racy and Slacko I think uses /usr/X11R7 quiet well, while in Debian/Ubuntu based Puppies /usr/X11R7 is a dummy folder , rarely used - to --prefix= correctly .
I just can't get this to work I'm afraid so I'll set it aside until I have a better understanding of make etc. I managed to compile two other time/date dockapps but neither of them looked right (the 'business area' of each was offset for some reason).
In the meantime I've installed Conky and chopped out most everything except the date/time/cpu&RAM usage.
Thanks for help though,
Paul
In the meantime I've installed Conky and chopped out most everything except the date/time/cpu&RAM usage.
Thanks for help though,
Paul