Crosscompile for Openwrt
Added by Stefan Soeding almost 11 years ago
trying to crosscompile but endet in some error i can't solve
thanks for help.
[[draner@Rack ~/openwrt/tvheadend $ PATH=$PATH:/home/draner/openwrt/tptv/staging_dir/toolchain-mips_34kc_gcc-4.6-linaro_uClibc-0.9.33.2/bin
draner@Rack ~/openwrt/tvheadend $ STAGING_DIR=/home/draner/openwrt/tptv/staging_dir/target-mips_34kc_uClibc-0.9.33.2
draner@Rack ~/openwrt/tvheadend $ export PATH
draner@Rack ~/openwrt/tvheadend $ export STAGING_DIR
draner@Rack ~/openwrt/tvheadend $ git pull
Already up-to-date.
draner@Rack ~/openwrt/tvheadend $ ./configure --host=mips-openwrt-linux-uclibc -prefix=/usr --datadir=/usr/share --disable-avahi --disable-libav
Checking support/features
checking for cc execinfo.h ... ok
checking for cc -mmmx ... ok
checking for cc -msse2 ... ok
checking for cc getloadavg ... ok
checking for cc atomic64 ... ok
checking for cc lockowner ... ok
checking for py module gzip ... ok
checking for bzip2 ... ok
checking for pkg openssl ... ok
checking for cc linux/dvb/version.h ... ok
checking for pkg zlib ... ok
checking for pkg libcurl ... ok
checking for pkg liburiparser ... fail
checking for cc sys/inotify.h ... ok
fetching dvb-scan files ... ok
Compiler:
Using C compiler: cc
Build for arch: x86_64
Binaries:
Using PYTHON: python
Options:
cwc yes
v4l no
linuxdvb yes
iptv yes
tsfile yes
dvbscan yes
timeshift yes
trace yes
imagecache yes
avahi no
zlib yes
libav no
inotify yes
curl yes
epoll yes
uriparser no
ccache no
bundle no
dvbcsa no
kqueue no
execinfo yes
mmx yes
sse2 yes
getloadavg yes
atomic64 yes
lockowner yes
py_gzip yes
bin_bzip2 yes
ssl yes
dvbapi yes
inotify_h yes
mpegts yes
mpegps no
Packages:
openssl 1.0.1e
zlib 1.2.8
libcurl 7.31.0
Installation paths:
Prefix: /usr/local
Binaries: ${prefix}/bin
Libraries: ${prefix}/lib
Data files: /usr/share
Man pages: ${datadir}/man
Final Binary:
/home/draner/openwrt/tvheadend/build.linux/tvheadend
Tvheadend Data Directory:
/usr/share/tvheadend
draner@Rack ~/openwrt/tvheadend $ CC=mips-openwrt-linux-uclibc-gcc LD=mips-openwrt-linux-uclibc-ld CFLAGS="-I/home/draner/openwrt/tptv/staging_dir/toolchain-mips_34kc_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include" LDFLAGS="-L/home/draner/openwrt/tptv/staging_dir/toolchain-mips_34kc_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib" make
CC src/main.o
CC src/tvhlog.o
CC src/idnode.o
CC src/prop.o
CC src/utils.o
CC src/wrappers.o
CC src/access.o
CC src/dtable.o
CC src/tcp.o
CC src/url.o
CC src/http.o
CC src/notify.o
CC src/epg.o
CC src/epgdb.o
CC src/epggrab.o
CC src/spawn.o
CC src/packet.o
CC src/streaming.o
CC src/channels.o
CC src/subscriptions.o
CC src/service.o
CC src/htsp_server.o
CC src/htsmsg_xml.o
CC src/misc/json.o
CC src/settings.o
CC src/htsbuf.o
CC src/trap.o
CC src/tvhpoll.o
CC src/filebundle.o
CC src/config2.o
CC src/imagecache.o
CC src/tvhtime.o
CC src/descrambler/descrambler.o
CC src/service_mapper.o
CC src/input.o
CC src/http/http_client.o
CC src/api.o
CC src/api/api_status.o
CC src/api/api_idnode.o
CC src/api/api_input.o
CC src/api/api_channel.o
CC src/api/api_service.o
CC src/api/api_mpegts.o
CC src/api/api_epg.o
CC src/api/api_epggrab.o
CC src/api/api_imagecache.o
CC src/parsers/parsers.o
CC src/parsers/parser_h264.o
CC src/parsers/parser_latm.o
CC src/parsers/parser_avc.o
CC src/parsers/parser_teletext.o
CC src/epggrab/module.o
CC src/epggrab/channel.o
CC src/epggrab/module/pyepg.o
CC src/epggrab/module/xmltv.o
CC src/plumbing/tsfix.o
CC src/plumbing/globalheaders.o
CC src/dvr/dvr_db.o
CC src/dvr/dvr_rec.o
CC src/dvr/dvr_autorec.o
CC src/webui/webui.o
CC src/webui/comet.o
CC src/webui/extjs.o
CC src/webui/simpleui.o
src/webui/simpleui.c: In function 'page_status':
src/webui/simpleui.c:386:3: error: implicit declaration of function 'getloadavg' [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make: *** [/home/draner/openwrt/tvheadend/build.linux/src/webui/simpleui.o] Error 1
draner@Rack ~/openwrt/tvheadend $
]]