Linux app without X dependency?

BlitzMax Forums/BlitzMax Programming/Linux app without X dependency?

C64Retro(Posted 2009) [#1]
Hi everyone,

Just a quick question: I've started faffing around with running apps on Linux. It was great to be able to create and compile something on Windows, port it over and compile it to see it run first time!

However, I've just created a console-based app (it processes a few files and uses Writestdout()). However, it seems to have a few dependencies to the X Server even when it's not needed (from my code's point of view, anyway).

Is there any way to be able to write a true "console only" based app in BMax? For instance, if I ran it on a Linux server (without X installed), at the moment it causes a Segmentation fault.

Any thoughts?

Thanks,
Boz.


slenkar(Posted 2009) [#2]
I assume you already know about the framework command?

other than that i dont know


Brucey(Posted 2009) [#3]
I suppose the best thing to try would be compiling up this, and see what happens :
SuperStrict

Framework BRL.StandardIO

Print "Hello World"



C64Retro(Posted 2009) [#4]
Hi guys,

Thanks for your replies. Of course - stupid me forgot about Framework and only getting the stuff you need in there!

Bruce - yep, that did the trick. The ldd command (library dependencies) how shrunk dramatically.

Boz.