Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
1 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 1

more...

Browsing this Thread:   1 Anonymous Users



(1) 2 3 »


DClock 1.6

Joined:
2004/4/11 11:57
From Italy
Group:
Member
Posts: 698
Offline
Found this on Aminet:

http://aminet.net/util/time/DClock16.lha

It's the clock I used on my real Amiga many years ago. Now I'd like to have it on Aros... can someone compile it for Aros? It should be a simple task (at least I think so) but I'm not a coder and if a source doesn't compile with a simple "make" then I don't know what the problem is.

Posted on: 5/6 3:03
Transfer the post to other applications Transfer


Re: DClock 1.6

Joined:
2007/4/16 6:26
From Norway
Group:
Member
Posts: 4075
Offline
Yanosh: Something wrong with the makefile I guess.

DClock:
cppc Main.o Window.o Draw.o SetAlarm.o -lamiga
Main.o: Main.c Main.h Window.h MenuDefs.h Draw.h SetAlarm.h
cc Main.c
Window.o: Window.c Window.h Main.h
cc Window.c
Draw.o: Draw.c Draw.h Main.h Window.h MenuDefs.h
cc Draw.c
SetAlarm.o: SetAlarm.c SetAlarm.h MenuDefs.h
cc SetAlarm.c

When I try to compile I get this:
RAM:DClock16/src> make
makefile:2: *** missing separator. Stop.

The sourcecode readme files say this:

This code compiles under MaxonC++ V1.1. If you use another
compiler you will have to make some adjustments so that the
two child tasks will work correctly. You might probably have
to turn off stack checking and use the __interrupt or
__saveds keywords at the appropriate places. You might
also have to change some include-filenames, i.e. <clib/...>
to <proto/...>


Posted on: 5/6 12:25
_________________
www.aspireos.com
Transfer the post to other applications Transfer


No Account
Re: DClock 1.6
Guest_No Account
You will have a good bit to fix in code like that - it depends on a lot of non standard-compliant/broken behaviour in the compiler.


Posted on: 5/6 14:03
Transfer the post to other applications Transfer


Re: DClock 1.6

Joined:
2008/6/2 2:28
Group:
Member
Posts: 258
Offline
It has small bugs but it works :)

Attach file:



png  Screen Dclock.png (67.90 KB)
1118_5aef72675aa53.png 503X404 px

Posted on: 5/6 14:27
Transfer the post to other applications Transfer


No Account
Re: DClock 1.6
Guest_No Account
Quote:

mmartinka wrote:
It has small bugs but it works :)


Nice ... I also adapted the code, so hopefully they can see what needs done.

Just extract it somewhere inside the AROS src tree and issue "make local-dclock"

Attach file:


zip DClock.zip Size: 16.97 KB; Hits: 29

Posted on: 5/6 14:58
Transfer the post to other applications Transfer


Re: DClock 1.6

Joined:
2010/12/23 9:12
Group:
Member
Posts: 67
Offline
Hi,

The information might possibly need an update if this is going to go public somehow.

Mysha

Posted on: 5/6 15:12
_________________
Mysha
Transfer the post to other applications Transfer


Re: DClock 1.6

Joined:
2004/4/11 11:57
From Italy
Group:
Member
Posts: 698
Offline
@nikolaos

Yes, I had the same error. I'm not a coder, sadly.

@mmartinka

Which bugs? It's DClock at fault or AROS? And... where is the executable?

@Kalamatee

Thanks! I tried to compile the source, but make failed, so I tried to complie DClock this way:

gcc Draw.c Main.c SetAlarm.c Window.c

And it worked. Is this good enough for a fully working executable? As far as I can see, it's working. Ah, with my current screenmode (1440x900) this clock is too small. I'd like at least to double the size... is this simple enough or it needs to be rewritten?

Posted on: 5/7 12:30
Transfer the post to other applications Transfer


No Account
Re: DClock 1.6
Guest_No Account
Quote:

Yanosh wrote:
@nikolaos

Yes, I had the same error. I'm not a coder, sadly.

@mmartinka

Which bugs? It's DClock at fault or AROS? And... where is the executable?

@Kalamatee

Thanks! I tried to compile the source, but make failed, so I tried to complie DClock this way:

gcc Draw.c Main.c SetAlarm.c Window.c

And it worked. Is this good enough for a fully working executable? As far as I can see, it's working. Ah, with my current screenmode (1440x900) this clock is too small. I'd like at least to double the size... is this simple enough or it needs to be rewritten?



Ahh sorry - yes the mmakefile.src was for ABI v1 - you would need to adjust the include line for ABI v0.


And unfortunately, the clock seems to be very hardcoded for a specific size. You would need to redo all the rendering code, to make it work at a different scale.

Posted on: 5/7 15:43
Transfer the post to other applications Transfer


Re: DClock 1.6

Joined:
2010/8/30 7:20
Group:
Member
Posts: 1275
Offline
guys, upload the source code along with mmakefile to some known common location for future use and adjustments, be it aros-archives or aminet as a fall back option.

Posted on: 5/8 4:21
Transfer the post to other applications Transfer


Re: DClock 1.6

Joined:
2004/4/7 4:26
Group:
Member
Posts: 4439
Offline
wawa wrote:
guys, upload the source code along with mmakefile to some known common location for future use and adjustments, be it aros-archives or aminet as a fall back option.

done!

http://archives.aros-exec.org/index.php?function=uploads

Thanks for this :)


Posted on: 5/8 8:17
_________________
p.bes
Icaros Desktop AROS distribution mantainer
Transfer the post to other applications Transfer



(1) 2 3 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4439
2 magorium
magorium
4095
3 nikolaos
nikolaos
4075
4 phoenixkonsole
phoenixkonsole
3941
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2807
7 mazze
mazze
2222
8 clusteruk
clusteruk
2112
9 damocles
damocles
1789
10 BSzili
BSzili
1516
© 2004-2018 AROS Exec