margro / xbmc

XBMC PVR Repository for the development of the MediaPortal and ForTheRecord pvr addons
http://www.scintilla.utwente.nl/~marcelg/xbmc/
Other
32 stars 14 forks source link

Error compiling tsreader lib for iOS #26

Closed TheChief79 closed 12 years ago

TheChief79 commented 12 years ago

MultiFileReader.cpp: In member function ‘long int MultiFileReader::GetFileLength(const char_, int64t&)’: MultiFileReader.cpp:607: error: aggregate ‘PLATFORM::stat64 filestatus’ has incomplete type and cannot be defined make: ** [MultiFileReader.o] Error 1

Any ideas?

TheChief79 commented 12 years ago

This should help:

diff --git a/xbmc/pvrclients/MediaPortal/lib/tsreader/IFile.h b/xbmc/pvrclients/MediaPortal/lib/tsreader/IFile.h
index 9497409..2d5e09a 100644
--- a/xbmc/pvrclients/MediaPortal/lib/tsreader/IFile.h
+++ b/xbmc/pvrclients/MediaPortal/lib/tsreader/IFile.h
@@ -20,6 +20,9 @@

 #include <iostream>
 #include "platform/util/StdString.h"
+#ifdef _LINUX
+#include "PlatformDefs.h" // for __stat64
+#endif

 namespace PLATFORM
 {

Taken from xbmc/filesystem/IFile.h

TheChief79 commented 12 years ago

I think you missed something. You have to include stdio.h or fpos_t is not defined. I took this code from PlatformDefs.h

diff --git a/xbmc/pvrclients/MediaPortal/posix/os_posix.h b/xbmc/pvrclients/MediaPortal/posix/os_posix.h
index 1d84517..0df6d2f 100644
--- a/xbmc/pvrclients/MediaPortal/posix/os_posix.h
+++ b/xbmc/pvrclients/MediaPortal/posix/os_posix.h
@@ -25,6 +25,9 @@
 #include <stdint.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#if defined(TARGET_DARWIN) || defined(__FreeBSD__)
+#include <stdio.h>
+#endif
margro commented 12 years ago

Thanks for your feedback! Difficult testing without a working xcode environment here...

Just curious: are you only building my XBMC fork or are you also a user of the MediaPortal PVR addon? I'm curious to know whether the current addon works on OSX or not.

TheChief79 commented 12 years ago

Thanks for changes!

I just build your fork for OSX/iOS/ATV2 and use it together with XVDR. Many users are from vdr-portal.de I do not know, if someone is using my build together with MP.

margro commented 12 years ago

Ah, ok. Will keep an eye on your vdr-portal.de thread. I've added a link to your OSX builds on my builds website.

jajoflo commented 12 years ago

I install your build on my ATV2 to do a quick test.

TheChief79 commented 12 years ago

I have the last build on my iPad installed. The MediaPortal addon is there, version 1.2.3.116. I can configure it, but have no MediaPortal to test. In the last build for ATV2 the MediaPortal addon is also included. So are you sure, that you installed the latest build?

But maybe you can send me a good link, how to setup a MediaPortal Server easily and quickly and i will test later.

ForTheRecord is also included, at the moment version 0.0.1.140.

jajoflo commented 12 years ago

Sorry my bad I did install the right version and the add on is there, it was activated (Probably with a previous build from REDF) and i just check the de-activated one. Anyway it's crashing when it tries to load the add-on, I will look at the log later. Has to install It pretty much install, scan and your good to go (Once you have an xmlTVGuide which is the biggest usually chalange) but maybe in EU it's more difficult than here.

TheChief79 commented 12 years ago

And try to clear EPG Database under System=>LiveTV=>EPG and/or reset your XBMC settings as described.