Comments (17)
YES ,
I don't have Windows or MacOS machines currently.
I wanted to create Windows executable. I tried cross compiling using mingw and asked my friend to test it but it reported some error namely libstdc++ error and similar ones. So,i focussed first on releasing software first and look into this issue later.
I also wanted to release Binary for MacOS too ,so went to setup osxcross cross compiler but couldn't setup it properly too. I wanted to work on this after release.
So, Help is appreciated regarding this matter.
from exatorrent.
Progress 🎉
- cb53f30 : This builds exatorrent for Windows along with statically linking few DLLs necessary . I was able to run this without no issues on Fresh Installation of Windows. Thus , I can say that I have successfully cross compiled exatorrent for windows and it's working properly.
- cc3afc8 : I was able to setup osxcross properly and exatorrent works without no issues on MacOS ( both intel(amd64) and M1(arm64) ).
Thus , Expect exatorrent Releases for Windows and MacOS in v0.0.2
from exatorrent.
@varbhat could you suggest which dependencies are requires libstdc++
? maybe we can switch to pure-go implementations?
from exatorrent.
@Slach ,
Can you build exatorrent natively on windows and check once ?
pure-go is not option here, as one will be forced to use Postgresql and utp connections won't work.
from exatorrent.
@varbhat i tried on windows 10, but i have only cygwin gcc
git clone https://github.com/varbhat/exatorrent.git
cd exatorrent
go mod download -x
make app
got error
env CGO_ENABLED=1 go build -trimpath -buildmode=pie -ldflags '-extldflags "-static -s -w"' -o build/exatorrent exatorrent.go
# runtime/cgo
gcc_libinit_windows.c: In function 'x_cgo_sys_thread_create':
gcc_libinit_windows.c:58:12: error: implicit declaration of function '_beginthread' [-Werror=implicit-function-declaration]
58 | thandle = _beginthread(func, 0, arg);
| ^~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:21: app] Error 2
also, I tried build under WSL2, and also got the following error:
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 go build -trimpath -buildmode=pie -ldflags '-extldflags "-static -s -w"' -o
build/exatorrent exatorrent.go
# runtime/cgo
gcc: error: unrecognized command line option ‘-mthreads’; did you mean ‘-pthread’?
I think you try to use https://github.com/cvilsmeier/sqinn-go instead of crawshaw.io/sqlite
to avoid GCO dependencies
or use something like https://gitlab.com/cznic/ql
from exatorrent.
@Slach ,
Avoiding cgo is not option for us here.
See #17 (comment) once . He has been successfully running exatorrent in windows. He has cross compiled it. I too had cross compiled,but got few errors while running it. I hope it must have been some mistake from my side then.
I suggest you to try compiling with mingw's gcc instead of cygwin. Also, you must be able to compile it in WSL2 (you must set GOOS as linux in WSL2 , i think) as it's Linux anyway.
I will reach some solution by next release.
from exatorrent.
@Slach ,
use https://jmeubank.github.io/tdm-gcc/ to compile.
cygwin is not supported ( https://github.com/golang/go/wiki/InstallFromSource#install-c-tools )
also, when you are compiling in WSL2 , target must be for Linux as WSL2 itself is Linux environment
from exatorrent.
Some Progress :
- i cross compiled exatorrent to macos using osxcross and it's working properly . Expect some progress regarding this .
- windows cross compiled executable has been reported to run properly by @ystyle . Also , I will check it once again (I got few errors but will try to solve them)
from exatorrent.
@varbhat great, thanks a lot for your efforts
from exatorrent.
https://github.com/varbhat/exatorrent/releases/tag/v0.0.2
Go Ahead, MacOS and Windows Builds have been released
from exatorrent.
@varbhat windows version works, but i not sure about streaming, even when I download 30% of file, web player doesn't works
and VLC also can't open stream
from exatorrent.
Did you try with "Use Streaming API" option toggled ?
from exatorrent.
@varbhat yes I tried, but unsuccessful
on logs, I have the following messages:
[INFO] 2021/09/08 16:59:47 Starting gettorrents for adminuser
[INFO] 2021/09/08 16:59:52 Stopped gettorrents for adminuser
[INFO] 2021/09/08 16:59:52 Starting gettorrents for adminuser
[INFO] 2021/09/08 16:59:52 Stopped gettorrents for adminuser
[INFO] 2021/09/08 16:59:52 Stopped Stream for adminuser
[INFO] 2021/09/08 16:59:52 Starting gettorrentinfo for adminuser
[WARN] 2021/09/08 16:59:59 WebSocket Unexpected Close: websocket: close 1005 (no status)
[INFO] 2021/09/08 16:59:59 User adminuser ([::1]:56816) Disconnected
[INFO] 2021/09/08 17:00:02 Stopped gettorrentinfo for adminuser
[INFO] 2021/09/08 17:00:02 Stopped Stream for adminuser
from exatorrent.
I think that video must be downloaded more to make it streamable. Also, please also try with other torrent file.
from exatorrent.
potplayer has the same issue.Neither of the provided URLs can be played
from exatorrent.
@ystyle ,
- Click on Download. Will it download.
- Wait for File to complete download in torrent client. Will it stream?
from exatorrent.
@ystyle ,
- Click on Download. Will it download.
- Wait for File to complete download in torrent client. Will it stream?
Download connection can be played directly on potplayer
from exatorrent.
Related Issues (20)
- "Select a torrent file" feature doesn't work in latest Firefox on Ubuntu 22.04 HOT 2
- Errors from go-libutp on Windows HOT 4
- Direct Docker Command
- [ERR] Error Creating Directory HOT 5
- Anything special needed for seeding? HOT 3
- can i use this share my local file ? HOT 1
- Support: how to download specific torrents on startup?
- Any plan on providing the binaries to us directly via GitHub? HOT 5
- Not able to build on openSUSE Leap 15.5 Beta x86_64 HOT 3
- Docker run Error HOT 3
- PeerID HOT 1
- Build Error : cannot define new methods on non-local type HOT 15
- Archiving the project HOT 3
- Binaries
- Next Generation Ideas HOT 16
- Include help or documentation per page inside UI HOT 2
- Build error on MacOS M1 chip HOT 6
- [macos] Error: port already in use even after killing app HOT 1
- how to cross-compile to linux-arm64 HOT 4
- Incorrect encoding of Chinese files/folders in download directory HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exatorrent.