Author Topic: BASIC for Qt, Q7Basic, kbasic  (Read 1065 times)

Offline jshackney

  • New Friend
  • *
  • Posts: 8
    • Handfly.net
BASIC for Qt, Q7Basic, kbasic
« on: July 27, 2012, 12:35:18 PM »
Has anyone tried to install this? I know it's not in the repo's, so I disregarded all warnings and downloaded it anyway. I've installed Phonon, gcc, and qtcreator w/dev libs. Just can't seem to get this thing to produce output from a running program (the test of the installation in the tutorial).

Reference: http://www.q7basic.org

Offline dixonpete

  • Hero Member
  • *****
  • Posts: 897
Re: BASIC for Qt, Q7Basic, kbasic
« Reply #1 on: July 27, 2012, 01:35:27 PM »
Looks really cool.

Offline jshackney

  • New Friend
  • *
  • Posts: 8
    • Handfly.net
Re: BASIC for Qt, Q7Basic, kbasic
« Reply #2 on: July 27, 2012, 07:01:16 PM »
Quote
Looks really cool.

I thought so, too. Just struggling to get it to work. I even tried to download the source and compile. I get an error saying something like "Global.h missing". Yet, it's clearly in the build directory. I think something else is up, and I've quickly gotten out of my league. :-[

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: BASIC for Qt, Q7Basic, kbasic
« Reply #3 on: July 27, 2012, 09:59:42 PM »
Did you download the http://www.q7basic.org/Q7Basic.tar.gz file? That's the 32bit version. It does not need compiling. Just extract the file somewhere in your home directory. The folder Q7Basic will be created. Inside the folder is the program's executable, Q7Basic. Click or double-click the executable to launch the program.
« Last Edit: July 27, 2012, 10:02:16 PM by djohnston »
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline jshackney

  • New Friend
  • *
  • Posts: 8
    • Handfly.net
Re: BASIC for Qt, Q7Basic, kbasic
« Reply #4 on: July 28, 2012, 10:26:07 AM »
Quote
Did you download the http://www.q7basic.org/Q7Basic.tar.gz file? That's the 32bit version. It does not need compiling.


You are correct. It does not. However, when executing the "test" program that comes with it:

Code: [Select]
Event Init()
  MsgBox("Init")

End Event

Nothing happens. A message box should appear that says "Init". I get nothing. Running the IDE/Compiler from the console outputs about 40+ lines like:

Code: [Select]
QMetaObject::connectSlotsByName: No matching signal for on_mSignals_triggered(QAction*)
The "Play" button in the toolbar indicates that execution is underway, but there's apparently nothing visible.

This makes me suspect something either wrong or (more likely) missing with Qt, but I can't figure out what I'm missing. That's why I went with the compile method as Plan B. Unfortunately, the errors I'm getting with that make even less sense to me.

Quote
Click or double-click the executable to launch the program.


Did you do this? Did you get the test program to work? I'm trying to figure out what I'm missing on my system to make this work. PCLOS is as up-to-date as I can get it.

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: BASIC for Qt, Q7Basic, kbasic
« Reply #5 on: July 28, 2012, 12:59:07 PM »
Quote
Click or double-click the executable to launch the program.

Did you do this? Did you get the test program to work? I'm trying to figure out what I'm missing on my system to make this work. PCLOS is as up-to-date as I can get it.

Yes, I can click the Q7Basic executable to run the Q7Basic IDE/interpreter. I would not have told you how to run it unless I could do so. Click on the thumbnail below for the full image.



As I said, the tarball is the 32bit version of the program. It is self contained, which means it has no external dependencies. Everything you need to run the program is contained in the Q7Basic folder that is extracted from the tarball. I would strongly advise you not to try to compile anything unless you are familiar with PCLinuxOS already and are reasonably proficient with compiling programs in Linux. The package you are attempting to compile is meant for a 64bit OS. It will not compile in a 32bit environment.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline jshackney

  • New Friend
  • *
  • Posts: 8
    • Handfly.net
Re: BASIC for Qt, Q7Basic, kbasic
« Reply #6 on: July 28, 2012, 01:47:30 PM »
I have to apologize for being a bit testy. My patience is extremely thin today dealing with a third delay on the closing of a new home and running out of extensions on our current lease. But that's all for the sandbox. Thanks for your help.  8)

So, for posterity: I wasn't having trouble with the IDE--it works fine. I was trying to get this program to compile:
Code: [Select]
Event Init()
  MsgBox("Init")

End Event

Which took about five minutes on ol' clunky here when I finally just let it run. I was getting impatient and thinking there was some problem with my system. It seems it's just my CPU is a little too long in the tooth.
« Last Edit: July 28, 2012, 02:07:12 PM by jshackney »

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: BASIC for Qt, Q7Basic, kbasic
« Reply #7 on: July 28, 2012, 02:21:18 PM »
No problem, jshackney. I'm glad you got it working. I was about to say "try the Q7Basic forum" if you ran into more problems. Which is the advice I'd give if you do run into any, because your chances of finding someone here who could answer your question on Q7Basic are close to nil.

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline JALU

  • Sr. Member
  • ****
  • Posts: 454
  • Just Another Linux User
Re: BASIC for Qt, Q7Basic, kbasic
« Reply #8 on: July 28, 2012, 05:38:13 PM »
Did you do this? Did you get the test program to work? I'm trying to figure out what I'm missing on my system to make this work. PCLOS is as up-to-date as I can get it.

open a terminal in Q7Basic folder and enter command>   ./Q7Basic
Cages
THEN and THAN usage..
Use than to make a comparison. Use then when referring to time.

Offline jshackney

  • New Friend
  • *
  • Posts: 8
    • Handfly.net
Re: BASIC for Qt, Q7Basic, kbasic
« Reply #9 on: July 28, 2012, 06:32:10 PM »
open a terminal in Q7Basic folder and enter command>   ./Q7Basic

That command runs the IDE. It doesn't run/compile the test program within the IDE. My problem was with the latter.

I've already removed the application. The compiler is just too slow on my system and I can't even make a representative executable without purchasing the full product.

Offline KernelKarter

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 270
Re: BASIC for Qt, Q7Basic, kbasic
« Reply #10 on: July 29, 2012, 03:25:47 AM »
Has anyone tried to install this? I know it's not in the repo's, so I disregarded all warnings and downloaded it anyway. I've installed Phonon, gcc, and qtcreator w/dev libs. Just can't seem to get this thing to produce output from a running program (the test of the installation in the tutorial).

Reference: http://www.q7basic.org


Just installed it now and it looks really nice, thanks for the pointer  :)

