Author Topic: Compiling shared libraries for other platforms  (Read 11063 times)

Offline the.weavster

  • Mc. Print
  • *
  • Posts: 12
    • View Profile
The ability to compile shared libraries for other platforms (esp Linux/webOS) would be :good:

Pretty please with sugar on  :nw:

Offline the.weavster

  • Mc. Print
  • *
  • Posts: 12
    • View Profile
Hello Ocean  :)

With shared libraries you mean .so (Linux/OSX) or .DLL (Windows) files?
Yes.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10859
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
What are you trying to achieve?

Offline the.weavster

  • Mc. Print
  • *
  • Posts: 12
    • View Profile
Hi Kitty Hello,

What are you trying to achieve?
To create libraries I could use with LuaJIT. I want to create something that's conceptually quite similar to murgaLua but tailored to my own needs.

Initially I'm planning a Betfair bot and I want to be able to run it / modify it on any platform I use (primarily PCLinuxOS but if I could get it to run on a tablet too that would be great) so a fast interpreter with a runtime would work better for me than having to keep getting my old Windows laptop out to recompile for every platform every time I want to make a change.

As an alternative suggestion, have you ever considered creating an interpreted version of GLBasic for each supported platform? I'd happily buy them as separate products, especially if the scripts would run unchanged on any platform.


DLL's are no problem, these can be compiled right now.  I'm not too sure about .so files, haven't done that yet myself.
For your convenience, I've attached a DLL demonstration project that was put up on this forum some years ago..
Thanks Ocean but for some reason I can't get that download link to work.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10859
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
I'm not sure if I want the GLBasic engine to be used as a library for a script language.

Offline Dabz

  • Mr. Polyvector
  • ***
  • Posts: 104
    • View Profile
    • BambooCoder
Quote
I'm not sure if I want the GLBasic engine to be used as a library for a script language.

Just spied this... This happened to BRL, someone nicked the Blitz3D runtime.dll (or whatever it was called), bundled it with a scripting language and released it for coinage, they eventual replaced the lib with something else, but after that, I think BRL included something in their EULA!

I'm not saying this is the intention here, but, you'll have to be careful with that, if you have nothing in place to state this shouldnt be done, then, your left wide open!

Dabz


Offline Marmor

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 936
  • 96A285CC
    • View Profile
    • my youtube channel
as Dabz say  !
maybe you need to change your EULA ? :whip:

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2795
    • View Profile
Talking of PB this thread is very similar to this one....

http://www.purebasic.fr/english/viewtopic.php?f=17&t=48518
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)