RPiPlay icon indicating copy to clipboard operation
RPiPlay copied to clipboard

Allow build on FreeBSD

Open swills opened this issue 4 years ago • 11 comments

swills avatar Oct 15 '21 16:10 swills

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

FD- avatar Nov 06 '21 12:11 FD-

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

fduncanh avatar Nov 15 '21 00:11 fduncanh

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

swills avatar Nov 15 '21 02:11 swills

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

fduncanh avatar Nov 15 '21 08:11 fduncanh

@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

swills avatar Nov 15 '21 13:11 swills

@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 avatar Nov 15 '21 22:11 fduncanh

@swills

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

fduncanh avatar Nov 20 '21 09:11 fduncanh

@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 avatar Nov 20 '21 15:11 swills

@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 avatar Nov 20 '21 15:11 swills

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.

swills avatar Nov 20 '21 15:11 swills

@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

fduncanh avatar Nov 20 '21 20:11 fduncanh