anacrolix / torrent

Full-featured BitTorrent client package and utilities
Mozilla Public License 2.0
5.51k stars 622 forks source link

mthreads cross compilation error for a fyne app that uses anacrolix/torrent #816

Open Muller555541 opened 1 year ago

Muller555541 commented 1 year ago

As I try to compile a fyne app that uses anacrolix/torrent using fyne-cross "cross compilation tool" I get the error: g++: error: unrecognized command-line option '-mthreads'; did you mean '-pthread'?

does this library use mthreads? and should it switch to pthread?

anacrolix commented 1 year ago

I think this is a Go core thing.

Muller555541 commented 1 year ago

how can it be corrected?

anacrolix commented 1 year ago

I'm not sure, but I would recommend asking on the fyne repo. I don't believe it's caused by bad behaviour in this repo. It could be caused by using cgo for some of the dependencies of this repo, the fixes for which will be specific to fyne.