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

ninja failes to compile gobject-introspection #4213

Closed
RossComputerGuy opened this issue Aug 23, 2019 · 4 comments
Closed

ninja failes to compile gobject-introspection #4213

RossComputerGuy opened this issue Aug 23, 2019 · 4 comments

Comments

@RossComputerGuy
Copy link
Contributor

RossComputerGuy commented Aug 23, 2019

Problem description
I'm compiling gobject-introspection so I can make GTK themes using Oomox on my phone and ran into an error that I don't know how to handle.

Steps to reproduce
After compiling and installing meson, and setting up gobject-introspect with the meson command run ninja. This error should show up:

ImportError: dlopen failed: cannot locate symbol "PyExc_RuntimeError" referenced by "/data/data/com.termux/files/home/gobject-introspection/build/giscanner/_giscanner.cpython-37m.so"...
[71/140] Compiling C o...-1.0@sha/regress.c.o'.
ninja: build stopped: subcommand failed.

Expected behavior
gobject-introspection should compile

Additional information

Updatable packages:
cmake/stable 3.15.2-1 aarch64 [upgradable from: 3.15.2]
Subscribed repositories:
ttps://dl.bintray.com/xeffyr/x11-packages-24 x11/main
https://dl.bintray.com/grimler/science-packages-24 science/stable
https://dl.bintray.com/grimler/game-packages-24 games/stable
https://dl.bintray.com/termux/termux-packages-24 stable/main
System information:
Linux localhost 4.4.153-15480849 #2 SMP PREEMPT Thu Jul 4 21:10:33 KST 2019 aarch64 Android
Termux-packages arch:
aarch64
Android version:
9
Device manufacturer:
samsung
Device model:
SM-G950U
@ghost
Copy link

ghost commented Aug 23, 2019

build/giscanner/_giscanner.cpython-37m.so has to be linked with python lib.
You are running into android/ndk#201.

@RossComputerGuy
Copy link
Contributor Author

I didn't see a way to fix this, what's the solution to fixing this?

@RossComputerGuy
Copy link
Contributor Author

Nevermind, adding $PREFIX/lib/libpython3.7m.so to LD_PRELOAD fixed it

@RossComputerGuy
Copy link
Contributor Author

Installing mako from pip produces an error saying its not found, running sed -i "s|python3|python2|g" build/**/*.ninja. Then python headers are needed so python-static is needed.

@ghost ghost closed this as completed Sep 22, 2019
@ghost ghost locked and limited conversation to collaborators Oct 9, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant