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
Scintilla gadget not in final executable
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Scintilla gadget not in final executable
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.
If it sounds simple, you have not grasped the complexity.
Re: Scintilla gadget not in final executable
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.
You have to distribute this dll with your final app.
PureBASIC v5.41 LTS , Windows v8.1 x64
Forget UNICODE - Keep it BASIC !
Forget UNICODE - Keep it BASIC !
Re: Scintilla gadget not in final executable
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.
Re: Scintilla gadget not in final executable
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.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.
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.
Re: Scintilla gadget not in final executable
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.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: Scintilla gadget not in final executable
Thanks all!
For now adding the dll did the trick for me.
Maybe for future use I'll try the static version.
For now adding the dll did the trick for me.
Maybe for future use I'll try the static version.
Re: Scintilla gadget not in final executable
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.)ts-soft wrote:http://www.realsource.de/downloads/doc_ ... illastatic
Re: Scintilla gadget not in final executable
Updates for GTK+ and Cocoa are relevant for static version for windowsTenaja wrote:There have been four updates since that version...

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.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: Scintilla gadget not in final executable
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.
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.