Hello.
What applications do you use for developing?
Is there an IDE or something that could make the life easier than using "nano" or "mousepad" to read the code and "find" and "grep" to find where things are defined or used?
Thank you for your help.
I do most of my development through cross compilation on Linux. As an IDE I use VSCode with a number of plugins. For searching through source codes I just use the "Find" funciton in Midnight Commander.
Cross-compiling with VSCode, too. Sometimes I'm using VSCode's "search in files" function.
I will try it. VSCode needs a 64-bit linux so it is time to migrate the old xubuntu x86 I have been using.
I have found this pre-configured development environment: [url]https://vmwaros.blogspot.com/2019/10/a-pre-configured-development-machine.html[/url]
Could this environment do the trick after an update?
I have had troubles every time I have set up the environment and, although I have several guides on how to do it, I'm sure I will have problems again this time if I try to install the system from scratch.
It's hard to say whether you will be able to update it. If you just want to start with some simple development, why not use the native compiler already install on AROSOne? Sure, your editor will be very simple on AROS side, but you have everything there configured. If you get a hand of it, you can then move to cross compilation on Linux. Here is the a tutorial for it: [url]https://arosnews.github.io/how-to-cross-compile-aros-hosted-wsl/[/url]. It describe installation under Windows with WSL, but you can skip the initial part as you will be working directly on Linux.
Installed the latest xubuntu, the VSCode and, after following the guide on [url]https://arosnews.github.io/how-to-cross-compile-aros-hosted-wsl/[/url], compiled Aros and could be able to launch it. The problems I used to experience were because I was trying to do the same with the ADT repository.
Now the real challenge arises: to find a ground-level hanging fruit awaiting to be resolved.
Edited by Telematix on 07-05-2025 03:25,
11 days agoI have been playing with a file trying to fix something and I have a question.
What should I do in order to compile only my changes and not use the menu?
The option 2 of the menu compiles the whole tree and I only need to compile a file.
You need to provide a target to the make command (also I don't use VSCode meny for that, but command line). In this source code directory where you have your edited source file you will most likely have a file called mmakefile.src. For example in workbench/libs/workbench/mmakefile.src you have a macro build_module with mmake=workbench-libs-workbench. If you changed something in workbench.library, you only need to issue: make workbench-libs-workbench-quick from command line (while being in build directory)
It worked, now it's time to start debugging!
Is it there a way to do it without using the criptic gdb?
I suppose that there is no way to put several printf lines and read it on the linux console or even on the aros hosted shell I'm launching the program I'm testing, is that true?
There are generally two ways of debugging:
1) using debug build and gdb from linux side - this gives step by step ability + variable lookup. Steep learning curve but pays out in long term.
2) #include <aros/debug.h> and then use bug() function, which works like printf but instead of printing to AROS shell, it prints to linux console on hosted.
PS. keep in mind there are some minimal formatting seetings for AROS codes: use 4 spaces instead of tab and save your files as ISO-8859-15 encoding instead of UTF-8 (setting both of those options is possible in VSCode)