Compile from github osmc

Hi guys, i try to compile osmc from source but ubuntu return me this error.

Package armv7-toolchain-osmc 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
make: *** [rbp2] Error 1

Can you explain how to compile it?

Thanks :slight_smile:

cd toolchain/armv7-toolchain-osmc
make

Or add http://apt.osmc.tv jessie main to /etc/apt/sources.list for a precompiled toolchain.

1 Like

Thank you :slight_smile: and for build all for rpi2/3?

I go to /osmc/filesystem and make rbp2 return me this error

make[1]: *** [mainwindow.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/root/osmc/installer/target/buildroot-2014.05/output/build/osmc-1.0'
make: *** [/root/osmc/installer/target/buildroot-2014.05/output/build/osmc-1.0/.stamp_built] Error 2
Build failed
make: *** [rbp2] Error 1

any help?

That’s not the file system. That’s a target installer. I advise you check out the developer docs. You should only try and build osmc if you know what you are doing

where i found developer guide?

https://osmc.tv/wiki/

I read the documentation but there is no link for compile from source

Putting it all together

Information on completely building OSMC from source is covered in the article Building OSMC completely from source

I haven’t finished all of that documentation yet.

It depends what packages you want to build – if you’re making some changes, you probably don’t need to build the whole distribution, and you can build all the packages on an OSMC system itself if you install build-essential and git packages.

Sam

no i don’t want to change nothing, i want only understand how can i build image.

like yours from download page.

I’m interested too

You didn’t post the whole output, so it’s hard to see the issue.

did u mean to add apt.osmc.tv to package/rbp2-device-osmc/files/etc/apt/sources.list ? but i dont see any sources.list

i am getting the following error while running cd toolchain/armv7-toolchain-osmc
make
Setting up qemu-user-static (1:2.5+dfsg-5ubuntu10.14) …
update-binfmts: warning: unable to close /proc/sys/fs/binfmt_misc/register: Invalid argument
update-binfmts: warning: unable to enable binary format qemu-aarch64
update-binfmts: exiting due to previous errors
dpkg: error processing package qemu-user-static (–configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
qemu-user-static
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to install
Exiting build
Makefile:2: recipe for target ‘all’ failed
make: *** [all] Error 1