Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Install on Windows? #473

Open
Siecje opened this issue Aug 15, 2016 · 5 comments
Open

How to Install on Windows? #473

Siecje opened this issue Aug 15, 2016 · 5 comments

Comments

@Siecje
Copy link

Siecje commented Aug 15, 2016

On Windows 10 I have installed Qt 5.7 and make from http://gnuwin32.sourceforge.net/packages/make.htm (from 2006)

Installation fails on the make command.

C:\Users\cody\Desktop\qmli\qml-material\build>make
cd src\ && ( if not exist Makefile C:\Qt\5.7\mingw53_32\bin\qmake.exe C:\Users\cody\Desktop\qmli\qml-material\src\src.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory `C:/Users/cody/Desktop/qmli/qml-material/build/src'
make -f Makefile.Release
make[2]: Entering directory `C:/Users/cody/Desktop/qmli/qml-material/build/src'
g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=gnu++11 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I..\..\src -I. -IC:\Qt\5.7\mingw53_32\include -IC:\Qt\5.7\mingw53_32\include\QtQuick -IC:\Qt\5.7\mingw53_32\include\QtGui -IC:\Qt\5.7\mingw53_32\include\QtANGLE -IC:\Qt\5.7\mingw53_32\include\QtQml -IC:\Qt\5.7\mingw53_32\include\QtNetwork -IC:\Qt\5.7\mingw53_32\include\QtCore -Irelease -IC:\Qt\5.7\mingw53_32\mkspecs\win32-g++  -o release\plugin.o ..\..\src\plugin.cpp
process_begin: CreateProcess(NULL, g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=gnu++11 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I..\..\src -I. -IC:\Qt\5.7\mingw53_32\include -IC:\Qt\5.7\mingw53_32\include\QtQuick -IC:\Qt\5.7\mingw53_32\include\QtGui -IC:\Qt\5.7\mingw53_32\include\QtANGLE -IC:\Qt\5.7\mingw53_32\include\QtQml -IC:\Qt\5.7\mingw53_32\include\QtNetwork -IC:\Qt\5.7\mingw53_32\include\QtCore -Irelease -IC:\Qt\5.7\mingw53_32\mkspecs\win32-g++ -o release\plugin.o ..\..\src\plugin.cpp, ...) failed.
make (e=2): The system cannot find the file specified.
make[2]: *** [release/plugin.o] Error 2
make[2]: Leaving directory `C:/Users/cody/Desktop/qmli/qml-material/build/src'
make[1]: *** [release] Error 2
make[1]: Leaving directory `C:/Users/cody/Desktop/qmli/qml-material/build/src'
make: *** [sub-src-make_first] Error 2

C:\Users\cody\Desktop\qmli\qml-material\build>where make
C:\Program Files (x86)\GnuWin32\bin\make.exe
@luntik2012
Copy link

even if you are using nmake or jom, you'll compile it, but you cannot install it. it just doesn't work

@JohnDr
Copy link

JohnDr commented Nov 11, 2016

Download GnuWin32 SED and put SED.EXE on PATH
Comment out the line causing error in Makefile. The at the cmd line type:
mkdir D:\dev\buildsrc\qml-material-develop\build\src\out
sed "s/# plugin material/plugin material/" D:\dev\buildsrc\qml-material-develop\src\qmldir > D:\dev\buildsrc\qml-material-develop\build\src\out\qmldir
Note that the fix is to remove -p from mkdir cmd and change path sep from / to
Rerun nmake

@MichaelVoelkel
Copy link

The only issue is the qtqml file. All what the sed command does is moving the qmldir file from qml-material-develop\src to cml-material-develop\build\src\out and uncommenting plugin material by removing the #.
Now, I have moved the file myself, removed this sed line and ran "nmake install" again. That did the job for me.

@SuperChrisliu
Copy link

error line: mkdir -p D:/jetbrain/QT5.6.3/qml-material-develop/build/src/out; sed "s/# plugin material/plugin material/" D:/jetbrain/QT5.6.3/qml-material-develop/src/qmldir > D:/jetbrain/QT5.6.3/qml-material-develop/build/src/out/qmldir
do three things:
1.create "out" dir under "qml-material-develop/build/src/";
2. replace "# plugin material" to "plugin material" in qml-material-develop/build/src/Makefile.Release;
3.copy "qml-material-develop/src/qmldir" to "qml-material-develop/build/src/out/qmldir"

@luntik2012
Copy link

repo is dead, use this
https://github.com/lirios/fluid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants