Jump to content


Photo

How To - Installing Plex on Ubuntu 12.10 64bit


  • Please log in to reply
49 replies to this topic

#41 RocketMan

RocketMan

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 17 July 2013 - 05:20 PM

I am getting the same error on Linux Mint 15.

 

proteus@proteus-emachine ~/plex-linux $ sudo make install
Copying XBMC binary to /usr/local/lib/xbmc/xbmc.bin
install: cannot stat ‘xbmc.bin’: No such file or directory
make: *** [install-binaries] Error 1

 

 

Does anyone know how this can be resolved??? Thanks!



#42 RocketMan

RocketMan

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 18 July 2013 - 08:56 PM

I executed "sudo make -d" to see if I could determine if there were any errors during the make. Following are the last 23 lines. Note the errors for zlib.h:

 

Live child 0x00a22c20 (FileFactory.o) PID 18818
In file included from FileZip.h:29:0,
                 from FileFactory.cpp:61:

/usr/include/zlib.h:86:5: error: ‘z_const’ does not name a type
/usr/include/zlib.h:94:5: error: ‘z_const’ does not name a type
/usr/include/zlib.h:1324:29: error: ‘voidpc’ has not been declared
/usr/include/zlib.h:1332:32: error: expected initializer before ‘Z_ARG’
/usr/include/zlib.h:1656:5: error: ‘z_off64_t’ does not name a type
/usr/include/zlib.h:1731:15: error: ‘z_crc_t’ does not name a type

In file included from ../PlayList.h:23:0,
                 from FilePlaylist.h:6,
                 from FileFactory.cpp:70:
../FileItem.h: In constructor ‘MediaPart::MediaPart(int, const string&, int)’:
../FileItem.h:107:15: warning: ‘MediaPart::key’ will be initialized after [-Wreorder]
../FileItem.h:106:7: warning:   ‘int MediaPart::duration’ [-Wreorder]
../FileItem.h:102:3: warning:   when initialized here [-Wreorder]
Reaping losing child 0x00a22c20 PID 18818

typedef struct z_stream_s {
    z_const Bytef *next_in;     /* next input byte */
    uInt     avail_in;  /* number of bytes available at next_in */
    uLong    total_in;  /* total number of input bytes read so far */

    Bytef    *next_out; /* next output byte should be put there */
    uInt     avail_out; /* remaining free space at next_out */
    uLong    total_out; /* total number of bytes output so far */

    z_const char *msg;  /* last error message, NULL if no error */
    struct internal_state FAR *state; /* not visible by applications */

    alloc_func zalloc;  /* used to allocate the internal state */
    free_func  zfree;   /* used to free the internal state */
    voidpf     opaque;  /* private data object passed to zalloc and zfree */

    int     data_type;  /* best guess about the data type: binary or text */
    uLong   adler;      /* adler32 value of the uncompressed data */
    uLong   reserved;   /* reserved for future use */
} z_stream;

 

 

ZEXTERN int ZEXPORT gzwrite OF((gzFile file,
                                voidpc buf, unsigned len));

