Page 1 of 1

Scintilla gadget not in final executable

Posted: Mon Jun 10, 2013 10:16 pm
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

Re: Scintilla gadget not in final executable

Posted: Mon Jun 10, 2013 10:28 pm
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()

Re: Scintilla gadget not in final executable

Posted: Mon Jun 10, 2013 10:30 pm
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.

Re: Scintilla gadget not in final executable

Posted: Mon Jun 10, 2013 11:24 pm
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.

Re: Scintilla gadget not in final executable

Posted: Tue Jun 11, 2013 12:35 am
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.

Re: Scintilla gadget not in final executable

Posted: Tue Jun 11, 2013 6:17 am
by ts-soft

Re: Scintilla gadget not in final executable

Posted: Tue Jun 11, 2013 6:55 pm
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.

Re: Scintilla gadget not in final executable

Posted: Tue Jun 11, 2013 10:28 pm
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.)

Re: Scintilla gadget not in final executable

Posted: Tue Jun 11, 2013 10:40 pm
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

Re: Scintilla gadget not in final executable

Posted: Wed Jun 12, 2013 5:01 am
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.