Error: Can't load any OSLibraries! Please re-install PureBasic.
I have tried to make a res file (test.pb was inside the compiler directory):
Code: Select all
./pbcompiler test.pb -r test.resCode: Select all
./pbcompiler test.pb -r test.resCode: Select all
export PUREBASIC_HOME=~/PureBasic/x86/PureBasic
export PATH=$PATH:$PUREBASIC_HOME/compilersCode: Select all
Options:
--------
-c or --commented: Produce commented asm output (purebasic.asm)
-d or --debugger: Enable the debugger
-u or --unicode: Enable unicode support
-t or --thread: Enable the threadsafe support
-e or --executable "filename": Create an executable to the given filename
-r or --resident "filename.res": Create a resident file to the given filename
-q or --quiet: Display only error on the standard output
-sb or --standby: Starts the compiler in standby mode (remote control)
-pf or --purifier: Enable the purifier
-ls or --liststructures: Creates a file with all the structures
-lf or --listfunctions: Creates a file with all the functions
-li or --listinterfaces: Creates a file with all the interfaces
-lp or --listpath: Set the output path for the above lists commands
-qs or --querystructure "name": Creates a file with the definition
-s or --subsystem "name": Uses the specified subsystem
-dl or --dylib "filename": Create a dynamic library (dylib object)
-n or --icon "iconname.icns": add the icon to the application
-f or --front: put the launched process to front
-ibp or --ignorebundlepath: don't use the bundle path as current directory
-l or --linenumbering: Enable line numbering in the final executable for OnError
-o or --constant Name=Value: Declare a new constant at compile time
-g or --language: Set the language of the compiler error messages
-ds or --debugsymbols: Add standard debug symbols to executable
-k or --check: Check the syntax only, doesn't create/launch the executable
-v or --version: Display the compiler versionCode: Select all
pbcompiler Lebostein.pb -r /Applications/PureBasic/residents/Lebostein.res -ir /Applications/PureBasic/residents/Lebostein.resCode: Select all
pbcompiler Lebostein.pb -r /Applications/PureBasic/residents/Lebostein.res -ir Lebostein.res