Page 1 of 1
Linux needs X !?
Posted: Fri May 14, 2004 8:41 pm
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 ?
Posted: Fri May 14, 2004 11:52 pm
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.
Posted: Fri May 14, 2004 11:53 pm
by freak
Nope, only for GUI stuff, X (and gtk) is needed.
Timo
Posted: Sat May 15, 2004 12:04 am
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.
Posted: Sat May 15, 2004 12:07 am
by thefool
why is it a shame? I read it as you CAN make console, and that PB only needs X for GUI apps.

so its happy news!
Posted: Sat May 15, 2004 12:31 am
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.
Posted: Sat May 15, 2004 12:38 am
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

Posted: Sat May 15, 2004 12:39 am
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

)
Timo
Posted: Sat May 15, 2004 12:41 am
by thefool
I knew i was right
Great!
Posted: Sat May 15, 2004 10:55 am
by MadMax
I thought Linux PB had no console commands. If I'm wrong where are they, a small sample please.
Posted: Sat May 15, 2004 11:17 am
by Num3
Yup... me too...
In the manual it states console commands are windows only
I would also appreciate also an "End [ExitCode]" example, cause i can't seem to get any output when the program ends...
Example:
Posted: Sat May 15, 2004 12:00 pm
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
Great!
Smart Arse! (nb. to save missunderstanding this means "Show off" in the UK) hehehehehe
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

Posted: Sat May 15, 2004 2:01 pm
by thefool
LuCiFeR[SD] wrote:
Smart Arse! (nb. to save missunderstanding this means "Show off" in the UK) hehehehehe

hehe. Nah, just trying to tease you
