Development :  K-Meleon Web Browser Forum
K-Meleon development related discussions. 
Building K-meleon with VS2013
Posted by: Meroveus
Date: October 30, 2014 02:18PM

Can't build k-meleon with Visual Studio 2013.
What I do?
1) Download and unpack last k-meleon source code tarball from kmeleon.cvs.sourceforge.net/viewvc/kmeleon/k-meleon/
2) Download and install Visual Leak Detector from vld.codeplex.com.
3) Download and unpack xulrunner-24.0.en-US.win32.sdk to k-meleon project folder
4) Open kmeleon10.sln and update project to Visual Studio 2013
5) Modifying WINVER to _WIN32_WINNT_WINXP (0x0501)
6) Build k-meleon project only.

------ Build started: Project: k-meleon, Configuration: Unicode Win32 ------
BrowserWindow.cpp
browserwindow.cpp(215):error C2440: 'return' : cannot convert from 'nsresult' to 'BOOL'
This conversion requires an explicit cast (static_cast or function-style cast)

browserwindow.cpp(552):error C2440: 'return' : cannot convert from 'nsresult' to 'BOOL'
This conversion requires an explicit cast (static_cast or function-style cast)
browserwindow.cpp(707):error C2440: 'return' : cannot convert from 'nsresult' to 'BOOL'
This conversion requires an explicit cast (static_cast or function-style cast)

HiddenWnd.cpp
hiddenwnd.cpp(333):error C2440: 'return' : cannot convert from 'nsresult' to 'LRESULT'
This conversion requires an explicit cast (static_cast or function-style cast)
hiddenwnd.cpp(344):error C2440: 'return' : cannot convert from 'nsresult' to 'LRESULT'
This conversion requires an explicit cast (static_cast or function-style cast)

PrintProgressDialog.cpp
printprogressdialog.cpp(60):error C2664: 
'nsresult CPrintProgressDialog::OnEndPrinting(PRUint32)' : 
cannot convert argument 1 from 'nsresult' to 'PRUint32'
This conversion requires an explicit cast (static_cast or function-style cast)

ProfileMgr.cpp
profilemgr.cpp(335):error C2440: 'return' : cannot convert from 'nsresult' to 'BOOL'
This conversion requires an explicit cast (static_cast or function-style cast)
profilemgr.cpp(342):error C2440: 'return' : cannot convert from 'tag_nsresult' to 'BOOL'
This conversion requires an explicit cast (static_cast or function-style cast)

Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


What am I do wrong?



Edited 1 time(s). Last edit at 10/30/2014 02:18PM by Meroveus.

Options: ReplyQuote
Re: Building K-meleon with VS2013
Posted by: guenter
Date: October 30, 2014 03:46PM

Привіт Meroveus,

I do not know the answer to Your current question.

Because I am no dev but a layman, just another forum user.

But You may run into more problems. K-Meleon74 is based on FF.ESR 24. That is compiled with VC 10 aka VS 2012.

Your SDK is probably also compiled with VC 10. Please check it out with the applications about:buildconfig (compiler version AFAIK 16.00.30319.01) or look whether it uses msvcp100.dll and msvcp100.dll. If so You may soon get errors that tell You that the libs were created with an older compiler.

Because You use VC 11 aka VS 2013 which is the standart compiler for the current Mozilla applications.
Quote
Windows_Prerequisites
Official releases of Mozilla products are currently compiled with Visual Studio 2013.

But not esr 24 and probably not an SDK build in 2013 or so.

For KM.exe You need the MFC libs and headers and currently IMHO for the K-Plugins too.

VC 10 for desktop exists as free Express version and as 90 days Ultimate or so trial version. Since KM.exe needs the MFC libs and headers, You will IMHO need the 90 days version, any profesional version that ships the files. When You run out of time You can AFIK still use its libs and headers with Express. So remember to back them up when You deinstall the 90 day version.smiling smiley

The same deal for VC 11. But I guess You have a full version of it.

Greetings from Germany

Options: ReplyQuote
Re: Building K-meleon with VS2013
Posted by: Dorian
Date: October 30, 2014 07:35PM

It looks like mistake in the code that previous compiler didn't mind.

Quote
guenter
Because You use VC 11 aka VS 2013 which is the standart compiler for the current Mozilla applications.
Quote
Windows_Prerequisites
Official releases of Mozilla products are currently compiled with Visual Studio 2013.

