Building for Windows 64 bit

Asked by Thomas Sisson

Has anyone been able to successfully build 64-bit Midori on Windows 10?

It keeps saying I have unresolved dependencies, but it won't say which.

I can't attach the output as a file, so here it is:

------------------------------------
The system is: Windows - 10.0.14393 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler:
Build flags:
Id flags:

The output was:
0
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 9/12/2016 5:28:20 PM.
The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,37)" does not exist in the project, and will be ignored.
The target "_CollectPdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,70)" does not exist in the project, and will be ignored.
The target "_CollectMdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (41,38)" does not exist in the project, and will be ignored.
The target "_CopyMdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (41,71)" does not exist in the project, and will be ignored.
Project "C:\Users\test\Source\midori-0.5.11\_mingw64\CMakeFiles\3.6.1\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
  Creating directory "Debug\".
  Creating directory "Debug\CompilerIdC.tlog\".
InitializeBuildStatus:
  Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\CL.exe /c /nologo /W0 /WX- /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc140.pdb" /Gd /TC /analyze- /errorReport:queue CMakeCCompilerId.c
  CMakeCCompilerId.c
Link:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X86 /SAFESEH Debug\CMakeCCompilerId.obj
  CompilerIdC.vcxproj -> C:\Users\test\Source\midori-0.5.11\_mingw64\CMakeFiles\3.6.1\CompilerIdC\.\CompilerIdC.exe
PostBuildEvent:
  for %%i in (cl.exe) do @echo CMAKE_C_COMPILER=%%~$PATH:i
  :VCEnd
  CMAKE_C_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\cl.exe
FinalizeBuildStatus:
  Deleting file "Debug\CompilerIdC.tlog\unsuccessfulbuild".
  Touching "Debug\CompilerIdC.tlog\CompilerIdC.lastbuildstate".
Done Building Project "C:\Users\test\Source\midori-0.5.11\_mingw64\CMakeFiles\3.6.1\CompilerIdC\CompilerIdC.vcxproj" (default targets).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:16.43

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.exe"

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.vcxproj"

The C compiler identification is MSVC, found in "C:/Users/test/Source/midori-0.5.11/_mingw64/CMakeFiles/3.6.1/CompilerIdC/CompilerIdC.exe"

Determining if the C compiler works passed with the following output:
Change Dir: C:/Users/test/Source/midori-0.5.11/_mingw64/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_8a5dd.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.

Build started 9/12/2016 5:28:39 PM.

The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,37)" does not exist in the project, and will be ignored.

The target "_CollectPdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,70)" does not exist in the project, and will be ignored.

The target "_CollectMdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (41,38)" does not exist in the project, and will be ignored.

The target "_CopyMdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (41,71)" does not exist in the project, and will be ignored.

Project "C:\Users\test\Source\midori-0.5.11\_mingw64\CMakeFiles\CMakeTmp\cmTC_8a5dd.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_8a5dd.dir\Debug\".

  Creating directory "C:\Users\test\Source\midori-0.5.11\_mingw64\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_8a5dd.dir\Debug\cmTC_8a5dd.tlog\".

InitializeBuildStatus:

  Creating "cmTC_8a5dd.dir\Debug\cmTC_8a5dd.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_8a5dd.dir\Debug\\" /Fd"cmTC_8a5dd.dir\Debug\vc140.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Users\test\Source\midori-0.5.11\_mingw64\CMakeFiles\CMakeTmp\testCCompiler.c"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x86

  Copyright (C) Microsoft Corporation. All rights reserved.

  cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_8a5dd.dir\Debug\\" /Fd"cmTC_8a5dd.dir\Debug\vc140.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Users\test\Source\midori-0.5.11\_mingw64\CMakeFiles\CMakeTmp\testCCompiler.c"

  testCCompiler.c

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\test\Source\midori-0.5.11\_mingw64\CMakeFiles\CMakeTmp\Debug\cmTC_8a5dd.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:/Users/test/Source/midori-0.5.11/_mingw64/CMakeFiles/CMakeTmp/Debug/cmTC_8a5dd.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/test/Source/midori-0.5.11/_mingw64/CMakeFiles/CMakeTmp/Debug/cmTC_8a5dd.lib" /MACHINE:X86 /SAFESEH /machine:X86 cmTC_8a5dd.dir\Debug\testCCompiler.obj

  cmTC_8a5dd.vcxproj -> C:\Users\test\Source\midori-0.5.11\_mingw64\CMakeFiles\CMakeTmp\Debug\cmTC_8a5dd.exe

FinalizeBuildStatus:

  Deleting file "cmTC_8a5dd.dir\Debug\cmTC_8a5dd.tlog\unsuccessfulbuild".

  Touching "cmTC_8a5dd.dir\Debug\cmTC_8a5dd.tlog\cmTC_8a5dd.lastbuildstate".

Done Building Project "C:\Users\test\Source\midori-0.5.11\_mingw64\CMakeFiles\CMakeTmp\cmTC_8a5dd.vcxproj" (default targets).

Build succeeded.

    0 Warning(s)

    0 Error(s)

Time Elapsed 00:00:03.69

Detecting C compiler ABI info compiled with the following output:
Change Dir: C:/Users/test/Source/midori-0.5.11/_mingw64/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_b81df.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.

Build started 9/12/2016 5:28:44 PM.

The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,37)" does not exist in the project, and will be ignored.

The target "_CollectPdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,70)" does not exist in the project, and will be ignored.

The target "_CollectMdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (41,38)" does not exist in the project, and will be ignored.

The target "_CopyMdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (41,71)" does not exist in the project, and will be ignored.

