Page 1 of 1

Problem compiling dockapp wmclock

Posted: Thu 02 May 2013, 07:50
by PaulR
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

Re: Problem compiling dockapp wmclock

Posted: Thu 02 May 2013, 09:07
by L18L
PaulR wrote:..when I try 'make wmclock wmclock.c' I firstly get an error...
A simple

Code: Select all

make
should do it
...and if it had compiled without error then

Code: Select all

make install

Posted: Thu 02 May 2013, 09:24
by PaulR
Thanks but I tried that first as per the install instructions and it tells me 'no target specified and no makefile found' :(

Paul

Posted: Thu 02 May 2013, 10:12
by Karl Godt
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 .

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
~ # 
That above is my private screwed autogen.sh to give you an idea about it .

Posted: Thu 02 May 2013, 10:37
by PaulR
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

imake

Posted: Thu 02 May 2013, 13:25
by Karl Godt
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 :

Code: Select all

imake
ln -s lang.breton/month.xpm .
ln -s lang.breton/weekday.xpm .
make
imake is not very good supported in Puppy .
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
so I have

Code: Select all

 echo $IMAKEINCLUDE 
-I/usr/lib/X11/config
when it comes to the rare use of imake, which is part of X: xutils-dev

Posted: Thu 02 May 2013, 16:41
by PaulR
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

Posted: Thu 02 May 2013, 17:09
by Karl Godt
Do you have imake ?

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 . 8)

Posted: Thu 02 May 2013, 17:41
by PaulR
'imake' is in /usr/bin/ but executing 'imake' (/usr/bin/imake or just ./imake from that directory) gives me:

"No such file or directory"

I've rebooted since creating 'imake' in /profile.d

Now what?

Thanks again

Paul

Posted: Thu 02 May 2013, 17:50
by Karl Godt
I've rebooted since creating 'imake' in /profile.d
It shoould be /etc/profile.d/ but am guessing a typo of yours

Code: Select all

find /usr -iname Imake.tmpl
should give something like
/usr/X11R7/lib/X11/config/Imake.tmpl
/usr/local/lib/X11/config/Imake.tmpl

*
Here's a shot of my directory :

Posted: Thu 02 May 2013, 18:42
by PaulR
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

Posted: Thu 02 May 2013, 20:29
by Karl Godt
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 ?? :rofl: ] : 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....

Posted: Thu 02 May 2013, 20:43
by Karl Godt
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 .

Posted: Fri 03 May 2013, 11:33
by PaulR
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