FD- / RPiPlay

An open-source AirPlay mirroring server for the Raspberry Pi. Supports iOS 9 and up.
GNU General Public License v3.0
4.9k stars 354 forks source link

Allow build on FreeBSD #277

Open swills opened 2 years ago

FD- commented 2 years ago

Thanks for your PR! Did you confirm whether this still builds on Raspberry Pi OS?

fduncanh commented 2 years ago

@swills assuming you are running FreeBSD on a desktop, not the RPi, maybe you could test the fork of this (gstreamer based with many enhancements) http://github.com/FDH2/UxPlay on your FreeBSD system Thanks!

swills commented 2 years ago

@swills assuming you are running FreeBSD on a desktop, not the RPi, maybe you could test the fork of this (gstreamer based with many enhancements) http://github.com/FDH2/UxPlay on your FreeBSD system Thanks!

It needs the same changes as this pull request.

fduncanh commented 2 years ago

@swills would this work for the endian.h? https://github.com/FDH2/UxPlay/commit/785743ff1ba8b777adc693769000d02a942aac53

swills commented 2 years ago

@swills would this work for the endian.h? FDH2/UxPlay@785743f

No, there's still:

UxPlay/lib/raop_handlers.h:22:10: fatal error: 'plist/plist.h' file not found
#include <plist/plist.h>
         ^~~~~~~~~~~~~~~
1 error generated.
*** Error code 1
fduncanh commented 2 years ago

@swills try this https://github.com/FDH2/UxPlay/commit/e993f6859deb9bc587dbcf8f2fdb480f3f82a90a

Note: in your CMakeLists.txt changes, could DNS_SD_LIBRARY_DIRS be a typo for DNSSD_LIBRARY_DIRS?

fduncanh commented 2 years ago

@swills

does this now build on FreeBSD? https://github.com/FDH2/UxPlay/commit/6affac516af2289607b344020d8df3d01a12a73e

swills commented 2 years ago

@swills

does this now build on FreeBSD? FDH2/UxPlay@6affac5

No, it fails to link:

ld: error: unable to find library -ldns_sd
ld: error: unable to find library -lgstsdp-1.0
ld: error: unable to find library -lgstvideo-1.0
ld: error: unable to find library -lgstapp-1.0
ld: error: unable to find library -lgstbase-1.0
ld: error: unable to find library -lgstreamer-1.0
ld: error: unable to find library -lgobject-2.0
ld: error: unable to find library -lglib-2.0
ld: error: unable to find library -lintl
swills commented 2 years ago

@swills try this FDH2/UxPlay@e993f68

Note: in your CMakeLists.txt changes, could DNS_SD_LIBRARY_DIRS be a typo for DNSSD_LIBRARY_DIRS?

Yes, sorry. I guess it didn't break anything because it's the same dir as PLIST_LIBRARY_DIRS

swills commented 2 years ago

I made local changes to UxPlay to make it build. When I run it, it appears on the network, I try to mirror to it, but it doesn't connect and times out.

fduncanh commented 2 years ago

@swills

thanks, I will install FreeBSD on virtualbox for testing. what local changes did you make? please add your comments at issue https://github.com/FDH2/UxPlay#29 rather than here