Building from text mode console

Linux specific forum
Hi-Toro
Enthusiast
Enthusiast
Posts: 270
Joined: Sat Apr 26, 2003 3:23 pm

Building from text mode console

Post 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?
James Boyd
http://www.hi-toro.com/
Death to the Pixies!
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: Building from text mode console

Post 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
Hi-Toro
Enthusiast
Enthusiast
Posts: 270
Joined: Sat Apr 26, 2003 3:23 pm

Re: Building from text mode console

Post 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.
James Boyd
http://www.hi-toro.com/
Death to the Pixies!
Post Reply