AROS Exec

Development => AROS Software Development => Topic started by: AMIGASYSTEM on October 30, 2021, 08:08:44 AM

Title: MediaVault
Post by: AMIGASYSTEM on October 30, 2021, 08:08:44 AM
For those who are interested are available the sources in "C" di MediaVault is a free and open source desktop application for AmigaOS 4 that can be used to search and listen to Online radio stations from all available countries, the selected radio station can be streamed using an Audio player.

http://eab.abime.net/showthread.php?t=108231&page=2
Title: Re: MediaVault
Post by: salvo on October 30, 2021, 12:17:00 PM
I could try to compile :-\
Title: Re: MediaVault
Post by: AMIGASYSTEM on October 30, 2021, 12:34:46 PM
Excellent ! to a request of mine for an AROS version the author told me that if there were more AROS users he could make it himself, at least that's what I understood in the thread I attached above, previous page.
Title: Re: MediaVault
Post by: salvo on October 30, 2021, 12:48:57 PM
I don't know if I can fill out, meanwhile I can't assign GCC to my system, the Development Tools are in SYS: :-\
Title: Re: MediaVault
Post by: salvo on October 30, 2021, 01:03:06 PM
Alternatively you could tell him the amount of the donation he needs to take him to Aros "Pago Io" :)
Title: Re: MediaVault
Post by: AMIGASYSTEM on October 30, 2021, 03:00:01 PM
I'm sorry but I don't like to talk about this, if you want you can you.
Title: Re: MediaVault
Post by: salvo on October 30, 2021, 03:31:04 PM
Look at the code
Title: Re: MediaVault
Post by: AMIGASYSTEM on October 30, 2021, 05:19:13 PM
I don't know if I can fill out, meanwhile I can't assign GCC to my system, the Development Tools are in SYS: :-\

Io non ho mai compilato se mi spieghi cosa usi per compilare potrei capire come risolvere il tuo problema per l'assign, potrei anche tentare di compilarlo io se mi dai qualche nozione in italiano !

--- English ----

I have never compiled if you explain me what you use to compile I could understand how to solve your problem for the assign, I could also try to compile it myself if you give me some knowledge in Italian!
Title: Re: MediaVault
Post by: salvo on October 30, 2021, 06:25:34 PM
diciamo che la procedura è abbastanza semplice ma allo stesso tempo può richedere un pò di nozioni di programmazione, io sono riuscito a fare qualcosa sotto linux ed ho compilato i sorgenti di aros, cmq se stai usando aros one apri una shell e digiti gcc -v per vedere se hai tutto apposto, io anche se ho installato gcc non riesco ad utilizzarlo perchè non ho assegnato nulla per farlo riconoscere da shell.
Dopo devi scaricare i sorgenti di mediavault li scompatti dove vuoi apri una shell e ti dirigi nella directory dove hai scompattato i file e fai un bel make e vedi cosa succede.

English

Let's say that the procedure is quite simple but at the same time it can rich a bit of programming notions, I managed to do something under Linux and I compiled the aros springs, anyway if you are using Aros One Open a shell and type GCC -V To see if you have everything affixed, I even if I installed GCC I can't use it because I haven't assigned anything to get it recognized by Shell.
After you have to download the Sources of MediaVault unpack it where you want to open a shell and direct you in the directory where you unpacked the files and make a nice make and see what happens.
Title: Re: MediaVault
Post by: AMIGASYSTEM on October 30, 2021, 07:27:54 PM
Se utilizzi il mio AROS One la cartella "Development" è assegnata e se è presente il GCC puoi avvialo da una Shell.

Ho provato su Windows ma anche se mi posiziono nella cartella dei sorgenti stranamente ricevo l'errore "no such file or directory"

---- English -----

If you use my AROS One the "Development" folder is assigned and if GCC is present you can start it from a Shell.

I've tried on Windows but even if I go to the source folder I strangely get the error "no such file or directory".
Title: Re: MediaVault
Post by: salvo on October 30, 2021, 10:09:51 PM
non so come funziona la compilazione sotto windows ma non puoi come linux o aros stesso compilare i sorgenti di un programma senza installare i tools di sviluppo

English

