You don't need to compile - mmakefile.src. This file just contains instructions how to compile (like Makefile) and it needs the complete AROS build system to work - and building AROS on AROS haven't been tested/haven't worked for several years now I think.
AMIGASYSTEMDistro MaintainerPosted
3 months agoA question for the experts: on AROS Native, how do you compile a source file named ‘mmakefile.src’?
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)
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?
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)
I 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.
Cross-compiling with VSCode, too. Sometimes I'm using VSCode's "search in files" function.
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.
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.