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

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

Newbie question

Postby philhu » Wed Apr 27, 2016 12:16 pm

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: 2144
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: Newbie question

Postby burger2227 » Wed Apr 27, 2016 5:54 pm

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 : http://www.QB64.NET
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

Postby philhu » Wed Apr 27, 2016 6:24 pm

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: 2144
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: Newbie question

Postby burger2227 » Wed Apr 27, 2016 8:00 pm

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 : http://www.QB64.NET
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

Postby philhu » Wed Apr 27, 2016 8:16 pm

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: 2144
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: Newbie question

Postby burger2227 » Wed Apr 27, 2016 8:56 pm

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 : http://www.QB64.NET
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

Postby philhu » Wed Apr 27, 2016 9:03 pm

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


Return to “QBASIC and QB64 Questions & Answers”

Who is online

Users browsing this forum: No registered users and 6 guests