Page 21 of 42

Re: PureBasic 6.00 Beta 1 released !

Posted: Sat Nov 27, 2021 1:02 am
by mk-soft
netmaestro wrote: Fri Nov 26, 2021 9:44 pm So when we push 'compile/run' from the IDE with Beta 1 for Windows are we automatically getting the C backend?
No,
you must add the pbcompilerc over preferences of the IDE to the compilers

Re: PureBasic 6.00 Beta 1 released !

Posted: Sat Nov 27, 2021 3:32 am
by StarBootics
StarBootics wrote: Sat Nov 27, 2021 12:52 am I know the algorithm responsible for the normal smoothing but it will take time to narrow down the problem of what is happening differently between the None Optimize and the Optimize output done by the C Backend.
I have found the problem, with the ASM Backend and the C Backend without optimization the type recast seems to take care of it but the C Backend with optimization apparently don't. I mean using a ".b" return value for a Boolean purposes. Which is not the way to go with the C Backend and lead to problems.

To make a long story short use integer (-9223372036854775808 to +9223372036854775807) type for Boolean purposes even if it appear to be overkill for storing 0 or 1.

Best regards
StarBootics

Re: PureBasic 6.00 Beta 1 released !

Posted: Sat Nov 27, 2021 12:03 pm
by mk-soft
@StarBootics

Sorry,
I'm gonna have to take a swing at that. :mrgreen: A bool is always a whole register. I had already written that here.
Link: https://www.purebasic.fr/english/viewto ... 02#p577102

With the optimisation of GCC, it seems to have caught up with you now. 8)

Re: PureBasic 6.00 Beta 1 released !

Posted: Sat Nov 27, 2021 2:48 pm
by StarBootics
mk-soft wrote: Sat Nov 27, 2021 12:03 pm @StarBootics

Sorry,
I'm gonna have to take a swing at that. :mrgreen: A bool is always a whole register. I had already written that here.
Link: https://www.purebasic.fr/english/viewto ... 02#p577102

With the optimization of GCC, it seems to have caught up with you now. 8)
I know now and if you check carefully I have edited the code to reflect that. It didn't took me many hour of investigation to figure out the problem. That being said I don't like that especially when you deal with binary files. Read/Write Integer don't use the same space inside a file depending on which system it was created 32 bits or 64 bits system. So you need to solve this issue, one way is to include a binary file header describing that aspect so a binary file written on 32 bits systems can be read on 64 bits systems and vice-versa. And this is something I would like to avoid at all cost.

Best regards
StarBootics

Re: PureBasic 6.00 Beta 1 released !

Posted: Sat Nov 27, 2021 5:12 pm
by morosh
- Brand new Raspberry version!
Thanks Fred and team, really good news

Re: PureBasic 6.00 Beta 1 released !

Posted: Sat Nov 27, 2021 5:52 pm
by Seymour Clufley
Will there be a sub-forum for reporting Raspberry bugs?

Re: PureBasic 6.00 Beta 1 released !

Posted: Mon Nov 29, 2021 7:55 am
by Little John
That's pretty cool! 8)
Many thanks to Fred and the team!

Re: PureBasic 6.00 Beta 1 released !

Posted: Tue Nov 30, 2021 9:34 pm
by marcoagpinto
Hello!

I can't seem to be able to make beta 1 accept the "C backend compiler" on Ubuntu 20.04.

See the screenshot:
https://proofingtoolgui.org/_other/pb60 ... 211130.png

What am I doing wrong?

Thanks!

Re: PureBasic 6.00 Beta 1 released !

Posted: Tue Nov 30, 2021 10:18 pm
by Saboteur
Looks like pbcompilerc executable don't have execute permission. I changed and it works.

Take a look if that's the problem.

Re: PureBasic 6.00 Beta 1 released !

Posted: Tue Nov 30, 2021 10:45 pm
by marcoagpinto
Saboteur wrote: Tue Nov 30, 2021 10:18 pm Looks like pbcompilerc executable don't have execute permission. I changed and it works.

Take a look if that's the problem.
Yes, it now works, but there is an IDE bug.

Thanks!

Re: PureBasic 6.00 Beta 1 released !

Posted: Tue Nov 30, 2021 10:54 pm
by marcoagpinto
IDE bug on Ubuntu 20.04, PB 6.00 beta 1:
https://www.youtube.com/watch?v=9IkNtGPvhBw

Re: PureBasic 6.00 Beta 1 released !

Posted: Wed Dec 01, 2021 10:34 am
by marcoagpinto
Installing the following package in Ubuntu 20.04 gave an error:

Code: Select all

marcoagpinto@marcoagpinto-VirtualBox:~/Desktop$ sudo apt-get install libgnome2-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libgnome2-dev
EDIT: IDE issue fixed by installing the packages.

Re: PureBasic 6.00 Beta 1 released !

Posted: Wed Dec 01, 2021 5:40 pm
by mk-soft
libgnome2-dev is no longer needed

Re: PureBasic 6.00 Beta 1 released !

Posted: Thu Dec 02, 2021 7:44 pm
by skinkairewalker
how happy to read that purebasic will support raspberry pi and other platforms, you and fantaisie software are admirable !

Re: PureBasic 6.00 Beta 1 released !

Posted: Fri Dec 03, 2021 11:47 am
by CDXbow
Thank you Fred, Andre and Timo. You have made an old man happy.
Total love for the PB 6 and the pi version. You guys are the best. I've put off going out on a date tonight to try the pi version
If you come to Oz I will shower you with drugs, alcohol and women, or boys if you wish.