Scintilla gadget not in final executable

Just starting out? Need help? Post your questions and find answers here.
Uncle B
User
User
Posts: 82
Joined: Mon Jan 12, 2004 11:28 am
Location: the Netherlands

Scintilla gadget not in final executable

Post by Uncle B »

Hello all,

I'm pretty sure this must be a stupid question, but I can't find a solution anywhere.
I have recently been using the scintilla gadget and it works fine when I compile to test the code through 'compile / run' (F5), but when I create the final executable and start it up everything is there except the scintilla gadget... The rest of the program works fine, but the scintilla gadget is just not there. As the final executable should be no different than the temporary one created with 'Compile / Run', I'm a bit confused.
Any one who can point me in the right direction? I'm using the native IDE and PB 4.51

Advanced thanks!

Bart
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Scintilla gadget not in final executable

Post by IdeasVacuum »

I think, for Windows only, the Scintilla DLL will need to be in the same folder as your app exe, or give the fullpath to InitScintilla()
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
marroh
User
User
Posts: 72
Joined: Wed Aug 06, 2008 8:21 am

Re: Scintilla gadget not in final executable

Post by marroh »

The scintilla gadget uses a external dll which is located at "PureBasic\Compilers\Scintilla.dll".
You have to distribute this dll with your final app.
PureBASIC v5.41 LTS , Windows v8.1 x64
Forget UNICODE - Keep it BASIC !
User avatar
Demivec
Addict
Addict
Posts: 4270
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Scintilla gadget not in final executable

Post by Demivec »

gnozal has produced a static library version of scintilla that may be of use. I believe it isn't the current version of Scintilla but may be of use to you.
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Scintilla gadget not in final executable

Post by Tenaja »

Demivec wrote:gnozal has produced a static library version of scintilla that may be of use. I believe it isn't the current version of Scintilla but may be of use to you.
I used that library last year, until I was stumped with commands that did not work properly. Research showed the age of the library; it's from August 2011, or something like that. There have been 17 updates to Scintilla since the last time ScintillaStatic was updated. Needless to say, I use the dll, and most likely will keep doing so until Fred gets the static library implemented.

Edit: The frustration was not so much with the library itself as much as the library not matching the online Scintilla documentation.

Edit 2: ...This also demonstrates why I am particularly opposed to using libraries that are not included with PB and do not have open source: Since gnozal did not generate the ScintillaStatic himself, it was "no longer supported". Whether that was the official stance or not is moot; no updates in a few years means it is frozen (to me). Too many libraries get dropped by the wayside.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Scintilla gadget not in final executable

Post by ts-soft »

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
Uncle B
User
User
Posts: 82
Joined: Mon Jan 12, 2004 11:28 am
Location: the Netherlands

Re: Scintilla gadget not in final executable

Post by Uncle B »

Thanks all!
For now adding the dll did the trick for me.
Maybe for future use I'll try the static version.
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Scintilla gadget not in final executable

Post by Tenaja »

There have been four updates since that version...I guess that is one challenge to a library like that. (But thank you for at least sharing it.)
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Scintilla gadget not in final executable

Post by ts-soft »

Tenaja wrote:There have been four updates since that version...
Updates for GTK+ and Cocoa are relevant for static version for windows :wink:
I can't see any interesting update.

Greetings - 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
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Scintilla gadget not in final executable

Post by Tenaja »

At least three of the updates have bug fixes that are not os-specified. Not a lot, but some.
But more importantly, there are a few new features, and the online documentation covers them. I cannot describe how frustrating it is to go by the current docs with an outdated library.
Post Reply