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

meson build fails #1

Open
Tetsujinfr opened this issue Jun 17, 2020 · 2 comments
Open

meson build fails #1

Tetsujinfr opened this issue Jun 17, 2020 · 2 comments

Comments

@Tetsujinfr
Copy link

hi, not sure what I did wrong. I installed all the dependencies, then I am doing the following (I am on a Jetson with Jetpack 4.4, with ARM64 CPUs):

tetsfr@tets:/media/tetsfr/SSD$ git clone --recurse-submodules  https://github.com/meghprkh/libgamepad.git
Cloning into 'libgamepad'...
remote: Enumerating objects: 405, done.
remote: Counting objects: 100% (405/405), done.
remote: Compressing objects: 100% (157/157), done.
remote: Total 405 (delta 229), reused 405 (delta 229), pack-reused 0
Receiving objects: 100% (405/405), 84.52 KiB | 739.00 KiB/s, done.
Resolving deltas: 100% (229/229), done.
tetsfr@tets:/media/tetsfr/SSD$ cd libgamepad/
tetsfr@tets:/media/tetsfr/SSD/libgamepad$ mkdir build
tetsfr@tets:/media/tetsfr/SSD/libgamepad$ meson build/

The Meson build system
Version: 0.54.3
Source dir: /media/tetsfr/SSD/libgamepad
Build dir: /media/tetsfr/SSD/libgamepad/build
Build type: native build
Project name: LibGamepad
Project version: 1.0.0
C compiler for the host machine: cc (gcc 7.5.0 "cc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0")
C linker for the host machine: cc ld.bfd 2.30
Vala compiler for the host machine: valac (valac 0.40.19)
Host machine cpu family: aarch64
Host machine cpu: aarch64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency glib-2.0 found: YES 2.56.4
Run-time dependency gobject-2.0 found: YES 2.56.4
Run-time dependency gio-2.0 found: YES 2.56.4
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency gudev-1.0 found: YES 232
Run-time dependency libevdev found: YES 1.5.8

src/meson.build:64:0: ERROR: File /media/tetsfr/SSD/libgamepad/build/src/libgamepad.h does not exist.

A full log can be found at /media/tetsfr/SSD/libgamepad/build/meson-logs/meson-log.txt
@meghprkh
Copy link
Owner

meghprkh commented Jun 18, 2020

Hi, it seems that the vala compilation for meson has changed

https://mesonbuild.com/Vala.html#building-libraries

We need to build all three, a header, a GIR and a VAPI. I don't have access to a setup right now, but this shall be an easy change, let me know if you need help

More detailed steps afaik:

  • Remove vala_args in src/meson.build
  • For additional VAPI search path of /drivers/linux/vapis, use add_project_arguments as mentioned here
  • Get rid of the manual installs and use install_dir: [true, true, true, true]) as mentioned here

@Tetsujinfr
Copy link
Author

yes I would need more details on the steps to follow. I am not familiar with Meson, neither with Vala I am afraid. I do not know which path to add to the search with add_project_arguments and I do know how to use install_dir and where. I am quite confused on how to get it to compile properly.
thanks a lot for your help

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