ethereum / webthree-umbrella

Former home of cpp-ethereum (Oct 2015 to Aug 2016)
http://cpp-ethereum.org
GNU General Public License v3.0
493 stars 372 forks source link

Windows 10 Compiles and Installs Fine but Nothing Runs #121

Closed CrackerHax closed 8 years ago

CrackerHax commented 8 years ago

* Resolved: Add cpp-ethereum directory to Avast exclusions. Apparently Avast will only play well with pre-compiled binaries. *

Following the Windows instructions.. MSVC 2013 with Windows 7 SDK, 64-Bit

Everything compiles fine, installs fine but when I try to run ANY of the executables all I get is an "hourglass" (no console or anything). The process won't even show up in the task manager, but if I try to delete the file, windows says it is in use and cannot be deleted.

bobsummerwill commented 8 years ago

These are the instructions: https://github.com/ethereum/webthree-umbrella/wiki/Building-on-Windows And this is occurring on a Windows 10 box. I am just attempting to replicate this issue on a Surface Pro 3. Thanks for the report, @CrackerHax. Stay tuned!

bobsummerwill commented 8 years ago

@CrackerHax reports that the prebuilt binaries (https://github.com/ethereum/webthree-umbrella/releases/tag/1.0.1) work on the same machine, though they are obviously pretty outdated and less-than-useful now, dating, as they do, back to 18th November 2015.

bobsummerwill commented 8 years ago

Did you use Windows 7 or Windows 8 SDK?

I'm inclined to use Windows 8 SDK, and will try that first.

CrackerHax commented 8 years ago

I used 7.1

bobsummerwill commented 8 years ago

downloading, downloading, downloading!

bobsummerwill commented 8 years ago

Did you have to do anything specific with the CMake invocation to make it find the Windows SDK? Or to point it at the "right one"?

I'm getting ...

CMake Error:
    Could not find an appropriate version of the Windows 10 SDK installed on this machine

Did you need to do any funky environment variables? Like in this ... https://cmake.org/pipermail/cmake-developers/2015-September/026513.html?

CrackerHax commented 8 years ago

cmake -G "Visual Studio 12 2013 Win64" ..

No I didn't mess with environment variables at all.

bobsummerwill commented 8 years ago

OK - I'm there. So the generation is failing for me because it cannot find any of the external dependencies. They DO appear to have be installed into a /webthree-umbrella/webthree-helper/install/windows/x64 directory, but the CMake isn't looking there. Is that where yours were installed to? Boost, jsoncpp, etc? Did you need to do anything explicit to point to them, or pass any specific path to get them installed in the right place?

bobsummerwill commented 8 years ago

Oh ... looks like current directory was important when running that script, so they might be one level too high up for me. Are yours in /webthree-umbrella/webthree-helper/extdep/install/windows/x64?

CrackerHax commented 8 years ago

Yes, I just ran \webthree-helpers\extdep\getstuff.bat and it put them in /webthree-umbrella/webthree-helper/extdep/install/windows/x64. Really everything went smooth for me according to the directions but resulting binaries will not execute properly.

bobsummerwill commented 8 years ago

Yes - the SLN generation has worked when I moved them down a level to correct for my mistake. Open in the IDE now and will start building.

bobsummerwill commented 8 years ago

Are you launching the resulting binaries on the command-line, or from within the IDE? Which is the one you need/want the most, and which I should try first? Are both the GUI and non-GUI apps broken for you?

CrackerHax commented 8 years ago

I tried starting from double clicking icons as well as from console and neither works. I have been testing with command line though since I can actually stop execution if it's a console. If I use an icon I end up with a wild process I cannot stop because it never shows up in task manager.

Yes all the apps are broken for me, even nonGUI.

I need solc and mix most.

I was even able to package the installer but the installer itself will not run either.

CrackerHax commented 8 years ago

Oh mannnn. I found the problem....

For some reason Avast is preventing anything from running. I added Program Files/cpp-ethereum/* to exclusions and everything runs fine. Maybe this should be mentioned in the windows building doc.

CrackerHax commented 8 years ago

It's really strange I didn't have this problem with pre-compiled binaries. If I had, it would have been the first thing I checked.

Anyway the new version of Mix is a vast improvement over the November 2014 version. I'm surprised the binaries have not been updated.

bobsummerwill commented 8 years ago

Ooh - delightful :-) Aside - something I spotted in my build log "Qt: Untested Windows version 10.0 detected". But it is working for you now? Please feel free to edit the Wiki page to note what you're seeing. It is open-to-edit for everyone.

At some stage, I imagine that I will do a full sweep on the Windows instructions, like I have the OS X instructions, and basically rebuild them from scratch. In the meantime, please feel free to add whatever notes you think would help others in your situation.

Glad it is working for you now!

CrackerHax commented 8 years ago

I got that message too, but works anyway.