Wish Compile to lib, like in the other IDE's

Cableguy

Expert
Licensed User
Longtime User
Hi,

I know this one is an Hard one to pull-off, but hey, it's a whish!

In B4R, just like in any other B4X IDE, we can create Modules and then compile them into a lib. Even without that, we can initialize the class as objects, which we cannot in B4R.
So, my wish is made of 2 parts, complementary:
1 - make code modes act like classes
2 - the ability to compile to lib (maybe with an external tool?)
 

peacemaker

Expert
Licensed User
Longtime User
Just thinking: how compilation to lib may be possible, if here there are lot of MCUs, architectures, memory partitions, compilation conditions, hardware versions and options for each MCU family... And no common virtual machine, universal code for all... like Java.
 

Cableguy

Expert
Licensed User
Longtime User
Well, I guess that, when we do Inline C, how are those taken into account? Anyway... then I "change" my wish to compile into "wrapper"... The Arduino IDE doesn't compile the libs to "ALL the MCUs, Architectures, Memory partitions etc, etc" either!
 

peacemaker

Expert
Licensed User
Longtime User
when we do Inline C
...we copy-paste C-code for some exact MCU family or high-level code depending on more universal С-libs with defines and conditions (for many MCUs variants) at lower scope level.
 

Cableguy

Expert
Licensed User
Longtime User
I do understand that,.

My request comes in the sequence of the latest issues I have been having with the SH1106 Oled Controller, and the fact that the existing B4R wrapper no longer seems to work...
However, I have managed to "encapsulate" some examples that target a different base Lib for that display, and that works!
I am amidst of creating a "pseudo-wrapper" in the form of a code module, and exposing, trying to keep compatibility with the SSD1306 family, as much functions and methods as I can.
 

byz

Active Member
Licensed User

If you are tired of frequently modifying compressed files after modifying the b4xlib library, the automation tool I shared may be helpful to you. Of course, I also hope that erel can integrate the functionality of packaging it into b4xlib in future versions.

By the way, the shortcut function of IDE can now be considered as a prototype of IDE plugins.
 
Top