Re: Unable to build MiKTeX

A <[email protected]>
Newsgroups gmane.comp.tex.miktex
Message-ID <CABoGZRcDT=RWu4Kzwzm4bd9z=9nUtbmNE9vLFdSy-YLKHXOrKA@mail.gmail.com>
In the interim I had even tried Qt 5.7.0 which is the latest release (using
"
http://download.qt.io/official_releases/qt/5.7/5.7.0/qt-opensource-windows-x86-msvc2015_64-5.7.0.exe"
-- that's the 64-bit one built with Visual C++ 2015), and that didn't even
work.  Evidently there's a need for a very specific version and build,
5.8.0-beta.  Not only that, but you have to know specifically to get the
one built with MSVC2015.  (I understand that an inference could be made on
that based on the fact that we're using MSVC2015 to build MiKTeX, but
still.)  IMHO, the build documentation needs to point people to the exact
download, aside from the fact that the readme that we were viewing is
out-of-date.

So Qt 5.8.0-beta got me past this hurdle, but now I'm getting a different
error when it builds the documentation.  Here's what happened:

- I got Qt 5.8.0-beta, 64-bit built by Visual C++ 2015:
  - Download page:
http://download.qt.io/development_releases/qt/5.8/5.8.0-beta/
  - Direct link:
http://download.qt.io/development_releases/qt/5.8/5.8.0-beta/qt-opensource-windows-x86-msvc2015_64-5.8.0-beta.exe
  - Selected components for installation: "msvc2015 64-bit", "Qt Script
(Deprecated)"

- I set the PATH as follows:
> set PATH=C:\Windows\system32
> "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64
> echo %PATH%
  - Output: C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files
(x86)\MSBuild\14.0\bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program
Files (x86)\Microsoft Visual Studio 14.0\VC\VCPackages;C:\Program Files
(x86)\Microsoft Visual Studio 14.0\Common7\IDE;C:\Program Files
(x86)\Microsoft Visual Studio 14.0\Common7\Tools;C:\Program Files
(x86)\HTML Help Workshop;C:\Program Files (x86)\Microsoft Visual Studio
14.0\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft
Visual Studio 14.0\Team Tools\Performance Tools;C:\Program Files
(x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows
Kits\10\bin\x86;C:\Program Files (x86)\Microsoft
SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\;C:\Windows\system32
> set PATH=%PATH%;C:\Program Files\CMake\bin;C:\Program
Files\java\jdk1.8.0_25\bin;C:\Python27;C:\cygwin\bin;C:\Program Files
(x86)\Pandoc;C:\Qt\Qt5.8.0\5.8\msvc2015_64\bin;C:\miktex\ImageMagick-7.0.3-9-portable-Q16-x64;C:\miktex\fop-2.1;C:\miktex\libxslt-1.1.28-win32-x86_64\bin
> echo %PATH%
  - Output: C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files
(x86)\MSBuild\14.0\bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program
Files (x86)\Microsoft Visual Studio 14.0\VC\VCPackages;C:\Program Files
(x86)\Microsoft Visual Studio 14.0\Common7\IDE;C:\Program Files
(x86)\Microsoft Visual Studio 14.0\Common7\Tools;C:\Program Files
(x86)\HTML Help Workshop;C:\Program Files (x86)\Microsoft Visual Studio
14.0\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft
Visual Studio 14.0\Team Tools\Performance Tools;C:\Program Files
(x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows
Kits\10\bin\x86;C:\Program Files (x86)\Microsoft
SDKs\Windows\v10.0A\bin\NETFX 4.6.1
Tools\x64\;C:\Windows\system32;C:\Program Files\CMake\bin;C:\Program
Files\java\jdk1.8.0_25\bin;C:\Python27;C:\cygwin\bin;C:\Program Files
(x86)\Pandoc;C:\Qt\Qt5.8.0\5.8\msvc2015_64\bin;C:\miktex\ImageMagick-7.0.3-9-portable-Q16-x64;C:\miktex\fop-2.1;C:\miktex\libxslt-1.1.28-win32-x86_64\bin
- I set the CMAKE_PREFIX_PATH as follows:
  > set
CMAKE_PREFIX_PATH=C:\Qt\Qt5.8.0\5.8\msvc2015_64\lib\cmake\Qt5;C:\miktex\icu4c-58_1-Win64-MSVC2015\icu\include;C:\miktex\icu4c-58_1-Win64-MSVC2015\icu\lib64

- I deleted the existing "C:\miktex\build\CMakeCache.txt" file.  I left
everything that was already built this time.
- With my working directory as "C:\miktex\build", I ran CMake again:
> cmake -G "NMake Makefiles" C:\miktex\miktex-2.9-master
  - Completed successfully
- Note: Deleting "CMakeCache.txt" and running CMake again causes a new
"CMakeCache.txt" to be generated with the updated dependency paths that I
changed in PATH and CMAKE_PREFIX_PATH, in this case the Qt paths.
- I ran nmake again:
> nmake
---- Beginning of tail of nmake output: ----
[ 65%] Generating html/faq/index.html
Exit code 0xc0000135

NMAKE : fatal error U1077: 'echo' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.

---- End of tail of nmake output. ----

This error is repeatable each time I retry nmake.

Cygwin does have C:\cygwin\bin\echo.exe, but when I try "echo" on the
command-line, it is using Windows's version of "echo".  I'm not sure if
that makes any difference.

Am I doing anything else incorrectly?  Could this be an issue with one of
the versions of the other dependencies that the readme says are needed to
build the documentation -- FOP, libxslt, and Pandoc?  As a reminder, here
are the versions that I'm using (see my previous message at
https://sourceforge.net/p/miktex/mailman/message/35538765/ for the download
links and details):
  - FOP: 2.1
  - Libxslt: 1.1.28
  - Pandoc: 1.19

The versions for all three of these were whatever was the latest available
when I went to download them, because the build documentation does not
specify the versions.

Thanks.




On Sun, Dec 11, 2016 at 1:38 AM, David Allsopp <[email protected]>
wrote:

> Those are linker errors with Qt, which isn't too surprising as you're
> using a VS2013 build of Qt 5.5. However, you're doing that because the
> instructions in README.win are clearly out of date (you could make a pull
> request for that) - https://miktex.org/howto/build-win would suggest that
> Christian is using the 5.8.0 beta. See if that gets you past the linker
> error.
>
> > -----Original Message-----
> > From: A [mailto:[email protected]]
> > Sent: 11 December 2016 01:13
> > To: [email protected]
> > Subject: Re: [MiKTeX] Unable to build MiKTeX
> >
> > After researching online some more, I found out that the "vcvarsall.bat"
> > script actually takes an argument for the machine type, which needs to be
> > specified as 64-bit when doing a 64-bit build.  I deleted everything in
> > "C:\miktex\build" again and did the following, with the working directory
> > as "C:\miktex\build".  Now I am getting a different error.
> >
> > > set PATH=C:\Windows\system32
> > > "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
> > > x64 echo %PATH%
> >   - Output: C:\Program Files (x86)\Microsoft Visual Studio
> > 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files
> > (x86)\MSBuild\14.0\bin\amd64;C:\Program Files (x86)\Microsoft Visual
> > Studio
> > 14.0\VC\BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.
> 0.30319;C:\Progr
> > am
> > Files (x86)\Microsoft Visual Studio 14.0\VC\VCPackages;C:\Program Files
> > (x86)\Microsoft Visual Studio 14.0\Common7\IDE;C:\Program Files
> > (x86)\Microsoft Visual Studio 14.0\Common7\Tools;C:\Program Files
> > (x86)\HTML Help Workshop;C:\Program Files (x86)\Microsoft Visual Studio
> > 14.0\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft
> > Visual Studio 14.0\Team Tools\Performance Tools;C:\Program Files
> > (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows
> > Kits\10\bin\x86;C:\Program Files (x86)\Microsoft
> > SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\;C:\Windows\system32
> > > set PATH=%PATH%;C:\Program Files\CMake\bin;C:\Program
> > Files\java\jdk1.8.0_25\bin;C:\Python27;C:\cygwin\bin;C:\Program Files
> > (x86)\Pandoc;C:\Qt\Qt5.5.1\5.5\msvc2013_64\bin;C:\miktex\ImageMagick-
> > 7.0.3-9-portable-Q16-x64;C:\miktex\fop-2.1;C:\miktex\
> libxslt-1.1.28-win32-
> > x86_64\bin
> > > echo %PATH%
> >   - Output: C:\Program Files (x86)\Microsoft Visual Studio
> > 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files
> > (x86)\MSBuild\14.0\bin\amd64;C:\Program Files (x86)\Microsoft Visual
> > Studio
> > 14.0\VC\BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.
> 0.30319;C:\Progr
> > am
> > Files (x86)\Microsoft Visual Studio 14.0\VC\VCPackages;C:\Program Files
> > (x86)\Microsoft Visual Studio 14.0\Common7\IDE;C:\Program Files
> > (x86)\Microsoft Visual Studio 14.0\Common7\Tools;C:\Program Files
> > (x86)\HTML Help Workshop;C:\Program Files (x86)\Microsoft Visual Studio
> > 14.0\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft
> > Visual Studio 14.0\Team Tools\Performance Tools;C:\Program Files
> > (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows
> > Kits\10\bin\x86;C:\Program Files (x86)\Microsoft
> > SDKs\Windows\v10.0A\bin\NETFX 4.6.1
> > Tools\x64\;C:\Windows\system32;C:\Program Files\CMake\bin;C:\Program
> > Files\java\jdk1.8.0_25\bin;C:\Python27;C:\cygwin\bin;C:\Program Files
> > (x86)\Pandoc;C:\Qt\Qt5.5.1\5.5\msvc2013_64\bin;C:\miktex\ImageMagick-
> > 7.0.3-9-portable-Q16-x64;C:\miktex\fop-2.1;C:\miktex\
> libxslt-1.1.28-win32-
> > x86_64\bin
> > - I set the CMAKE_PREFIX_PATH as before:
> >   > set
> > CMAKE_PREFIX_PATH=C:\Qt\Qt5.5.1\5.5\msvc2013_64\lib\cmake\
> Qt5;C:\miktex\ic
> > u4c-58_1-Win64-MSVC2015\icu\include;C:\miktex\icu4c-58_1-Win64-
> > MSVC2015\icu\lib64
> > - I ran CMake again:
> > > cmake -G "NMake Makefiles" C:\miktex\miktex-2.9-master
> >   - Completed successfully
> > - I ran nmake again:
> > > nmake
> > ---- Beginning of tail of nmake output: ---- [ 30%] Building CXX object
> > Libraries/MiKTeX/UI/Qt/CMakeFiles/MiKTeX209-ui-
> > Qt.dir/moc_ui_UpdateDialog.cpp.obj
> > moc_ui_UpdateDialog.cpp
> > [ 30%] Building CXX object
> > Libraries/MiKTeX/UI/Qt/CMakeFiles/MiKTeX209-ui-Qt.
> dir/qrc_mikuiqt.cpp.obj
> > qrc_mikuiqt.cpp
> > [ 30%] Linking CXX shared library ..\..\..\..\binlib\MiKTeX209-ui-Qt.dll
> >    Creating library ..\..\..\..\binlib\MiKTeX209-ui-Qt.lib and object
> > ..\..\..\..\binlib\MiKTeX209-ui-Qt.exp
> > ConnectionSettingsDialog.cpp.obj : error LNK2019: unresolved external
> > symbol "__declspec(dllimport) public: class QByteArray __cdecl
> > QString::toUtf8(v oid)&& " (__imp_?toUtf8@QString@@QEHAA?AVQByteArray@
> @XZ)
> > referenced in function "protected: virtual void __cdecl
> > ConnectionSettingsDialog::accept(void
> > )" (?accept@ConnectionSettingsDialog@@MEAAXXZ)
> > mikuiqt.cpp.obj : error LNK2001: unresolved external symbol
> > "__declspec(dllimport) public: class QByteArray __cdecl
> > QString::toUtf8(void)&& " (__imp_?
> > toUtf8@QString@@QEHAA?AVQByteArray@@XZ)
> > RepositoryTableModel.cpp.obj : error LNK2019: unresolved external symbol
> > "__declspec(dllimport) public: class QString __cdecl
> > QString::toUpper(void)&&  " (__imp_?toUpper@QString@@QEHAA?AV1@XZ)
> > referenced in function "public:
> > virtual class QVariant __cdecl RepositoryTableModel::data(class
> > QModelIndex const &,int)const "
> > (?data@RepositoryTableModel@@UEBA?AVQVariant@
> > @AEBVQModelIndex@@H@Z)
> > SiteWizLocal.cpp.obj : error LNK2019: unresolved external symbol
> > "__declspec(dllimport) public: class QByteArray __cdecl
> > QString::toLocal8Bit(void)&& "
> > (__imp_?toLocal8Bit@QString@@QEHAA?AVQByteArray@@XZ) referenced in
> > function "public: virtual bool __cdecl SiteWizLocal::validatePage(void)"
> > (?valida
> > tePage@SiteWizLocal@@UEAA_NXZ)
> > ..\..\..\..\binlib\MiKTeX209-ui-Qt.dll : fatal error LNK1120: 3
> unresolved
> > externals LINK Pass 1 failed. with 1120 NMAKE : fatal error U1077:
> > '"C:\Program Files\CMake\bin\cmake.exe"' :
> > return code '0xffffffff'
> > Stop.
> > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> > Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
> > Stop.
> > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> > Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
> > Stop.
> >
> > ---- End of tail of nmake output. ----
> >
> > Am I doing anything else incorrectly?
> > ------------------------------------------------------------
> --------------
> > ----
> > Developer Access Program for Intel Xeon Phi Processors Access to Intel
> > Xeon Phi processor-based developer platforms.
> > With one year of Intel Parallel Studio XE.
> > Training and support from Colfax.
> > Order your platform today.http://sdm.link/xeonphi
> > _______________________________________________
> > Q: How can I leave the mailing list?
> > A: See http://docs.miktex.org/faq/support.html#leavingml
>
> ------------------------------------------------------------
> ------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/xeonphi
> _______________________________________________
> Q: How can I leave the mailing list?
> A: See http://docs.miktex.org/faq/support.html#leavingml
>
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.