Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Oct 2014, 21:18
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Problem compiling dockapp wmclock
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [14 Posts]  
Author Message
PaulR

Joined: 04 May 2005
Posts: 246
Location: UK

PostPosted: Thu 02 May 2013, 03:50    Post subject:  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
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2525
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Thu 02 May 2013, 05:07    Post subject: Re: Problem compiling dockapp wmclock  

PaulR wrote:
..when I try 'make wmclock wmclock.c' I firstly get an error...

A simple
Code:
make

should do it
...and if it had compiled without error then
Code:
make install
Back to top
View user's profile Send private message 
PaulR

Joined: 04 May 2005
Posts: 246
Location: UK

PostPosted: Thu 02 May 2013, 05:24    Post subject:  

Thanks but I tried that first as per the install instructions and it tells me 'no target specified and no makefile found' Sad

Paul
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Thu 02 May 2013, 06:12    Post subject:  

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:
#!/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 .
Back to top
View user's profile Send private message Visit poster's website 
PaulR

Joined: 04 May 2005
Posts: 246
Location: UK

PostPosted: Thu 02 May 2013, 06:37    Post subject:  

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
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Thu 02 May 2013, 09:25    Post subject:  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 :
Code:
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:
  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:
 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, 13:10; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
PaulR

Joined: 04 May 2005
Posts: 246
Location: UK

PostPosted: Thu 02 May 2013, 12:41    Post subject:  

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
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Thu 02 May 2013, 13:09    Post subject:  

Do you have imake ?
Code:
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 .. Smile
NOPE it is ln -s lang.english/*.xpm . Will fix that in the last post .
*
Hard as a Rock Linux t2 Puppy Linux . Cool
Back to top
View user's profile Send private message Visit poster's website 
PaulR

Joined: 04 May 2005
Posts: 246
Location: UK

PostPosted: Thu 02 May 2013, 13:41    Post subject:  

'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
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Thu 02 May 2013, 13:50    Post subject:  

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

It shoould be /etc/profile.d/ but am guessing a typo of yours
Code:
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 :
wmclock-directory.jpg
Description 
jpg

 Download 
Filename  wmclock-directory.jpg 
Filesize  75.81 KB 
Downloaded  377 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
PaulR

Joined: 04 May 2005
Posts: 246
Location: UK

PostPosted: Thu 02 May 2013, 14:42    Post subject:  

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! Smile

Paul
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Thu 02 May 2013, 16:29    Post subject:  

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....
Back to top
View user's profile Send private message Visit poster's website 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Thu 02 May 2013, 16:43    Post subject:  

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 .
Back to top
View user's profile Send private message Visit poster's website 
PaulR

Joined: 04 May 2005
Posts: 246
Location: UK

PostPosted: Fri 03 May 2013, 07:33    Post subject:  

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
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [14 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0772s ][ Queries: 13 (0.0048s) ][ GZIP on ]