Author Topic: Raspberry Debian 10, with RB 4 PI 4gb. Anyone try it yet?  (Read 4541 times)

0 Members and 1 Guest are viewing this topic.

Offline doppler

  • Forum Regular
  • Posts: 241
    • View Profile
Raspberry Debian 10, with RB 4 PI 4gb. Anyone try it yet?
« on: July 30, 2019, 08:10:48 pm »
I tried and failed to get QB64 to fly on a raspberry PI 4.  The setup script for linux does not proper ID the OS.  The ID given is "raspbian".  Changing the script to ID raspbian as a debian release sort of works.  But fails on the compile of libqb.  8087 instructions are present in the code, that the raspberry gcc compiler just does not like.

I did get an old version of qb64 to compile on a RPI 2 board.  I think it was the SDL release code.  (previous based code).  The code ran but the PI was just too slow.

Now that I got a RPI 4.  It's quick as hell.  But it doesn't like 86' code stuff.

The linux setup script is from 2013 and showing it's age.  With the PI 4, QB64 can tap into a bigger group of learners.

QB64 does compile and work on a real 86' computer running debian 10.


Offline jack

  • Seasoned Forum Regular
  • Posts: 408
    • View Profile
Re: Raspberry Debian 10, with RB 4 PI 4gb. Anyone try it yet?
« Reply #1 on: July 31, 2019, 11:03:10 am »
did you edit the file common.cpp and add #define QB64_NOT_X86 ?
« Last Edit: July 31, 2019, 11:05:21 am by jack »

Offline doppler

  • Forum Regular
  • Posts: 241
    • View Profile
Re: Raspberry Debian 10, with RB 4 PI 4gb. Anyone try it yet?
« Reply #2 on: July 31, 2019, 07:03:24 pm »
did you edit the file common.cpp and add #define QB64_NOT_X86 ?

Nope I will try it.  Besides the setup script will definitely need adjustment.  To recon "raspbian" as a debian release.

Offline doppler

  • Forum Regular
  • Posts: 241
    • View Profile
Re: Raspberry Debian 10, with RB 4 PI 4gb. Anyone try it yet?
« Reply #3 on: July 31, 2019, 07:41:41 pm »
OK, I give up.  I know enough about linux to get into trouble but not enough to find the file common.cpp

Search tools and everything.   Wah, I am pathetic.
 

Offline jack

  • Seasoned Forum Regular
  • Posts: 408
    • View Profile
Re: Raspberry Debian 10, with RB 4 PI 4gb. Anyone try it yet?
« Reply #4 on: July 31, 2019, 07:44:24 pm »
sorry, it's in QB64/internal/c/common.cpp

Offline doppler

  • Forum Regular
  • Posts: 241
    • View Profile
Re: Raspberry Debian 10, with RB 4 PI 4gb. Anyone try it yet?
« Reply #5 on: July 31, 2019, 08:10:32 pm »
sorry, it's in QB64/internal/c/common.cpp

Let's start with my confusion:  You really ment to say it's in QB64/internal/c/common.h there is no .cpp

It's working now.  There are things to do to make it permanent.  The setup_lnx.sh should be modified to:

elif [ "$DISTRO" == "linuxmint" ] || [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] || [ "$DISTRO" == "zorin" ]; then
  echo "Debian based distro detected."

I included enough to note the difference.

QB64/internal/c/common.h should be modified with a define block keyed on "raspbian" so that #define QB64_NOT_X86 only gets included as required.  I will leave the way to a C++ programmer.  Right now I have it hard coded.  Not good for a standard linux box.

Things should change soon.  With Raspberry pi 4's hitting the streets more people will run into the problem and just walk away.  I rather they stay and play.

P.S.  The RB PI 4 IS FAST AS HELL.  Best in the series of PI's
« Last Edit: July 31, 2019, 08:12:40 pm by doppler »

Offline jack

  • Seasoned Forum Regular
  • Posts: 408
    • View Profile
Re: Raspberry Debian 10, with RB 4 PI 4gb. Anyone try it yet?
« Reply #6 on: August 01, 2019, 12:09:23 pm »
how much RAM do you have on your PI 4 ?

Offline doppler

  • Forum Regular
  • Posts: 241
    • View Profile
Re: Raspberry Debian 10, with RB 4 PI 4gb. Anyone try it yet?
« Reply #7 on: August 01, 2019, 01:56:56 pm »
how much RAM do you have on your PI 4 ?

OK, I am going to have a little fun with this question.  "Read titles much ?"

It's 4GB, any version of PI with 1gb will puke in the gcc compiler building the QB64 execution module.
A 2GB version of PI 4 could compile it.  The old version "SDL" was able to compile on the 1GB versions.

I don't own a 2GB version.  I am basing my assumption on old/new QB64 compiling it.

Somebody needs to roll the changes into the Linux version code.

Offline jack

  • Seasoned Forum Regular
  • Posts: 408
    • View Profile
Re: Raspberry Debian 10, with RB 4 PI 4gb. Anyone try it yet?
« Reply #8 on: August 01, 2019, 02:32:14 pm »
thanks
that's what I meant, whether it was 1, 2 or 4 GB
the new PI 4 seems to be in short supply, I have yet to find an outlet that has them in stock.