Weird, FF 33 still use vs 2010



Edited 1 time(s). Last edit at 10/30/2014 07:35PM by Dorian.

Options: ReplyQuote
Re: Building K-meleon with VS2013
Posted by: guenter
Date: November 01, 2014 06:08AM

Quote
Dorian
Weird, FF 33 still use vs 2010

It is still supported. But how long?

The Mozilla codebase works with Visual Studio 2010 (VC10) and Visual Studio 2013 (VC12).

VC 11 does not install on XP anymore. I worry that Microsoft will soon pull the plug for XP completely like it did for Win 98 and Win2000.

Options: ReplyQuote
Re: Building K-meleon with VS2013
Posted by: 4td8s
Date: November 17, 2014 11:27PM

Quote
guenter
Quote
Dorian
Weird, FF 33 still use vs 2010

It is still supported. But how long?

The Mozilla codebase works with Visual Studio 2010 (VC10) and Visual Studio 2013 (VC12).

VC 11 does not install on XP anymore. I worry that Microsoft will soon pull the plug for XP completely like it did for Win 98 and Win2000.

VC11 requires Windows XP SP2 or SP3 (at least the VC11 Redist package).
If it's the full VC11 software or full VS2013 software, then those require Windows 7 SP1 to build. sorry folks. must use modern Windows version to build KM with VS2013.



Edited 1 time(s). Last edit at 11/17/2014 11:29PM by 4td8s.

Options: ReplyQuote
Re: Building K-meleon with VS2013
Posted by: 4td8s
Date: November 17, 2014 11:32PM

Quote
Meroveus
Can't build k-meleon with Visual Studio 2013.

not unless you are using Windows 7 Service Pack 1 or higher.
The full Visual Studio 2013 software requires minimum Windows 7 SP1.

Quote

The System Requirements of Visual Studio 2013 are as follows:

Supported Operating System

Windows 7 Service Pack 1, Windows 8, Windows 8.1, Windows Server 2008 R2 SP1, Windows Server 2012, Windows Server 2012 R2

Hardware Requirements:

1.6 GHz or faster processor 1 GB of RAM (1.5 GB if running on a virtual machine) 10 GB of available hard disk space 5400 RPM hard disk drive DirectX 9-capable video card that runs at 1024 x 768 or higher display resolution Additional Requirements:

On Windows 8.1 and Windows Server 2012 R2, KB2883200 (available through Windows Update) is required



Edited 1 time(s). Last edit at 11/17/2014 11:36PM by 4td8s.

Options: ReplyQuote
Re: Building K-meleon with VS2013
Posted by: guenter
Date: November 18, 2014 12:13AM

Quote
4td8s
Quote
guenter
It is still supported. But how long?

The Mozilla codebase works with Visual Studio 2010 (VC10) and Visual Studio 2013 (VC12).

VC 11 does not install on XP anymore. I worry that Microsoft will soon pull the plug for XP completely like it did for Win 98 and Win2000.

VC11 requires Windows XP SP2 or SP3 (at least the VC11 Redist package).
If it's the full VC11 software or full VS2013 software, then those require Windows 7 SP1 to build. sorry folks. must use modern Windows version to build KM with VS2013.

I bloody know. The original poster used VC 11 to compile against VC 10 generated libs. I am no dev but - i know small things. This will not work. Neither will the installer of VC 11 work under Win XP (unless it is cheated about the WIN version, faked a higher WIN version.).

And Dorian pointed at an additional problem. Some KM code is (maybe) not yet updated for VC 11.


My kind regards.



Edited 1 time(s). Last edit at 11/18/2014 06:46AM by guenter.

Options: ReplyQuote
Re: Building K-meleon with VS2013
Posted by: 4td8s
Date: February 17, 2015 10:57PM

Quote
guenter
I bloody know. The original poster used VC 11 to compile against VC 10 generated libs. I am no dev but - i know small things. This will not work. Neither will the installer of VC 11 work under Win XP (unless it is cheated about the WIN version, faked a higher WIN version.).

And Dorian pointed at an additional problem. Some KM code is (maybe) not yet updated for VC 11.


My kind regards.

then use Windows 7 to use VS2013 or VC11 - almost all my computers have Win7 SP1.
or use a friend's PC that has at least Win7 on it.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.