Newbie question

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
philhu
Newbie
Posts: 4
Joined: Wed Apr 27, 2016 11:14 am

Newbie question

Post by philhu »

I just installed qb64 on a Centos 6.7 system

I am trying to run it from command prompt, and do not use windows/x-windows. It is cmd prompt only system

Everytime I type "./qb64", after a few seconds it says:
freeglut (./qb64)

And then exits.

I am trying to use qb64 like old qbasic, ie, no windows, just edit the basic source, do a compile and run to build custom utilities
that would read command line and do their work, and exit. Like I did with omnibasic a few years back.

Can that be done in qb64?
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: Newbie question

Post by burger2227 »

Google says it is a Linux distribution. Try the QB64 Linus version. Read the Installation instructions. http://www.qb64.net/
Based on the source code provided by Red Hat, Inc. for its recently released Red Hat Enterprise Linux 6.7 operating system, CentOS 6.7 is here to include all the upstream updates for core components, tools, and graphical applications, as well as updates for the graphical desktop environment.

Read more: http://news.softpedia.com/news/centos-6 ... z474OZ7SlB
This should work in Windows:

Code: Select all

qb64 EasterSub.bas
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
philhu
Newbie
Posts: 4
Joined: Wed Apr 27, 2016 11:14 am

Re: Newbie question

Post by philhu »

I am using the linux version

I meant i do not want to build appl with windows displayed, just console apps

All it does is say 'freeglut' and exits when i try to run qb64

Does qb64 on linux need to run in the xwindows environment?

Or can I just edit files with nano and compile them?
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: Newbie question

Post by burger2227 »

Are you using the Linux version of QB64? If so run QB64 like any other Linux command would be run.

Join the Forum at QB64 where there are other Linux users who know way more than me.

http://www.qb64.net/forum/index.php
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
philhu
Newbie
Posts: 4
Joined: Wed Apr 27, 2016 11:14 am

Re: Newbie question

Post by philhu »

I will join the forum

I did install the linux version, which did correctly determine it was centos and downloaded missing pkgs and built the qb64 executable

Running it from command line, gives the error described
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: Newbie question

Post by burger2227 »

Well running QB64 SDL from the command line above brings up a command console window which stays behind the IDE. The command also loaded the named BAS file so something similar may happen in Linus.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
philhu
Newbie
Posts: 4
Joined: Wed Apr 27, 2016 11:14 am

Re: Newbie question

Post by philhu »

Ok. Since i ran it from cmd line without any window manager, that explains the error. You need a xwibdow or window manager like gnome to run this product. Too bad
Post Reply