jhass / crystal-gobject

gobject-introspection for Crystal
BSD 3-Clause "New" or "Revised" License
127 stars 13 forks source link

Can't Compile on OpenSUSE - Cannot Find -lgirepositry-1.0 #90

Closed Tarbetu closed 3 years ago

Tarbetu commented 3 years ago

Hi. I'm using an OpenSUSE Tumbleweed system and I'm on Gnome.

When I'm trying to crystal run gtk_hello_world.cr command, I get this kind of error:

samples ) LANG=C crystal run gtk_hello_world.cr
/usr/lib64/gcc/x86_64-suse-linux/11/../../../../x86_64-suse-linux/bin/ld: cannot find -lgirepository-1.0 (this usually means you need to install the development package for libgirepository-1.0)
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc "${@}" -o '/home/emre/.cache/crystal/home-emre-Genel-Crystal-crystal-gobject-samples-lib-gobject-generator-build_namespace.cr/macro_run'  -rdynamic -L/usr/bin/../lib64/crystal/lib -lgirepository-1.0 -lgobject-2.0 -lglib-2.0  -lpcre -lm -lgc -lpthread -levent  -lrt -ldl`

However, the "girepository-1_0" and "libgirepository-1_0-1" packages are installed in my system.

Tarbetu commented 3 years ago

Never mind. The only thing I need is the "gobject-introspection-devel" package.