Giter VIP home page Giter VIP logo

Comments (17)

varbhat avatar varbhat commented on May 10, 2024 1

@ivanduka ,

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.

varbhat avatar varbhat commented on May 10, 2024 1

Progress 🎉

  1. 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.
  2. 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.

Slach avatar Slach commented on May 10, 2024

@varbhat could you suggest which dependencies are requires libstdc++? maybe we can switch to pure-go implementations?

from exatorrent.

varbhat avatar varbhat commented on May 10, 2024

@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.

Slach avatar Slach commented on May 10, 2024

@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.

varbhat avatar varbhat commented on May 10, 2024

@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.

varbhat avatar varbhat commented on May 10, 2024

@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.

varbhat avatar varbhat commented on May 10, 2024

Some Progress :

cc3afc8

  1. i cross compiled exatorrent to macos using osxcross and it's working properly . Expect some progress regarding this .
  2. 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.

Slach avatar Slach commented on May 10, 2024

@varbhat great, thanks a lot for your efforts

from exatorrent.

varbhat avatar varbhat commented on May 10, 2024

@Slach @ivanduka ,

https://github.com/varbhat/exatorrent/releases/tag/v0.0.2

Go Ahead, MacOS and Windows Builds have been released

from exatorrent.

Slach avatar Slach commented on May 10, 2024

@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

image

from exatorrent.

varbhat avatar varbhat commented on May 10, 2024

Did you try with "Use Streaming API" option toggled ?

from exatorrent.

Slach avatar Slach commented on May 10, 2024

@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

on web
image
and
from VLC side
image

from exatorrent.

varbhat avatar varbhat commented on May 10, 2024

I think that video must be downloaded more to make it streamable. Also, please also try with other torrent file.

from exatorrent.

ystyle avatar ystyle commented on May 10, 2024

potplayer has the same issue.Neither of the provided URLs can be played

from exatorrent.

varbhat avatar varbhat commented on May 10, 2024

@ystyle ,

  1. Click on Download. Will it download.
  2. Wait for File to complete download in torrent client. Will it stream?

from exatorrent.

ystyle avatar ystyle commented on May 10, 2024

@ystyle ,

  1. Click on Download. Will it download.
  2. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.