Bug #3303
make_webui error
100%
Description
After following install procedure on my mac with latest Xcode, i receive this error during "make" command.
Please help:
make /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.webui LANGUAGES="bg cs de en_US en_GB es fa fr he hr hu it lv nl pl pt ru sv" all /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.webui WEBUI=std compile-std stat: illegal option -- - usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...] make[2]: *** [src/webui/static/tvh.js.gz] Error 1 make[1]: *** [all] Error 2 make: *** [make_webui] Error 2
History
Updated by Jaroslav Kysela almost 9 years ago
We use this cmd in Makefile.webui:
stat --printf="%-35n %7s\n"
It's GNU extensions. You should adapt this.
Updated by Kursad Cire almost 9 years ago
Jaroslav Kysela wrote:
We use this cmd in Makefile.webui:
[...]
It's GNU extensions. You should adapt this.
Should i write this where the extracted text is, like this:
/Applications/Xcode.app/Contents/Developer/usr/bin/make stat --printf="%-35n %7s\n"
Sorry, i have no knowledge in coding.
Updated by Kursad Cire almost 9 years ago
Jaroslav Kysela wrote:
We use this cmd in Makefile.webui:
[...]
It's GNU extensions. You should adapt this.
How do I adapt this, please help.
Thank you
Updated by Jaroslav Kysela almost 9 years ago
Just comment out these lines - they just prints statistics (file sizes) to stdout as a temporary solution.
Updated by Kursad Cire almost 9 years ago
Jaroslav Kysela wrote:
Just comment out these lines - they just prints statistics (file sizes) to stdout as a temporary solution.
Can you please write the code to compile as "make" alone gives the error i wrote initially.
Updated by Kursad Cire almost 9 years ago
I did the procedure again to post the whole terminal history here:
Brave-New-Brain:~ kursadcire$ cd tvheadend Brave-New-Brain:tvheadend kursadcire$ ./configure Checking support/features checking for cc execinfo.h ... ok checking for cc -mmmx ... ok checking for cc -msse2 ... ok checking for cc -Wunused-result ... ok checking for cc getloadavg ... ok checking for cc atomic64 ... ok checking for cc lockowner ... fail checking for cc qsort_r ... ok checking for cc stime ... fail checking for cc gmtoff ... ok checking for cc recvmmsg ... fail checking for cc sendmmsg ... fail checking for cc libiconv ... ok checking for cc libdvben50221 ... fail checking for cc ifnames ... ok checking for py module gzip ... ok checking for pkg-config ... ok checking for xgettext ... ok checking for msgmerge ... ok checking for gzip ... ok checking for bzip2 ... ok checking for pkg openssl ... ok (detected 1.0.1g) checking for cc linux/dvb/version.h ... fail checking for cc libhdhomerun/hdhomerun.h ... fail checking for pkg zlib ... ok (detected 1.2.8) checking for pkg liburiparser ... fail (detected <none>) Package libavcodec was not found in the pkg-config search path. Perhaps you should add the directory containing `libavcodec.pc' to the PKG_CONFIG_PATH environment variable No package 'libavcodec' found checking for ffmpeg libraries ... fail checking for pkg libavcodec >=55.34.1 ... fail (detected <none>) WARNING: none or old libav or libffmpeg libraries were detected * use --disable-libav or --enable-libffmpeg_static ** supported ffmpeg libs n1.2+ ** supported libav libs v10+ checking for cc sys/inotify.h ... fail fetching dvb-scan files ... ok checking for pkg dbus-1 ... ok (detected 1.8.2) Compiler: Using C compiler: cc Build for arch: x86_64 Binaries: Using PYTHON: python Using GZIP: gzip Using BZIP2: bzip2 Options: cwc yes capmt yes constcw yes linuxdvb no satip_server yes satip_client yes hdhomerun_client no hdhomerun_static no iptv yes tsfile yes dvbscan yes timeshift yes trace yes imagecache yes avahi no zlib yes libav no libffmpeg_static no libx264_static yes libx265 no libx265_static yes vdpau no libmfx no libmfx_static yes inotify no epoll no uriparser no ccache no tvhcsa yes bundle no dvbcsa no dvben50221 no kqueue yes dbus_1 yes android no tsdebug no gtimer_check no libsystemd_daemon no execinfo yes mmx yes sse2 yes W_unused_result yes getloadavg yes atomic64 yes qsort_r yes gmtoff yes libiconv yes ifnames yes py_gzip yes bin_pkg_config yes bin_xgettext yes bin_msgmerge yes bin_gzip yes bin_bzip2 yes ssl yes bonjour yes upnp yes mpegts yes mpegts_dvb yes Packages: openssl 1.0.1g zlib 1.2.8 dbus-1 1.8.2 Installation paths: Prefix: /usr/local Binaries: ${prefix}/bin Libraries: ${prefix}/lib Data files: ${prefix}/share Man pages: ${datadir}/man Final Binary: /Users/kursadcire/tvheadend/build.darwin/tvheadend Tvheadend Data Directory: /usr/local/share/tvheadend Brave-New-Brain:tvheadend kursadcire$ ./configure --help Usage: ./configure [options] Miscellaneous --help Print this message Installation Paths --prefix=DIR$ Installation root [/usr/local] --bindir=DIR Install binaries in DIR [${prefix}/bin] --libdir=DIR Install libraries in DIR [${prefix}/lib] --mandir=DIR Install man pages in DIR [${datadir}/man] --datadir=DIR Install data files in DIR [${prefix}/share] Compiler/Arch --cc=CC Build using compiler [cc] --cflags=CFLAGS Build using C flags --ldflags=LDFLAGS Build using LD flags --cpu=CPU Build and optimize for specific CPU --arch=ARCH Build for architecture [x86_64] --platform=PLATFORM Build for platform [darwin] --python=PYTHON Use python binary [python] Options --disable-cwc Disable cwc --disable-capmt Disable capmt --disable-constcw Disable constcw --disable-linuxdvb Disable linuxdvb --disable-satip_server Disable satip_server --disable-satip_client Disable satip_client --disable-hdhomerun_client Disable hdhomerun_client --enable-hdhomerun_client Enable hdhomerun_client --enable-hdhomerun_static Enable hdhomerun_static --disable-iptv Disable iptv --disable-tsfile Disable tsfile --disable-dvbscan Disable dvbscan --disable-timeshift Disable timeshift --disable-trace Disable trace --disable-imagecache Disable imagecache --enable-imagecache Enable imagecache --disable-avahi Disable avahi --enable-avahi Enable avahi --disable-zlib Disable zlib --enable-zlib Enable zlib --disable-libav Disable libav --enable-libav Enable libav --enable-libffmpeg_static Enable libffmpeg_static --disable-libx264_static Disable libx264_static --enable-libx265 Enable libx265 --disable-libx265_static Disable libx265_static --disable-vdpau Disable vdpau --enable-vdpau Enable vdpau --enable-libmfx Enable libmfx --disable-libmfx_static Disable libmfx_static --disable-inotify Disable inotify --enable-inotify Enable inotify --disable-epoll Disable epoll --enable-epoll Enable epoll --disable-uriparser Disable uriparser --enable-uriparser Enable uriparser --disable-ccache Disable ccache --enable-ccache Enable ccache --disable-tvhcsa Disable tvhcsa --enable-tvhcsa Enable tvhcsa --enable-bundle Enable bundle --enable-dvbcsa Enable dvbcsa --disable-dvben50221 Disable dvben50221 --enable-dvben50221 Enable dvben50221 --enable-kqueue Enable kqueue --disable-dbus_1 Disable dbus_1 --enable-dbus_1 Enable dbus_1 --enable-android Enable android --enable-tsdebug Enable tsdebug --enable-gtimer_check Enable gtimer_check --enable-libsystemd_daemon Enable libsystemd_daemon Brave-New-Brain:tvheadend kursadcire$ ./configure --disable-dvbscan Checking support/features checking for cc execinfo.h ... ok checking for cc -mmmx ... ok checking for cc -msse2 ... ok checking for cc -Wunused-result ... ok checking for cc getloadavg ... ok checking for cc atomic64 ... ok checking for cc lockowner ... fail checking for cc qsort_r ... ok checking for cc stime ... fail checking for cc gmtoff ... ok checking for cc recvmmsg ... fail checking for cc sendmmsg ... fail checking for cc libiconv ... ok checking for cc libdvben50221 ... fail checking for cc ifnames ... ok checking for py module gzip ... ok checking for pkg-config ... ok checking for xgettext ... ok checking for msgmerge ... ok checking for gzip ... ok checking for bzip2 ... ok checking for pkg openssl ... ok (detected 1.0.1g) checking for cc linux/dvb/version.h ... fail checking for cc libhdhomerun/hdhomerun.h ... fail checking for pkg zlib ... ok (detected 1.2.8) checking for pkg liburiparser ... fail (detected <none>) Package libavcodec was not found in the pkg-config search path. Perhaps you should add the directory containing `libavcodec.pc' to the PKG_CONFIG_PATH environment variable No package 'libavcodec' found checking for ffmpeg libraries ... fail checking for pkg libavcodec >=55.34.1 ... fail (detected <none>) WARNING: none or old libav or libffmpeg libraries were detected * use --disable-libav or --enable-libffmpeg_static ** supported ffmpeg libs n1.2+ ** supported libav libs v10+ checking for cc sys/inotify.h ... fail checking for pkg dbus-1 ... ok (detected 1.8.2) Compiler: Using C compiler: cc Build for arch: x86_64 Binaries: Using PYTHON: python Using GZIP: gzip Using BZIP2: bzip2 Options: cwc yes capmt yes constcw yes linuxdvb no satip_server yes satip_client yes hdhomerun_client no hdhomerun_static no iptv yes tsfile yes dvbscan no timeshift yes trace yes imagecache yes avahi no zlib yes libav no libffmpeg_static no libx264_static yes libx265 no libx265_static yes vdpau no libmfx no libmfx_static yes inotify no epoll no uriparser no ccache no tvhcsa yes bundle no dvbcsa no dvben50221 no kqueue yes dbus_1 yes android no tsdebug no gtimer_check no libsystemd_daemon no execinfo yes mmx yes sse2 yes W_unused_result yes getloadavg yes atomic64 yes qsort_r yes gmtoff yes libiconv yes ifnames yes py_gzip yes bin_pkg_config yes bin_xgettext yes bin_msgmerge yes bin_gzip yes bin_bzip2 yes ssl yes bonjour yes upnp yes mpegts yes mpegts_dvb yes Packages: openssl 1.0.1g zlib 1.2.8 dbus-1 1.8.2 Installation paths: Prefix: /usr/local Binaries: ${prefix}/bin Libraries: ${prefix}/lib Data files: ${prefix}/share Man pages: ${datadir}/man Final Binary: /Users/kursadcire/tvheadend/build.darwin/tvheadend Tvheadend Data Directory: /usr/local/share/tvheadend Brave-New-Brain:tvheadend kursadcire$ make /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.webui LANGUAGES="bg cs de en_US en_GB es fa fr he hr hu it lv nl pl pt ru sv" all /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.webui WEBUI=std compile-std stat: illegal option -- - usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...] make[2]: *** [src/webui/static/tvh.js.gz] Error 1 make[1]: *** [all] Error 2 make: *** [make_webui] Error 2 Brave-New-Brain:tvheadend kursadcire$ ./build.darwin/tvheadend -bash: ./build.darwin/tvheadend: No such file or directory Brave-New-Brain:tvheadend kursadcire$
Updated by Jaroslav Kysela almost 9 years ago
Remove stat command from Makefile.webui using any editor. Look for lines as specified by comment 1 in this issue.
Updated by Kursad Cire almost 9 years ago
Jaroslav Kysela wrote:
Remove stat command from Makefile.webui using any editor. Look for lines as specified by comment 1 in this issue.
After removing all the stat commands in Makefile.webui, $ make resulted in this:
Brave-New-Brain:tvheadend kursadcire$ make /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.webui LANGUAGES="bg cs de en_US en_GB es fa fr he hr hu it lv nl pl pt ru sv" all /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.webui WEBUI=std compile-std src/webui/static/tvh.js.gz.tmp src/webui/static/tvh.js.gz.tmp2 make[2]: src/webui/static/tvh.js.gz.tmp: Permission denied make[2]: *** [src/webui/static/tvh.js.gz] Error 1 make[1]: *** [all] Error 2 make: *** [make_webui] Error 2 Brave-New-Brain:tvheadend kursadcire$ make /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.webui LANGUAGES="bg cs de en_US en_GB es fa fr he hr hu it lv nl pl pt ru sv" all /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.webui WEBUI=std compile-std Building src/webui/static/intl/tvh.bg.js.gz Building src/webui/static/intl/tvh.cs.js.gz Building src/webui/static/intl/tvh.de.js.gz Building src/webui/static/intl/tvh.en_US.js.gz Building src/webui/static/intl/tvh.en_GB.js.gz Building src/webui/static/intl/tvh.es.js.gz Building src/webui/static/intl/tvh.fa.js.gz Building src/webui/static/intl/tvh.fr.js.gz Building src/webui/static/intl/tvh.he.js.gz Building src/webui/static/intl/tvh.hr.js.gz Building src/webui/static/intl/tvh.hu.js.gz Building src/webui/static/intl/tvh.it.js.gz Building src/webui/static/intl/tvh.lv.js.gz Building src/webui/static/intl/tvh.nl.js.gz Building src/webui/static/intl/tvh.pl.js.gz Building src/webui/static/intl/tvh.pt.js.gz Building src/webui/static/intl/tvh.ru.js.gz Building src/webui/static/intl/tvh.sv.js.gz WEBUI std finished /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.webui WEBUI=debug compile-debug WEBUI debug finished CC src/version.o CC src/uuid.o CC src/main.o src/main.c:991:16: error: incompatible pointer to integer conversion assigning to 'pid_t' (aka 'int') from 'pthread_t' (aka 'struct _opaque_pthread_t *') [-Werror,-Wint-conversion] randseed.pid = main_tid; ^ ~~~~~~~~ 1 error generated. make: *** [/Users/kursadcire/tvheadend/build.darwin/src/main.o] Error 1 Brave-New-Brain:tvheadend kursadcire$
Updated by Kursad Cire almost 9 years ago
Sorry, the correct terminal history is below:
Brave-New-Brain:tvheadend kursadcire$ make /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.webui LANGUAGES="bg cs de en_US en_GB es fa fr he hr hu it lv nl pl pt ru sv" all /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.webui WEBUI=std compile-std Building src/webui/static/intl/tvh.bg.js.gz Building src/webui/static/intl/tvh.cs.js.gz Building src/webui/static/intl/tvh.de.js.gz Building src/webui/static/intl/tvh.en_US.js.gz Building src/webui/static/intl/tvh.en_GB.js.gz Building src/webui/static/intl/tvh.es.js.gz Building src/webui/static/intl/tvh.fa.js.gz Building src/webui/static/intl/tvh.fr.js.gz Building src/webui/static/intl/tvh.he.js.gz Building src/webui/static/intl/tvh.hr.js.gz Building src/webui/static/intl/tvh.hu.js.gz Building src/webui/static/intl/tvh.it.js.gz Building src/webui/static/intl/tvh.lv.js.gz Building src/webui/static/intl/tvh.nl.js.gz Building src/webui/static/intl/tvh.pl.js.gz Building src/webui/static/intl/tvh.pt.js.gz Building src/webui/static/intl/tvh.ru.js.gz Building src/webui/static/intl/tvh.sv.js.gz WEBUI std finished /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.webui WEBUI=debug compile-debug WEBUI debug finished CC src/version.o CC src/uuid.o CC src/main.o src/main.c:991:16: error: incompatible pointer to integer conversion assigning to 'pid_t' (aka 'int') from 'pthread_t' (aka 'struct _opaque_pthread_t *') [-Werror,-Wint-conversion] randseed.pid = main_tid; ^ ~~~~~~~~ 1 error generated. make: *** [/Users/kursadcire/tvheadend/build.darwin/src/main.o] Error 1 Brave-New-Brain:tvheadend kursadcire$
Updated by Kursad Cire almost 9 years ago
Jaroslav Kysela wrote:
Try latest - v4.1-998-gcf47a5d .
I did with git pull. Configured again. After make cmd terminal is below:
Brave-New-Brain:tvheadend kursadcire$ make /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.webui LANGUAGES="bg cs da de en_US en_GB es et fa fi fr he hr hu it lv nl pl pt ru sv uk" all /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.webui WEBUI=std compile-std Building src/webui/static/intl/tvh.bg.js.gz Building src/webui/static/intl/tvh.da.js.gz Building src/webui/static/intl/tvh.et.js.gz Building src/webui/static/intl/tvh.fi.js.gz Building src/webui/static/intl/tvh.uk.js.gz WEBUI std finished /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.webui WEBUI=debug compile-debug WEBUI debug finished CC src/version.o CC src/uuid.o CC src/main.o CC src/tvhlog.o CC src/idnode.o CC src/prop.o CC src/utils.o In file included from src/utils.c:34: /Users/kursadcire/tvheadend/src/tvh_endian.h:21:10: fatal error: 'byteswap.h' file not found #include <byteswap.h> ^ 1 error generated. make: *** [/Users/kursadcire/tvheadend/build.darwin/src/utils.o] Error 1 Brave-New-Brain:tvheadend kursadcire$
Updated by Jaroslav Kysela almost 9 years ago
I'm sorry, you need to wait for a developer which uses your platform to port the code there again. We're working on GNU Linux.
Updated by Kursad Cire almost 9 years ago
Jaroslav Kysela wrote:
I'm sorry, you need to wait for a developer which uses your platform to port the code there again. We're working on GNU Linux.
Jaroslav hi, is there any developer who's currently uses Mac OS, who can fix this? I'm updating every day but still get the above error :/
Updated by Markus Griesslehner over 7 years ago
For me following workaround has fixed the problem with the missing byteswap.h:
Open the file src/tch_endian.h and replace line 21 with following:
#if HAVE_BYTESWAP_H #include <byteswap.h> #else #define bswap_16(value) \ ((((value) & 0xff) << 8) | ((value) >> 8)) #define bswap_32(value) \ (((uint32_t)bswap_16((uint16_t)((value) & 0xffff)) << 16) | \ (uint32_t)bswap_16((uint16_t)((value) >> 16))) #define bswap_64(value) \ (((uint64_t)bswap_32((uint32_t)((value) & 0xffffffff)) \ << 32) | \ (uint64_t)bswap_32((uint32_t)((value) >> 32))) #endif
Updated by Jaroslav Kysela over 7 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset commit:tvheadend|cf0bba8bc0ae11f01dee549239fa182ab4f2b91a.
Updated by Markus Griesslehner over 7 years ago
I have tested you last changes in the tvh_endian.h on macOS 10.12.3. I get the following error:
CC src/utils.o src/utils.c:642:10: error: implicit declaration of function 'OSSwapInt32' is invalid in C99 [-Werror,-Wimplicit-function-declaration] mask = bswap_32(mask); /Users/markus/Downloads/tvheadend-master/src/tvh_endian.h:24:21: note: expanded from macro 'bswap_32' #define bswap_32(x) OSSwapInt32(x) src/utils.c:642:10: note: did you mean '_OSSwapInt32'? /Users/markus/Downloads/tvheadend-master/src/tvh_endian.h:24:21: note: expanded from macro 'bswap_32' #define bswap_32(x) OSSwapInt32(x) /usr/include/libkern/i386/_OSByteOrder.h:55:1: note: '_OSSwapInt32' declared here _OSSwapInt32( 1 error generated.
Thanks.
Updated by Remko Faes about 5 years ago
Markus S Griesslehner
I really want to get TVHEADEND working on MacOS. Can you please help me?
Greets
Vaoske
Updated by saen acro about 5 years ago
Remko Faes wrote:
Markus S Griesslehner
I really want to get TVHEADEND working on MacOS. Can you please help me?
Greets
Vaoske
Use virtualisation
Parallels Desktop Lite is free if run linux on it.
Or make dual boot system and use normal tuners in TVH