| Newsgroups |
gmane.comp.tex.miktex |
| Message-ID |
<CABoGZRf_g34xR7fx0_xEQmmNvenfrZtQCTe115NkxO_R_UWUYQ@mail.gmail.com> |
Oh, I had completely missed the fact that the readme was saying to make a
separate build directory from the source directory. This seems to make a
difference. I deleted the original "C:\miktex\miktex-2.9-master" directory
and re-pulled the repository to the same directory name using the two "git"
commands from before, and then I did this:
> mkdir C:\miktex\build
> cd C:\miktex\build
> cmake -G "NMake Makefiles" C:\miktex\miktex-2.9-master
- Completed successfully
> nmake
- The command failed at first with this error:
---- Beginning of tail of nmake output: ----
[ 25%] Building RC object
Libraries/MiKTeX/UnxEmulation/shared/CMakeFiles/MiKTeX209-unxemu.dir/unxemu.rc.res
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation. All rights reserved.
[ 25%] Linking CXX shared library ..\..\..\..\binlib\MiKTeX209-unxemu.dll
Creating library ..\..\..\..\binlib\MiKTeX209-unxemu.lib and object
..\..\..\..\binlib\MiKTeX209-unxemu.exp
[ 25%] Built target MiKTeX209-unxemu
Scanning dependencies of target fcarch
[ 25%] Building C object
Libraries/3rd/fontconfig/CMakeFiles/fcarch.dir/source/src/fcarch.c.obj
fcarch.c
[ 25%] Linking C executable ..\..\..\binlib\fcarch.exe
LINK : fatal error LNK1168: cannot open ..\..\..\binlib\fcarch.exe for
writing
FINAL LINK failed. with 1168
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\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
---- End of tail of nmake output. ----
- I restarted nmake and then obtained another error after some time:
> 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
Qt5Widgets.lib(Qt5Widgets.dll) : fatal error LNK1112: module machine type
'x64' conflicts with target machine type 'X86'
LINK Pass 1 failed. with 1112
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\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
---- End of tail of nmake output. ----
- Every time that I retry the build after that point, I receive the same
error within a minute or two:
> nmake
---- Beginning of full nmake output: ----
Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation. All rights reserved.
[ 0%] Built target gen_test_char
[ 0%] Built target gen-apr-headers
[ 1%] Built target MiKTeX209-apr
[ 2%] Built target apr-static
[ 2%] Built target MiKTeX209-expat
[ 3%] Built target MiKTeX209-aprutil
[ 3%] Built target expat-static
[ 4%] Built target aprutil-static
[ 4%] Built target MiKTeX209-utf8wrap
[ 4%] Built target MiKTeX209-bzip2
[ 4%] Built target utf8wrap-static
[ 5%] Built target bzip2-static
[ 6%] Built target pixman-static
[ 6%] Built target MiKTeX209-zlib
[ 6%] Built target MiKTeX209-png
[ 8%] Built target MiKTeX209-cairo
[ 10%] Built target MiKTeX209-curl
[ 13%] Built target curl-static
[ 13%] Built target bintoc
[ 13%] Built target gen-core-sources
[ 13%] Built target gen-crypto-sources
[ 23%] Built target MiKTeX209-libressl-crypto
[ 23%] Built target MiKTeX209-uriparser
[ 24%] Built target MiKTeX209-lzma2
[ 24%] Built target MiKTeX209-md5
[ 24%] Built target MiKTeX209-util
[ 24%] Built target MiKTeX209-trace
[ 25%] Built target MiKTeX209-core
[ 25%] Built target MiKTeX209-unxemu
[ 25%] Built target fcarch
[ 28%] Built target MiKTeX209-log4cxx
[ 28%] Built target gen-core-com
[ 28%] Built target MiKTeX209-mspack
[ 28%] Built target MiKTeX209-extractor
[ 28%] Built target MiKTeX209-packagemanager
[ 28%] Linking CXX shared library ..\..\..\..\binlib\MiKTeX209-ui-Qt.dll
Qt5Widgets.lib(Qt5Widgets.dll) : fatal error LNK1112: module machine type
'x64' conflicts with target machine type 'X86'
LINK Pass 1 failed. with 1112
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\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
---- End of full nmake output. ----
As a reminder, here is my PATH:
> echo %PATH%
- Output: C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files
(x86)\Microsoft SDKs\F#\4.0\Framework\v4.0\;C:\Program Files
(x86)\MSBuild\14.0\bin;C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN;C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\Tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program
Files (x86)\Microsoft Visual Studio 14.0\VC\VCPackages;C:\Program Files
(x86)\HTML Help Workshop;C:\Program Files (x86)\Microsoft Visual Studio
14.0\Team Tools\Performance Tools;C:\Program Files (x86)\Windows
Kits\10\bin\x86;C:\Program Files (x86)\Microsoft
SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\;C:\Program
Files\Git\bin;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
Am I still doing anything incorrect?
Thanks.
On Sat, Dec 10, 2016 at 3:43 AM, David Allsopp <[email protected]>
wrote:
> Are you building in-tree (it looks like you are)? That's not recommended
> for this project - I believe the correct process is to create an empty
> directory (e.g. C:\miktex\build) and change there - you then issue cmake -G
> "NMake Makefiles" C:\miktex\miktex-2.9-master.
>
> The lack of a number in util-version.h is strange, as is the fact that you
> haven't yet found util.rc itself (.in is a file for pre-processing).
>
>
> David
>
> > -----Original Message-----
> > From: A [mailto:[email protected]]
> > Sent: 09 December 2016 05:54
> > To: [email protected]
> > Subject: Re: [MiKTeX] Unable to build MiKTeX
> >
> > By looking at the web archive of this mailing list, it appears that the
> > Mailman system does not like attachments at all, so here are the contents
> > of the three files inline (all in
> > "C:\miktex\miktex-2.9-2016-10-30\Libraries\MiKTeX\Util"):
> >
> > ---- Beginning of util.rc.in ----
> > /* util.rc: MiKTeX Util resource file -*- C++ -*-
> >
> > Copyright (C) 1996-2016 Christian Schenk
> >
> > This file is part of the MiKTeX Util Library.
> >
> > The MiKTeX Util Library is free software; you can redistribute it
> > and/or modify it under the terms of the GNU General Public License
> > as published by the Free Software Foundation; either version 2, or
> > (at your option) any later version.
> >
> > The MiKTeX Util Library is distributed in the hope that it will be
> > useful, but WITHOUT ANY WARRANTY; without even the implied warranty
> > of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> > GNU General Public License for more details.
> >
> > You should have received a copy of the GNU General Public License
> > along with the MiKTeX Util Library; if not, write to the Free
> > Software Foundation, 59 Temple Place - Suite 330, Boston, MA
> > 02111-1307, USA. */
> >
> > #include "util-version.h"
> >
> > #define VER_INTERNALNAME_STR "${util_dll_name}"
> > #define VER_ORIGINALFILENAME_STR "${util_dll_name}.dll"
> >
> > #define VER_FILEDESCRIPTION_STR "${MIKTEX_COMP_DESCRIPTION}"
> >
> > #define VER_FILETYPE VFT_DLL
> >
> > #include <miktex/win/version.rc>
> >
> > ---- End of util.rc.in ----
> >
> > ---- Beginning of util-version.h ----
> > /* util-version.h: MiKTeX DLL version number -*- C++ -*-
> >
> > Copyright (C) 1996-2016 Christian Schenk
> >
> > This file is part of the MiKTeX Util Library.
> >
> > The MiKTeX Util Library is free software; you can redistribute it
> > and/or modify it under the terms of the GNU General Public License
> > as published by the Free Software Foundation; either version 2, or
> > (at your option) any later version.
> >
> > The MiKTeX Util Library is distributed in the hope that it will be
> > useful, but WITHOUT ANY WARRANTY; without even the implied warranty
> > of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> > GNU General Public License for more details.
> >
> > You should have received a copy of the GNU General Public License
> > along with the MiKTeX Util Library; if not, write to the Free
> > Software Foundation, 59 Temple Place - Suite 330, Boston, MA
> > 02111-1307, USA. */
> >
> > #define MIKTEX_COMP_J2000_VERSION
> >
> > #include <miktex/Version>
> >
> > ---- End of util-version.h ----
> >
> > ---- Beginning of util-version.h.cmake ----
> > /* util-version.h: MiKTeX DLL version number -*- C++ -*-
> >
> > Copyright (C) 1996-2016 Christian Schenk
> >
> > This file is part of the MiKTeX Util Library.
> >
> > The MiKTeX Util Library is free software; you can redistribute it
> > and/or modify it under the terms of the GNU General Public License
> > as published by the Free Software Foundation; either version 2, or
> > (at your option) any later version.
> >
> > The MiKTeX Util Library is distributed in the hope that it will be
> > useful, but WITHOUT ANY WARRANTY; without even the implied warranty
> > of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> > GNU General Public License for more details.
> >
> > You should have received a copy of the GNU General Public License
> > along with the MiKTeX Util Library; if not, write to the Free
> > Software Foundation, 59 Temple Place - Suite 330, Boston, MA
> > 02111-1307, USA. */
> >
> > #define MIKTEX_COMP_J2000_VERSION ${MIKTEX_COMP_DESCRIPTION}
> >
> > #include <miktex/Version>
> >
> > ---- End of util-version.h.cmake ----
> > ------------------------------------------------------------
> --------------
> > ----
> > 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