Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPi installation instructions do not work #14

Open
NickWaterton opened this issue Feb 2, 2019 · 10 comments
Open

RPi installation instructions do not work #14

NickWaterton opened this issue Feb 2, 2019 · 10 comments

Comments

@NickWaterton
Copy link

I am looking for a simple graphics package for RPi3. This looks promising, but the installation instructions are incorrect, and there are no instructions for building from source.

Specifically for RPi the file https://github.com/ev3dev/grx/raw/ev3dev-stretch/.travis/ev3dev-archive-keyring.gpg does not exist, so you can’t install from the repository.

I cloned the git, but none of the standard build tools work, and I don’t know the dependencies.

I could spend a lot of time working it out, but why not make it easy? Just provide some build/install instructions.

@NickWaterton
Copy link
Author

BTW this is what I get (checked out the stretch branch).

pi@raspberrypi:~/grx/build $ cmake -L -DCMAKE_BUILD_TYPE="Release" ..
CMake Error at /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find GLibGenMarshal (missing: GLIB_GENMARSHAL_EXE)
Call Stack (most recent call first):
  /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindGLibGenMarshal.cmake:32 (find_package_handle_standard_args)
  src/CMakeLists.txt:215 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/pi/grx/build/CMakeFiles/CMakeOutput.log".
-- Cache values
CMAKE_BUILD_TYPE:STRING=Release
CMAKE_INSTALL_PREFIX:PATH=/usr/local
GRX_DEBUG:STRING=OFF
GRX_ENABLE_DOC:BOOL=Yes
GRX_PLUGIN_GTK3:BOOL=Yes
GRX_PLUGIN_LINUXFB:BOOL=Yes

@dlech
Copy link
Member

dlech commented Feb 2, 2019

Thanks for the feedback. Did you see this? https://github.com/ev3dev/grx/wiki/Compiling-the-code#advanced-command-line

@NickWaterton
Copy link
Author

No, that is well hidden. Thanks!

I have VSCode on my Windows setup, but not on my server (it’s headless). This is a good starting point though.

I’ll give it a try, thanks for the fast response.

@NickWaterton
Copy link
Author

Ok, there is no ./setup.deb.py file. Any way you can just tell me what the dependencies are?

@dlech
Copy link
Member

dlech commented Feb 2, 2019

you can find the build dependencies here: https://github.com/ev3dev/grx/blob/ev3dev-stretch/debian/control

@NickWaterton
Copy link
Author

NickWaterton commented Feb 2, 2019

So after an hour of guess the dependency hell, I got it to compile and install (14 warnings, but anyway).

Still can’t run any python examples.

/usr/local/lib/grx-3.0/examples/python/boxes.py
Traceback (most recent call last):
  File "/usr/local/lib/grx-3.0/examples/python/boxes.py", line 24, in <module>
    gi.require_version('Grx', '3.0')
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 118, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Grx not available

Looks like another missing dependency, but I don’t know what.

Any suggestions?

@dlech
Copy link
Member

dlech commented Feb 2, 2019

Did you set all of the environment variables?

https://github.com/ev3dev/grx/wiki/Running-Programs#environment-variables

@NickWaterton
Copy link
Author

NickWaterton commented Feb 2, 2019

Ah Ha!

So - success! got boxes.py to run. Great - just got to get console-runner to install now...

Note: you need to run ldconfig as well before the libraries are found.

Thanks for all the help. Hopefully this will do what I'm looking for.

@dlech
Copy link
Member

dlech commented Feb 2, 2019

IMHO, it would be easier to just install everything from the debian packages. Here is the missing keyring. You can unzip it an save it in /etc/apt/trusted.gpg.d/.

keyring.tar.gz

@dlech
Copy link
Member

dlech commented Feb 2, 2019

Or you can just grab the .deb files and install them with sudo dpkg -i <filename> (and sudo apt install -f to fix missing dependencies).

e.g. http://archive.ev3dev.org/raspbian/pool/main/c/console-runner/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants