vs2015 errors with (git) source code
-
@sierdzio said in vs2015 errors with (git) source code:
Regarding your error, pass the flag -no-warnings-as-errors (check in configure help if I remember the syntax correctly) to silence this warning/error.
-warnings-are-errors . Treat warnings as errors [no; yes if -developer-build]
There sees to be no "-no-warnings-as-errors" configure option.
The 'warning as errors' comes from the "-developer-build" configure option.
A little bit strange to compile the source code not as "-developer-build". I will try it with "-developer-build" configure option removed.
-
Yes you can skip the
-developer-build
. But I'm pretty sure the-no-warnings-as-errors
exists as well, even though it may be unlisted. Configure help states in the beginning that most flags can be negated with-no
. -
@jan-marco-alkema said in vs2015 errors with (git) source code:
The 'warning as errors' comes from the "-developer-build" configure option.
Because
-developer-build
is for when you're building Qt to contribute to its codebase. Use-debug
or-release
and specify-prefix
directory somake install
succeeds. -
1:git://code.qt.io/qt/qt5.git
2:qt5vars1.bat
cd "C:\dev\persinfonet\qt5"
CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
REM CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
SET _ROOT="C:\dev\persinfonet\qt5"
SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
REM SET QMAKESPEC=win32-msvc2015
SET _ROOT=3:qt5vars2d.bat
perl init-repository -f
configure -debug-and-release -opensource -platform win32-msvc2015 -nomake examples -nomake tests -prefix "C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit"
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake" installFirst I download the qt code with git (1:git://code.qt.io/qt/qt5.git), after that, I run qt5vars1.bat and qt5vars2d.bat
Later I run command:
nmakeI get the error:
-
@jan-marco-alkema said in vs2015 errors with (git) source code:
3:qt5vars2d.bat
perl init-repository -fDid you check out a specific version of Qt? See your earlier screenshot:
Call these commands to clean out your old files and check out a proper version:
> git clean -dfx > git submodule foreach "git clean -dfx" > git checkout v5.10.1 > git submodule update
After that, delete
C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit
and try building again. -
After that, delete C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit and try building again.
Did you check out a specific version of Qt? See your earlier screenshot:
No, I did a standard toirtoise git download:1:git://code.qt.io/qt/qt5.git
2:qt5vars1.bat
cd "C:\dev\persinfonet\qt5"
CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
REM CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
SET _ROOT="C:\dev\persinfonet\qt5"
SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
REM SET QMAKESPEC=win32-msvc2015
SET _ROOT=3:qt5git3.bat
cd "C:\dev\persinfonet\qt5"
git clean -dfx
git submodule foreach "git clean -dfx"
git checkout v5.10.1
git submodule update4:qt5vars2d.bat
cd "C:\dev\persinfonet\qt5"
perl init-repository -f
configure -debug-and-release -opensource -platform win32-msvc2015 -nomake examples -nomake tests -prefix "C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit"
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake" installFirst I download the qt code with git (1:git://code.qt.io/qt/qt5.git), after that, I run qt5vars1.bat, qt5git3.bat and qt5vars2d.bat
Later I run command:
nmakeI keep getting the error:
-
Hi,
From the looks of it, you didn't checkout all modules at 5.10.1, did you ?
-
OK, I just realized that qdeclarativetextinput.cpp is from qtquick1.git which is deprecated.
QWidgetLineControl::setCursorBlinkPeriod()
has indeed been removed, which breaks the build: http://code.qt.io/cgit/qt/qtbase.git/commit/?id=1b5bc9723c0b23ca5197097c3087df6bbe024a2aDoes anyone know the proper way to omit qtquick1.git from the repo initialization?
@jan-marco-alkema Follow the steps from my previous post again (but you don't need to run TortoiseGit or call init-repository anymore). This time, also delete C:\dev\persinfonet\qt5\qtquick1\ before you run
configure
. Now, Visual Studio won't try to build broken code. -
3:qt5git3.bat
cd "C:\dev\persinfonet\qt5"
git clean -dfx
git submodule foreach "git clean -dfx"
git checkout v5.10.1
git submodule update4:qt5vars2d.bat
cd "C:\dev\persinfonet\qt5"
rd /s /q "C:\dev\persinfonet\qt5\qtquick1"
configure -debug-and-release -opensource -platform win32-msvc2015 -nomake examples -nomake tests -prefix "C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit"
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake" installNmake
QT-seems to compile in proper manner:
There is no directory: C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit
92 qt applications (executables):
-
What if you use
jom.exe
install ? -
I put in my system path:
C:\dev\persinfonet\qt5\qtbase\bin
C:\dev\persinfonet\jom\binI see Jomd.exe application:
Jomd doesnot work because jomd uses qt dll's, which have to be build by compiling QT.
"Workaround": I should compile with nmake. After nmake compiling, i must copy QT exe and dll files to another place ("C:\dev\persinfonet\Qt_all\Kits\Qt57MSVC2015_32bit" ?)
-
Jom is already provided with Qt, somewhere under the Qt Creator folder.
-
@SGaist said in vs2015 errors with (git) source code:
Jom is already provided with Qt, somewhere under the Qt Creator folder.
I like to compile QT from source. N.B. If I use windows QT installer i will get jom.exe
I did execute the commands:
jomd
jomd installNow i get the Qt57MSV2015_32bit directory. Maybe i forgot "nmake install" in the nmake solution.