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

Fails to compile on Ubuntu 16.04 #79

Closed
probonopd opened this issue Sep 26, 2016 · 5 comments
Closed

Fails to compile on Ubuntu 16.04 #79

probonopd opened this issue Sep 26, 2016 · 5 comments

Comments

@probonopd
Copy link

Trying to compile on Ubuntu 16.04:

sudo apt install cmake libglib2.0-dev libxml2-dev libyaml-dev gobject-introspection
git clone https://github.com/ximion/appstream.git
cd appstream/
mkdir build
cd build
cmake -DSTEMMING=OFF ..

-- Compiling AppStream version 0.10.2
-- Checking for module 'gobject-introspection-1.0'
--   No package 'gobject-introspection-1.0' found
CMake Error at src/CMakeLists.txt:24 (message):
  GObject introspection scanner was not found! Please install it to continue.

Is the gobject-introspection package not the correct one?

@ximion
Copy link
Owner

ximion commented Sep 26, 2016

That is the right package - do you also have libgirepository1.0-dev installed?
Check out https://github.com/ximion/appstream/blob/master/tests/ci/Dockerfile, that pretty much lists all dependencies AS has.

@probonopd
Copy link
Author

Thanks for the hint to the Dockerfile. Now I get

-- Compiling AppStream version 0.10.2
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
SNOWBALL_LIB
    linked by target "appstream" in directory /home/me/appstream/src

What is SNOWBALL_LIB?

@ximion ximion closed this as completed in 13bbf5c Sep 26, 2016
@ximion
Copy link
Owner

ximion commented Sep 26, 2016

Snowball is a stemming-algorithm library. See https://en.wikipedia.org/wiki/Stemming
It is used to improve search results.
Install libstemmer-dev to make it available.

This warning shouldn't appear though, unless of course you compiled with stemming support (but then you would have seen a fatal error earlier)

@probonopd
Copy link
Author

probonopd commented Sep 26, 2016

It is installed and I even called cmake -DSTEMMING=OFF .....

@probonopd probonopd changed the title Fails to compile, GObject introspection scanner was not found Fails to compile on Ubuntu 16.04 Sep 26, 2016
@ximion
Copy link
Owner

ximion commented Sep 26, 2016

Maybe just a fluke. It should work now (especially since the .deb packages compile and I haven't heard of any existing issues on any distribution).
You can try cleaning your cmake configuration.

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