Hey MonkeeSage,
Could you post the sources for your builds on your site? I want to start playing around with KM but your builds are so great, I don't want to sacrifice the features in your builds.
Sure thing. I've been moving into a new aprt. last few days and haven't had internet access, so forgive me for taking a couple days to reply.
I'll pack up my current source tree for the 1.4b build, and the batch file to set up your environment to grab mozilla off CVS & compile it (which you'll need for the moz libs that K-Meleon links to), and I'll write a short little instructions.
To get it all built and working you'll need Cygwin w/ dev tools installed (for mozilla), from http://www.cygwin.com , and MSVC++ (or MSDS) 6 or better (for the K-Meleon workspace and project files).
Give me about 20 minutes to get it all together and up the .zip package.
Maybe you should consider also posting the Mozilla include files and libraries (xpcom.lib baseembed_s.lib nspr4.lib plc4_s.lib) for both 1.2.1 and 1.4b so that downloading and building all of Mozilla isn't required.
By the way did you get a chance to test my favorites quicksearch lookup update yet ?
The main mozilla libs are unfortunately dynamically linked with hundreds of other lib and idl files (a search from the top reveals 492 .lib files and 2,238 .idl files). About a third of the libs and a tenth of the idls look to be directly linked with the main libs. Plus one also needs the actual runtimes (dll), which are another 8-10 megs compressed. The package with all the necessary libs, idls, dlls and headers would be huge (I'd estimate anywhere from 30-60+ megs); too huge for my amount of web space I think.
About the favorites nicknames, I had forgoteen about that; I have been working on a little project I'm going to submit to the dev-list as a draft idea for .8 when it is relatively bug-free, so I've been spending most of my time working out the kinks in that. I'll do your favorites update today though, in the next few hours. I'll update the builds page when it is in.
That's too bad, there should definitely be a way to build K-Meleon (or any Gecko browser) without having to download and build all (or most) of Mozilla. There is a win32 Gecko SDK on the ftp site which has a bunch of .lib files but it doesn't have the needed header files which makes somewhat it useless.
Hey, thanks a lot! I got the Mozilla CVS and I made all the changes you said, but I'm getting an error when I'm running 'make build_all'. Here's the last thing it says:
Hmm. I have no idea what the problem was, but I just deleted my mozilla directory, then downloaded a nightly source. I didn't use any CVS, then just compiled it. It works fine now.
Your build seemd to work fine, except for these few errors:
C:\mozilla\k-meleon\history\hist_view.cpp(1137) : error C2065: 'MIIM_STRING' : undeclared identifier
C:\mozilla\k-meleon\ns_bookmarks\ns_bookmarks_edit.cpp(1744) : error C2065: 'MIIM_STRING' : undeclared identifier
C:\mozilla\k-meleon\ns_bookmarks\ns_bookmarks_utils.cpp(780) : error C2664: 'CreateDialogParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,unsigned in
t,long)'
None of the functions with this name in scope match the target type
op_edit.cpp
C:\mozilla\k-meleon\op_hotlist\op_edit.cpp(1520) : error C2065: 'MIIM_STRING' : undeclared identifier
Everything else compiled fine.
And, even though the thing still works, do you know if there's a way to get rid of these warnings:
../mozilla/dist/include\mozilla-config.h(34) : warning C4005: 'WIN32_LEAN_AND_MEAN' : macro redefinition
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxv_w32.h(72) : see previous definition of 'WIN32_LEAN_AND_MEAN'
../mozilla/dist/include\mozilla-config.h(40) : warning C4005: '_X86_' : macro redefinition
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windows.h(123) : see previous definition of '_X86_'
../mozilla/dist/include\mozilla-config.h(34) : warning C4005: 'WIN32_LEAN_AND_MEAN' : macro redefinition
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxv_w32.h(72) : see previous definition of 'WIN32_LEAN_AND_MEAN'
../mozilla/dist/include\mozilla-config.h(40) : warning C4005: '_X86_' : macro redefinition
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windows.h(123) : see previous definition of '_X86_'
1. MIIM_STRING is a newer version of the MFT_STRING mask (it's menu related stuff). First try including windows.h at the top of the files having the problem and adding user32.lib as one of its link targets in the settings dialog (Link tab, select General or Input from the drop down menu).
If still no go, try just switching it to the depricated version (which will still work exactly the same), and change all the "MIIM_STRING" to "MFT_STRING".
2. Go to settings dialog, select the problem project (i.e., ns_bookmarks) from the list on the left, drop down the "Settings for:" menu on top of the list and choose All configurations. Activate the C/C++ tab to the right and select Code Generation from the drop down menu, and make sure you have these settings:
Processor: Blend *
Use run-time library: Multithreaded DLL
Calling convention: __cdecl *
Structure member alignment: 8 bytes *
Then switch to Optimizations from the drop down menu and make sure Inline function expansion is set to Only __inline. Hopefully that will fix the casting problem it was having with EditProc.
3. Comment line 34 & 40 of C:\mozilla\mozilla-source-1.4b\mozilla\dist\include\mozilla-config.h to get rid of the warnings about macro redefinitions for _X86_ and WIN32_LEAN_AND_MEAN.
Ahhh... it's still not working. Thanks for helping me with this, but you don't have to worry about it. I don't need to mess with the bookmarks plugin - I can just download your binary.
I appreciate the time you spent trying to help me with this, though!