Linux needs X !?

Linux specific forum
Num3
PureBasic Expert
PureBasic Expert
Posts: 2810
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Linux needs X !?

Post by Num3 »

Just a noob question...

Will an executable created for linux, in console mode (or even without any kind of interface) run in command line or does it require X to be running ?
LuCiFeR[SD]
666
666
Posts: 1033
Joined: Mon Sep 01, 2003 2:33 pm

Post by LuCiFeR[SD] »

I was curious about this too, especially if you are writing apps to run on a server machine where you can really do without the overheads of X, gnome,kde etc. I did ask about this a while back too, but it got overlooked I guess.
freak
PureBasic Team
PureBasic Team
Posts: 5929
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Nope, only for GUI stuff, X (and gtk) is needed.

Timo
quidquid Latine dictum sit altum videtur
LuCiFeR[SD]
666
666
Posts: 1033
Joined: Mon Sep 01, 2003 2:33 pm

Post by LuCiFeR[SD] »

freak wrote:Nope, only for GUI stuff, X (and gtk) is needed.

Timo
What a damn shame :(. Cheers for the answer though.
thefool
Always Here
Always Here
Posts: 5881
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

why is it a shame? I read it as you CAN make console, and that PB only needs X for GUI apps. :D so its happy news!
LuCiFeR[SD]
666
666
Posts: 1033
Joined: Mon Sep 01, 2003 2:33 pm

Post by LuCiFeR[SD] »

well you read it differently to me then... I read it as you need X and GTK installed. perhaps I misread or misunderstood? but on a server, why on earth would I want X installed? :) My appologies if I got it wrong.
thefool
Always Here
Always Here
Posts: 5881
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Yeah. It would be rather stupid to have x on a server. So if fred or the purebasic team wants pb to be in the linux server enviroment, it needs the functionality to work without X. So i belive it does, because the pb team is pretty smart :D



8)
freak
PureBasic Team
PureBasic Team
Posts: 5929
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

These are the requirements for PB linux programs:

2DDrawing, Window, Gadget, Clipboard libs => GTK 1.2
2D Game libs => SDL 1.2
3D Game libs => OpenGL

Otherwise, you only need the compiled binary. (so no X for console apps 8) )

Timo
quidquid Latine dictum sit altum videtur
thefool
Always Here
Always Here
Posts: 5881
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

I knew i was right :twisted:

Great!
MadMax
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Oct 06, 2003 11:56 am

Post by MadMax »

I thought Linux PB had no console commands. If I'm wrong where are they, a small sample please.
Num3
PureBasic Expert
PureBasic Expert
Posts: 2810
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Yup... me too...

In the manual it states console commands are windows only :P

I would also appreciate also an "End [ExitCode]" example, cause i can't seem to get any output when the program ends...

Example:

Code: Select all

END "no GUI"
LuCiFeR[SD]
666
666
Posts: 1033
Joined: Mon Sep 01, 2003 2:33 pm

Post by LuCiFeR[SD] »

freak wrote: Otherwise, you only need the compiled binary. (so no X for console apps )
Now we're cooking on gas :)
thefool wrote:I knew i was right :twisted:

Great!
Smart Arse! (nb. to save missunderstanding this means "Show off" in the UK) hehehehehe :twisted:

but anyway, if it'll do console stuff, then thats cool :). I can live with that. And well done to Num3 for bringing back from the dead the question I had forgotten all about :)

my finger is poised on the purchase button right now... but I would REALLY love to be able to download a compiled binary to run a test with, just a basic console style "Hello world" or something, just to make sure it'll run in a server enviroment.

anyway, again. cheers guys :)
thefool
Always Here
Always Here
Posts: 5881
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

LuCiFeR[SD] wrote: Smart Arse! (nb. to save missunderstanding this means "Show off" in the UK) hehehehehe :twisted:
8) hehe. Nah, just trying to tease you :twisted:
Post Reply