Nice work, Enrico!
The debug console for windows is very cool, and I really like the more consistent config path for my lua scripts.
But when I try to run on Windows 98, I get an error message: "GEANY.EXE is linked to missing export SHELL32:SHGetFolderPathA"
After a little googling I found this page: http://support.microsoft.com/kb/241733
The page says: "To use SHGetFolderPath on Windows 95 or Windows 98, you must redistribute the SHFolder.dll file along with the migration DLL."
Well, I already have that DLL but it isn't getting linked -
So here is what I did to fix it: On line 82 of src/makefile.win32, add -lshfolder to the linker flags. ( Note that -lshfolder has to come *before* -lshell32 )
After that, everything seems to be working -
I compiled and ran it on Win98, and tested the same exe on Win2K, Then I compiled and ran it on Win2K, and tested that exe on Win98.
So I think it should be safe to add the -lshfolder flag permanently?
- Jeff
On Sun, 30 Dec 2007 18:00:05 -0600 "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
The debug console for windows is very cool, and I really like
Hehe yes. It was so annoying when testing some code and you never get any messages or warnings, so I looked for a workaround and adding a new console window was the easiest way without adding tons of new code.
the more consistent config path for my lua scripts.
We should have done this much earlier. We writing the first Windows code I didn't take much care about all that because I only wanted to get it running, and then I never touched the code again. The code itself was taken from Sylpheed, hehe.
But when I try to run on Windows 98, I get an error message: "GEANY.EXE is linked to missing export SHELL32:SHGetFolderPathA"
After a little googling I found this page: http://support.microsoft.com/kb/241733
The page says: "To use SHGetFolderPath on Windows 95 or Windows 98, you must redistribute the SHFolder.dll file along with the migration DLL."
Yes, I read about that while adding the code but I forgot it again (or maybe I hoped nobody uses Win9x anymore ;-)).
So here is what I did to fix it: On line 82 of src/makefile.win32, add -lshfolder to the linker flags. ( Note that -lshfolder has to come *before* -lshell32 )
After that, everything seems to be working -
I compiled and ran it on Win98, and tested the same exe on Win2K, Then I compiled and ran it on Win2K, and tested that exe on Win98.
So I think it should be safe to add the -lshfolder flag permanently?
Yes, I'll add it within the next days.
But what about the shfolder.dll? Should we and are we allowed to redistribute it with Geany(dunno about all the licencing stuff). Or should we just mention it in the README file with a link to the Microsoft site (I really hope there aren't that much Win9x users out there)?
regards, Enrico
P.S.: to all non-English readers: if you visit Microsoft's knowledge base websites, they properly provide a translated version according to your browsers language. This is generally nice and a good idea. But at least most of the German translations(automatically translated by software) are only funny and if you want to know what they are talking about reading the original English version is much better ;-).
On Dec 31, 2007 6:48 AM, Enrico Tröger enrico.troeger@uvena.de wrote:
But what about the shfolder.dll? Should we and are we allowed to redistribute it with Geany(dunno about all the licencing stuff). Or should we just mention it in the README file with a link to the Microsoft site
Well, I'm not a lawyer, but don't think it would be a good idea to distribute a closed-source DLL with a GPL program.
Maybe you can mention that it's needed, but the download link from MS is no longer valid. I did manage to track it down to here: http://tinyurl.com/3fl9s - but microsoft's website has a bad habit of moving things around, and I would guess that download is probably not going to be around much longer anyway.
(I really hope there aren't that much Win9x users out there)?
Maybe we could convince them they should upgrade the missing DLL at http://www.ubuntu.com/ :-)
- Jeff
On Mon, 31 Dec 2007 07:25:42 -0600, "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
On Dec 31, 2007 6:48 AM, Enrico Tröger enrico.troeger@uvena.de wrote:
But what about the shfolder.dll? Should we and are we allowed to redistribute it with Geany(dunno about all the licencing stuff). Or should we just mention it in the README file with a link to the Microsoft site
Well, I'm not a lawyer, but don't think it would be a good idea to distribute a closed-source DLL with a GPL program.
I agree, that's why I asked. We just leave it out and we are save.
Maybe you can mention that it's needed, but the download link from MS is no longer valid. I did manage to track it down to here: http://tinyurl.com/3fl9s - but microsoft's website has a bad habit of moving things around, and I would guess that download is probably not going to be around much longer anyway.
Ok, thanks for the information. I'll add a note somehwhere in the next days.
(I really hope there aren't that much Win9x users out there)?
Maybe we could convince them they should upgrade the missing DLL at http://www.ubuntu.com/ :-)
Hehe, good idea ;-).
Happy new year, Enrico
On Tue, 1 Jan 2008 20:41:07 +0100, Enrico Tröger enrico.troeger@uvena.de wrote:
Maybe you can mention that it's needed, but the download link from MS is no longer valid. I did manage to track it down to here: http://tinyurl.com/3fl9s - but microsoft's website has a bad habit of moving things around, and I would guess that download is probably not going to be around much longer anyway.
Ok, thanks for the information. I'll add a note somehwhere in the next days.
I added a note in the README and on the website on the Running on Windows page. I also added the -lshfolder linker flag in src/makefile.win32.
Regards, Enrico
On Jan 2, 2008 2:37 PM, Enrico Tröger enrico.troeger@uvena.de wrote:
I added a note in the README and on the website on the Running on Windows page. I also added the -lshfolder linker flag in src/makefile.win32.
Okay, thanks !
- Jeff