Page 1 of 1

Building from text mode console

Posted: Sun Oct 04, 2015 10:10 pm
by Hi-Toro
Hi all,

I've set up Ubuntu Server 14.04 (pure command line) and I want to be able to compile simple programs from the command line.

I've set fasm, pbcompiler, pbdebugger, pbdocmaker, pblibrarymaker, pbsoimporter and purebasic as executables.

I'm testing with this simple program:

Code: Select all

OpenConsole ("Hello")
PrintN ("Hello world")
Delay (2000)
CloseConsole ()
... but when I call pbcompiler /CONSOLE test.pb, it fails with:

Error: Can't load OS libraries, please re-install PureBasic.

Any ideas how to resolve this?

Re: Building from text mode console

Posted: Mon Oct 05, 2015 8:55 am
by Vera
Hi Hi-Toro,

A - /CONSOLE is a parameter for PB-windows (like all '/'parameters)

To get all available parameters for Linux-Systems see: ~> pbcompiler -h
But there doesn't seem to be a corresponding console switch.

B - PureBasic has to be installed in a way that the needed adresses are available via PATH
It's not possible to pass on (hand over) the library-path via commandline.
Check out /PureBasic-home/INSTALL file.

But even if setup correctly, I don't know if or how it would be possible to create a console-application via commandline.

greets ~ Vera

Re: Building from text mode console

Posted: Mon Oct 05, 2015 9:08 am
by Hi-Toro
Thanks for the pointers, Vera, very helpful.

I suppose if I can't build via command line I could probably just install in a VM and copy over, but I am surprised by the idea that PB wouldn't compile on command-line Linux -- I kind of assumed that would be natural on Linux, and that the IDE would just call it. Must be years since I tried Linux PB, though!

Thanks again.