How to install self compiled image?

Is there a specific reason you need to use your own image?
After building the target installer, you can write it to a USB or SD card.

Hi Sam,

i know that, but do i have to rename it for the installer to be recognized? Or just extract to usb?

Ok, got it :wink:

Are vero2 and 3 identical? Because in gmc-18 vero3 doesn’t exist! :wink:

No, different SoC.

Does it mean, i can’t build gmc-18 for vero3, or is there a way to do that?

Well?

Thanks for answering, i’ve meant building the git for vero3, need just a little hint. :slight_smile:

Why are you trying to build it? It’s been pre-built for you.

Because i would like to go more into it, that’s all, compiling all my devices, if it’s possible, by myself. :wink:

cu

Look at mediacenter-next-osmc package.

Not sure why you want to build your own image as you will end up with the same .deb file, unless you want to do some custom compiling.

If you really want to do it yourself though you check out this wiki with the steps:
(Still need to update the wiki for stretch but should be enough to get you going)

Thx for the information! I’ll give it a try. :wink:

cu

Complains about libmariadbclient:

 Package libmodplug-dev is already installed in the environment
Package libmpeg2-4-dev is already installed in the environment
Package libmpeg3-dev is already installed in the environment
Package libmariadbclient-dev-compat is not found on the system, checking APT
Can't find the package in APT repo. It needs to be built first or you need to wait for upstream to add it
Makefile:20: recipe for target 'vero3' failed
make: *** [vero3] Error 1
make: Leaving directory '/mnt/package/mediacenter-next-osmc'
Makefile:20: die Regel für Ziel „vero3“ scheiterte
make: *** [vero3] Fehler 2

any clues?

Have you upgraded to stretch?

yes, i did, but i compile on my stretch workstation, which is amd64. :wink:

I’ve replaced jessie in the makefile through stretch later on for osmc-tc, but then the tc fails.

Enabling networking
Adding apt key
--2018-01-05 18:47:44--  http://apt.osmc.tv/apt.key
Auflösen des Hostnamens »apt.osmc.tv (apt.osmc.tv)« … 159.253.212.250
Verbindungsaufbau zu apt.osmc.tv (apt.osmc.tv)|159.253.212.250|:80 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found
Platz: http://ftp.fau.de/osmc/osmc/apt/apt.key [folgend]
--2018-01-05 18:47:44--  http://ftp.fau.de/osmc/osmc/apt/apt.key
Auflösen des Hostnamens »ftp.fau.de (ftp.fau.de)« … 131.188.12.211, 2001:638:a000:1021:21::1
Verbindungsaufbau zu ftp.fau.de (ftp.fau.de)|131.188.12.211|:80 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 1727 (1,7K) [application/pgp-keys]
Wird in »»opt/osmc-tc/armv7-toolchain-osmc/tmp/key«« gespeichert.

opt/osmc-tc/armv7-toolch 100%[================================>]   1,69K  --.-KB/s    in 0s      

2018-01-05 18:47:44 (216 MB/s) - »»opt/osmc-tc/armv7-toolchain-osmc/tmp/key«« gespeichert [1727/1727]

E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
Exiting build with return code 255
Makefile:2: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 1

Try building on the vero3. Going to be a lot simpler and quicker.

Ok :wink::sunglasses:

Hi gmc,

now complaining about -lpthreads, and u were right, much faster on the vero! :wink:

/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e67fa.dir/link.txt --verbose=1
/usr/bin/cc  -O3 -fomit-frame-pointer -I/usr/osmc/include -L/usr/osmc/lib -I/opt/vero3/include -Wl,-rpath=/usr/osmc/lib -L/usr/osmc/lib -DCHECK_FUNCTION_EXISTS=pthread_create  -L/opt/vero3/lib  CMakeFiles/cmTC_e67fa.dir/CheckFunctionExists.c.o  -o cmTC_e67fa -rdynamic -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_e67fa.dir/build.make:97: recipe for target 'cmTC_e67fa' failed
make[1]: *** [cmTC_e67fa] Error 1
make[1]: Leaving directory '/mnt/package/mediacenter-next-osmc/src/xbmc-a4ad91e06a77b05ea5c7804cfe1707fe52596be2/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_e67fa/fast' failed
make: *** [cmTC_e67fa/fast] Error 2