make[1]: *** [FileFactory.o] Error 1
Removing child 0x00a22c20 PID 18818 from chain.
make[1]: Leaving directory `/home/proteus/plex-linux/xbmc/FileSystem'
Reaping losing child 0x018b9220 PID 18808
make: *** [xbmc/FileSystem/filesystem.a] Error 2
Removing child 0x018b9220 PID 18808 from chain.

 

Here's the error lines from zlib.h highlighted in red:

 

typedef struct z_stream_s {
    z_const Bytef *next_in;     /* next input byte */ /* line 86 */
    uInt     avail_in;  /* number of bytes available at next_in */
    uLong    total_in;  /* total number of input bytes read so far */

    Bytef    *next_out; /* next output byte should be put there */
    uInt     avail_out; /* remaining free space at next_out */
    uLong    total_out; /* total number of bytes output so far */


    z_const char *msg;  /* last error message, NULL if no error */ /* line 94 */
    struct internal_state FAR *state; /* not visible by applications */

    alloc_func zalloc;  /* used to allocate the internal state */
    free_func  zfree;   /* used to free the internal state */
    voidpf     opaque;  /* private data object passed to zalloc and zfree */

    int     data_type;  /* best guess about the data type: binary or text */
    uLong   adler;      /* adler32 value of the uncompressed data */
    uLong   reserved;   /* reserved for future use */
} z_stream;

 

 

ZEXTERN int ZEXPORT gzwrite OF((gzFile file,   /* line 1324 */
                                voidpc buf, unsigned len));

 

ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...)); /* line 1332 */

 

#else
#  define gzgetc(g) \

          ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g)) /* line 1656 */
#endif

 

/* undocumented functions */
ZEXTERN const char   * ZEXPORT zError           OF((int));
ZEXTERN int            ZEXPORT inflateSyncPoint OF((z_streamp));

ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table    OF((void)); /* line 1731 */
ZEXTERN int            ZEXPORT inflateUndermine OF((z_streamp, int));

 

Does anyone have any idea if this is what's causing xbmc.bin not to be built and, if so, can it be fixed?

 

Any help here is appreciated. Thanks.



#43 logy

logy

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 27 July 2013 - 07:28 AM

on XUbuntu 13.04 Raring Ringtail i got the same

 

this does it for me:

 

1. backup existing zlib.h

mv /usr/include/zlib.h /usr/include/zlib.h.bkp

2. copy zlib.h zconf.h zlib.li from xbmc/lib/zlib folder of the git cloned files to /usr/include

cd ~/
cp plex-linux/xbmc/lib/zlib/z* /usr/include


#44 cirkator

cirkator

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 04 August 2013 - 07:41 PM

Thanks!
I will try that when I get home from my holidays.

#45 supergillis

supergillis

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 10 August 2013 - 09:36 AM

I executed "sudo make -d" to see if I could determine if there were any errors during the make. Following are the last 23 lines. Note the errors for zlib.h:

 

Live child 0x00a22c20 (FileFactory.o) PID 18818
In file included from FileZip.h:29:0,
                 from FileFactory.cpp:61:

/usr/include/zlib.h:86:5: error: ‘z_const’ does not name a type
/usr/include/zlib.h:94:5: error: ‘z_const’ does not name a type
/usr/include/zlib.h:1324:29: error: ‘voidpc’ has not been declared
/usr/include/zlib.h:1332:32: error: expected initializer before ‘Z_ARG’
/usr/include/zlib.h:1656:5: error: ‘z_off64_t’ does not name a type
/usr/include/zlib.h:1731:15: error: ‘z_crc_t’ does not name a type

In file included from ../PlayList.h:23:0,
                 from FilePlaylist.h:6,
                 from FileFactory.cpp:70:
../FileItem.h: In constructor ‘MediaPart::MediaPart(int, const string&, int)’:
../FileItem.h:107:15: warning: ‘MediaPart::key’ will be initialized after [-Wreorder]
../FileItem.h:106:7: warning:   ‘int MediaPart::duration’ [-Wreorder]
../FileItem.h:102:3: warning:   when initialized here [-Wreorder]
Reaping losing child 0x00a22c20 PID 18818

typedef struct z_stream_s {
    z_const Bytef *next_in;     /* next input byte */
    uInt     avail_in;  /* number of bytes available at next_in */
    uLong    total_in;  /* total number of input bytes read so far */

    Bytef    *next_out; /* next output byte should be put there */
    uInt     avail_out; /* remaining free space at next_out */
    uLong    total_out; /* total number of bytes output so far */

    z_const char *msg;  /* last error message, NULL if no error */
    struct internal_state FAR *state; /* not visible by applications */

    alloc_func zalloc;  /* used to allocate the internal state */
    free_func  zfree;   /* used to free the internal state */
    voidpf     opaque;  /* private data object passed to zalloc and zfree */

    int     data_type;  /* best guess about the data type: binary or text */
    uLong   adler;      /* adler32 value of the uncompressed data */
    uLong   reserved;   /* reserved for future use */
} z_stream;

 

 

ZEXTERN int ZEXPORT gzwrite OF((gzFile file,
                                voidpc buf, unsigned len));

make[1]: *** [FileFactory.o] Error 1
Removing child 0x00a22c20 PID 18818 from chain.
make[1]: Leaving directory `/home/proteus/plex-linux/xbmc/FileSystem'
Reaping losing child 0x018b9220 PID 18808
make: *** [xbmc/FileSystem/filesystem.a] Error 2
Removing child 0x018b9220 PID 18808 from chain.

 