I don't know how the compilation works under Windows but you can not like Linux or Aros to fill in the sources of a program without installing development tools
Title: Re: MediaVault
Post by: AMIGASYSTEM on October 30, 2021, 10:13:01 PM
Dopo aver installato "gcc-4.2.2-i386-aros" e  fatto la giusta Assegnazione il GCC sembra funzionare bene su AROS One .

Naturalmente visto la mia grande ignoranza sulla programmazione ho provato ad eseguire il file che mi è sembrato più ovvio ricevendo un sacco di errori, vedi screenshot.

Se qualcuno mi da un aiutino riproverò la compilazione, naturalmente se si tratta di qualcosa di molto complicato potrei rinuanciare, intanto dopo questa esperienza il GCC e le sue assegnazioni saranno inseriti nella prossima release di AROS One

--- English ----


After installing "gcc-4.2.2-i386-aros" and doing the right Assignment the GCC seems to work fine on AROS One .

Of course given my great ignorance on programming I tried to run the file that seemed more obvious receiving a lot of errors, see screenshot.

If someone gives me a little help I'll try again the compilation, of course if it is something very complicated I could postpone, meanwhile after this experience the GCC and its assignments will be included in the next release of AROS One.
Title: Re: MediaVault
Post by: salvo on October 30, 2021, 10:20:02 PM
I realized now that GCC is missing on Deadwood ISO ;D
Title: Re: MediaVault
Post by: cdimauro on October 31, 2021, 05:33:47 AM
non so come funziona la compilazione sotto windows ma non puoi come linux o aros stesso compilare i sorgenti di un programma senza installare i tools di sviluppo

English

I don't know how the compilation works under Windows but you can not like Linux or Aros to fill in the sources of a program without installing development tools
On Windows is exactly the same: you need tools to compile something.