A whole log might give some clues. A snippet unfortunately won’t.

Sorry Sam,

here is the log:

CMakeError:

Determining if the pthread_create exist failed with the following output:
Change Dir: /mnt/package/mediacenter-next-osmc/src/xbmc-a4ad91e06a77b05ea5c7804cfe1707fe52596be2/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_8874d/fast"
/usr/bin/make -f CMakeFiles/cmTC_8874d.dir/build.make CMakeFiles/cmTC_8874d.dir/build
make[1]: Entering directory '/mnt/package/mediacenter-next-osmc/src/xbmc-a4ad91e06a77b05ea5c7804cfe1707fe52596be2/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_8874d.dir/CheckSymbolExists.c.o
/usr/bin/cc    -O3 -fomit-frame-pointer -I/usr/osmc/include -L/usr/osmc/lib -I/opt/vero3/include -Wl,-rpath=/usr/osmc/lib -L/usr/osmc/lib    -o CMakeFiles/cmTC_8874d.dir/CheckSymbolExists.c.o   -c /mnt/package/mediacenter-next-osmc/src/xbmc-a4ad91e06a77b05ea5c7804cfe1707fe52596be2/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_8874d
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8874d.dir/link.txt --verbose=1
/usr/bin/cc  -O3 -fomit-frame-pointer -I/usr/osmc/include -L/usr/osmc/lib -I/opt/vero3/include -Wl,-rpath=/usr/osmc/lib -L/usr/osmc/lib   -L/opt/vero3/lib  CMakeFiles/cmTC_8874d.dir/CheckSymbolExists.c.o  -o cmTC_8874d -rdynamic 
CMakeFiles/cmTC_8874d.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text.startup+0x14): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_8874d.dir/build.make:97: recipe for target 'cmTC_8874d' failed
make[1]: *** [cmTC_8874d] Error 1
make[1]: Leaving directory '/mnt/package/mediacenter-next-osmc/src/xbmc-a4ad91e06a77b05ea5c7804cfe1707fe52596be2/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_8874d/fast' failed
make: *** [cmTC_8874d/fast] Error 2

File /mnt/package/mediacenter-next-osmc/src/xbmc-a4ad91e06a77b05ea5c7804cfe1707fe52596be2/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /mnt/package/mediacenter-next-osmc/src/xbmc-a4ad91e06a77b05ea5c7804cfe1707fe52596be2/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_e67fa/fast"
/usr/bin/make -f CMakeFiles/cmTC_e67fa.dir/build.make CMakeFiles/cmTC_e67fa.dir/build
make[1]: Entering directory '/mnt/package/mediacenter-next-osmc/src/xbmc-a4ad91e06a77b05ea5c7804cfe1707fe52596be2/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_e67fa.dir/CheckFunctionExists.c.o
/usr/bin/cc    -O3 -fomit-frame-pointer -I/usr/osmc/include -L/usr/osmc/lib -I/opt/vero3/include -Wl,-rpath=/usr/osmc/lib -L/usr/osmc/lib -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_e67fa.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.7/Modules/CheckFunctionExists.c
Linking C executable cmTC_e67fa
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e67fa.dir/link.txt --verbose=1
/usr/bin/cc  -O3 -fomit-frame-pointer -I/usr/osmc/include -L/usr/osmc/lib -I/opt/vero3/include -Wl,-rpath=/usr/osmc/lib -L/usr/osmc/lib -DCHECK_FUNCTION_EXISTS=pthread_create  -L/opt/vero3/lib  CMakeFiles/cmTC_e67fa.dir/CheckFunctionExists.c.o  -o cmTC_e67fa -rdynamic -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_e67fa.dir/build.make:97: recipe for target 'cmTC_e67fa' failed
make[1]: *** [cmTC_e67fa] Error 1
make[1]: Leaving directory '/mnt/package/mediacenter-next-osmc/src/xbmc-a4ad91e06a77b05ea5c7804cfe1707fe52596be2/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_e67fa/fast' failed
make: *** [cmTC_e67fa/fast] Error 2