Statick v1.2 Linux windows

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
idle
Always Here
Always Here
Posts: 5899
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Statick v1.2 Linux windows

Post by idle »

Statick is a utility to create static libraries from PB shared library sources, to facilitate the development of User Libraries, standard archives or wrappers to c libs.

See the ReadMe in the platforms subfolder for setup and use.

Notes:

The libraries produced may only be compatible with PB, so if you want to use it from a foreign language
and it doesn't work..., it's only intended to aid PB development.

Also please respect the intent of your PB user licence and don't create simple wrappers to PB libs!


Combined Download for Linux, Windows with support for x86 and x64

http://www.idlearts.com/Statick_v1_2.zip
Last edited by idle on Tue Jul 03, 2012 10:49 pm, edited 5 times in total.
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
idle
Always Here
Always Here
Posts: 5899
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Statick v1.0a Linux

Post by idle »

added x64 version
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
idle
Always Here
Always Here
Posts: 5899
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Statick v1.0a Linux windows

Post by idle »

Added win x86 version
Windows 11, Manjaro, Raspberry Pi OS
Image
A M S
User
User
Posts: 58
Joined: Fri Aug 14, 2009 2:26 pm
Location: Afghanistan

Re: Statick v1.0a Linux windows

Post by A M S »

thanks idle, very good job, please don't forget win x64 too! :D :D :D
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Statick v1.0a Linux windows

Post by ts-soft »

Image thx, very useful
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
LuCiFeR[SD]
666
666
Posts: 1033
Joined: Mon Sep 01, 2003 2:33 pm

Re: Statick v1.0a Linux windows

Post by LuCiFeR[SD] »

Looks very useful indeed :P Cheers idle :)
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Statick v1.0a Linux windows

Post by ts-soft »

Can you change the interface to a IDE-TOOL for all OS?
This would it make easier to use.

Greatings - Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
idle
Always Here
Always Here
Posts: 5899
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Statick v1.0a Linux windows

Post by idle »

Thanks

A win x64 is on the way.
ts-soft wrote:Can you change the interface to a IDE-TOOL for all OS?
This would it make easier to use.
Greatings - Thomas
I'll see what I can do, it won't be a problem to do on Windows but I'm not sure about Linux.
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
idle
Always Here
Always Here
Posts: 5899
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Statick v1.2 Linux windows

Post by idle »

With a bit of help from ts-soft, got a windows 64 version.
changed it to a compiler tool
Windows 11, Manjaro, Raspberry Pi OS
Image
A M S
User
User
Posts: 58
Joined: Fri Aug 14, 2009 2:26 pm
Location: Afghanistan

Re: Statick v1.2 Linux windows

Post by A M S »

thanks again... :D
marroh
User
User
Posts: 72
Joined: Wed Aug 06, 2008 8:21 am

Re: Statick v1.2 Linux windows

Post by marroh »

Good work, thanks! :mrgreen:
PureBASIC v5.41 LTS , Windows v8.1 x64
Forget UNICODE - Keep it BASIC !
Peyman
Enthusiast
Enthusiast
Posts: 203
Joined: Mon Dec 24, 2007 4:15 pm
Location: Iran

Re: Statick v1.2 Linux windows

Post by Peyman »

Great work thanks, how can import procedures in VS 6 ?
for this code :

Code: Select all

DeclareDLL new_dialog(test.i)

ProcedureCDLL new_dialog(test.i)
  MessageRequester("", Str(i))
EndProcedure
i use this header :

Code: Select all

extern void new_dialog(long);
extern void dialog_Init(void);
whats wrong ?
Sorry for my bad english.
User avatar
idle
Always Here
Always Here
Posts: 5899
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Statick v1.2 Linux windows

Post by idle »

I don't know what's wrong. Also I don't know if the libs produced are usable from other languages
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
idle
Always Here
Always Here
Posts: 5899
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Statick v1.2 Linux windows

Post by idle »

Louise wrote:Thank you for the great work. :wink:
But I can not do with this tool to create a static library.
I get this error when building the library.

Title : Statick Error
Message : PureBasic.def not found.
Did you set your source to be compiled as a shared dll in the compiler options?
When PB compiles to a dll it will produce purebasic.def which has the names of the exported procedures.
Statick needs to read it, so it can add aliases to the exports in the asm before recompiling it.
So either you haven't specified that your source is a DLL or it's something else?
Statick has only been tested for PB 4.61
Windows 11, Manjaro, Raspberry Pi OS
Image
Post Reply