What I recommend on Windows is to install WSL2 https://docs.microsoft.com/en-us/windows/wsl/install
This gives you the possibility to install a complete Linux distribution from the supported ones (I've installed Ubuntu 20.04, for example) and you can use them exactly like a real Linux distro (but it's integrated on Windows, and it's quite easy to exchange files between the two worlds). With Windows 11 GUI applications are supported too.
Title: Re: MediaVault
Post by: AMIGASYSTEM on October 31, 2021, 06:54:49 AM
At the moment I still use Win7 and WSL2 requires Win10/11.

I would love to learn about AROS if someone can help me with that.
Title: Re: MediaVault
Post by: AMIGASYSTEM on October 31, 2021, 07:11:06 AM
I think MediaVault can't be ported to AROS because it uses "ReAction". :(

Title: Re: MediaVault
Post by: salvo on October 31, 2021, 10:43:46 AM
Amigasystem that Assign you did for GCC?
Title: Re: MediaVault
Post by: AMIGASYSTEM on October 31, 2021, 11:00:15 AM
Assign GCC: SYS:Development
Assign USR: GCC:
Assign LIB: GCC:lib
Path GCC:bin add

Naturalmente devi anche copiare/sovrascrivere  tutto il contenuto incluso nell'archivio gcc-4.2.2-i386-aros.tar.bz2 nella cartella "Development" e riavviare il sistema.

--- English ---

Of course you also have to copy/overwrite all content included in the gcc-4.2.2-i386-aros.tar.bz2 archive to the "Development" folder and reboot the system.
Title: Re: MediaVault
Post by: salvo on October 31, 2021, 11:18:12 AM
Thank you very much :D
Title: Re: MediaVault
Post by: AMIGASYSTEM on October 31, 2021, 11:31:25 AM
Metti gli assign nella user-startup

Se devi aggiungere questi assign anche nella ISO gli utenti quando eseguono InstallAROS dovranno scegliere l'installazione "Development" altrimenti se questa cartella non verrà ritrovata al riavvio del sistema installato usciranno fuori errori.

Per evitare questo puoi creare uno script con gli assign in modo che si possa eseguire comodamente quando serve e dopo aver creato o copiato la cartella  "Development", inoltre per chi non installa "Development" dovra assegnare anche questo percorso nella Env-Archive

--- English ---

Put the assignments in the user-startup

If you have to add these assigns also in the ISO, users when running InstallAROS will have to choose the "Development" installation, otherwise if this folder is not found when restarting the installed system, errors will come up.

To avoid this you can create a script with the assigns so that you can run it conveniently when you need and after creating or copying the folder "Development", also for those who do not install "Development" should also assign this path in the Env-Archive
Title: Re: MediaVault
Post by: salvo on October 31, 2021, 11:49:46 AM
ok right thank's :)
Title: Re: MediaVault
Post by: AMIGASYSTEM on October 31, 2021, 12:32:58 PM
There is also a shortcut for using assigns in the ISO to avoid mistakes by people who don't install "Development", and that is to add in "If EXISTS" before the assigns and "EndIF" after the assigns.

This way if the "Development" folder doesn't exist the assigns will be ignored.

In any case the assignment of the "Development" path must always be present in the Env-Archive otherwise the assignments will not work.
Title: Re: MediaVault
Post by: walkero on October 31, 2021, 01:48:29 PM
Hello everyone. I just saw that topic and am sorry I didn't reply earlier.

MediaVault is not easy to be ported to AROS natively, since it uses ReAction, and as much as I know, there is no way to build a reaction application for AROS. Please correct me if I am wrong.
Also, it needs a JSON parsing library. The one that I am using is called Jansson, and I am not sure it exists for AROS either. Another library could be used, which means that there will be a need to change that part of the code as well.
In my opinion, if you need to do the above, then 2/3 of the code needs to change, and maybe it would be better to make a new application from the scratch.

But I do plan to work on a 68k version of the application. Do the 68k ReAction apps work in a way on AROS? Sorry for my ignorance, but I am not using AROS, except for some times that I tried Icaros.
Title: Re: MediaVault
Post by: amigamia on October 31, 2021, 01:57:29 PM
Hey Walkero,

looks like there is one in the Aros archives but it's the source ready to be compiled for AROS. It may need some minor updates but it is possible to have jansson for AROS: http://archives.aros-exec.org/index.php?function=showfile&file=library/misc/jansson-2.7.zip (http://archives.aros-exec.org/index.php?function=showfile&file=library/misc/jansson-2.7.zip)
Title: Re: MediaVault
Post by: salvo on October 31, 2021, 02:34:09 PM
Amigasystem I didn't manage but it's not a problem, however, I thank you, I had already read the Readme on how to install the package, I'll do some other tests if anything :)
Title: Re: MediaVault
Post by: AMIGASYSTEM on October 31, 2021, 07:01:55 PM

But I do plan to work on a 68k version of the application. Do the 68k ReAction apps work in a way on AROS? Sorry for my ignorance, but I am not using AROS, except for some times that I tried Icaros.

Hi walkero, officially AROS 68k is based on Amiga OS 3.1, and can run many native OS 3 applications see ApolloOS and Aros Vision distributions, then there is my AROS One 68k that instead I try to use it only with the native AROS 68k software, with a few exceptions

That said if you want on AROS 68k you can also run without problems native OS 3.9 applications based on ReAction if you install the necessary libraries, but of course I think it would not be completely legal.
Title: Re: MediaVault
Post by: AMIGASYSTEM on October 31, 2021, 07:08:10 PM
Amigasystem I didn't manage but it's not a problem, however, I thank you, I had already read the Readme on how to install the package, I'll do some other tests if anything :)

Se nell'installazione InstallAROS non hai spuntato e installato "Development" è normale che non funzionano gli assign, se no lo hai fatto devi creare il file "Development" nella Env-Archive/Sys

--- English ---

If in the InstallAROS installation you have not checked and installed "Development" it is normal that the assignments don't work, if not you have to create the "Development" file in the Env-Archive/Sys
Title: Re: MediaVault
Post by: AMIGASYSTEM on November 02, 2021, 10:51:22 PM
Assign GCC: SYS:Development
Assign USR: GCC:
Assign LIB: GCC:lib
Path GCC:bin add

Found the right location to these Assign in order not to have the problems mentioned, the best solution in my opinion is to insert them in the file "Package-Startup" path Development/S
Title: Re: MediaVault
Post by: salvo on November 03, 2021, 02:28:37 PM
I will try this option :-\