RetroBASIC

Basicprogramming(.org) => SmallBASIC => Topic started by: Tomaaz on January 19, 2019, 02:45:09 PM

Title: 0.12.15?
Post by: Tomaaz on January 19, 2019, 02:45:09 PM
Has version 0.12.15 been released? I just build 64 bit versions from source and that's what it says.
Title: Re: 0.12.15?
Post by: chrisws on January 25, 2019, 09:03:51 AM
Hi,

There was a 0.12.15 release for android. This had a few minor changes including a fix to display the "..." menu on chromebook and other devices. There still seems to be a few issues with SmallBASIC on chromebook, but more or less seems to work in the emulator.

There will be a desktop release of 0.12.15 sometime in the near future.

Cheers,
Chris
Title: Re: 0.12.15?
Post by: Tomaaz on January 30, 2019, 06:39:30 PM
There will be a desktop release of 0.12.15 sometime in the near future.

Are you suggesting that I'm a time traveler (see attachment)?  ;D

Also, I wasn't able to build an SDL version on 32 bit debian-based distro (Sparky).

Quote
runtime.cpp:392:29: error: ‘main_bas_len’ was not declared in this scope
     buffer = (char *)malloc(main_bas_len + 1);
                             ^~~~~~~~~~~~
runtime.cpp:393:20: error: ‘main_bas’ was not declared in this scope
     memcpy(buffer, main_bas, main_bas_len);


(screenshot attached)
Title: Re: 0.12.15?
Post by: chrisws on January 31, 2019, 11:23:02 AM
There will be a desktop release of 0.12.15 sometime in the near future.

Are you suggesting that I'm a time traveler (see attachment)?  ;D

Also, I wasn't able to build an SDL version on 32 bit debian-based distro (Sparky).

Quote
runtime.cpp:392:29: error: ‘main_bas_len’ was not declared in this scope
     buffer = (char *)malloc(main_bas_len + 1);
                             ^~~~~~~~~~~~
runtime.cpp:393:20: error: ‘main_bas’ was not declared in this scope
     memcpy(buffer, main_bas, main_bas_len);


(screenshot attached)

Aha - yes I merged some code from the 0.12.15 branch to master, I should have waited.

When attempting to build the SDL version, did you first run:

$./configure --enable-sdl ?

That should create the missing main_bas.h file



Title: Re: 0.12.15?
Post by: Tomaaz on January 31, 2019, 08:20:31 PM
When attempting to build the SDL version, did you first run:

$./configure --enable-sdl ?

That should create the missing main_bas.h file

Of course, I did. If I didn't there would be no error message, because the console version would be compiled again. BTW main_bas.h file is not missing - I can see it in SmallBASIC-master/src/platform/sdl/ directory...
Title: Re: 0.12.15?
Post by: chrisws on January 31, 2019, 09:14:17 PM
When attempting to build the SDL version, did you first run:

$./configure --enable-sdl ?

That should create the missing main_bas.h file

Of course, I did. If I didn't there would be no error message, because the console version would be compiled again. BTW main_bas.h file is not missing - I can see it in SmallBASIC-master/src/platform/sdl/ directory...

Does your main_bas.h look something like this:

unsigned char main_bas[] = {
  0x63, 0x6f, 0x6e, 0x73, 0x74, 0x20, 0x61, 0x70, 0x70, 0x20, 0x3d, 0x20,
...
  0x0a, 0x6d, 0x61, 0x69, 0x6e, 0x0a
};
unsigned int main_bas_len = 17358;
Title: Re: 0.12.15?
Post by: Tomaaz on January 31, 2019, 09:17:02 PM
No. It's empty.
Title: Re: 0.12.15?
Post by: chrisws on February 01, 2019, 10:54:54 AM
No. It's empty.

Aha - you probably don't have the xxd command and the configure script doesn't check whether it's installed.

try:
$ xxd -h

and if that fails
# sudo apt install xxd

Title: Re: 0.12.15?
Post by: Tomaaz on February 01, 2019, 02:24:12 PM
That worked. Thanks! :)