Welcome, Guest. Please login or register.

Author Topic: Basic Amiga-API coding  (Read 11888 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Heinz

  • Full Member
  • ***
  • Join Date: Nov 2005
  • Posts: 154
    • Show only replies by Heinz
    • http://amidevcpp.amiga-world.de
Re: Basic Amiga-API coding
« Reply #14 on: July 31, 2006, 10:21:24 PM »
Quote

Karlos wrote:
I hope that request doesn't turn into a Reaction v MUI v Gadtools v GTK wrapper thingy type flamefest :lol:


Why bother when there is ZUNE :lol:
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: Basic Amiga-API coding
« Reply #15 on: July 31, 2006, 10:42:02 PM »
Isn't that just a MUI compatible GUI system taken from AROS?

Ah, forget it - going too OT...
int p; // A
 

Offline AJCopland

Re: Basic Amiga-API coding
« Reply #16 on: July 31, 2006, 10:55:27 PM »
Hi really good idea to write these, major thumbs up.

Noticed though that your link to the third intuition tutorial is set as intuition1.c instead of intuition3.c

Keep it up!

Andy
Be Positive towards the Amiga community!
 

Offline Dagon

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 612
    • Show only replies by Dagon
    • http://www.amigasympan.gr/depa
Re: Basic Amiga-API coding
« Reply #17 on: August 01, 2006, 02:21:28 AM »
If you do also a double buffer example which is more intuitive than that in the RKM that would be great :)
\\"So we must exercise ourselves in the things which bring happiness, since, if that be present, we have everything, and, if that be absent, all our actions are directed towards attaining it\\" - Epicurus
 

Offline KronosTopic starter

  • Resident blue troll
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4017
    • Show only replies by Kronos
    • http://www.SteamDraw.de
Re: Basic Amiga-API coding
« Reply #18 on: August 01, 2006, 05:04:19 PM »
@Karlos

No point for a flamefest, MUI rocks everything else sucks ....


I might at some later time do a simple GadTools-example (as GadTools is a s simple as it gets), and later on something bout MUI, since MUI is the only GUI that I use myself.

Nothing that would stop any given Triton-troll to to an Triton-t5utorial.

@AJCopland

Fixed that.

@Dagon

Does that mean I have to dig out my Dev-CD, search for that example, and on top of it find a way to make it even worse ???

Puih, thats 3 wishes at a time, and a chocolate-egg wound solve this one....
1. Make an announcment.
2. Wait a while.
3. Check if it can actually be done.
4. Wait for someone else to do it.
5. Start working on it while giving out hillarious progress-reports.
6. Deny that you have ever announced it
7. Blame someone else
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: Basic Amiga-API coding
« Reply #19 on: August 01, 2006, 06:16:20 PM »
MUI Schmooey... :lol:

BTW, I like the tutorial idea, I must say :-)
int p; // A
 

Offline KronosTopic starter

  • Resident blue troll
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4017
    • Show only replies by Kronos
    • http://www.SteamDraw.de
Re: Basic Amiga-API coding
« Reply #20 on: August 01, 2006, 06:16:36 PM »
Added chapter 4, basic menus.

intuition4
1. Make an announcment.
2. Wait a while.
3. Check if it can actually be done.
4. Wait for someone else to do it.
5. Start working on it while giving out hillarious progress-reports.
6. Deny that you have ever announced it
7. Blame someone else
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Basic Amiga-API coding
« Reply #21 on: August 01, 2006, 07:10:06 PM »
@Kronos
Quote
Added chapter 4, basic menus.

It would crash less if you terminated the mymenu array with NM_END entry.
 

Offline KronosTopic starter

  • Resident blue troll
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4017
    • Show only replies by Kronos
    • http://www.SteamDraw.de
Re: Basic Amiga-API coding
« Reply #22 on: August 01, 2006, 08:50:42 PM »
 :oops:  :oops:  :oops:  :oops:  :oops:

Fixed.
1. Make an announcment.
2. Wait a while.
3. Check if it can actually be done.
4. Wait for someone else to do it.
5. Start working on it while giving out hillarious progress-reports.
6. Deny that you have ever announced it
7. Blame someone else
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: Basic Amiga-API coding
« Reply #23 on: August 01, 2006, 09:15:37 PM »
In itself, this is a valuable lesson:

Never assume because something compiles and appears to run fine that it's working properly.

