Quantcast
Channel: Chilkat Tech Notes
Viewing all articles
Browse latest Browse all 415

Support for PureBasic on Apple M1 and Linux arm32/arm64, etc.

$
0
0

Chilkat has received email from customers asking to support PureBasic on M1 Apple silicon and Raspberry Pi.   This is no problem for Chilkat.  We can easily produce the required native .so, .dylib, etc. for each architecture.  We only need documentation from PureBasic about these new architectures.  For example, what are the compiler directives to choose?

We currently have something like this:

  CompilerSelect #PB_Compiler_OS
    CompilerCase #PB_OS_Windows
      CompilerIf #PB_Compiler_Processor = #PB_Processor_x86
        CkJweLibId.i = OpenLibrary(#PB_Any, "chilkatPb32-9_5_0.dll")
      CompilerElse
        CkJweLibId.i = OpenLibrary(#PB_Any, "chilkatPb-9_5_0.dll")
      CompilerEndIf
    CompilerCase #PB_OS_MacOS
        CkJweLibId.i = OpenLibrary(#PB_Any, "libchilkatPb-9_5_0.dylib")
    CompilerCase #PB_OS_Linux
      CompilerIf #PB_Compiler_Processor = #PB_Processor_x86
        CkJweLibId.i = OpenLibrary(#PB_Any, "libchilkatPb32-9_5_0.so")
      CompilerElse
        CkJweLibId.i = OpenLibrary(#PB_Any, "libchilkatPb-9_5_0.so")
      CompilerEndIf
  CompilerEndSelect

 


Viewing all articles
Browse latest Browse all 415

Trending Articles