How do you guys compile on Linux with <CoreServices/CoreServices.h>?
Added by Eric Fossum about 9 years ago
I'm trying to setup a completely new development environment from the source code. Not because I want to change the way TvHeadend is developed, it's just a personal experiment.
My problem is, I can't get it to compile. I did compile it before I started with the recommended method, but now it doesn't seem to work with my custom Makefile. Most of the source seems to compile, but the bonjour.c file includes <CoreServices/CoreServices.h> which seems to be an Apple file.
clang -c -g -MMD -MP -MF "build/Debug/CLang-Linux-x86/bonjour.o.d" -o build/Debug/CLang-Linux-x86/bonjour.o bonjour.c bonjour.c:26:10: fatal error: 'CoreServices/CoreServices.h' file not found #include <CoreServices/CoreServices.h> ^ 1 error generated.
I did find the CoreServices reference in the Makefile...
ifeq ($(PLATFORM), darwin) LDFLAGS += -framework CoreServices else ifeq ($(CONFIG_ANDROID),no) LDFLAGS += -lrt endif
But that only seems to be for Apple products. Is there something I'm missing for a Fedora x64 build?
Thanks
Replies (1)
RE: How do you guys compile on Linux with <CoreServices/CoreServices.h>? - Added by Eric Fossum about 9 years ago
Well, I ended up surrounding the source file in an
#ifdef CONFIG_BONJOUR(which maybe how it's suppose to be built). The header file runs different functions based of the same
#ifdef.