Gentoo, xbmc is not realy working
#1
Hi,
I needed a long time to get xbmc to work on Gentoo Linux an my Raspberry Pi.

I used the following Howto: http://www.raspbian.org/RaspbianXBMC

But I don't used "git://github.com/xbmc/xbmc-rbp.git". I used "git://github.com/xbmc/xbmc.git"

All works fine, exept the TexturePacker.

Code:
make -C tools/TexturePacker/
make[1]: Entering directory `/var/tmp/portage/xbmc/tools/TexturePacker'
make -C /var/tmp/portage/xbmc/lib/libsquish libsquish-native.so
make[2]: Entering directory `/var/tmp/portage/xbmc/lib/libsquish'
make[2]: »libsquish-native.so« ist bereits aktualisiert.
make[2]: Leaving directory `/var/tmp/portage/xbmc/lib/libsquish'
g++ -D_LINUX -DUSE_LZO_PACKING  -I. -I/var/tmp/portage/xbmc/lib -I/var/tmp/portage/xbmc/xbmc -I/var/tmp/portage/xbmc/xbmc/linux -I/var/tmp/portage/xbmc/include md5.cpp SDL_anigif.cpp XBTFWriter.cpp XBMCTex.cpp /var/tmp/portage/xbmc/xbmc/guilib/XBTF.cpp -L/lib -lSDL_image -lSDL -llzo2 -l/var/tmp/portage/xbmc/lib/libsquish -lsquish -Wl,-rpath=/lib -o TexturePacker
In file included from XBMCTex.cpp:42:0:
cmdlineargs.h:31:21: schwerwiegender Fehler: windows.h: Datei oder Verzeichnis nicht gefunden
Kompilierung beendet.
make[1]: *** [TexturePacker] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/xbmc/tools/TexturePacker'
make: *** [tools/TexturePacker/TexturePacker] Fehler 2

So I used, the whole TexturePacker-Folder from xbmc-rbp and I can compile.

Now I can start xbmc and navigate in the menu ...
But when I start a video (the test.h264) from hello_pi, the video is extremly green, the cpu is on 100% it's jerk.
The hello_video.bin works fine.

Here is the output from .xbmc/temp/xbmc.log: http://xbmclogs.com/show.php?id=40626

Also I see, that "vcgencmd codec_enabled h264" says:
Code:
RPI rpi # /opt/vc/bin/vcgencmd codec_enabled h264
h264=disabled
RPI rpi #

I hope you can help me,
dsiggi
Reply
#2
Try
vcgencmd codec_enabled H264

What gpu_mem do you have?
Reply
#3
Hi,
thanks for the tip. Here is h264 enabled.

I have used the standart mem settings. I changed it now to 128MB for the GPU.
Now the video picture is perfect, but it's not playing smooth. I think the hardware acceleration is not working.

dsiggi
Reply
#4
Hi,
I just noticed that I can't play any mp3-file.

Log: http://xbmclogs.com/show.php?id=40838


MOD EDIT: LOG SPAM REMOVED
Reply
#5
read the forum rules. no log spam directly on the forum and only full logs
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#6
(2013-07-30, 06:04)dsiggi Wrote: I have used the standart mem settings. I changed it now to 128MB for the GPU.
Now the video picture is perfect, but it's not playing smooth. I think the hardware acceleration is not working.

Have you enabled:
"Adjust display refresh rate to match video"
http://wiki.xbmc.org/index.php?title=Settings/Videos
Reply
#7
I can't enable it.
The only settings that I have, are the following:
Code:
Play the next video automatically: no
Display 4:3 video as: normal
Activate Teletext: yes
Scale Teletext to 4:3: yes

dsiggi
Reply
#8
Press left and change level to advanced.
Reply
#9
Here are my settings:
Code:
Play the next video automatically: no
Adjust display refresh rate to match video: Off
Sync playback to display: Off
Allowd error in aspect ratio to minimize black bars: None
Display 4:3 video as: normal
Activate Teletext: yes
Scale Teletext to 4:3: yes
Reply
#10
(2013-07-30, 20:27)dsiggi Wrote: Here are my settings:
Code:
Play the next video automatically: no
Adjust display refresh rate to match video: Off
Sync playback to display: Off
Allowd error in aspect ratio to minimize black bars: None
Display 4:3 video as: normal
Activate Teletext: yes
Scale Teletext to 4:3: yes

Have you tried with:
Adjust display refresh rate to match video: On
Reply
#11
Hi,
I activate it, but nothing changes.
I think that the harware accleration is not working.
The video quality is extremly good, but very very slow (2 FBS and 100% CPU). The CPU ist also on 100% when I'm only in the menu, without playing any video.

dsiggi
Reply
#12
I wonder if it's using dvdplayer rather than omxplayer?
Can you try with this advancedsettings file?
http://netlir.dk/rbej/builds/advancedset...ttings.xml
Reply
#13
Hi,
wehen I use your advancedsettings.xml it is the following.

When I will play a mp3-file, xbmc freeze: http://xbmclogs.com/show.php?id=42427
When I will play a video, nothing will happen: http://xbmclogs.com/show.php?id=42431

dsiggi
Reply
#14
(2013-08-05, 05:57)dsiggi Wrote: When I will play a video, nothing will happen: http://xbmclogs.com/show.php?id=42431

Raw h264 bitstreams aren't supported. Can you try with a video file in a container (e.g. mkv).
What source code (repo/branch/commit) are you using to build?
Reply
#15
Hi,
I tested it, with two mkv's (1080p) one with audio und one without.
And it works!
But xbmc has a 100% cpu load. Is this normal?

And when I will play a mp3-file, whole xbmc is freezing: http://xbmclogs.com/show.php?id=42563

Here are my steps to build xbmc:
Code:
# cd /opt/vc/include/interface/vcos/
# ln -s pthreads/* .
# cd /opt/vc/include/interface/vmcs_host/
# ln -s linux/vchost_config.h .
# ln -s /opt/vc/include/* /usr/include/
# ln -s /opt/vc/lib/* /usr/lib/
# cd /var/tmp/portage
# wget http://mirrors.xbmc.org/releases/source/xbmc-12.2.tar.gz
# tar xvf xbmc-12.2.tar.gz
# cd xbmc-12.2
# sed -i 's/USE_BUILDROOT=1/USE_BUILDROOT=0/' tools/rbp/setup-sdk.sh
# sed -i 's/TOOLCHAIN=\/usr\/local\/bcm-gcc/TOOLCHAIN=\/usr/' tools/rbp/setup-sdk.sh
# sh tools/rbp/setup-sdk.sh
# sed -i 's/cd $(SOURCE); $(CONFIGURE)/#cd $(SOURCE); $(CONFIGURE)/' tools/rbp/depends/xbmc/Makefile
# make -C tools/rbp/depends/xbmc/
# ./configure --prefix=/usr --build=armv6j-hardfloat-linux-gnueabi --host=armv6j-hardfloat-linux-gnueabi --localstatedir=/var/lib --with-platform=raspberry-pi --disable-gl --enable-gles --disable-x11 --disable-sdl --enable-optimizations --enable-external-libraries --disable-goom --disable-hal --disable-pulse --disable-vaapi --disable-vdpau --disable-xrandr --disable-airplay --disable-alsa --disable-avahi --disable-dvdcss --disable-debug --disable-joystick --disable-mid --disable-nfs --disable-profiling --disable-projectm --disable-rsxs --disable-rtmp --enable-external-ffmpeg --disable-vtbdecoder --disable-optical-drive --enable-webserver --enable-non-free --disable-libcec --disable-mysql --disable-ccache --enable-libmp3lame --enable-player=omxplayer
# sed -i 's/-msse2//' lib/libsquish/Makefile
# sed -i 's/-DSQUISH_USE_SSE=2//' lib/libsquish/Makefile
# patch -p1 < ../texture.patch
# make

This is the texture.patch:
Code:
--- xbmc/tools/TexturePacker/Makefile.in.o    2012-10-11 15:47:05.000000000 +0200
+++ xbmc/tools/TexturePacker/Makefile.in    2012-10-11 16:49:08.874850920 +0200
@@ -1,56 +1,54 @@
-DEFINES += -D_LINUX -DUSE_LZO_PACKING
+DEFINES       += -D_LINUX -DUSE_LZO_PACKING
ifneq ($(or $(findstring powerpc,@ARCH@),$(findstring ppc, @ARCH@)),)
-DEFINES += -DHOST_BIGENDIAN
+DEFINES       += -DHOST_BIGENDIAN
endif

-CXXFLAGS+= \
+SRCS           = \
+  md5.cpp \
+  SDL_anigif.cpp \
+  XBTFWriter.cpp \
+  XBMCTex.cpp \
+  @abs_top_srcdir@/xbmc/guilib/XBTF.cpp
+
+TARGET         = TexturePacker
+CLEAN_FILES    = $(TARGET)
+
+all: $(TARGET)
+
+HOST_CXX      ?= g++
+HOST_ROOT_PATH = @USE_TEXTUREPACKER_NATIVE_ROOT@
+
+LIBS          += -lSDL_image -lSDL -llzo2
+LIBS          += -L@abs_top_srcdir@/lib/libsquish -lsquish
+HOST_LIBS     += -L$(HOST_ROOT_PATH)/lib -lSDL_image -lSDL -llzo2
+HOST_LIBS     += -L@abs_top_srcdir@/lib/libsquish -lsquish-native
+
+CXXFLAGS      += \
   -I. \
   -I@abs_top_srcdir@/lib \
   -I@abs_top_srcdir@/xbmc \
   -I@abs_top_srcdir@/xbmc/linux

-RPATH=-Wl,-rpath=$(NATIVE_ROOT_PATH)/lib
+HOST_CXXFLAGS += \
+  -I. \
+  -I@abs_top_srcdir@/lib \
+  -I@abs_top_srcdir@/xbmc \
+  -I@abs_top_srcdir@/xbmc/linux \
+  -I$(HOST_ROOT_PATH)/include
+
+RPATH=-Wl,-rpath=$(HOST_ROOT_PATH)/lib

-ifeq (@USE_TEXTUREPACKER_NATIVE@,1)
-NATIVE_ROOT_PATH=@USE_TEXTUREPACKER_NATIVE_ROOT@
-ifdef NATIVE_ROOT_PATH
ifeq ($(findstring Darwin,$(shell uname -s)),Darwin)
DEFINES += -DTARGET_DARWIN
NATIVE_ARCH=@DARWIN_NATIVE_ARCH@
RPATH=
endif
-NATIVE_CXXFLAGS+= -I. \
-                  -I$(NATIVE_ROOT_PATH)/include \
-                  -I@abs_top_srcdir@/lib \
-                  -I@abs_top_srcdir@/xbmc \
-                  -I@abs_top_srcdir@/xbmc/linux
-NATIVE_LIBS    += -L$(NATIVE_ROOT_PATH)/lib
-endif
-NATIVE_LIBS    += -lSDL_image -lSDL -llzo2
-NATIVE_LIBS    += -L@abs_top_srcdir@/lib/libsquish -lsquish-native
-else
-LIBS    += -L@abs_top_srcdir@/lib/libsquish -lsquish
-endif
-
-LIBS    += -lSDL_image -lSDL -llzo2
-
-SRCS = \
-  md5.cpp \
-  SDL_anigif.cpp \
-  XBTFWriter.cpp \
-  XBMCTex.cpp \
-  @abs_top_srcdir@/xbmc/guilib/XBTF.cpp
-
-
-TARGET = TexturePacker
-CLEAN_FILES=$(TARGET)
-
-all: $(TARGET)

ifeq (@USE_TEXTUREPACKER_NATIVE@,1)
# TexturePacker run native on build system, build it with native tools
$(TARGET): $(SRCS) @abs_top_srcdir@/xbmc/guilib/XBTF.h
-    g++ $(DEFINES) $(NATIVE_ARCH) $(NATIVE_CXXFLAGS) $(SRCS) $(NATIVE_LIBS) $(RPATH) -o $(TARGET)
+    make -C @abs_top_srcdir@/lib/libsquish libsquish-native.so
+    $(HOST_CXX) $(DEFINES) $(NATIVE_ARCH) $(HOST_CXXFLAGS) $(SRCS) $(HOST_LIBS) $(RPATH) -o $(TARGET)
clean:
    rm -f $(TARGET)
else

dsiggi
Reply

Logout Mark Read Team Forum Stats Members Help
Gentoo, xbmc is not realy working0