mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
No window on raspberry appearing #148
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @80er on GitHub (Apr 18, 2018).
Originally assigned to: @robertmuehsig on GitHub.
Hi,
followed the example and works on my Win10 machine. Either by command line or when double clicking ElectronNET.Host.exe.
When i deploy it to my Raspi and try to run the ElectronNET.Host simply nothing happens. only around 20 processes are started and no window appears. No exception or error is written on console.
Electron quickstart sample works. Also made sure that in ElectronNet project electron in v 1.7.11 is installed (1.8.x doesn't work at all on Raspi).
Any hints where i could further check?
@80er commented on GitHub (Apr 18, 2018):
OK. found it. After some digging it appeared that the asp process did not start. Reason is wrong binary format.
C:\Users\Chef\Source\Repos\RaspiMediaController\RaspiMediaControllerFrontend>dotnet electronize build /target linux /electron-arch armv7l
Build Electron Application...
Build ASP.NET Core App for linux-x64...
Of course linux-x64 is wrong. But how can i force it use the correct one? Using the same target as for dotnet publish (so linux-arm) suddenly builds a 64bit windows executable... Any hints what is the correct command line parameter?
@GregorBiswanger commented on GitHub (Apr 18, 2018):
Hi @80er
do you use Windows 10 IoT? Or?
@80er commented on GitHub (Apr 18, 2018):
Hi,
nope. Do not ask why but i want to get this running on a Raspi with latest stretch. ;)
So it is running a 32bit linux.
Already wrote small services using ASP.NET Core and then used
dotnet publish -r linux-armto generate the binaries. That works perfect.
I also have a workaround now. After
dotnet electronize build ....I call again
dotnet publish -r linux-armand copy the generated binaries into the packages directory created before under resources/app/bin. Then i deploy the binaries to the Raspi and call ElectronNET.Host and it works. But of course would be nicer to have something like
dotnet electronize build /target linux-arm ...and that's it.
@GregorBiswanger commented on GitHub (Apr 18, 2018):
@robertmuehsig do you can implement this for Version 0.0.10?
@robertmuehsig commented on GitHub (Apr 19, 2018):
@GregorBiswanger PR merged - there are a couple of other PRs open, maybe take a look and I will try to build something this weekend.
@niklr commented on GitHub (Feb 26, 2019):
Is the suggested command now supported "dotnet electronize build /target linux-arm" ? Running this still creates the folder "bin\desktop\electron.net.host-linux-x64".
After copying the content of "bin\desktop\electron.net.host-linux-x64" to my Raspberry Pi 3 and setting the execute permission with "chmod -R u+x ." the following error is returned after executing with "./electron.net.host":
"-bash: ./electron.net.host: cannot execute binary file: Exec format error"
Am I trying to execute the wrong file? Any hints are appreciated!
@niklr commented on GitHub (Feb 26, 2019):
When building with the following command the application seems to start but no window is displayed:
Maybe it is related to this issue? https://github.com/electron/electron/issues/16205
According to package.json the electron version 3.0.0 is used, so this should not be the issue.
@scout208 commented on GitHub (Oct 31, 2019):
I'm having this same issue on my Raspberry Pi