This forum has been archived. All content is frozen. Please use KDE Discuss instead.

build Krita from source on Windows

Tags: None
(comma "," separated)
User avatar
dobrokotov
Registered Member
Posts
125
Karma
0

build Krita from source on Windows

Fri Mar 18, 2016 1:18 am
Hello, I am trying to build Krita from source on Windows7 (maybe I can fix some very simple but annoying UI bugs, like missing updates or very simple non-sofisticated crashes).

Now I am stuck with this command from instruction C:\dev\krita\3rdparty\README.md:
cmake --build . --config RelWithDebInfo --target ext_pthreads

It gives me the following error, about crashed "patch" utility: http://dobrokot.ru/pics/i2016-03-18__04-05-54_205kb.png
(Sorry about Russian in MSVC build messages, don't know how to switch them to English, seems they are unrelated to patch crash).
Is this known problem for Krita build? Searching shows that this can be somehow related to CR-LF line ending, but I don't know what and how should be fixed - http://stackoverflow.com/questions/2389 ... or-windows


------------------------------------------------
Some information about environment, not sure it is enough

I have installed msvc14 (Visual Studio 2015) to C:\soft\msvc14, cmake 3.5 (this is not mentioned in build manual 3.3.2, not sure is this important or not), qt ( example of one of installed file - C:\Qt\5.6\msvc2015_64\qml\QtGraphicalEffects\private\qtgraphicaleffectsprivate.dll )

Code: Select all
c:\dev>dir

 Содержимое папки c:\dev

17.03.2016  01:34    <DIR>          .
17.03.2016  01:34    <DIR>          ..
18.03.2016  03:45    <DIR>          b
18.03.2016  03:45    <DIR>          d
18.03.2016  03:45    <DIR>          i
16.03.2016  07:17    <DIR>          krita

c:\dev>C:\soft\msvc14\VC\bin\amd64\vcvars64.bat
c:\dev>cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]


return of
Code: Select all
echo %PATH%

C:\soft\msvc14\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\MSBuild\14.0\bin\amd64;C:\soft\msvc14\VC\BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\soft\msvc14\VC\VCPackages;C:\soft\msvc14\Common7\IDE;C:\soft\msvc14\Common7\Tools;C:\Program Files (x86)\HTML Help Workshop;C:\soft\msvc14\Team Tools\Performance Tools\x64;C:\soft\msvc14\Team Tools\Performance Tools;C:\Program Files (x86)\Windows Kits\8.1\bin\x64;C:\Program Files (x86)\Windows Kits\8.1\bin\x86;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\;c:\dev\i\bin\;c:\dev\i\lib;BUILDROOT\i\bin\;BUILDROOT\i\lib;C:\soft\msvc14\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\MSBuild\14.0\bin\amd64;C:\soft\msvc14\VC\BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\soft\msvc14\VC\VCPackages;C:\soft\msvc14\Common7\IDE;C:\soft\msvc14\Common7\Tools;C:\Program Files (x86)\HTML Help Workshop;C:\soft\msvc14\Team Tools\Performance Tools\x64;C:\soft\msvc14\Team Tools\Performance Tools;C:\Program Files (x86)\Windows Kits\8.1\bin\x64;C:\Program Files (x86)\Windows Kits\8.1\bin\x86;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\TortoiseSVN\bin;C:\soft\WinMerge;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\soft\py27;C:\soft\py27\Scripts;C:\soft\py27\Library\bin;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\CMake\bin;C:\Windows\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\TortoiseSVN\bin\;c:\soft\graphviz\bin

