C/C++ simple motif gui on 32bit Freebsd 12.1. display error

senenmut

Active Member

Reaction score: 18
Messages: 140

hello again,

i have successful compiled a simple Motif GUI window on my 32bit FreeBsd machine.

there is the following running error :

./winstack
Error: Can't open display:

Seems that X is not configured right. pkg-update is up to date.


Kindly Regards

My aim is to make some GUI without GNU and GTK.
The only window that should appear on this computer must be UNIX.
 

ekvz

Well-Known Member

Reaction score: 278
Messages: 431

For whatever reason your environment has no DISPLAY variable set.
 
OP
senenmut

senenmut

Active Member

Reaction score: 18
Messages: 140

i have made a fresh install of freebsd 12.1 on this 32bit machine.
all packages up to date.
how to set the display ?
 

ekvz

Well-Known Member

Reaction score: 278
Messages: 431

how to set the display ?

How you set/export environment variables depends on your shell. I think you would be better off trying to figure out why it isn't set though. If you are running X it should be set. If it's not there is something very wrong.
 

memreflect

Well-Known Member

Reaction score: 220
Messages: 257

there is the following running error :

./winstack
Error: Can't open display:
The DISPLAY environment variable is unset. That should not happen unless it was manually unset, or you are attempting to execute your X program outside a running X server (e.g. after you log in to ttyv0, you attempt to execute ./winstack, which will never work).

How did you start your X server? xinit(1) will set the DISPLAY environment variable automatically. startx(1) is a script that ultimately executes xinit for you, along with some other conveniences. Both of those utilities come with x11/xinit, and you also need to install x11-servers/xorg-server to be able to use them.
 
OP
senenmut

senenmut

Active Member

Reaction score: 18
Messages: 140

ok ,
i will make a second fresk install and report results.
 
OP
senenmut

senenmut

Active Member

Reaction score: 18
Messages: 140

There is an error with the computer here.
Doesn|t matter.
I have BSD 64 on another machine that works fine.

After many attempts to install different OS's i have installed Lubuntu. That works on this computer.
Even windows does not work.
 
OP
senenmut

senenmut

Active Member

Reaction score: 18
Messages: 140

Wonder how to use lubuntu ?
You could not believe it.
Guess ?
 
OP
senenmut

senenmut

Active Member

Reaction score: 18
Messages: 140

I use this OS only to RUN ORIGINAL UNIX !
a secret unix weapon
guess how.

ok. no guessings then i will reveal the weapon.

It's Inferno OS by Vita Nuova. Link : Vita Nuova

I run the emulated UNIX OS Inferno inside lubuntu. he he he

Don't tell me that isn't a cool thing.
 
OP
senenmut

senenmut

Active Member

Reaction score: 18
Messages: 140

yeah ,
i am running UNIX inside Linux in background.
screenshot
 

Attachments

  • 2020-10-13-211201_1280x1024_scrot.png
    2020-10-13-211201_1280x1024_scrot.png
    210 KB · Views: 56
OP
senenmut

senenmut

Active Member

Reaction score: 18
Messages: 140

citation " you simple bastard , i hit you one on the muzzle !"

what do you want ?
it is not my mistake that gnu programmer have made an operating system.

Nobody ist der Grösste.
 

kpedersen

Son of Beastie

Reaction score: 2,096
Messages: 2,954

i am running UNIX inside Linux in background.

Inferno which is mostly a reimplementation of Plan 9 in a managed language (Limbo) is not Unix.
Plan 9 is not Unix either, it was meant to be a successor.

That said, Plan 9 is pretty good by its own merit. It provides a decent C compiler and APE POSIX layer. My partner even got involved and made me a Glenda mascot whilst she was learning embroidery. I framed it and it now lives on my desk ;)

glenda.jpg
glenda_framed.jpg
 
Top