Page 1 of 1

Compiling by hand

Posted: Wednesday 23rd September 2020 7:27am
by BruceSteers
Hi all.
I'm trying to compile a project outside of the IDE via terminal.
I'm using the following command style (paths/names made up for clarity)...

Code: Select all

gbc3 -xa $ProjectFolderPath
gba3 ProjFolder -v -o $ProjectFolderPath/$FolderName.gambas
But it's not working right?
Anyone know of the recomended way to compile a project by hand?

Cheers :)

Re: Compiling by hand

Posted: Wednesday 23rd September 2020 1:01pm
by cogier
I got this to work in the IDE so with a little work you should be able to get it to work on the Command Line.
  Dim sFileName As String = "TestApp.gambas"
  Dim sProgramFolder As String = User.Home &/ "Dropbox/gambas/000Incomplete/TestApp"

  Shell "gbc3 -a " & sProgramFolder Wait
  Shell "cd " & sProgramFolder & " && " & "gba3 -o " &/ sProgramFolder &/ sFileName Wait

Re: Compiling by hand

Posted: Wednesday 23rd September 2020 8:53pm
by BruceSteers
Thanks Charlie but i'm just getting the same results :(

Re: Compiling by hand

Posted: Wednesday 23rd September 2020 8:58pm
by BruceSteers
Phew i think i've cracked it.

I had to use 'gbc3 -apm' to make all modules and controls public.
I guess the command line compile doesn't take into account some project settings and needs to be supplied manually.
Seems to be working now :)