Jump to content


Photo

help building binary


  • Please log in to reply
5 replies to this topic

#1 tr45h

  • Senior Member
  • 51 posts

0
Neutral

Posted 14 February 2012 - 12:44

hi there!

need little help. want to build my own version of mpd with libcurl enabled. just one tiny ipk package which i can install onto my box.
have debian 6.0.4 server and set up build environment as described in wiki http://openpli.org/wiki/Development
is this what i need to compile mpd? or do i need something different (toolchain for mipsel)?

have read in another post that one could use bitbake to accomplish this but then i need a .bb file for mpd. is that correct?

please help i would like to get into this a bit deeper.

Re: help building binary #2 tr45h

  • Senior Member
  • 51 posts

0
Neutral

Posted 15 February 2012 - 08:59

FYI
Managed to set up the build environment according to wiki and many forum posts regarding "do_fetch" errors.
My first image compiled tonight.
Now I try to compile hello world...

PS: some sites stated in the receipes were offline. now that i have them all should i upload them to somewhere? 1.6GB :-(

Re: help building binary #3 tr45h

  • Senior Member
  • 51 posts

0
Neutral

Posted 15 February 2012 - 14:39

hello world went through and got it running... now want to compile mpd... have devshell running: oe_runconf went through but make not?!

Output of make
[OE::mipsel-oe-linux-openpli-et9x00]:/data/compiling/mpd-0.15.9$ make
NOTE: make
make  all-am
make[1]: Entering directory `/data/compiling/mpd-0.15.9'
mipsel-oe-linux-gcc -march=mips32 --sysroot=/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux -std=gnu99 -DHAVE_CONFIG_H -I.  -I./src -pthread -I/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux/usr/include/glib-2.0 -I/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux/usr/lib/glib-2.0/include	  -I/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux/data/compiling/openpli/build-et9x00/tmp/sysroots/i686-linux/usr/include	   -I/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux/usr/include		  -I/usr/include    -I/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux/usr/include/alsa	   -Wall -Wextra -Wno-deprecated-declarations -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -D_GNU_SOURCE -D_REENTRANT -I/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux/usr/include/glib-2.0 -I/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux/usr/lib/glib-2.0/include    -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -MT src_mpd-input_stream.o -MD -MP -MF .deps/src_mpd-input_stream.Tpo -c -o src_mpd-input_stream.o `test -f 'src/input_stream.c' || echo './'`src/input_stream.c
CROSS COMPILE Badness: /usr/include in INCLUDEPATH: /usr/include
cc1: internal compiler error: in add_path, at incpath.c:429
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [src_mpd-input_stream.o] Error 1
make[1]: Leaving directory `/data/compiling/mpd-0.15.9'
make: *** [all] Error 2
FATAL: oe_runmake failed

Output of oe_runconf
[OE::mipsel-oe-linux-openpli-et9x00]:/data/compiling/mpd-0.15.9$ oe_runconf
configure: WARNING: unrecognized options: --with-libtool-sysroot, --enable-largefile, --disable-nls
checking for a BSD-compatible install... /data/compiling/openpli/openembedded//bin/install -c
checking whether build environment is sane... yes
checking for mipsel-oe-linux-strip... mipsel-oe-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for mipsel-oe-linux-gcc... mipsel-oe-linux-gcc -march=mips32 --sysroot=/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mipsel-oe-linux-gcc -march=mips32 --sysroot=/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux accepts -g... yes
checking for mipsel-oe-linux-gcc -march=mips32 --sysroot=/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux option to accept ISO C89... none needed
checking dependency style of mipsel-oe-linux-gcc -march=mips32 --sysroot=/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux... gcc3
checking for mipsel-oe-linux-gcc -march=mips32 --sysroot=/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux option to accept ISO C99... -std=gnu99
checking whether we are using the GNU C++ compiler... yes
checking whether mipsel-oe-linux-g++ -march=mips32 --sysroot=/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux accepts -g... yes
checking dependency style of mipsel-oe-linux-g++ -march=mips32 --sysroot=/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux... gcc3
./configure: line 4731: test: too many arguments
checking whether make sets $(MAKE)... (cached) yes
checking for mipsel-oe-linux-pkg-config... no
checking for pkg-config... /data/compiling/openpli/build-et9x00/tmp/sysroots/i686-linux/usr/bin/pkg-config
configure: WARNING: using cross tools not prefixed with host triplet
checking pkg-config is at least version 0.9.0... yes
checking build system type... i686-pc-linux-gnu
checking host system type... mipsel-oe-linux-gnu
checking for syslog... yes
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for exp in -lm... yes
checking how to run the C preprocessor... mipsel-oe-linux-gcc -E --sysroot=/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking valgrind/memcheck.h usability... no
checking valgrind/memcheck.h presence... no
checking for valgrind/memcheck.h... no
checking for GLIB... yes
checking for ipv6... yes
checking for struct ucred... yes
checking for CUE... no
configure: WARNING: libcue not found -- disabling libcue parsing library
checking for AVAHI... yes
checking for SQLITE... yes
configure: auto-detected SQLite database support
checking for CURL... yes
configure: auto-detected libcurl HTTP streaming
checking for MMS... no
configure: WARNING: libmms not found -- disabling libmms mms:// protocol support
checking for MAD... yes
configure: auto-detected libmad MP3 decoder plugin
checking for MODPLUG... no
configure: WARNING: libmodplug not found -- disabling modplug decoder plugin
checking for main in -lsidplay2... no
configure: WARNING: libsidplay2 not found -- disabling sidplay decoder plugin
checking for SAMPLERATE... no
configure: WARNING: libsamplerate not found -- disabling libsamplerate resampling
checking for AO... no
configure: WARNING: libao not found -- disabling libao output plugin
checking for JACK... no
configure: WARNING: libjack not found -- disabling JACK output plugin
checking for PULSE... no
configure: WARNING: libpulse not found -- disabling PulseAudio output plugin
checking for SHOUT... no
configure: WARNING: libshout not found -- disabling shout output plugin
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking for mkfifo... yes
checking for ALSA... yes
configure: auto-detected ALSA output plugin
checking for ID3TAG... yes
checking mpc/mpcdec.h usability... no
checking mpc/mpcdec.h presence... no
checking for mpc/mpcdec.h... no
checking mpcdec/mpcdec.h usability... no
checking mpcdec/mpcdec.h presence... no
checking for mpcdec/mpcdec.h... no
configure: WARNING: mpcdec lib needed for MPC support -- disabling MPC support
checking for WAVPACK... no
checking faad.h usability... yes
checking faad.h presence... yes
checking for faad.h... yes
checking whether FAAD2_VERSION is declared... yes
checking whether faacDecInit2 is declared... yes
checking for faacDecInit2 in -lfaad... no
checking for NeAACDecInit2 in -lfaad... yes
checking that FAAD2 uses buffer and bufferlen... yes
checking for faacDecConfiguration.downMatrix... yes
checking for faacDecConfiguration.dontUpSampleImplicitSBR... yes
checking for faacDecFrameInfo.samplerate... yes
checking for broken libfaad headers... broken
checking mp4ff.h usability... yes
checking mp4ff.h presence... yes
checking for mp4ff.h... yes
checking for mp4ff_open_read in -lmp4ff... yes
checking for VORBIS... yes
checking for FLAC... yes
checking whether FLAC_API_SUPPORTS_OGG_FLAC is declared... yes  
checking for AUDIOFILE... no
checking for FFMPEG... no
configure: WARNING: libavformat+libavcodec+libavutil not found -- disabling ffmpeg decoder library
checking for VORBISENC... yes
configure: auto-detected Ogg Vorbis encoder
checking for liblame... cross compiling; assumed OK...
yes
configure: auto-detected LAME encoder plugin
checking whether the C compiler accepts -Wall... yes
checking whether the C compiler accepts -Wextra... yes
checking whether the C compiler accepts -Wno-deprecated-declarations... yes
checking whether the C compiler accepts -Wmissing-prototypes... yes
checking whether the C compiler accepts -Wshadow... yes
checking whether the C compiler accepts -Wpointer-arith... yes  
checking whether the C compiler accepts -Wstrict-prototypes... yes
checking whether the C compiler accepts -Wcast-qual... yes
checking whether the C compiler accepts -Wwrite-strings... yes  
checking whether the C compiler accepts -pedantic... yes
########### MPD CONFIGURATION ############
Client Support:
IPv6 support ..................enabled
TCP support ...................enabled
Unix domain socket support ....enabled
Playback Support:
ALSA support ..................enabled
FIFO support ..................enabled
HTTP daemon support ...........enabled
JACK support ..................disabled
libao support .................disabled
OSS support ...................enabled
OS X support ..................disabled
Pipeline output support .......disabled
PulseAudio support ............disabled
Media MVP support .............disabled
SHOUTcast support .............disabled
Solaris /dev/audio support ....disabled
Streaming Encoder Support:
LAME mp3 encoder ..............enabled
Ogg Vorbis encoder ............enabled
File Format Support:
AAC support ...................enabled
C64 SID support ...............disabled
FFMPEG support ................disabled
FLAC support ..................enabled
fluidsynth MIDI support .......disabled
MikMod support ................disabled
MODPLUG support ...............disabled
MAD mp3 decoder support .......enabled
MP4 support ...................enabled
Musepack (MPC) support ........disabled
OggFLAC support ...............enabled(FLAC 1.1.3)
Ogg Vorbis support ............enabled
   using tremor.................no
Wave file support .............disabled
WavPack support ...............disabled
wildmidi MIDI support .........disabled
Archive support:
BZ2 archives support ..........disabled
ISO 9660 archives support .....disabled
ZIP archives support ..........disabled
Streaming support:
last.fm radio support .........disabled
libcurl support (streaming) ...enabled
libmms support ................disabled
Other features:
ID3 tag support ...............enabled
libsamplerate support .........disabled
Zeroconf support ..............avahi
libcue support ................disabled
##########################################
Generating needed files for compilation
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
configure: WARNING: unrecognized options: --with-libtool-sysroot, --enable-largefile, --disable-nls
You are now ready to compile MPD
Type "make" to compile MPD
[OE::mipsel-oe-linux-openpli-et9x00]:/data/compiling/mpd-0.15.9$ ake
bash: ake: command not found
[OE::mipsel-oe-linux-openpli-et9x00]:/data/compiling/mpd-0.15.9$ make
NOTE: make
make  all-am
make[1]: Entering directory `/data/compiling/mpd-0.15.9'
mipsel-oe-linux-gcc -march=mips32 --sysroot=/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux -std=gnu99 -DHAVE_CONFIG_H -I.  -I./src -pthread -I/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux/usr/include/glib-2.0 -I/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux/usr/lib/glib-2.0/include	  -I/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux/data/compiling/openpli/build-et9x00/tmp/sysroots/i686-linux/usr/include	   -I/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux/usr/include		  -I/usr/include    -I/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux/usr/include/alsa	   -Wall -Wextra -Wno-deprecated-declarations -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -D_GNU_SOURCE -D_REENTRANT -I/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux/usr/include/glib-2.0 -I/data/compiling/openpli/build-et9x00/tmp/sysroots/mipsel-oe-linux/usr/lib/glib-2.0/include    -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -MT src_mpd-input_stream.o -MD -MP -MF .deps/src_mpd-input_stream.Tpo -c -o src_mpd-input_stream.o `test -f 'src/input_stream.c' || echo './'`src/input_stream.c
CROSS COMPILE Badness: /usr/include in INCLUDEPATH: /usr/include
cc1: internal compiler error: in add_path, at incpath.c:429
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [src_mpd-input_stream.o] Error 1
make[1]: Leaving directory `/data/compiling/mpd-0.15.9'
make: *** [all] Error 2
FATAL: oe_runmake failed

Ideas anyone?

Re: help building binary #4 tr45h

  • Senior Member
  • 51 posts

0
Neutral

Posted 16 February 2012 - 10:52

solved... easier as expected...

diff mpd_0.16.6.bb.orig mpd_0.16.6.bb
5c5
< DEPENDS = "libvorbis libogg libao zlib libmikmod flac audiofile virtual/libiconv faad2 \
---
> DEPENDS = "libcurl libvorbis libogg libao zlib libmikmod flac audiofile virtual/libiconv faad2 \
33c33
<		 --disable-curl \
---
>		 --enable-curl \

bitbake curl

bitbake mpd


Re: help building binary #5 hyperonex

  • Senior Member
  • 82 posts

+7
Neutral

Posted 23 February 2012 - 16:50

Which mipsel box are you building for ? Because I want to port openpli 2 for a starsat 200HD box which has a mipsel processor !

Re: help building binary #6 tr45h

  • Senior Member
  • 51 posts

0
Neutral

Posted 25 February 2012 - 11:54

ET9x00


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users