|
Post by joe2874 on Mar 11, 2022 15:32:03 GMT -6
Hello, I tried to compile rcbasic under linux ubuntu 20.04. The compilation of rcbasic_build was successful with the command :
g++ -O2 -s main.cpp -o rcbasic_build
but it doesn't work for rcbasic_runtime with the command :
g++ -O2 -s main.cpp -o rcbasic -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer -lSDL2_net -logg -lvorbis -lvorbisfile -ltheora -pthread
I have of course decommented #define RC_LINUX in rc_os_defines.h
what is the correct command to compile rcbasic_runtime. i would like to test different options to improve the execution speed...
|
|
|
Post by n00b on Mar 11, 2022 16:25:46 GMT -6
It seems you are missing SDL_gfx and the TheoraPlay library. You also did not link against the theora decoder module.
You can install SDL_gfx through your package manager.
You should be able to compile the whole thing like this:
g++ main.cpp theoraplay.c -o rcbasic -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer -lSDL2_net -lSDL2_gfx -logg -lvorbis -lvorbisfile -ltheora -ltheoradec -pthread
I am not home at the moment so if that doesn't work let me know and I will give you the exact command from my build machine that I am using.
|
|
|
Post by joe2874 on Mar 11, 2022 17:20:51 GMT -6
thank you, I had indeed forgotten to specify theoraplay.c and -lSDL2_gfx, here is the correct command line:
g++ main.cpp theoraplay.c -o rcbasic -O2 -s -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer -lSDL2_net -lSDL2_gfx -logg -lvorbis -lvorbisfile -ltheora -ltheoradec -pthread
I will be able to test the many options of optimizations of g++ to accelerate the execution of the interpreter, you have created a small jewel, I intend to use rcbasic as a scripting language, do you consider generating compilable c++ code to obtain an independent executable file, it could attract a lot of contributors because the basic language is very simple and especially allows to develop very quickly.
Is there a documentation in pdf format?
|
|
|
Post by johnno56 on Mar 11, 2022 18:13:46 GMT -6
joe2874 . Where are my manners? Welcome to the Forum. I hope that your stay with us will be beneficial for all. One important thing to remember.... If you are not having fun then you are doing it wrong! Enjoy your stay! J
|
|
|
Post by n00b on Mar 11, 2022 19:40:25 GMT -6
I will be able to test the many options of optimizations of g++ to accelerate the execution of the interpreter, you have created a small jewel, I intend to use rcbasic as a scripting language, do you consider generating compilable c++ code to obtain an independent executable file, it could attract a lot of contributors because the basic language is very simple and especially allows to develop very quickly. Currently, I don't plan on implementing a compiler to generate C++ code. It may happen someday, but there is huge backlog of stuff I want to finish like improving the distribution tool in the editor, adding a debugger, improving the manual, adding more examples, etc. Generating C++, while not exactly difficult, would be time consuming and I am currently the only developer so development is very slow. Is there a documentation in pdf format? The old manual that came with 1.0 back in 2015 was a PDF. I went to HTML because I wanted to be able to easily split the reference manual into categories.
|
|
|
Post by joe2874 on Mar 12, 2022 9:38:11 GMT -6
johnno56. thank you for your welcome
n00b. i understand. i didn't think you were alone on this project because of its progress. i've been interested in rcbasic since version 1 but i never had the time to test it until now. i confined geany in a sandbox with firejail and configured rcbasic launch. it works very well. i noticed a latency before the execution of the compiled programs. i optimized the compilation of the runtime but i would need a source code to evaluate the speed gain obtained...
concerning the documentation, I could have generated a pdf if the page was unique. I downloaded everything with wget but there are too many files in the mess for it to be done easily. that said, I don't use windows anymore otherwise it would be possible to generate a chm file. xchm under linux can read this format.
|
|
|
Post by rosy on Mar 12, 2022 10:28:20 GMT -6
Why do you need a PDF?
|
|
|
Post by joe2874 on Mar 12, 2022 10:43:35 GMT -6
it's easier than having to launch a web browser, don't you think!
|
|
|
Post by rosy on Mar 12, 2022 11:40:45 GMT -6
I think starting a web browser is easier than starting PDF
|
|
|
Post by johnno56 on Mar 12, 2022 15:58:44 GMT -6
joe2874! You didn't tell me that you are a Linux user! No more windows? YES! Another convert!!! Woo Hoo!! Ok. What flavour of Linux do you use? (Not judging... Curious.)
Another mistake on my part. If I had know then I would have rolled out the Red Carpet... Assuming, of course, that I actually owned a red carpet... lol But you get what I mean, right?
Yes! Our numbers are growing! Eventually FOSS will dominate the world and Bill will be forced into the dark shadows of exile... Moo Ha Ha....
|
|
|
Post by joe2874 on Mar 12, 2022 17:58:38 GMT -6
johnno56. i've been using kde neon for about 2 years now. it's a linux distribution based on ubuntu. no more system crashes or blue screens. i gave up windows because it was becoming nonsense. it's not an operating system anymore, it's a giant spyware...
yes, there are more and more of us and that's great...
|
|
|
Post by johnno56 on Mar 12, 2022 18:21:08 GMT -6
I originally started with Ubuntu 5.10 (Oct 2005) then switched to Linux Mint 13.04 (May 2012) and have been a 'Mint' fan ever since. (Currently using LM 20.3 - based on Ubuntu 20.04)
|
|
|
Post by n00b on Mar 12, 2022 20:51:20 GMT -6
joe2874 johnno56 I currently use Ubuntu 20.04 in a VM for building but I am using Pop OS on my laptop. I really like what they did with cosmic on the 21.10 release.
|
|
|
Post by johnno56 on Mar 13, 2022 0:05:30 GMT -6
I am curious... Which VM do you use? The Oracle VirtualBox that I had on my previous build had severe graphics limitations... Only 256mb for video ram.... I could run WinXP without any difficulties... Limited to either 800x600 or 1024x768 (sometimes)... At times I miss old XP... *sigh*
|
|
|
Post by joe2874 on Mar 13, 2022 5:29:26 GMT -6
I confirm for having tested it intensively that ubuntu is clearly a very good distribution. why use virtualBox when qemu is totally opensource. i compiled it with virgil3d and i have access to 3d in vms. I use it for all my vms (debian 10, archlinux, Batocera game emulation, EndeavourOS, kubuntu, manjaro, Q4OS, ReactOS, winxp, win7, win8). i'm constantly testing linux distributions to see if it's better. for now, kde neon is the winner...
|
|