Bitcoin Forum

Bitcoin => Electrum => Topic started by: BitProton on July 14, 2017, 09:30:30 AM



Title: Self compiled build won't run on Windows?
Post by: BitProton on July 14, 2017, 09:30:30 AM
I am currently trying to compile a build for Windows using Ubuntu 16.04 LTS and Wine 2.0.1, following the guide in the git repo.

The build compiles just fine, no errors thrown but once I try to launch any of the .exe files nothing will happen. No error, no nothing. No line of code was changed and when trying to install the same source on Ubuntu with "python setup.py install" and try to launch it, it works just fine. Any Idead what could cause this?

Used the current lastest commit in Github, used the 2.8.3 commit in Github and used the source files directly provided on electurm.org.



Title: Re: Self compiled build won't run on Windows?
Post by: HCP on July 14, 2017, 03:12:21 PM
Are you able to run the pre-compiled binary available for download on electrum.org using the Ubuntu 16.04 LTS and Wine 2.0.1 combination? Just wanting to rule out possible issues with attempting to run the Windows version under Wine.


Title: Re: Self compiled build won't run on Windows?
Post by: BitProton on July 14, 2017, 04:07:14 PM
Yes, the binary from electrum.org works just fine. I just checked and for some reason my build is also about 200-300 kb bigger.

It seems there is something wrong with either my setup or my workflow. Considering there is no debug tool in Electrum on Windows it's really hard to find the problem.

Would someone who managed to create a running build write down their exact workflow from download of the source to binary? I'd pay a few bucks for such an explanation!


Title: Re: Self compiled build won't run on Windows?
Post by: jonald_fyookball on July 14, 2017, 09:15:11 PM
having the same exact problem, also willing to pay a bounty for a fix.

mine is 29,494 KB  version 2.8.2

the binary from electrum is 29,796 - so mine is actually smaller.

Not sure what i'm doing wrong or what to look for in all of the commands leading up to the final build.
Some of the commands produced warning of different kinds but the exe was built


Title: Re: Self compiled build won't run on Windows?
Post by: BitProton on July 15, 2017, 01:04:45 PM
Nice to know that I am not alone :D Yet I'd love to see some answer or atleast get an idea what causes that problem.


Title: Re: Self compiled build won't run on Windows?
Post by: BitProton on July 15, 2017, 06:53:12 PM
Opened an issue on Github:
https://github.com/spesmilo/electrum/issues/2610

There seems to be an already closed issue with the same problem. It actually seems like the created was able to fix the problem but closed the issue without providing the fix.
https://github.com/spesmilo/electrum/issues/2532


Title: Re: Self compiled build won't run on Windows?
Post by: BitProton on July 20, 2017, 01:13:41 PM
Offer 250$ in Bitcoin for anyone who can solve this problem for me.


Title: Re: Self compiled build won't run on Windows?
Post by: jonald_fyookball on July 20, 2017, 06:32:05 PM
i sent you a PM


Title: Re: Self compiled build won't run on Windows?
Post by: RealBitcoin on July 20, 2017, 06:32:12 PM
I am currently trying to compile a build for Windows using Ubuntu 16.04 LTS and Wine 2.0.1, following the guide in the git repo.

The build compiles just fine, no errors thrown but once I try to launch any of the .exe files nothing will happen. No error, no nothing. No line of code was changed and when trying to install the same source on Ubuntu with "python setup.py install" and try to launch it, it works just fine. Any Idead what could cause this?

Used the current lastest commit in Github, used the 2.8.3 commit in Github and used the source files directly provided on electurm.org.



I never have any luck compiling anything on Linux, there is alway some library that is missing, or some memory leak that makes the software crash....


Title: Re: Self compiled build won't run on Windows?
Post by: flatfly on July 23, 2017, 09:02:09 AM
Offer 250$ in Bitcoin for anyone who can solve this problem for me.


I don't have a Ubuntu / Wine setup at hand. Would you be happy with a pure Windows procedure?


Title: Re: Self compiled build won't run on Windows?
Post by: flatfly on July 23, 2017, 10:35:04 AM
OK I've made a quick patch to the building process:
 https://github.com/flatfly/electrum/blob/c08657259dc8e5848e33b66e1f829fbd502a1445contrib/build-wine/build-electrum-git.sh

Just replace your copy of build-electrum-git.sh with this one, and try again to see where the error is (hopefully).


Title: Re: Self compiled build won't run on Windows?
Post by: kandy.ye on September 30, 2017, 04:06:09 AM
I have met the same problem as you, and I have solved it.

https://bitcointalk.org/index.php?topic=2214695.new#new