Author Topic: Linux: Where is my compiled ( run ) file?  (Read 3563 times)

0 Members and 1 Guest are viewing this topic.

Offline hmjswt

  • Newbie
  • Posts: 7
    • View Profile
Linux: Where is my compiled ( run ) file?
« on: August 17, 2020, 10:23:53 am »
Hallo,
I am new to Linux. and QB64.
I want to compile my QB files with QB64 on Linux.
Compilation is OK and program runs OK. But where can I find the compiled ( run ) file so I can run it as a standalone ?
Thank you.
Greetings from The Netherlands.

Offline hmjswt

  • Newbie
  • Posts: 7
    • View Profile
Re: Linux: Where is my compiled ( run ) file?
« Reply #1 on: August 17, 2020, 10:54:53 am »
Hallo,
I am new to Linux. and QB64.
I want to compile my QB files with QB64 on Linux.
Compilation is OK and program runs OK. But where can I find the compiled ( run ) file so I can run it as a standalone ?
Thank you.
Greetings from The Netherlands.

OK, it is in the dir with the run_qb64.sh file!

FellippeHeitor

  • Guest
Re: Linux: Where is my compiled ( run ) file?
« Reply #2 on: August 17, 2020, 11:32:55 am »
You got it ☺️

Welcome to QB64!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Linux: Where is my compiled ( run ) file?
« Reply #3 on: August 17, 2020, 12:57:21 pm »
Welcome @hmjswt

To put the .exe in same folder as your source .bas file, bullet the "Output EXE to Source Folder" in the Run Menu of IDE.

Offline hmjswt

  • Newbie
  • Posts: 7
    • View Profile
Re: Linux: Where is my compiled ( run ) file?
« Reply #4 on: August 18, 2020, 05:00:52 am »
Welcome @hmjswt

To put the .exe in same folder as your source .bas file, bullet the "Output EXE to Source Folder" in the Run Menu of IDE.

Thank you @bplus. Now I am very happy.
The first program I have compiled is a program to calculate the apogee of a model rocket.
The program started, a long time ago,  as FORTRAN code, then I converted it to Microsoft BASIC-80 for CP/M.
Later I converted is to use QB45 thing like CLS and UCASE. Thinks I had to do in BASIC-80 with a self made library coded in assembler.
It is coded in BASCOM compiler stile.
It runs perfectly in QB64! How about that!
I only have to find a way to use a bigger font in the output window.
I am not that young any more ( I worked with CP/M ;-) ) . So a bigger font will be very nice.
If you are interested I can publish the code.

Greetings,
Henk Siewert

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Linux: Where is my compiled ( run ) file?
« Reply #5 on: August 18, 2020, 10:23:00 am »
@hmjswt

Ha! I remember doing FORTRAN on punch cards. Do I win on age score?

You might be interested in a rocket graphically modeled in QB64, say to hit targets?

For font size in output, is it possible you are using screen 0 (default) and your code is running past the bottom of the screen?

Because when it does it flips to _FONT 8 automatically and I don't like that size either!
You have to control that by specifying _FONT 16 or changing number of rows... all kinds of work arounds if that is what is happening.

The way to test is simple PRINT "Hello World" program, run that and if font is bigger than font you are seeing in your program, your program is printing past bottom of screen and switching to _FONT 8

Now if you have "normal" font 16 in output as seen in PRINT "Hello World" program, you can load a larger font for output. Fellippe has gone over with video.

Update: well _FONT 16 won't stop _FONT 8 evoking!
Code: QB64: [Select]
  1. FOR i = 1 TO 30
  2.     LOCATE i, 1: PRINT i
  3.  

So just make sure you aren't LOCATEing below line 25 in default screen.

« Last Edit: August 18, 2020, 11:03:12 am by bplus »

Offline hmjswt

  • Newbie
  • Posts: 7
    • View Profile
Re: Linux: Where is my compiled ( run ) file?
« Reply #6 on: August 18, 2020, 01:56:45 pm »
@hmjswt

Ha! I remember doing FORTRAN on punch cards. Do I win on age score?


Hallo,
Age score? I do not know. The first computer I worked with was a General Electric Analog computer.
It controlled surface to air missiles.
I am 73. But my brain is still 35! ( I wish my live support system ( body ) was...
But I am happy to have participated in the birth en maturing of the  ( personal ) computer. Both as an engineer and college instructor.
It was great fun! And it still is.
« Last Edit: August 18, 2020, 01:57:52 pm by hmjswt »

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Linux: Where is my compiled ( run ) file?
« Reply #7 on: August 18, 2020, 03:52:05 pm »
73 OK you win, I am a young one at 66 :-)

Quote
It controlled surface to air missiles.

Holy macaroni! Did you work on code for that?


Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: Linux: Where is my compiled ( run ) file?
« Reply #8 on: August 18, 2020, 09:40:28 pm »
64 here!
Logic is the beginning of wisdom.

Offline hmjswt

  • Newbie
  • Posts: 7
    • View Profile
Re: Linux: Where is my compiled ( run ) file?
« Reply #9 on: August 19, 2020, 05:39:35 am »
73 OK you win, I am a young one at 66 :-)

Holy macaroni! Did you work on code for that?

No it was a analog computer. No software involved. It was al in the hardware. A lot of potentiometers... I had to test and calibrate the thing.
It worked with 4 different radars. One search radar, 2 for tracking the target and one for controlling and sending commands to the missile.
Then we wend to Crete, launched a Nike Hercules and blow the drone out of the sky. In short, it worked.
Oh, the computer had to reset itself every second to avoid an overload. For that we had 'zero switches' in the computer: rotating glass rods in a oil filled pot.
Ah, a very differed world then... I am talking about the 60's. But it did was it was supposed to do.

Later they modified the computer with a lot of digital things.
Including a hard drive with a couple of 100 lines of code.
Calculating a trajectory for a rocket to intercept something is not that difficult. ( Yes it is rocket science... )