Heck, I've been bitten a few times by making this assumption.
int p; // A
 

guest1955

  • Guest
Re: Basic Amiga-API coding
« Reply #24 on: August 01, 2006, 11:04:11 PM »
The first 3 tutorials compile and run fine using the AROS-sdk and gcc under Linux, but when I try to compile the 4th, I get:

intuition4.c:15: warning: pointer targets in initialization differ in signedness
intuition4.c:16: warning: pointer targets in initialization differ in signedness
intuition4.c:17: warning: pointer targets in initialization differ in signedness
intuition4.c:18: warning: pointer targets in initialization differ in signedness
intuition4.c:19: warning: pointer targets in initialization differ in signedness
intuition4.c:20: warning: pointer targets in initialization differ in signedness
intuition4.c:21: warning: pointer targets in initialization differ in signedness
intuition4.c:22: warning: pointer targets in initialization differ in signedness
intuition4.c:23: warning: pointer targets in initialization differ in signedness
intuition4.c: In function ‘main’:
intuition4.c:56: warning: assignment makes pointer from integer without a cast
intuition4.c:62: warning: assignment from incompatible pointer type
intuition4.c:66: warning: passing argument 1 of ‘(void *)*(&((SysBase) + 4294967044u)->vec)’ from incompatible pointer type
There are undefined symbols in 'a.out':
         U FreeMenus

Anyone got any ideas?
 

Offline gklka

  • Newbie
  • *
  • Join Date: Feb 2006
  • Posts: 2
    • Show only replies by gklka
    • http://gk.lka.hu
Re: Basic Amiga-API coding
« Reply #25 on: August 01, 2006, 11:38:11 PM »
I get this error message:

gcc o/gcc-classic-stable/main.o -lauto -o bin/gcc-classic-stable/example4
/gg/lib/libamiga.a(createmenus.o)(.text+0x4): undefined reference to `GadToolsBase'
/gg/lib/libamiga.a(freemenus.o)(.text+0x4): undefined reference to `GadToolsBase'
collect2: ld returned 1 exit status
make: *** [bin/gcc-classic-stable/example4] Error 1
Done.

What shall I do? What's wrong?
 

Offline KronosTopic starter

  • Resident blue troll
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4017
    • Show only replies by Kronos
    • http://www.SteamDraw.de
Re: Basic Amiga-API coding
« Reply #26 on: August 02, 2006, 04:14:37 AM »
@gklka

Either open GadTools by hand, or switch to "libnix" in the compiler-options (linker options).
1. Make an announcment.
2. Wait a while.
3. Check if it can actually be done.
4. Wait for someone else to do it.
5. Start working on it while giving out hillarious progress-reports.
6. Deny that you have ever announced it
7. Blame someone else
 

Offline KronosTopic starter

  • Resident blue troll
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4017
    • Show only replies by Kronos
    • http://www.SteamDraw.de
Re: Basic Amiga-API coding
« Reply #27 on: August 02, 2006, 04:19:33 AM »
@tangletown

Again, GadTools seems to not been opened, dunno whether a compiler-switch will help for AROS.

The warnings can be ignored atm, but I assume it is the last "0" in each of the lines, replacing them with "NULL" might work.
1. Make an announcment.
2. Wait a while.
3. Check if it can actually be done.
4. Wait for someone else to do it.
5. Start working on it while giving out hillarious progress-reports.
6. Deny that you have ever announced it
7. Blame someone else
 

Offline gklka

  • Newbie
  • *
  • Join Date: Feb 2006
  • Posts: 2
    • Show only replies by gklka
    • http://gk.lka.hu
Re: Basic Amiga-API coding
« Reply #28 on: August 02, 2006, 11:14:25 AM »
@Kronos

Switching to libnix works, thanks!

So we can use menus - what's next? :)

PS: Window title in example 4 is still "intuition3"! ;)
 

Offline KronosTopic starter

  • Resident blue troll
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4017
    • Show only replies by Kronos
    • http://www.SteamDraw.de
Re: Basic Amiga-API coding
« Reply #29 from previous page: August 06, 2006, 10:36:17 AM »
Intuition5 getting input from multiple windows has just beed uploaded.
1. Make an announcment.
2. Wait a while.
3. Check if it can actually be done.
4. Wait for someone else to do it.
5. Start working on it while giving out hillarious progress-reports.
6. Deny that you have ever announced it
7. Blame someone else