-- Eddie
pclinuxos-kde-2013.04 | kernel-3.2.18-pclos2.pae.bfs
- AMD Athlon 64 X2 5000+ CPU
- 4Gb RAM | nVidia 8500GT GPU

Offline KernelKarter

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 270
Re: BASIC for Qt, Q7Basic, kbasic
« Reply #11 on: July 29, 2012, 03:31:39 AM »
I have to apologize for being a bit testy. My patience is extremely thin today dealing with a third delay on the closing of a new home and running out of extensions on our current lease. But that's all for the sandbox. Thanks for your help.  8)

So, for posterity: I wasn't having trouble with the IDE--it works fine. I was trying to get this program to compile:
Code: [Select]
Event Init()
  MsgBox("Init")

End Event

Which took about five minutes on ol' clunky here when I finally just let it run. I was getting impatient and thinking there was some problem with my system. It seems it's just my CPU is a little too long in the tooth.

The first time I compiled/ran the test example, it took quite a while to build and execute on my reasonably fast machine (specs in my "sig"). However, after a very quick play, it seems that it's the first compilation that takes a long time, as all subsequent builds have been quite fast.

-- Eddie
pclinuxos-kde-2013.04 | kernel-3.2.18-pclos2.pae.bfs
- AMD Athlon 64 X2 5000+ CPU
- 4Gb RAM | nVidia 8500GT GPU

Offline KernelKarter

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 270
Re: BASIC for Qt, Q7Basic, kbasic
« Reply #12 on: July 29, 2012, 04:03:47 AM »
First problem encountered .....

According to the Quick Start Guide:
"Qt Designer is our friend. To start it, make the code file MainWindow.QMainWindow the current
file (its code must be visible) and select in the menubar Project -> Qt Designer For Current File.
Qt Designer gets loaded with the default GUI file MainWindow.ui."


I've followed those instructions but nothing happens  ???

-- Eddie
pclinuxos-kde-2013.04 | kernel-3.2.18-pclos2.pae.bfs
- AMD Athlon 64 X2 5000+ CPU
- 4Gb RAM | nVidia 8500GT GPU