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

Installing from 0.5 fails #22

Closed
joa-quim opened this issue Sep 30, 2016 · 9 comments
Closed

Installing from 0.5 fails #22

joa-quim opened this issue Sep 30, 2016 · 9 comments

Comments

@joa-quim
Copy link

Because its looking for a QML-julia-0.5-win64.zip that does not exist. Only a QML-julia-0.4-win64.zip

INFO: Building QML
INFO: Attempting to Create directory C:\j\.julia\v0.5\QML\deps\downloads
INFO: Directory C:\j\.julia\v0.5\QML\deps\downloads already created
INFO: Downloading file https://github.com/barche/QML.jl/releases/download/v0.1.0/QML-julia-0.5-win64.zip
Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: The connection was closed unexpectedly."
At line:1 char:1
+ (new-object net.webclient).DownloadFile("https://github.com/barche/QM ...
+ 
@barche
Copy link
Collaborator

barche commented Sep 30, 2016

Ah, yes, the binaries are just a test, they are outdated. I'm slowly working towards a release, but if you want to try now installing the latest free Visual Studio, Qt and CMake and then setting the BUILD_ON_WINDOWS environment variable to "1" as well as CMAKE_PREFIX_PATH to the correct Qt binary dir should result in a build in a relatively painless manner.

@joa-quim
Copy link
Author

Hmm, I have VS2015 Update 2, which I use to build other (cmake) projects but got this error that I'm not sure how to interpret.

INFO: Building QML
INFO: Attempting to Create directory C:\j\.julia\v0.5\QML\deps\builds\qmlwrap
INFO: Changing Directory to C:\j\.julia\v0.5\QML\deps\builds\qmlwrap
====================================================================[ ERROR: QML ]====================================================================

LoadError: could not spawn `cmake -G 'Visual Studio 14 2015 Win64' '-DCMAKE_INSTALL_PREFIX=C:\j\.julia\v0.5\QML\deps\usr' -DCMAKE_BUILD_TYPE=Release '-DCxxWrap_DIR=C:\j\.julia\v0.5\CxxWrap\deps\usr\lib\cmake' -DLIBDIR_SUFFIX= 'C:\j\.julia\v0.5\QML\deps\src\qmlwrap'`: no such file or directory (ENOENT)

@barche
Copy link
Collaborator

barche commented Sep 30, 2016

I think this is because cmake is not found in the path, you need to add the directory containing cmake.exe to the PATH environment variable (properties on Computer, then advanced settings)

@joa-quim
Copy link
Author

Thanks, that part was it (I don't have cmake in the path by default).
But it seams that a bit of your data is leaking into the cmake scripts

-- Configuring done
CMake Error in CMakeLists.txt:
  Imported target "CxxWrap::cxx_wrap" includes non-existent path

    "C:/Users/bartj/AppData/Local/Julia-0.5.0-win64/include/julia"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

@barche
Copy link
Collaborator

barche commented Sep 30, 2016

I think that is because it is using the CxxWrap binaries. You could just try Pkg.build("CxxWrap") after setting BUILD_ON_WINDOWS, or if that doesn't work first remove the usr and downloads dirs in .julia/0.5/CxxWrap/depsand then try to build CxxWrap again.

@joa-quim
Copy link
Author

Yep, that worked (had to remove the CxxWrap usr. Thanks
And BTW, the build process should remove the build dirs at the end for not leaving them as forgotten trash.

@joa-quim
Copy link
Author

Not exactly the same issue but this kills julia itself

julia> include("C:/j/.julia/v0.5/QML/example/glvisualize.jl")
SetProcessDpiAwareness(2) failed: COM error 0xffffffff80070005  (Unknown error 0x0ffffffff80070005), using 2

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x64fd3088 -- ptrhash_peek_bp_r at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src/support\ptrhash.c:26 [inlined]
ptrhash_get_r at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src/support\ptrhash.c:26 [inlined]
ptrhash_get at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src/support\ptrhash.c:26
while loading C:\j\.julia\v0.5\QML\example\glvisualize.jl, in expression starting on line 56
Press any key to continue . . .

@barche
Copy link
Collaborator

barche commented Sep 30, 2016

That's the most experimental example, only tested on my macOS machine. You need the latest GLVisualize release (not checked out) and add a set_root_screen function there, as described here: JuliaGL/GLVisualize.jl#94 (comment)

The error you get looks more fundamental, however, I'll have to test on Windows too. Also, I need to clean up the requirements (make them conditional somehow), so for anything to work right now all the packages listed here need to be installed, even though they are only used in the GLvisualize example:
https://github.com/barche/QML.jl/blob/master/src/glvisualize_callbacks.jl#L1-L10

The last version I tested on Windows is 1db61dc, reverting to that should also work.

@joa-quim
Copy link
Author

I have it all but the set_root_screen function.

@barche barche closed this as completed Dec 7, 2016
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

2 participants