Problem compiling dockapp wmclock

discuss compiling applications for Puppy
Post Reply
Message
Author
PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

Problem compiling dockapp wmclock

#1 Post 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

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: Problem compiling dockapp wmclock

#2 Post 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

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#3 Post 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

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#4 Post 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 .

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#5 Post 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

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

imake

#6 Post 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
Last edited by Karl Godt on Thu 02 May 2013, 17:10, edited 1 time in total.

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#7 Post 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

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#8 Post 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)

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#9 Post 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

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#10 Post 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 :
Attachments
wmclock-directory.jpg
(75.81 KiB) Downloaded 1023 times

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#11 Post 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

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#12 Post 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....

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#13 Post 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 .

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#14 Post 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

Post Reply