Compiling by hand

Post

Posted
Rating:
#1 (In Topic #468)
Guru
BruceSteers is in the usergroup ‘Guru’
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

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 :)
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
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.

Code (gambas)

  1.   Dim sFileName As String = "TestApp.gambas"
  2.   Dim sProgramFolder As String = User.Home &/ "Dropbox/gambas/000Incomplete/TestApp"
  3.  
  4.   Shell "gbc3 -a " & sProgramFolder Wait
  5.   Shell "cd " & sProgramFolder & " && " & "gba3 -o " &/ sProgramFolder &/ sFileName Wait
Online now: No Back to the top

Post

Posted
Rating:
#3
Guru
BruceSteers is in the usergroup ‘Guru’
Thanks Charlie but i'm just getting the same results :(
Online now: No Back to the top

Post

Posted
Rating:
#4
Guru
BruceSteers is in the usergroup ‘Guru’
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 :)
Online now: No Back to the top
1 guest and 0 members have just viewed this.