English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 17 November 2017, 15:33   #501
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by Marlon_ View Post
Only using -m68040 will default to integer mode and soft-float math-libs as far as I understand. I'm not 100% sure myself.
i guess so too now, since there are 040 w/o FPU (LC?), so the -mhard-float makes sense.
emufan is offline  
Old 17 November 2017, 23:18   #502
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Quote:
Originally Posted by emufan View Post
i try to build NAGI, older gcc missing strtok_r,
but found out clib2 of your gcc does have that fucntion.
Code:
m68k-amigaos-gcc.exe -mcrt=clib2 -m68040 -DNDEBUG  *.o -lSDL -lm -o nagi
with 2 link errors:
Code:
sys/rand.o(.text+0x18):sys/rand.o: undefined reference to `ftime'
SDL/lib/libSDL.a(SDL_error.go)(.text+0x3b6):SDL_error.go: undefined reference to `__sF'
collect2: error: ld returned 1 exit status
ftime is defined in m68k-amigaos\m68k-amigaos\clib2\include\sys\timeb.h
not yet sure about the SDL error - maybe this is related to clib2?

#1) with -noixemul , the SDL error is gone:
Code:
m68k-amigaos-gcc.exe -noixemul -m68040 -DNDEBUG  *.o -lSDL -lm -o nagi
...
version/standard.o(.text+0x896):version/standard.o: undefined reference to `strtok_r'
version/standard.o(.text+0x8f6):version/standard.o: undefined reference to `strtok_r'
version/standard.o(.text+0xd76):version/standard.o: undefined reference to `strtok_r'
version/standard.o(.text+0xe78):version/standard.o: undefined reference to `strtok_r'
sys/rand.o(.text+0x18):sys/rand.o: undefined reference to `ftime'
sys/chargen.o(.text+0x124):sys/chargen.o: undefined reference to `strtok_r'
sys/chargen.o(.text+0x1de):sys/chargen.o: undefined reference to `strtok_r'
but ftime remains too. rand.c has "#include <sys/timeb.h>"

any idea how to fix this?
code the missing functions :-)
bebbo is offline  
Old 18 November 2017, 00:14   #503
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by bebbo View Post
code the missing functions :-)
I've done so, with some assistance.
emufan is offline  
Old 19 November 2017, 01:45   #504
pipper
Registered User
 
Join Date: Jul 2017
Location: San Jose
Posts: 652
With the latest code, -fbaserel32 does not cause internal compiler errors anymore (-O[x] still does).

Now I'm facing a different problem. During the linker phase I get a lot of below error messages. All these symbols are supposed to come from .o files produced by vasm via options

PFLAGS=-phxass -Faout -ldots -m68030 -m68882 -I$(SDK_ROOT)/ndk/include.

Does anyone have a suggestion on how to deal with this? Not sure how to tackle this. Is this the assembler producing incompatible symbols or is it some missing gcc linker option?

Any help is appreciated.


Thanks

Code:
m68k-amigaos-gcc -O0 -fbaserel32 -mcrt=clib2 -m68030 -m68881 -Wimplicit -Wno-strict-prototypes -Wno-int-conversion -I /home/matze/amigatoolchain/gcc-6.2/m68k-amigaos/m68k-amigaos/ndk/include -DVERBOSE -D__BIG_ENDIAN__ -DNORMALUNIX -Diabs=abs  doomdef.o doomstat.o dstrings.o amiga_sound.o amiga_system.o amiga_net.o amiga_plane.o amiga_segs.o amiga_data.o amiga_wad.o amiga_sight.o amiga_things.o amiga_median.o c2p_8_020.o c2p_6_020.o c2p_8_030.o c2p_8_040.o c2p_6_040.o c2p8_040_amlaukka.o amiga_video.o amiga_draw.o amiga_mmu.o dehacked.o tables.o f_finale.o f_wipe.o d_main.o d_net.o d_items.o g_game.o m_menu.o m_misc.o m_bbox.o amiga_fixed.o m_swap.o m_cheat.o m_random.o am_map.o p_ceilng.o p_doors.o p_enemy.o p_floor.o p_inter.o p_lights.o p_map.o p_maputl.o p_plats.o p_pspr.o p_setup.o p_sight.o p_spec.o p_switch.o p_mobj.o p_telept.o p_tick.o p_saveg.o p_user.o r_bsp.o r_data.o r_draw.o r_main.o r_plane.o r_segs.o r_sky.o r_things.o w_wad.o wi_stuff.o v_video.o st_lib.o st_stuff.o hu_stuff.o hu_lib.o s_sound.o z_zone.o info.o sounds.o m_argv.o amiga_sega.o  amiga_main.o \
-lnet -o ADoom
amiga_plane.o(.text+0x6):amiga_plane.o: relocation truncated to fit: BASE16 spanstart
amiga_plane.o(.text+0x15a):amiga_plane.o: relocation truncated to fit: BASE16 skyflatnum
amiga_plane.o(.text+0x162):amiga_plane.o: relocation truncated to fit: BASE16 flattranslation
amiga_plane.o(.text+0x166):amiga_plane.o: relocation truncated to fit: BASE16 firstflat
amiga_plane.o(.text+0x176):amiga_plane.o: relocation truncated to fit: BASE16 ds_source
amiga_plane.o(.text+0x17c):amiga_plane.o: relocation truncated to fit: BASE16 viewz
amiga_plane.o(.text+0x184):amiga_plane.o: relocation truncated to fit: BASE16 planeheight

Last edited by DH; 19 November 2017 at 13:48. Reason: Deleted direct signature
pipper is offline  
Old 19 November 2017, 09:44   #505
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Quote:
Originally Posted by pipper View Post
With the latest code, -fbaserel32 does not cause internal compiler errors anymore (-O[x] still does).

Now I'm facing a different problem. During the linker phase I get a lot of below error messages. All these symbols are supposed to come from .o files produced by vasm via options

PFLAGS=-phxass -Faout -ldots -m68030 -m68882 -I$(SDK_ROOT)/ndk/include.

Does anyone have a suggestion on how to deal with this? Not sure how to tackle this. Is this the assembler producing incompatible symbols or is it some missing gcc linker option?

Any help is appreciated.


Thanks,

Mathias

Code:
m68k-amigaos-gcc -O0 -fbaserel32 -mcrt=clib2 -m68030 -m68881 -Wimplicit -Wno-strict-prototypes -Wno-int-conversion -I /home/matze/amigatoolchain/gcc-6.2/m68k-amigaos/m68k-amigaos/ndk/include -DVERBOSE -D__BIG_ENDIAN__ -DNORMALUNIX -Diabs=abs  doomdef.o doomstat.o dstrings.o amiga_sound.o amiga_system.o amiga_net.o amiga_plane.o amiga_segs.o amiga_data.o amiga_wad.o amiga_sight.o amiga_things.o amiga_median.o c2p_8_020.o c2p_6_020.o c2p_8_030.o c2p_8_040.o c2p_6_040.o c2p8_040_amlaukka.o amiga_video.o amiga_draw.o amiga_mmu.o dehacked.o tables.o f_finale.o f_wipe.o d_main.o d_net.o d_items.o g_game.o m_menu.o m_misc.o m_bbox.o amiga_fixed.o m_swap.o m_cheat.o m_random.o am_map.o p_ceilng.o p_doors.o p_enemy.o p_floor.o p_inter.o p_lights.o p_map.o p_maputl.o p_plats.o p_pspr.o p_setup.o p_sight.o p_spec.o p_switch.o p_mobj.o p_telept.o p_tick.o p_saveg.o p_user.o r_bsp.o r_data.o r_draw.o r_main.o r_plane.o r_segs.o r_sky.o r_things.o w_wad.o wi_stuff.o v_video.o st_lib.o st_stuff.o hu_stuff.o hu_lib.o s_sound.o z_zone.o info.o sounds.o m_argv.o amiga_sega.o  amiga_main.o \
-lnet -o ADoom
amiga_plane.o(.text+0x6):amiga_plane.o: relocation truncated to fit: BASE16 spanstart
amiga_plane.o(.text+0x15a):amiga_plane.o: relocation truncated to fit: BASE16 skyflatnum
amiga_plane.o(.text+0x162):amiga_plane.o: relocation truncated to fit: BASE16 flattranslation
amiga_plane.o(.text+0x166):amiga_plane.o: relocation truncated to fit: BASE16 firstflat
amiga_plane.o(.text+0x176):amiga_plane.o: relocation truncated to fit: BASE16 ds_source
amiga_plane.o(.text+0x17c):amiga_plane.o: relocation truncated to fit: BASE16 viewz
amiga_plane.o(.text+0x184):amiga_plane.o: relocation truncated to fit: BASE16 planeheight
maybe your other objects are compiled with -fbaserel not -fbaserel32.

Whenever a 32bit reloc is inserted into a 16 bit reloc position an overflow occurs.
bebbo is offline  
Old 20 November 2017, 08:50   #506
pipper
Registered User
 
Join Date: Jul 2017
Location: San Jose
Posts: 652
These object files were produced by vasm. I don't know how to force it to produce 32bit relative symbols. Interestingly, though, some of the symbols seem to be 32bit.

Code:
matze@ubuntu-VirtualBox:~/adoom_src$ m68k-amigaos-objdump amiga_draw.o -r

amiga_draw.o:     file format a.out-amiga

RELOCATION RECORDS FOR [.text]:
OFFSET           TYPE              VALUE 
0000000a BASE16            _SCREENWIDTH
00000058 BASE16            _SCREENWIDTH
00000080 BASE16            _SCREENWIDTH
0000009c BASE16            _SCREENWIDTH
000000d4 BASE16            _SCREENWIDTH
000000f0 BASE16            _SysBase
00000102 BASE16            _dc_yh
00000106 BASE16            _dc_yl
00000110 BASE16            _dc_x
00000114 BASE16            _ylookup2
00000120 BASE16            _dc_colormap
00000124 BASE16            _dc_source
00000128 BASE16            _dc_iscale
0000012c BASE16            _centery
00000134 BASE16            _dc_texturemid
000001c6 BASE16            _ds_y
000001ca BASE16            _ds_x1
000001ce BASE16            _ylookup2
000001da BASE16            _ds_x2
000001de BASE16            _ds_source
000001e4 BASE16            _ds_colormap
000001ec BASE16            _ds_xfrac
000001f0 BASE16            _ds_yfrac
000001f4 BASE16            _ds_xstep
000001f8 BASE16            _ds_ystep
000002ea BASE16            _dc_yh
000002ee BASE16            _dc_yl
000002f8 BASE16            _dc_x
000002fc BASE16            _ylookup2
00000308 BASE16            _dc_translation
0000030c BASE16            _dc_colormap
00000310 BASE16            _dc_source
00000314 BASE16            _dc_iscale
00000318 BASE16            _centery
00000320 BASE16            _dc_texturemid
000003c2 BASE16            _viewheight
000003c8 BASE16            _dc_yh
000003d4 BASE16            _dc_yl
000003e2 BASE16            _dc_x
000003e6 BASE16            _ylookup2
000003f2 BASE16            _colormaps
000003fc BASE16            _fuzzoffset
00000400 BASE16            _fuzzpos
00000404 BASE16            _SCREENHEIGHT
0000040a BASE16            _SCREENHEIGHT
00000484 BASE16            _fuzzoffset
00000488 32                _fuzzpos
0000049a BASE16            _viewheight
000004a0 BASE16            _dc_yh
000004ac BASE16            _dc_yl
000004ba BASE16            _ylookup2
000004c2 BASE16            _dc_x
000004c6 BASE16            _colormaps
000004d0 BASE16            _fuzzoffset
000004d4 BASE16            _fuzzpos
000004d8 BASE16            _SCREENHEIGHT
000004de BASE16            _SCREENHEIGHT
00000548 BASE16            _fuzzoffset
0000054c 32                _fuzzpos
0000055e BASE16            _dc_yh
00000562 BASE16            _dc_yl
0000056c BASE16            _ylookup2
00000574 BASE16            _dc_x
00000578 BASE16            _dc_translation
0000057c BASE16            _dc_colormap
00000580 BASE16            _dc_source
00000584 BASE16            _dc_iscale
00000588 BASE16            _centery
00000590 BASE16            _dc_texturemid
00000622 BASE16            _dc_yh
00000626 BASE16            _dc_yl
00000630 BASE16            _ylookup2
0000063c BASE16            _dc_x
00000644 BASE16            _dc_colormap
0000064a BASE16            _dc_source
0000064e BASE16            _dc_iscale
00000652 BASE16            _centery
0000065a BASE16            _dc_texturemid
0000065e BASE16            _SCREENWIDTH
000006f2 BASE16            _dc_yh
000006f6 BASE16            _dc_yl
00000700 BASE16            _ylookup2
00000708 BASE16            _dc_x
0000070c BASE16            _dc_colormap
00000710 BASE16            _dc_source
00000714 BASE16            _dc_iscale
00000718 BASE16            _centery
00000720 BASE16            _dc_texturemid
000007a2 32                _ds_y
000007a8 32                _ds_x1
000007ae 32                _ylookup2
000007ba 32                _ds_source
000007c0 32                _ds_colormap
000007c6 32                _ds_x2
000007d0 32                _ds_xfrac
000007d6 32                _ds_yfrac
000007dc 32                _ds_xstep
000007e2 32                _ds_ystep
00000946 BASE16            _ds_y
0000094a BASE16            _ds_x1
0000094e BASE16            _ylookup2
00000958 BASE16            _ds_source
0000095c BASE16            _ds_colormap
00000960 BASE16            _ds_x2
00000968 BASE16            _ds_xfrac
0000096c BASE16            _ds_yfrac
00000970 BASE16            _ds_xstep
00000974 BASE16            _ds_ystep
00000aae BASE16            _dc_x
00000ab4 BASE16            _mfloorclip
00000abc BASE16            _mceilingclip
00000ac6 BASE16            _dc_texturemid
00000aca BASE16            _spryscale
00000ace BASE16            _colfunc
00000ae6 BASE16            _sprtopscreen
00000b10 BASE16            _dc_yl
00000b14 BASE16            _dc_yh
00000b1c BASE16            _dc_source
00000b20 BASE16            _dc_source
00000b24 BASE16            _dc_texturemid
00000b2e BASE16            _dc_texturemid
00000b42 BASE16            _dc_texturemid
00000b8a 32                _I_MarkRect
00000b92 BASE16            _screens
00000b9c BASE16            _SCREENWIDTH
00000bca BASE16            _SCREENWIDTH
00000bd8 BASE16            _SCREENWIDTH
pipper is offline  
Old 20 November 2017, 10:10   #507
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Quote:
Originally Posted by pipper View Post
These object files were produced by vasm. I don't know how to force it to produce 32bit relative symbols. Interestingly, though, some of the symbols seem to be 32bit.

Code:
matze@ubuntu-VirtualBox:~/adoom_src$ m68k-amigaos-objdump amiga_draw.o -r

amiga_draw.o:     file format a.out-amiga

RELOCATION RECORDS FOR [.text]:
OFFSET           TYPE              VALUE 
0000000a BASE16            _SCREENWIDTH
00000058 BASE16            _SCREENWIDTH
00000080 BASE16            _SCREENWIDTH
0000009c BASE16            _SCREENWIDTH
000000d4 BASE16            _SCREENWIDTH
000000f0 BASE16            _SysBase
00000102 BASE16            _dc_yh
00000106 BASE16            _dc_yl
00000110 BASE16            _dc_x
00000114 BASE16            _ylookup2
00000120 BASE16            _dc_colormap
00000124 BASE16            _dc_source
00000128 BASE16            _dc_iscale
0000012c BASE16            _centery
00000134 BASE16            _dc_texturemid
000001c6 BASE16            _ds_y
000001ca BASE16            _ds_x1
000001ce BASE16            _ylookup2
000001da BASE16            _ds_x2
000001de BASE16            _ds_source
000001e4 BASE16            _ds_colormap
000001ec BASE16            _ds_xfrac
000001f0 BASE16            _ds_yfrac
000001f4 BASE16            _ds_xstep
000001f8 BASE16            _ds_ystep
000002ea BASE16            _dc_yh
000002ee BASE16            _dc_yl
000002f8 BASE16            _dc_x
000002fc BASE16            _ylookup2
00000308 BASE16            _dc_translation
0000030c BASE16            _dc_colormap
00000310 BASE16            _dc_source
00000314 BASE16            _dc_iscale
00000318 BASE16            _centery
00000320 BASE16            _dc_texturemid
000003c2 BASE16            _viewheight
000003c8 BASE16            _dc_yh
000003d4 BASE16            _dc_yl
000003e2 BASE16            _dc_x
000003e6 BASE16            _ylookup2
000003f2 BASE16            _colormaps
000003fc BASE16            _fuzzoffset
00000400 BASE16            _fuzzpos
00000404 BASE16            _SCREENHEIGHT
0000040a BASE16            _SCREENHEIGHT
00000484 BASE16            _fuzzoffset
00000488 32                _fuzzpos
0000049a BASE16            _viewheight
000004a0 BASE16            _dc_yh
000004ac BASE16            _dc_yl
000004ba BASE16            _ylookup2
000004c2 BASE16            _dc_x
000004c6 BASE16            _colormaps
000004d0 BASE16            _fuzzoffset
000004d4 BASE16            _fuzzpos
000004d8 BASE16            _SCREENHEIGHT
000004de BASE16            _SCREENHEIGHT
00000548 BASE16            _fuzzoffset
0000054c 32                _fuzzpos
0000055e BASE16            _dc_yh
00000562 BASE16            _dc_yl
0000056c BASE16            _ylookup2
00000574 BASE16            _dc_x
00000578 BASE16            _dc_translation
0000057c BASE16            _dc_colormap
00000580 BASE16            _dc_source
00000584 BASE16            _dc_iscale
00000588 BASE16            _centery
00000590 BASE16            _dc_texturemid
00000622 BASE16            _dc_yh
00000626 BASE16            _dc_yl
00000630 BASE16            _ylookup2
0000063c BASE16            _dc_x
00000644 BASE16            _dc_colormap
0000064a BASE16            _dc_source
0000064e BASE16            _dc_iscale
00000652 BASE16            _centery
0000065a BASE16            _dc_texturemid
0000065e BASE16            _SCREENWIDTH
000006f2 BASE16            _dc_yh
000006f6 BASE16            _dc_yl
00000700 BASE16            _ylookup2
00000708 BASE16            _dc_x
0000070c BASE16            _dc_colormap
00000710 BASE16            _dc_source
00000714 BASE16            _dc_iscale
00000718 BASE16            _centery
00000720 BASE16            _dc_texturemid
000007a2 32                _ds_y
000007a8 32                _ds_x1
000007ae 32                _ylookup2
000007ba 32                _ds_source
000007c0 32                _ds_colormap
000007c6 32                _ds_x2
000007d0 32                _ds_xfrac
000007d6 32                _ds_yfrac
000007dc 32                _ds_xstep
000007e2 32                _ds_ystep
00000946 BASE16            _ds_y
0000094a BASE16            _ds_x1
0000094e BASE16            _ylookup2
00000958 BASE16            _ds_source
0000095c BASE16            _ds_colormap
00000960 BASE16            _ds_x2
00000968 BASE16            _ds_xfrac
0000096c BASE16            _ds_yfrac
00000970 BASE16            _ds_xstep
00000974 BASE16            _ds_ystep
00000aae BASE16            _dc_x
00000ab4 BASE16            _mfloorclip
00000abc BASE16            _mceilingclip
00000ac6 BASE16            _dc_texturemid
00000aca BASE16            _spryscale
00000ace BASE16            _colfunc
00000ae6 BASE16            _sprtopscreen
00000b10 BASE16            _dc_yl
00000b14 BASE16            _dc_yh
00000b1c BASE16            _dc_source
00000b20 BASE16            _dc_source
00000b24 BASE16            _dc_texturemid
00000b2e BASE16            _dc_texturemid
00000b42 BASE16            _dc_texturemid
00000b8a 32                _I_MarkRect
00000b92 BASE16            _screens
00000b9c BASE16            _SCREENWIDTH
00000bca BASE16            _SCREENWIDTH
00000bd8 BASE16            _SCREENWIDTH
the 32 bit relocs are for functions and aren't base relative.
for -fbaserel32 you need objects with BASE32 relocs.

I can't help you with vasm, since I'm not using it - I'm still using O.M.A., but I'm sure other folks here can help.
bebbo is offline  
Old 29 November 2017, 02:22   #508
fstltna
Indie Game Dev
 
fstltna's Avatar
 
Join Date: May 2017
Location: South San Francisco, US
Age: 56
Posts: 227
Send a message via AIM to fstltna Send a message via Yahoo to fstltna
Im using this on a ubuntu 16.04 server and my .c files all compile with no warnings. But at link time i get a "can not find crt0.o" error. I looked everywhere for the text crt0 but dont see it anywhere. no ncurses/termcap/terminfo either
If i run "files" on the .o files i see they are proper a.out 68010 code.

Any ideas why it thinks it needs crt0.o and how to remove it?
fstltna is offline  
Old 29 November 2017, 08:11   #509
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Quote:
Originally Posted by fstltna View Post
Im using this on a ubuntu 16.04 server and my .c files all compile with no warnings. But at link time i get a "can not find crt0.o" error. I looked everywhere for the text crt0 but dont see it anywhere. no ncurses/termcap/terminfo either
If i run "files" on the .o files i see they are proper a.out 68010 code.

Any ideas why it thinks it needs crt0.o and how to remove it?
you have to install those files by yourself from the ixemul package (http://aminet.net/package/dev/gg/ixemul-bin)

or use -noixemul (my favorit) or -mcrt=clib2 to compile and link against libs which are provided by this tool chain.
bebbo is offline  
Old 29 November 2017, 09:37   #510
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
the correct link is this, while not sure which version to prefer:
Ixemul V47.3 - ixemul-sdk.lha,
ixemul or libnix. V48.1.1
ixemul 48.3-3 sdk
ixemul-63.1-m68k.lha

but I did not install those. as bebbo said, it is mandatory for the gcc6.x toolchain to use one of the following options:
-noixemul, -mcrt=clib2 or -mcrt=nix13 - this was said the other day.

Last edited by emufan; 29 November 2017 at 10:03.
emufan is offline  
Old 29 November 2017, 17:44   #511
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Quote:
Originally Posted by emufan View Post
the correct link is this, while not sure which version to prefer:
Ixemul V47.3 - ixemul-sdk.lha,
ixemul or libnix. V48.1.1
ixemul 48.3-3 sdk
ixemul-63.1-m68k.lha

but I did not install those. as bebbo said, it is mandatory for the gcc6.x toolchain to use one of the following options:
-noixemul, -mcrt=clib2 or -mcrt=nix13 - this was said the other day.
If you install ixemul properly it should work too, but I never tried...

...well, I tried once to build the ixemul package from scratch and it ended up as pita.
bebbo is offline  
Old 29 November 2017, 19:08   #512
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by bebbo View Post
If you install ixemul properly it should work too, but I never tried...
next time I have something for gcc6, I will try.
at the moment AmiDevCpp's gcc 3.4.0 has better compatibility to those old things i try to build.

#1) what is the logical location of the include and lib folders from the packs above:
this one: /opt/m68k-amigaos/m68k-amigaos/ ?

Last edited by emufan; 29 November 2017 at 22:20.
emufan is offline  
Old 30 November 2017, 17:39   #513
fstltna
Indie Game Dev
 
fstltna's Avatar
 
Join Date: May 2017
Location: South San Francisco, US
Age: 56
Posts: 227
Send a message via AIM to fstltna Send a message via Yahoo to fstltna
I got the build woRking without errors, but when I try and run it on my amiga i just get a error about no tool for the app. How do I tell AmigaOS that a file is a executable?
fstltna is offline  
Old 30 November 2017, 17:49   #514
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by fstltna View Post
I got the build woRking without errors, but when I try and run it on my amiga i just get a error about no tool for the app. How do I tell AmigaOS that a file is a executable?
set E flag with protect command:
protect example.exe ADD RWED or protect example.exe RWED ADD
emufan is offline  
Old 30 November 2017, 17:57   #515
fstltna
Indie Game Dev
 
fstltna's Avatar
 
Join Date: May 2017
Location: South San Francisco, US
Age: 56
Posts: 227
Send a message via AIM to fstltna Send a message via Yahoo to fstltna
Quote:
Originally Posted by emufan View Post
set E flag with protect command:
protect example.exe ADD RWED or protect example.exe RWED ADD
I'll try that when I get home, thx!
fstltna is offline  
Old 30 November 2017, 17:59   #516
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Selecting the icon and the key combination Right-Amiga + I opens up a window where you can set it to executable as well.
Marlon_ is offline  
Old 30 November 2017, 18:04   #517
fstltna
Indie Game Dev
 
fstltna's Avatar
 
Join Date: May 2017
Location: South San Francisco, US
Age: 56
Posts: 227
Send a message via AIM to fstltna Send a message via Yahoo to fstltna
Quote:
Originally Posted by Marlon_ View Post
Selecting the icon and the key combination Right-Amiga + I opens up a window where you can set it to executable as well.
It says it is executable already, but trying to run it says no default tool...
fstltna is offline  
Old 30 November 2017, 18:04   #518
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Quote:
Originally Posted by fstltna View Post
It says it is executable already, but trying to run it says no default tool...
Ah, okay.
Marlon_ is offline  
Old 30 November 2017, 18:16   #519
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by fstltna View Post
It says it is executable already, but trying to run it says no default tool...
maybe wrong icon type? I think project type icons needs such default tool (iconx / xicon),
standard "program" icons do not need that.
emufan is offline  
Old 01 December 2017, 23:47   #520
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Quote:
Originally Posted by fstltna View Post
I got the build woRking without errors, but when I try and run it on my amiga i just get a error about no tool for the app. How do I tell AmigaOS that a file is a executable?
which version did you pick?
bebbo is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
New GCC based dev toolchain for AmigaOS 3.x cla Coders. Releases 8 24 December 2017 10:18
Issue with photon/xxxx WinUAE Toolchain arpz Coders. Asm / Hardware 2 26 September 2015 22:33
New 68k gcc toolchain arti Coders. C/C++ 17 31 July 2015 03:59
Hannibal's WinUAE Demo Toolchain 5 Bobic Amiga scene 1 23 July 2015 21:04
From gcc to vbcc. Cowcat Coders. General 9 06 June 2014 14:45

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 18:26.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.44552 seconds with 16 queries