PBOSL - A OpenSource Library-Collection for PureBasic

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: PBOSL - A OpenSource Library-Collection for PureBasic

Post by ts-soft »

sqlite3 userlib is useless. use the native one in pb.
rudz
User
User
Posts: 35
Joined: Sun Mar 21, 2010 6:59 am
Location: Denmark
Contact:

Re: PBOSL - A OpenSource Library-Collection for PureBasic

Post by rudz »

Using PB v4.41 x64
Tailbite v1.4.3 (using MultiLib)
PellesC v6.0.4
nasm v2.08.01

I have managed to compile the following libs without any MAJOR hassle:
  • PBOSL_AnimSprite
    PBOSL_AppRunning
    PBOSL_BriefLZ
    PBOSL_CPUmonitor
    PBOSL_DBin
    PBOSL_ExDatabase
    PBOSL_GlobalSharedMemory
    PBOSL_LoadDllMemory
    PBOSL_MSXML3
    PBOSL_NTService
    PBOSL_SkinWin
    PBOSL_SkinWinFast
    PBOSL_Timer
    PBOSL_ToolbarPro
    PBOSL_TryCatch
    PBOSL_WindowSubclass
Also didn't have any problems making the help file.


Ran into the following issues:
  • Setup.bat required some changes, i ran into some issues using spaces in location names. (also with ").
    C\PBOSL_SkinWinFast: requires Unicode flag support - compiles.
    ASM\PBOSL_AppRunning: requires Unicode flag support - compiles.
    ASM\PBOSL_TryCatch: requires Unicode flag support - compiles.
    PB\PBOSL_CreateGadget: need prototyping - fails.
    PB\PBOSL_ExPrinter: unknown structure field(s) - fails.
    PB\PBOSL_Process: TB-ERROR: ExamineDrivers.asm#30#Code -122 UNDEFINED_SYMBOL.
    <- 64 bit problem?
    PB\PBOSL_RFile: TB-ERROR: PureBasic.asm [2321|MP38]: Undefined symbol 's_New_RFile.p_VT'.
    PB\PBOSL_ScreenGadgets: TB-ERROR: PureBasic.asm [16367|MP190]: Undefined symbol 's_SG_ScreenGadgetEvent.v_WaitMouseRelease_SL'.
Edit: I have only tested CPUUsage(), does not work in PB-x64 but in PB-x86 it howls from the speakers with a high pitch noise, then does nothing but return -1 value.

The rest will have to wait.
AMD FX-8350 @ ~4.8GHz | 8GB Corsair DDR3-SDRAM @ 1800Mhz | 7even Ult & Manjaro 0.8.7.1 | PB 5.3
Web: rudz.dk
Gansta93
Enthusiast
Enthusiast
Posts: 238
Joined: Wed Oct 20, 2004 7:16 pm
Location: The Village
Contact:

Re: PBOSL - A OpenSource Library-Collection for PureBasic

Post by Gansta93 »

Hello,

WebPM doesn't work anymore... is there another colaborative space (CVS, SVN...) for PBOSL?
Is PBOSL still under development or abandoned?
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)
User_Russian
Addict
Addict
Posts: 1443
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PBOSL - A OpenSource Library-Collection for PureBasic

Post by User_Russian »

Compiled from source PBOSL for PureBasic 4.5x.
Download.
User avatar
electrochrisso
Addict
Addict
Posts: 980
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Re: PBOSL - A OpenSource Library-Collection for PureBasic

Post by electrochrisso »

Hi User_Russian, thanks for download, did you need to alter the source much. :?:
If so, any chance of submitting the changes you had to make.
PureBasic! Purely one of the best 8)
le_magn
Enthusiast
Enthusiast
Posts: 133
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia
Contact:

Re: PBOSL - A OpenSource Library-Collection for PureBasic

Post by le_magn »

User_Russian wrote:Compiled from source PBOSL for PureBasic 4.5x.
Download.
Hi, is this version also compatible with PB 4.61?
Image
applePi
Addict
Addict
Posts: 1404
Joined: Sun Jun 25, 2006 7:28 pm

Re: PBOSL - A OpenSource Library-Collection for PureBasic

Post by applePi »

le_magn wrote:
Hi, is this version also compatible with PB 4.61?
there is an update for binaries to ts-soft lib by user_russian look for PureBasic 5.00 x86 here: http://pure-basic.narod.ru/libs.html . it works with pb5.10b1. use google translator to translate pages to english.
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Re: PBOSL - A OpenSource Library-Collection for PureBasic

Post by Joakim Christiansen »

electrochrisso wrote:Hi User_Russian, thanks for download, did you need to alter the source much. :?:
If so, any chance of submitting the changes you had to make.
Someone should just put it up on GitHub, GitHub has gotten quite popular and makes it easy for people to "subscribe" to a project automatically syncing the latest changes to their disk, etc.

Offtopic: Actually instead of having a Tips and Tricks section it would be nice with an official rep. at GitHub where all examples are published and maintained by the community. Then the current work with updating the code in that forum section would be a breeze.
I like logic, hence I dislike humans but love computers.
User avatar
Danilo
Addict
Addict
Posts: 3037
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: PBOSL - A OpenSource Library-Collection for PureBasic

Post by Danilo »

SkinWinFast library update for PB5.21 (requires SkinWin lib from PBOSL package):

DOWNLOAD: SkinWinFast_PB521.zip

Changes:
- GenerateFastSkin()'s "compress" argument takes now a #PB_PackerPlugin_ constant (#PB_PackerPlugin_Zip, #PB_PackerPlugin_LZMA, #PB_PackerPlugin_BriefLZ, 0 = no compression)
- You need to include the correct UseXXXPacker() command in your executable that uses compressed .pbs skin files
- File version of .pbs skins updated to v2, as it is not compatible to v1 skins. You need to re-generate your skins.

Small test included. Final EXE sizes with the included example image:

Code: Select all

BriefLZ:  42,0 KB
LZMA:     78,5 KB
Zip:     112,0 KB
Resulting EXE size depends on the image and packer you use.
LZMA may create smaller .pbs files, but the packer/unpacker is much
bigger itself. BriefLZ packer/unpacker is much smaller (round about 40KB),
but compressed skins are usually bigger. You need to test this if you want
the smallest possible executable.
Post Reply