------------------------------
I am using git is from cygwin ( I don't know anything about git, I mostly used Subversion in the past, so I just copy commands from StackOverflow to do something with git )
Code: Select all
/cygdrive/c/dev/krita$ git status #
On branch master
Your branch is up-to-date with 'origin/master'.

Last edited by dobrokotov on Fri Mar 18, 2016 4:01 am, edited 3 times in total.
User avatar
dobrokotov
Registered Member
Posts
125
Karma
0
There is discussion about this error message from "patch" utility
https://sourceforge.net/p/gnuwin32/disc ... /59954e91/

But it gives me no information, how to fix build
User avatar
scottpetrovic
Registered Member
Posts
520
Karma
4
OS
patch is the first thing that is compiled off that list, so I am almost thinking there is something not right with the cmake or visual studio. I am guessing you have a pre-compiled version of Qt that you downloaded and installed from the internet.

it found the location of patch, so I don't think it is a PATH issu. It seems like the patch application was just never compiled successfully. Maybe you can try to get a different version of cmake and try again. I am on cmake 3.3.2 and that seems to be ok. Not sure if that will be the issue though.
User avatar
guruguru
Registered Member
Posts
37
Karma
1
OS
I think that's the same issue as I had. I saw the same error line number.
"patch does not seem to like LF linebreaks in .diff .patch files. I had to convert linebreaks for these files to CRLF in text editor(I use Notepad++) manually."
viewtopic.php?f=281&t=131139

So I had to convert linebreaks for these .patch and .diff files manually. Well, actually there seems to be a way to workaround it by having git autoconvert the linebreaks(by using "git config --global core.autocrlf true") but I have not tested it myself yet.
User avatar
dobrokotov
Registered Member
Posts
125
Karma
0
guruguru wrote:I think that's the same issue as I had. I saw the same error line number.
So I had to convert linebreaks for these .patch and .diff files manually.


Thanks, this works! I have changed line endings of all *.patch and *.diff to to windows CR-LF (
Code: Select all
find /c/dev/krita/3rdparty -name '*.patch' -or -name '*.diff'  | xargs sed -i 's/\([^\r]\|\)$/\1\r/'
) , and pthreads compilation worked well.

Now I have new problem, with command
cmake --build . --config RelWithDebInfo --target ext_boost

It gives error about missing file /dev/i/lib/boost_system-vc-mt-1_55.dll
Error copying file "/dev/i/lib/boost_system-vc-mt-1_55.dll" to "/dev/i/lib/boost_system-vc140-mt-1_55.dll".
There are no file boost_system-vc-mt-1_55.dll in the 'lib' directory:
Code: Select all
c:\dev\b>dir c:\dev\i\lib

18.03.2016  13:33    <DIR>          .
18.03.2016  13:33    <DIR>          ..
18.03.2016  13:40            19 456 boost_system-vc110-mt-1_55.dll
18.03.2016  13:40             2 956 boost_system-vc110-mt-1_55.lib
18.03.2016  13:30            28 228 pthreads.lib


------------------------------------------------------
cmake --build . --config RelWithDebInfo --target ext_boost
c:\dev\b>cmake --build . --config RelWithDebInfo --target ext_boost
Microsoft (R) Build Engine версии 14.0.24730.2
(C) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.

Сборка начата 18.03.2016 14:02:35.
Целевой объект "BeforeGenerateProjectPriFile", указанный в атрибуте BeforeTargets для "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)", не существует в проекте и будет пропущен.
Целевой объект "BeforeGenerateProjectPriFile", указанный в атрибуте BeforeTargets для "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)", не существует в проекте и будет пропущен.
Проект "C:\dev\b\ext_boost\ext_boost.vcxproj" в узле 1 (целевые объекты по умолчанию).
Проект "C:\dev\b\ext_boost\ext_boost.vcxproj" (1) выполняет сборку "C:\dev\b\ZERO_CHECK.vcxproj" (2) в узле 1 (целевые объекты по умолчанию).
InitializeBuildStatus:
Создание "x64\RelWithDebInfo\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild", так как было задано "AlwaysCreate".
CustomBuild:
Для всех выходных данных обновления не требуется.
FinalizeBuildStatus:
Файл "x64\RelWithDebInfo\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" удаляется.
Обращение к "x64\RelWithDebInfo\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Сборка проекта "C:\dev\b\ZERO_CHECK.vcxproj" завершена (целевые объекты по умолчанию).

InitializeBuildStatus:
Обращение к "x64\RelWithDebInfo\ext_boost\ext_boost.tlog\unsuccessfulbuild".
CustomBuild:
Building Custom Rule C:/dev/krita/3rdparty/ext_boost/CMakeLists.txt
CMake does not need to re-run because C:\dev\b\ext_boost\CMakeFiles\generate.stamp is up-to-date.
Creating directories for 'ext_boost'
Performing download step (download, verify and extract) for 'ext_boost'
-- verifying file...
file='/dev/d/boost_1_55_0.zip'
-- verifying file... done
-- extracting...
src='/dev/d/boost_1_55_0.zip'
dst='C:/dev/b/ext_boost/ext_boost-prefix/src/ext_boost'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
No update step for 'ext_boost'
No patch step for 'ext_boost'
Performing configure step for 'ext_boost'
Building Boost.Build engine

Bootstrapping is done. To build, run:

.\b2

To adjust configuration, edit 'project-config.jam'.
Further information:

- Command line help:
.\b2 --help

- Getting started guide:
http://boost.org/more/getting_started/windows.html

- Boost.Build documentation:
http://www.boost.org/boost-build2/doc/html/index.html
Performing build step for 'ext_boost'
link.jam: No such file or directory

Component configuration:

- atomic : not building
- chrono : not building
- context : not building
- coroutine : not building
- date_time : not building
- exception : not building
- filesystem : not building
- graph : not building
- graph_parallel : not building
- iostreams : not building
- locale : not building
- log : not building
- math : not building
- mpi : not building
- program_options : not building
- python : not building
- random : not building
- regex : not building
- serialization : not building
- signals : not building
- system : building
- test : not building
- thread : not building
- timer : not building
- wave : not building

...found 20766 targets...
...updating 10790 targets...
common.mkdir \dev
common.mkdir \dev\i
common.mkdir \dev\i\lib
common.mkdir build-dir
common.mkdir build-dir\boost
common.mkdir build-dir\boost\bin.v2
common.mkdir build-dir\boost\bin.v2\libs
common.mkdir build-dir\boost\bin.v2\libs\system
common.mkdir build-dir\boost\bin.v2\libs\system\build
common.mkdir build-dir\boost\bin.v2\libs\system\build\msvc-11.0
common.mkdir build-dir\boost\bin.v2\libs\system\build\msvc-11.0\release
common.mkdir build-dir\boost\bin.v2\libs\system\build\msvc-11.0\release\address-model-64
common.mkdir build-dir\boost\bin.v2\libs\system\build\msvc-11.0\release\address-model-64\architecture-x86
common.mkdir build-dir\boost\bin.v2\libs\system\build\msvc-11.0\release\address-model-64\architecture-x86\threading-multi
compile-c-c++ build-dir\boost\bin.v2\libs\system\build\msvc-11.0\release\address-model-64\architecture-x86\threading-multi\error_code.obj
error_code.cpp
msvc.link.dll build-dir\boost\bin.v2\libs\system\build\msvc-11.0\release\address-model-64\architecture-x86\threading-multi\boost_system-vc110-mt-1_55.dll
Creating library build-dir\boost\bin.v2\libs\system\build\msvc-11.0\release\address-model-64\architecture-x86\threading-multi\boost_system-vc110-mt-1_55.lib and object build-dir\boost\bin.v2\libs\system\build\msvc-11.0\release\address-model-64\
architecture-x86\threading-multi\boost_system-vc110-mt-1_55.exp
msvc.manifest.dll build-dir\boost\bin.v2\libs\system\build\msvc-11.0\release\address-model-64\architecture-x86\threading-multi\boost_system-vc110-mt-1_55.dll
common.copy \dev\i\lib\boost_system-vc110-mt-1_55.dll
build-dir\boost\bin.v2\libs\system\build\msvc-11.0\release\address-model-64\architecture-x86\threading-multi\boost_system-vc110-mt-1_55.dll
Скопировано файлов: 1.
common.copy \dev\i\lib\boost_system-vc110-mt-1_55.lib
build-dir\boost\bin.v2\libs\system\build\msvc-11.0\release\address-model-64\architecture-x86\threading-multi\boost_system-vc110-mt-1_55.lib

[lot message of copying are skipped]
common.copy \dev\i\include\boost-1_55\boost\tr1\tr1\vector
boost\tr1\tr1\vector
Скопировано файлов: 1.
...updated 10790 targets...
No install step for 'ext_boost'
Performing post_install step for 'ext_boost'
Error copying file "/dev/i/lib/boost_system-vc-mt-1_55.dll" to "/dev/i/lib/boost_system-vc140-mt-1_55.dll".
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" завершилась с кодом 1. [C:\dev\b\ext_boost\ext_boost.vcxproj]
Сборка проекта "C:\dev\b\ext_boost\ext_boost.vcxproj" завершена (целевые объекты по умолчанию) с ошибкой.

"C:\dev\b\ext_boost\ext_boost.vcxproj" (целевой объект по умолчанию) (1) ->
(Целевой объект CustomBuild) ->
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" завершилась с кодом 1. [C:\dev\b\ext_boost\ext_boost.vcxproj]
User avatar
dobrokotov
Registered Member
Posts
125
Karma
0
Also I have problem with ext_lcms2 build:

"C:\dev\b\ext_lcms2\ext_lcms2.vcxproj" (целевой объект по умолчанию) (1) ->
(Целевой объект CustomBuild) ->
tiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp_vfprintf referenced in function unixWarningHandler [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp___iob_func referenced in function unixWarningHandler [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(snprintf.obj) : error LNK2019: unresolved external symbol __imp__vscprintf referenced in function _TIFF_vsnprintf_f [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(snprintf.obj) : error LNK2019: unresolved external symbol __imp__vsnprintf_s referenced in function _TIFF_vsnprintf_f [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(tif_codec.obj) : error LNK2019: unresolved external symbol __imp_sprintf referenced in function _notConfigured [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\bin\RelWithDebInfo\tificc.exe : fatal error LNK1120: 5 unresolved externals [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxpro
j]
tiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp_vfprintf referenced in function unixWarningHandler [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp___iob_func referenced in function unixWarningHandler [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(snprintf.obj) : error LNK2019: unresolved external symbol __imp__vscprintf referenced in function _TIFF_vsnprintf_f [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(snprintf.obj) : error LNK2019: unresolved external symbol __imp__vsnprintf_s referenced in function _TIFF_vsnprintf_f [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(tif_codec.obj) : error LNK2019: unresolved external symbol __imp_sprintf referenced in function _notConfigured [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\bin\RelWithDebInfo\tificc.exe : fatal error LNK1120: 5 unresolved externals [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxpro
j]
User avatar
dobrokotov
Registered Member
Posts
125
Karma
0
----------------------------------------------------------------------------------------------------------------------------
"C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\ALL_BUILD.vcxproj" (целевой объект по умолчанию) (1) ->
"C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj" (целевой объект по умолчанию) (8) ->
(Целевой объект Link) ->
tiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp_vfprintf referenced in function unixWarningHandler [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp___iob_func referenced in function unixWarningHandler [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(snprintf.obj) : error LNK2019: unresolved external symbol __imp__vscprintf referenced in function _TIFF_vsnprintf_f [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(snprintf.obj) : error LNK2019: unresolved external symbol __imp__vsnprintf_s referenced in function _TIFF_vsnprintf_f [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(tif_codec.obj) : error LNK2019: unresolved external symbol __imp_sprintf referenced in function _notConfigured [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\bin\RelWithDebInfo\tificc.exe : fatal error LNK1120: 5 unresolved externals [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
----------------------------------------------------------------------------------------------------------------------------

C:\dev\b\ext_libraw\ext_libraw.vcxproj" (целевой объект по умолчанию) (1) ->
C:\dev\b\ext_lcms2\ext_lcms2.vcxproj" (целевой объект по умолчанию) (4) ->
Целевой объект CustomBuild) ->
tiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp_vfprintf referenced in function unixWarningHandler [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp___iob_func referenced in function unixWarningHandler [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(snprintf.obj) : error LNK2019: unresolved external symbol __imp__vscprintf referenced in function _TIFF_vsnprintf_f [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(snprintf.obj) : error LNK2019: unresolved external symbol __imp__vsnprintf_s referenced in function _TIFF_vsnprintf_f [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(tif_codec.obj) : error LNK2019: unresolved external symbol __imp_sprintf referenced in function _notConfigured [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\bin\RelWithDebInfo\tificc.exe : fatal error LNK1120: 5 unresolved externals [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxpro
]
tiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp_vfprintf referenced in function unixWarningHandler [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp___iob_func referenced in function unixWarningHandler [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(snprintf.obj) : error LNK2019: unresolved external symbol __imp__vscprintf referenced in function _TIFF_vsnprintf_f [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(snprintf.obj) : error LNK2019: unresolved external symbol __imp__vsnprintf_s referenced in function _TIFF_vsnprintf_f [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(tif_codec.obj) : error LNK2019: unresolved external symbol __imp_sprintf referenced in function _notConfigured [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\bin\RelWithDebInfo\tificc.exe : fatal error LNK1120: 5 unresolved externals [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxpro
]
----------------------------------------------------------------------------------------------------------------------------

"C:\dev\b\ext_openjpeg\ext_openjpeg.vcxproj" (целевой объект по умолчанию) (1) ->
"C:\dev\b\ext_lcms2\ext_lcms2.vcxproj" (целевой объект по умолчанию) (3) ->
(Целевой объект CustomBuild) ->
tiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp_vfprintf referenced in function unixWarningHandler [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp___iob_func referenced in function unixWarningHandler [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(snprintf.obj) : error LNK2019: unresolved external symbol __imp__vscprintf referenced in function _TIFF_vsnprintf_f [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(snprintf.obj) : error LNK2019: unresolved external symbol __imp__vsnprintf_s referenced in function _TIFF_vsnprintf_f [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(tif_codec.obj) : error LNK2019: unresolved external symbol __imp_sprintf referenced in function _notConfigured [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\bin\RelWithDebInfo\tificc.exe : fatal error LNK1120: 5 unresolved externals [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxpro
j]
tiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp_vfprintf referenced in function unixWarningHandler [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp___iob_func referenced in function unixWarningHandler [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(snprintf.obj) : error LNK2019: unresolved external symbol __imp__vscprintf referenced in function _TIFF_vsnprintf_f [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(snprintf.obj) : error LNK2019: unresolved external symbol __imp__vsnprintf_s referenced in function _TIFF_vsnprintf_f [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
tiff.lib(tif_codec.obj) : error LNK2019: unresolved external symbol __imp_sprintf referenced in function _notConfigured [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxproj]
C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\bin\RelWithDebInfo\tificc.exe : fatal error LNK1120: 5 unresolved externals [C:\dev\b\ext_lcms2\ext_lcms2-prefix\src\ext_lcms2-build\utils\tificc.vcxproj] [C:\dev\b\ext_lcms2\ext_lcms2.vcxpro
j]
User avatar
dobrokotov
Registered Member
Posts
125
Karma
0
Compilation of
cmake --build . --config RelWithDebInfo --target ext_kwindowsystem
gives following errors:
https://paste.kde.org/pznssj3ho

First lines of paste.kde.org/pznssj3ho (seems, it will be self-destroyed after 2017):

C:\soft\msvc14\VC\bin\x86_amd64\CL.exe /c /I"C:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive-build\src" /I"C:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive\src" /IC:\dev\i\include /IC:\soft\py27\Library\include /IC:\Qt\5
.6\msvc2015_64\include /IC:\Qt\5.6\msvc2015_64\include\QtCore /I"C:\Qt\5.6\msvc2015_64\.\mkspecs\win32-msvc2015" /Zi /nologo /W3 /WX- /O2 /Ob1 /D WIN32 /D _WINDOWS /D NDEBUG /D WIN32_LEAN_AND_MEAN /D _WIN32_WINNT=0x0600 /D WINVER=0x0600 /D _WIN32_
IE=0x0600 /D UNICODE /D _UNICODE /D _USE_MATH_DEFINES /D _CRT_SECURE_NO_DEPRECATE /D _CRT_SECURE_NO_WARNINGS /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D QT_NO_CAST_TO_ASCII /D QT_NO_CAST_FROM_ASCII /D QT_NO_URL_CAST_FROM_STRING /D Q
T_NO_CAST_FROM_BYTEARRAY /D QT_NO_SIGNALS_SLOTS_KEYWORDS /D QT_USE_FAST_OPERATOR_PLUS /D QT_USE_QSTRINGBUILDER /D QT_CORE_LIB /D QT_NO_DEBUG /D "CMAKE_INTDIR=\"RelWithDebInfo\"" /D KF5Archive_EXPORTS /D _WINDLL /D _UNICODE /D UNICODE /Gm- /EHsc /M
D /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"KF5Archive.dir\RelWithDebInfo\\" /Fd"KF5Archive.dir\RelWithDebInfo\vc140.pdb" /Gd /TP /wd4250 /wd4251 /wd4396 /wd4661 /errorReport:queue "C:\dev\b\ext_frameworks\ext_karchive-prefix\src
\ext_karchive\src\karchive.cpp" "C:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive\src\kar.cpp" "C:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive\src\kcompressiondevice.cpp" "C:\dev\b\ext_frameworks\ext_karchive-prefix\src\e
xt_karchive\src\kfilterbase.cpp" "C:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive\src\kfilterdev.cpp" "C:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive\src\kgzipfilter.cpp" "C:\dev\b\ext_frameworks\ext_karchive-prefix\src\
ext_karchive\src\klimitediodevice.cpp" "C:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive\src\knonefilter.cpp" "C:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive\src\ktar.cpp" "C:\dev\b\ext_frameworks\ext_karchive-prefix\src\
ext_karchive\src\kzip.cpp" "C:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive\src\krcc.cpp" "C:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive\src\kbzip2filter.cpp" "C:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchiv
e-build\src\KF5Archive_automoc.cpp"
karchive.cpp
c:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive\src\karchivefile.h(97): error C3646: 'Q_DECL_OVERRIDE': unknown override specifier [C:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive-build\src\KF5Archive.vcxproj] [C:\dev\b\ext
_frameworks\ext_karchive.vcxproj]
c:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive\src\karchivefile.h(107): error C3646: 'Q_DECL_OVERRIDE': unknown override specifier [C:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive-build\src\KF5Archive.vcxproj] [C:\dev\b\ex
t_frameworks\ext_karchive.vcxproj]
c:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive\src\karchivedirectory.h(106): error C3646: 'Q_DECL_OVERRIDE': unknown override specifier [C:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive-build\src\KF5Archive.vcxproj] [C:\dev
\b\ext_frameworks\ext_karchive.vcxproj]
c:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive\src\karchivedirectory.h(118): error C3646: 'Q_DECL_OVERRIDE': unknown override specifier [C:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive-build\src\KF5Archive.vcxproj] [C:\dev
\b\ext_frameworks\ext_karchive.vcxproj]
C:\Qt\5.6\msvc2015_64\include\QtCore/qfiledevice.h(89): error C3646: 'Q_DECL_OVERRIDE': unknown override specifier [C:\dev\b\ext_frameworks\ext_karchive-prefix\src\ext_karchive-build\src\KF5Archive.vcxproj] [C:\dev\b\ext_frameworks\ext_karchive.vcxp
roj]

Last edited by dobrokotov on Fri Mar 18, 2016 12:25 pm, edited 1 time in total.
User avatar
neverendingo
Administrator
Posts
2136
Karma
17
OS
In the future, for pastes in this dimension, please use https:/paste.kde.org


New to KDE Software? - get help from Userbase or ask questions on the Forums
Communicate.
Image
User avatar
guruguru
Registered Member
Posts
37
Karma
1
OS
boost:
Looks like the compile itself went well(there are boost lib/dll files created in your c:\dev\i\lib), but the renaming part of the process is failing because the compiled files seem to have different names than the makefile expected. Renaming the files manually might just work...for now...

LNK2019 error:
I assume it's possibly path(expected library could not be found), but your PATH seems to be fine. Hmmm... Did you run "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat" in command line?
User avatar
dobrokotov
Registered Member
Posts
125
Karma
0
neverendingo wrote:In the future, for pastes in this dimension, please use https:/paste.kde.org

Thanks, this forum allows to use paste.kde.org in the past too :) I have put largest error message to https://paste.kde.org/pznssj3ho

Last edited by dobrokotov on Fri Mar 18, 2016 1:30 pm, edited 3 times in total.
User avatar
dobrokotov
Registered Member
Posts
125
Karma
0
guruguru wrote:boost:
Looks like the compile itself went well(there are boost lib/dll files created in your c:\dev\i\lib), but the renaming part of the process is failing because the compiled files seem to have different names than the makefile expected. Renaming the files manually might just work...for now...

LNK2019 error:
I assume it's possibly path(expected library could not be found), but your PATH seems to be fine. Hmmm... Did you run "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat" in command line?


Thanks! I think I better not to guess in this case, but wait for developers in this thread, seems to be some more subtle link problems (mismatched compilation/link flags).
Yes, I had run the vcvars64.bat
User avatar
scottpetrovic
Registered Member
Posts
520
Karma
4
OS
Does boost say it compiled correctly? It should generate that DLL when it is done. It either didn't compile correctly, or it is in a different folder.
Stefano Bonicatti
KDE Developer
Posts
16
Karma
0
OS
Hey there, for the patches format i think we really should convert them to Unix format and then who's on Windows has to activate the autocrlf property of git (which is kind of standard to have on Windows):
Code: Select all
git config --global core.autocrlf true


For the issue with boost, i don't know, but it seems that it is detecting the compiler as if it was VS2010 instead of just leaving out the vc part (that is then corrected by our cmake script into vc140).
Anyway if the boost build fails at that step, you just need to manually copy the files and rename them as it's shown in the copy operation that fails.
User avatar
dobrokotov
Registered Member
Posts
125
Karma
0
Stefano Bonicatti wrote:Hey there, for the patches format i think we really should convert them to Unix format and then who's on Windows has to activate the autocrlf property of git (which is kind of standard to have on Windows):
Code: Select all
git config --global core.autocrlf true



I think, that changing line ending for all text files trigger a lot of other unexpected problems for large codebase, better too keep source files identical byte-to-byte. Otherwise build under windows will give different binary files, even when build is platform independent (for example, when packing text files from source to final build resources ).

It seems less dangerous to create wrapper for patch tool or update patch tool ( http://files.kde.org/krita/build/depend ... -7-bin.zip ) itself to take any line endings when such option is given.


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]