Forum > Other

[SOLVED] Files on the Amiga

<< < (5/5)

chobani:

--- Quote ---I noticed an issue with the latest vasm/vlink and compiling the Free Pascal 3.2.2 source-tree. I'll have to investigate further f.i. to determine which exact version(s) will still work.
--- End quote ---

I was able to read and write files in the same directory with code as posted. Here's is a breakdown of everything I tried and where I failed/succeeded.

Emulator - I went back to this because I realized I was running and older version of the OS and it clearly stated I needed a newer version to run it. So I updated the OS and walla FPC was working! Well sort of, I could not get the install file to work at all. It shows up properly in the Amiga explorer, but double clicking or running from command line did not work. If I went into the FPC compiler folder I could now get FPC to execute, but I could never get it to see even the  primary units to compile hello world. That's where I stayed with that.

Cross Compiler - I followed the steps outlined by ALB42, but I kept failing on the last step. I'm not sure what in the previous steps was causing the issue. I can see from youtube others have gotten this working so I don't want to waste anyone's time with something I'm just not getting right. VASM/VLINK seemed to set up fine and I was failing on the Free Pascal compile so maybe that's what you are seeing too.

Docker - So I relegated myself to the ALB42's Docker. The docker has it's own issues of pain points, but it's very nice having a whole set up to VLC into and just compile the code to the Amiga 68k target and have it work. Now that I actually had an Amiga Emulator up, I copied over the binary and everything seems to work! So at very least I can report that the issue with file writing and reading to the current directory was addressed at some point between 3.0.0 and now.

I'll continue checking here though and can test anything you need might need me to. It would still be much nicer to have the cross compiler up instead of using the Docker, but at least I have a pathway. Would not have got there without you and I very very much appreciate it! I'm sure the Amiga hobbyists do too!

TRon:
I am a bit busy atm so will try to reply more thorough later but I can at least let you know that the issue you have with using the installer icon is because when you do a fresh installation of the Amiga Workbench that there is no installer tool installed. You can find one on aminet.net (which exact version I have to verify so will get back to you on that later).

The installer script makes all the necessary arrangement to let FPC work correctly on your Amiga system (though you could setup it manually as well but that requires a bit more knowledge on how to configure FPC properly).

chobani:

--- Quote ---The installer script makes all the necessary arrangement to let FPC work correctly on your Amiga system (though you could setup it manually as well but that requires a bit more knowledge on how to configure FPC properly).
--- End quote ---

Ah! I don't expect anyone to show me how to use an Amiga since I only just started a few days ago, but I'm not sure how long it would have been until I got to there! haha, so once again thank you very much.

TRon:

--- Quote from: chobani on February 24, 2023, 10:43:54 pm ---Ah! I don't expect anyone to show me how to use an Amiga since I only just started a few days ago, but I'm not sure how long it would have been until I got to there! haha, so once again thank you very much.

--- End quote ---
:)

It was not my intention to explain everything or write a guide, as it will last me a lifetime. There are so many little hidden gems in the OS and peculiarities wrt inner workings that I do not even known them all by heart.

But this one is an important step to get you started. Most people would have given up already by now (deemed too complicated).

The installer is actually present on one of the original Workbench disks so you could copy over that one but since you are spending time already you could just as well install an updated version from aminet.

You can use the Installer v43.3 dev. package from aminet.net (some browsers have issues downloading from a non secure site, just make an exception for this file or aminet as a whole) and copy out the installer executable and installer.info file (if you like to read you can also copy the installer.guide and installer.guide.info files)

Copy these files to your Amiga System drawer (thus drivename:System)

If you have a project icon (such as an installer script icon) then you can leftpress the icon to activate it, then press the right mouse button (keep it pressed) move your mouse to the workbench menu at the top of your screen and select the display icon information from the menu (release the pressed right mouse button) in order to see what kind of tool is associated with the project (an installer script would display installer as the tool, sometime it includes a drawer as well).

If you got that setup correctly then you should be able to double-click the Free Pascal install icon from ALB42's archive as it should now invoke the installer tool automatically. Depending on your answers the installer tool will ask different kind of questions (there is a readme in the Free Pascal package from ALB42 that explains a few of those options/answers)

BTW: if you wish to make your life a bit easier wrt using your Amiga setup then make sure to checkout (also on aminet) kingcon (shell replacements that offers scroll-bars, scroll back buffer, command history etc) and directory opus 4.x (/the/ file manager for Amiga) also known under its pet name DOpus. The 4.x version is the old-fashioned dual pane filemanager while the 5.x version is an attempt at mimicking windows explorer style file management (which makes more sense to install it as Workbench replacement and is why I personally prefer to use 4.x).

TRon:
As promised, a more elaborated reply.


--- Quote from: chobani on February 24, 2023, 09:13:22 pm ---Emulator -
- snip -
Well sort of, I could not get the install file to work at all.
- snip -

--- End quote ---
As discussed in the other posts.

When FPC is not setup correctly it will spit out junk, e.g. garbage in garbage out  :)


--- Quote ---Cross Compiler - I followed the steps outlined by ALB42, but I kept failing on the last step. I'm not sure what in the previous steps was causing the issue. I can see from youtube others have gotten this working so I don't want to waste anyone's time with something I'm just not getting right. VASM/VLINK seemed to set up fine and I was failing on the Free Pascal compile so maybe that's what you are seeing too.

--- End quote ---
It is not every day that I update the binutils and/or verify my setup scripts. Questions like yours is always motivation to check them out and verify if they still work.

That is when I noticed that I ran into errors myself as well. So thank you for having put my attention to that.

Thus, it seems not your wrong doing.


--- Quote ---Docker - So I relegated myself to the ALB42's Docker. The docker has it's own issues of pain points, but it's very nice having a whole set up to VLC into and just compile the code to the Amiga 68k target and have it work.

--- End quote ---
Thank you for letting know that the docker worked for you.


--- Quote ---Now that I actually had an Amiga Emulator up, I copied over the binary and everything seems to work! So at very least I can report that the issue with file writing and reading to the current directory was addressed at some point between 3.0.0 and now.

--- End quote ---
There have been a lot of changes/improvements over the years (3.0.0 was released in 2015 !).

I can't remember if reading/writing files was stil one of the issues but back then we were constantly working with Free Pascal from trunk as errors got fixed/reported when they were encountered.


--- Quote ---I'll continue checking here though and can test anything you need might need me to. It would still be much nicer to have the cross compiler up instead of using the Docker, but at least I have a pathway. Would not have got there without you and I very very much appreciate it! I'm sure the Amiga hobbyists do too!

--- End quote ---
If it would help you (and others out) out then I am more than happy to put up a complete list of instructions that you could follow step by step starting from scratch.

In fact I was already starting to make preparations to do that because as said I do not check my scripts every day and for sure do not update my (working) installation that often (usually I only need to update my scripts when a new version of Free Pascal is released).

In the process of doing so I seem to have ran into the same issue that you seem to have so I need a little more time to verify everything and make sure all is working as intended. Thus, in case interested just let me know and I'll post as soon as is possible.

fwiw: writing that something does not work is not very helpful without being able to see the actual errors so  in case you run into issue then please post some output from the compiler and/or build process. That is the most quickest way to be able to try and replicate the issue and to come up with a solution. In a similar fashion details of the host you use as well as your the input you used to generate the error are important as well. There are so many different setups and so few crystal balls left in the world  ;)

Navigation

[0] Message Index

[*] Previous page

Go to full version