Project "C:\Users\test\Source\midori-0.5.11\_mingw64\CMakeFiles\CMakeTmp\cmTC_b81df.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_b81df.dir\Debug\".

  Creating directory "C:\Users\test\Source\midori-0.5.11\_mingw64\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_b81df.dir\Debug\cmTC_b81df.tlog\".

InitializeBuildStatus:

  Creating "cmTC_b81df.dir\Debug\cmTC_b81df.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_b81df.dir\Debug\\" /Fd"cmTC_b81df.dir\Debug\vc140.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Program Files\CMake\share\cmake-3.6\Modules\CMakeCCompilerABI.c"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x86

  Copyright (C) Microsoft Corporation. All rights reserved.

  cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_b81df.dir\Debug\\" /Fd"cmTC_b81df.dir\Debug\vc140.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Program Files\CMake\share\cmake-3.6\Modules\CMakeCCompilerABI.c"

  CMakeCCompilerABI.c

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\test\Source\midori-0.5.11\_mingw64\CMakeFiles\CMakeTmp\Debug\cmTC_b81df.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:/Users/test/Source/midori-0.5.11/_mingw64/CMakeFiles/CMakeTmp/Debug/cmTC_b81df.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/test/Source/midori-0.5.11/_mingw64/CMakeFiles/CMakeTmp/Debug/cmTC_b81df.lib" /MACHINE:X86 /SAFESEH /machine:X86 cmTC_b81df.dir\Debug\CMakeCCompilerABI.obj

  cmTC_b81df.vcxproj -> C:\Users\test\Source\midori-0.5.11\_mingw64\CMakeFiles\CMakeTmp\Debug\cmTC_b81df.exe

FinalizeBuildStatus:

  Deleting file "cmTC_b81df.dir\Debug\cmTC_b81df.tlog\unsuccessfulbuild".

  Touching "cmTC_b81df.dir\Debug\cmTC_b81df.tlog\cmTC_b81df.lastbuildstate".

Done Building Project "C:\Users\test\Source\midori-0.5.11\_mingw64\CMakeFiles\CMakeTmp\cmTC_b81df.vcxproj" (default targets).

Build succeeded.

    0 Warning(s)

    0 Error(s)

Time Elapsed 00:00:02.75

Question information

Language:
English Edit question
Status:
Expired
For:
Midori Web Browser Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Thomas Sisson (thomas-sisson-1) said :
#1

Here is my current output after running vcvarsall.bat. Windows doesn't have version control, package control, and I don't want to install every version of every tool available. This is so much easier in Linux, but even Linux can't make up for code that has not been updated. The version available for Windows will not run on Windows 10 because it just opens and becomes unresponsive.

cmake -DCMAKE_INSTALL_PREFIX=/usr ..
-- Building for: Visual Studio 14 2015
-- The C compiler identification is MSVC 19.0.24213.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64_x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64_x86/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- valac 0.32.1 found
-- Found PkgConfig: C:/msys64/usr/bin/pkg-config.exe (found version "0.29.1")
-- Checking for modules 'libxml-2.0>=2.6;sqlite3>=3.6.19;gmodule-2.0;gio-2.0>=2.32.3;libsoup-gnome-2.4>=2.37.1'
--
--
--
CMake Error at C:/Program Files/CMake/share/cmake-3.6/Modules/FindPkgConfig.cmake:424 (message):
  A required package was not found
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.6/Modules/FindPkgConfig.cmake:597 (_pkg_check_modules_internal)
  CMakeLists.txt:110 (pkg_check_modules)

-- Configuring incomplete, errors occurred!
See also "C:/Users/test/Source/midori-0.5.11/_build/CMakeFiles/CMakeOutput.log".

Revision history for this message
Thomas Sisson (thomas-sisson-1) said :
#2

I gave up and set up Bash on Windows using Windows Linux Subsystem (WSL). I have some thoughts and background before updating my progress.

Many people today use Debian derived Linux flavors. WSL uses Ubuntu Trusty sources at this time. I have pulled Fedora sources before while running Kubuntu, but the instructions for building on Linux are problematic using a Debian based system. Also, Mingw has gone through some dramatic changes. Some packages begin with Mingw, but the commands do not always do so. So:

Can someone update the file HACKING to reflect these changes and give some hints for Ubuntu?

I used to build programs on Windows when it was easy. Everything was 32bit, and sources I build were written for Windows. I've done quite a bit on Linux since, though it was a learning curve, I was able to build Linux from sources. I don't know why it seems so difficult to build 64-bit programs for Windows. I'm starting to see why many free programs for Windows are only available in 32 bit.

I got all the way to make install. Here's my output. I thought maybe one error was caused by makedist.midori starting with "#! /bin/sh" instead of "#!/bin/sh," but I still get the same error. It may have to do with the fact that pushd is a builtin command. I see issues on the internet about it not working when called by make. Here it is:

 env MINGW_PREFIX="/usr/x86_64-w64-mingw32/sys-root/mingw/" ../win32/makedist/makedist.midori x64
../win32/makedist/makedist.midori: 28: [: unexpected operator
../win32/makedist/makedist.midori: 37: [: /usr/x86_64-w64-mingw32/sys-root/mingw/: unexpected operator
../win32/makedist/makedist.midori: 72: [: unexpected operator
Creating midori-0.5.11-x64.zip
<*> Generating dll list...
../win32/makedist/makedist.midori: 168: ../win32/makedist/makedist.midori: pushd: not found

After that it just freezes. The command in HACKING only had one dot (.), but that caused an error. There was nothing about changing back to the top of the midori source tree first. I'm a little confused because it appeared to make for Linux including a midori.desktop file. I'm obviously a confused and hope someone with some patience reads this soon.

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.