Here's the error lines from zlib.h highlighted in red:

 

typedef struct z_stream_s {
    z_const Bytef *next_in;     /* next input byte */ /* line 86 */
    uInt     avail_in;  /* number of bytes available at next_in */
    uLong    total_in;  /* total number of input bytes read so far */

    Bytef    *next_out; /* next output byte should be put there */
    uInt     avail_out; /* remaining free space at next_out */
    uLong    total_out; /* total number of bytes output so far */


    z_const char *msg;  /* last error message, NULL if no error */ /* line 94 */
    struct internal_state FAR *state; /* not visible by applications */

    alloc_func zalloc;  /* used to allocate the internal state */
    free_func  zfree;   /* used to free the internal state */
    voidpf     opaque;  /* private data object passed to zalloc and zfree */

    int     data_type;  /* best guess about the data type: binary or text */
    uLong   adler;      /* adler32 value of the uncompressed data */
    uLong   reserved;   /* reserved for future use */
} z_stream;

 

 

ZEXTERN int ZEXPORT gzwrite OF((gzFile file,   /* line 1324 */
                                voidpc buf, unsigned len));

 

ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...)); /* line 1332 */

 

#else
#  define gzgetc(g) \

          ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g)) /* line 1656 */
#endif

 

/* undocumented functions */
ZEXTERN const char   * ZEXPORT zError           OF((int));
ZEXTERN int            ZEXPORT inflateSyncPoint OF((z_streamp));

ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table    OF((void)); /* line 1731 */
ZEXTERN int            ZEXPORT inflateUndermine OF((z_streamp, int));

 

Does anyone have any idea if this is what's causing xbmc.bin not to be built and, if so, can it be fixed?

 

Any help here is appreciated. Thanks.

 

 

The bug report on debian.org states that you can just remove xbmc/FileSystem/zconf.h. See http://bugs.debian.o....cgi?bug=707537

 

Removing that file allowed me to compile it on Debian Jessie. I've forked gewalker's repository and committed the patch. See https://github.com/s...aafc4d65e8b6271

 

Good luck!



#46 peiopeio

peiopeio

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 19 August 2013 - 01:35 PM

I managed to compile it on my LMDE distro but when I select anything in the menu I get a black screen. I can just go back but obviously it's not usable. Any idea ?



#47 cirkator

cirkator

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 20 August 2013 - 09:03 PM

The same is happening to me....

#48 Penetal

Penetal

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 02 September 2013 - 07:20 PM

If you are having problems with the message that xbmc.bin is being an evasive ass, I have found 2 possible things to help you on your way.

 

from the submodule config I made sure that the address pointing to the xbmc/ffmpeg had ".git" at the end, not sure if that actually matters, but I did add it anyway.

 

 

make sure you have libGL.so installed.

From my install:

 

/usr/lib/x86_64-linux-gnu/libGL.so -> libGL.so.1
 

 

This is used during the 
make

process.

 

PS

for me cloning from HTTPS almost always failed during the download. Saying the remote host disconnected or something. So I got myself a github account, and added the ssh key to it. that way I could easily use the git@github.com:gewalker/plex-linux link for cloning instead. This always works without it being interrupted midways.



#49 BoostFlow

BoostFlow

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 02 September 2013 - 11:07 PM

I used the tutorial in this topic to install PMC on a fres install of ubuntu 12.04 LTS. I followed the tutorial with the adjustments for 12.04:

 

Change libboost1.49-all-dev to libboost-all-dev

Change /usr/lib/x86_64-linux-gnu/libfaad.so to /usr/lib/libfaad.so

 

Plex Media Center starts up perfect and everything is detected including audio. However when I start a movie / tv show plex popsup with please wait and than nothing. I can resume browsing my videos but there is no playback. Same goes for the YouTube plugin. I tried glxgears and the proprietary amd driver is working. I can also see my movie database and my iOS device detects the PMC running on Ubuntu.

 

Is there something i'm doing wrong?



#50 stuhad

stuhad

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 16 December 2013 - 01:21 AM

Is it possible to update the client, can someone help me get started with the commands needed? Thanks






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users