Can not access the Console, work with Win 10 not Ubuntu

Linux specific forum
BrassCat
New User
New User
Posts: 5
Joined: Fri Aug 04, 2023 10:46 pm

Can not access the Console, work with Win 10 not Ubuntu

Post by BrassCat »

Hello the forum,

I have installed and working with PureBasic 6.02 LTS (Linux - x64) on Ubuntu 22.04 LTS.

Problem opening and using Console commands in a program. Narrowed it down to simplist program
to see what is going on with the Console commands, it/they do nothing. Same test program using PureBasic on
Win10 runs fine.

Code: Select all

  If OpenConsole()
      Print("Hello")
      Input()
  EndIf
  End
What is the problem here ???


Moved from "Bugs - Linux" to "Linux" (Kiffi)
Bitblazer
Enthusiast
Enthusiast
Posts: 762
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

Re: Can not access the Console, work with Win 10 not Ubuntu

Post by Bitblazer »

did you set the executable format under compiler options to console?

i just tried it in my ubuntu22 virtualbox x64 installation and these commands worked both from ide and from a shell window (without debugger).

The installation on linux can be tricky. Did you follow mk-soft's Simple install of PureBasic guide?
BrassCat
New User
New User
Posts: 5
Joined: Fri Aug 04, 2023 10:46 pm

Re: Can not access the Console, work with Win 10 not Ubuntu

Post by BrassCat »

Thanks for the response. Yes, I did need to locate the compiier option for console.
That fixed the problem. I did not set it for Win10, guess it was not needed there.
But Linux did.
Post Reply