acrisci / gi-library-boilerplate Goto Github PK
View Code? Open in Web Editor NEWJust some stuff to get you started with a new library
License: GNU General Public License v3.0
Just some stuff to get you started with a new library
License: GNU General Public License v3.0
Hi,
I tried to build the package & use Maman boilerplate using gi.
However, gi doesn't seem to find Maman.
Can you please help me?
Library build is okay:
$ ls -al maman/.libs/
total 176
drwxrwxr-x 2 gvkalra gvkalra 4096 Jul 14 20:09 .
drwxrwxr-x 4 gvkalra gvkalra 4096 Jul 14 20:09 ..
-rw-rw-r-- 1 gvkalra gvkalra 59024 Jul 14 20:09 libmaman-1.0.a
lrwxrwxrwx 1 gvkalra gvkalra 18 Jul 14 20:09 libmaman-1.0.la -> ../libmaman-1.0.la
-rw-rw-r-- 1 gvkalra gvkalra 993 Jul 14 20:09 libmaman-1.0.lai
lrwxrwxrwx 1 gvkalra gvkalra 21 Jul 14 20:09 libmaman-1.0.so -> libmaman-1.0.so.0.0.0
lrwxrwxrwx 1 gvkalra gvkalra 21 Jul 14 20:09 libmaman-1.0.so.0 -> libmaman-1.0.so.0.0.0
-rwxrwxr-x 1 gvkalra gvkalra 40792 Jul 14 20:09 libmaman-1.0.so.0.0.0
-rw-rw-r-- 1 gvkalra gvkalra 13968 Jul 14 20:09 maman-bar.o
-rw-rw-r-- 1 gvkalra gvkalra 30744 Jul 14 20:09 maman-baz.o
-rw-rw-r-- 1 gvkalra gvkalra 14376 Jul 14 20:09 maman-ibaz.o
$ ls -al
total 1096
drwxrwxr-x 5 gvkalra gvkalra 4096 Jul 14 20:13 .
drwxr-xr-x 3 gvkalra gvkalra 4096 Jul 14 20:00 ..
-rw-rw-r-- 1 gvkalra gvkalra 66395 Jul 14 20:08 aclocal.m4
-rwxr-xr-x 1 gvkalra gvkalra 61 Mar 21 00:26 autogen.sh
drwxr-xr-x 2 gvkalra gvkalra 4096 Jul 14 20:08 autom4te.cache
drwxr-xr-x 3 gvkalra gvkalra 4096 Jul 14 20:08 build
-rw-rw-r-- 1 gvkalra gvkalra 1805 Jul 14 20:08 config.h
-rw-rw-r-- 1 gvkalra gvkalra 1611 Jul 14 20:08 config.h.in
-rw-rw-r-- 1 gvkalra gvkalra 1611 Jul 14 20:07 config.h.in~
-rw-rw-r-- 1 gvkalra gvkalra 25143 Jul 14 20:08 config.log
-rwxrwxr-x 1 gvkalra gvkalra 58986 Jul 14 20:08 config.status
-rwxrwxr-x 1 gvkalra gvkalra 462411 Jul 14 20:08 configure
-rw-rw-r-- 1 gvkalra gvkalra 1249 Mar 21 00:26 configure.ac
-rw-rw-r-- 1 gvkalra gvkalra 35148 Mar 21 00:26 COPYING
-rwxr-xr-x 1 gvkalra gvkalra 1684 Mar 21 00:26 generate-boilerplate.pl
-rw-rw-r-- 1 gvkalra gvkalra 6 Mar 21 00:26 .gitignore
-rwxrwxr-x 1 gvkalra gvkalra 339491 Jul 14 20:08 libtool
-rw-rw-r-- 1 gvkalra gvkalra 26968 Jul 14 20:08 Makefile
-rw-rw-r-- 1 gvkalra gvkalra 102 Mar 21 00:26 Makefile.am
-rw-rw-r-- 1 gvkalra gvkalra 26654 Jul 14 20:08 Makefile.in
drwxrwxr-x 4 gvkalra gvkalra 4096 Jul 14 20:09 maman
-rw-rw-r-- 1 gvkalra gvkalra 2699 Mar 21 00:26 README.md
-rw-rw-r-- 1 gvkalra gvkalra 23 Jul 14 20:08 stamp-h1
-rw-rw-r-- 1 gvkalra gvkalra 166 Jul 14 20:13 test.py
Paths are exported
$ export GI_TYPELIB_PATH=/home/gvkalra/Downloads/gi-library-boilerplate-master/maman:$GI_TYPELIB_PATH
$ export LD_LIBRARY_PATH=/home/gvkalra/Downloads/gi-library-boilerplate-master/maman/.libs:$LD_LIBRARY_PATH
This is a test script (from blog post)
$ cat test.py
#!/usr/bin/env python3
from gi.repository import Maman
# Create a new object
bar = Maman.Bar()
# Say hello to bar
words = bar.speak('Hello, world!')
print(words)
Unable to import Maman:
$ python test.py
Traceback (most recent call last):
File "test.py", line 3, in <module>
from gi.repository import Maman
ImportError: cannot import name Maman
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.