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

Windows build #36

Closed
jheinen opened this issue Mar 30, 2017 · 6 comments
Closed

Windows build #36

jheinen opened this issue Mar 30, 2017 · 6 comments

Comments

@jheinen
Copy link

jheinen commented Mar 30, 2017

I tried to build QML with an existing Qt5 installation. This works fine on macOS X and Ubuntu, but it fails on Windows 10. The QT_ROOT setting seems to be ignored during the build step. In our case, I wanted to use an existing Qt5 distribution located in S:\Qt\5.7.0. What is the trick?

@barche
Copy link
Collaborator

barche commented Mar 30, 2017

You also need to set ENV["BUILD_ON_WINDOWS"] = 1, which affects both CxxWrap and QML, because they both must be built with the same compiler. It may also be necessary to remove the usr dir in the deps directories of QML and CxxWrap.

@jheinen
Copy link
Author

jheinen commented Mar 31, 2017

Unfortunately, that doesn't help. The cmake files didn't find the locally installed VC compiler, although CL was in the search path.

@barche
Copy link
Collaborator

barche commented Mar 31, 2017

Just to be sure: you do have the cmake executable in your path, right? What version of visual studio are you using? I use version 2015 and didn't have to do anything to get CMake to find it on either my own machine or appveyor.

@jheinen
Copy link
Author

jheinen commented Mar 31, 2017

Yes, cmake was in the path, but I only have version 2010 installed.

@barche
Copy link
Collaborator

barche commented Mar 31, 2017

Aha, the C++ code in CxxWrap doesn't compile on visual studio before version 2015 (service pack 2 I think, community edition is fine), because of the C++11 requirements. The reason it's not found is because I set the generator to Visual Studio 14 2015 in build.jl.

@ufechner7
Copy link
Member

Perhaps this can be closed now that 0.8 is released?

@barche barche closed this as completed Sep 28, 2023
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

3 participants