egnor / pivid

Experimental video code for Linux / Raspberry Pi
MIT License
28 stars 4 forks source link

Update installation information #2

Closed pinballpower closed 2 years ago

pinballpower commented 2 years ago

I've added some information on how to compile it on Raspberry Pi OS Lite on a 2GB RAM model

pinballpower commented 2 years ago

Doesn't compile without meson here:

=== Prepare build (meson/ninja via conan) === Using lockfile: '/home/xxx/pivid/build/conan-install/conan.lock' Using cached profile from lockfile conanfile.py (pivid/0.0): Calling build() /bin/sh: 1: meson: not found ERROR: conanfile.py (pivid/0.0): Error in build() method, line 50 meson.configure() ConanException: Error 127 while executing meson "/home/xxx/pivid" "/home/xxx/pivid/build" --backend=ninja -Dprefix="/home/xxx/pivid/build/package" -Dlibdir="lib" -Dbindir="bin" -Dsbindir="bin" -Dlibexecdir="bin" -Dincludedir="include" -Ddefault_library="static" --buildtype=release Traceback (most recent call last): File "/home/xxx/pivid/./dev_setup.py", line 88, in check_call([ File "/usr/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '[PosixPath('/home/xxx/pivid/build/python_venv/bin/conan'), 'build', '--build-folder=/home/xxx/pivid/build', '--install-folder=/home/xxx/pivid/build/conan-install', '--configure', PosixPath('/home/matuschd/pivid')]' returned non-zero exit status 1.

egnor commented 2 years ago

[edited]

I think I see what the problem might be. Stand by.

egnor commented 2 years ago

OK I just pushed a change that should let dev_setup.py run successfully (without meson or ninja installed globally), give it a spin?

To build from the command line you'll need to make sure the direnv hook is installed in your shell, OR, run direnv exec . ninja -C build but that's kind of clumsy.

pinballpower commented 2 years ago

I definitely don't have any direnv hook in my shell. If this is required, it should also be added to the install document

egnor commented 2 years ago

Yeah that was an oversight. Will do.

egnor commented 2 years ago

Doc updated: https://github.com/egnor/pivid/blob/main/doc/running.md

Sorry about the troubles and thanks for the reports!