ignatenkobrain / gnome-news

GNU General Public License v3.0
19 stars 7 forks source link

Compilation problem on Ubuntu #97

Closed paulcarroty closed 8 years ago

paulcarroty commented 8 years ago

Ubuntu 15.10 with packages:

http://packages.ubuntu.com/wily/libappstream-glib-dev
http://askubuntu.com/questions/419945/how-does-one-install-pygobject-from-the-official-repository
http://packages.ubuntu.com/wily/gobject-introspection
http://packages.ubuntu.com/wily/libpackagekit-glib2-dev

Errors:

Makefile:749: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.

Makefile:455: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
make: *** Waiting for unfinished jobs....
mcatanzaro commented 8 years ago

Uh-oh, this repo probably shouldn't exist anymore. See #98 .

Anyway, my guess is a missing m4 macro. I'll add some use of AX_REQUIRE_DEFINED which should help get a better error message....

mcatanzaro commented 8 years ago

I pushed a commit that might help with debugging this. Can you try again? Note that the repository is now at https://git.gnome.org/browse/gnome-news

paulcarroty commented 8 years ago
./autogen.sh && make -j4
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.

+ aclocal --install
configure.ac:29: error: macro APPSTREAM_XML is not defined; is a m4 file missing?
/usr/share/aclocal/ax_require_defined.m4:35: AX_REQUIRE_DEFINED is expanded from...
configure.ac:29: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
+ exit 1

Full discussion in my blog: https://tlhp.cf/gnome-news/ , maybe author don't have a github account.

mcatanzaro commented 8 years ago

Thanks. He needs to sudo apt-get install libappstream-glib-dev, then run autogen.sh again.

WFreude commented 8 years ago

Hi! Here is result:

sudo apt-get install libappstream-glib-dev Reading package lists... Done Building dependency tree Reading state information... Done libappstream-glib-dev is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded

WFreude commented 8 years ago

And than:

./autogen.sh && make -j4 Warning: I am going to run `configure' with no arguments. If you wish to pass any to it, please specify them on the ./autogen.sh' command line.

WFreude commented 8 years ago

I have created account. But this is all too complicated for me. And even I don't know how to use Markdown (and guide here "styling with markdown is supported" was of no use)

mcatanzaro commented 8 years ago

Strange. Could you check and see if you have the file /usr/share/aclocal/appstream-xml.m4?

WFreude commented 8 years ago

No, I don't have that file. How to get it?

mcatanzaro commented 8 years ago

I thought it would be in the libappstream-glib-dev package....

paulcarroty commented 8 years ago

Ubuntu is strange OS, I found it in appstream-util_0.3.4: http://pkgs.org/search//usr/share/aclocal/appstream-xml.m4

This package available only for 15.04. Let's try to install this package.

WFreude commented 8 years ago

./autogen.sh && make -j4 Warning: I am going to run configure' with no arguments. If you wish to pass any to it, please specify them on the ./autogen.sh' command line.

Please add the files codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4 progtest.m4 from the /usr/share/aclocal directory to your autoconf macro directory or directly to your aclocal.m4 file. You will also need config.guess and config.sub, which you can get from ftp://ftp.gnu.org/pub/gnu/config/.

mcatanzaro commented 8 years ago

Next step: sudo apt-get install intltool

WFreude commented 8 years ago

It works :) At least I can run it... I can't see gnome-news among my other applications, should it be like that? And when I add random .xml, it says 'Unknown feed'. I guess I am missing trackers? I was searching Ubuntu packages but I know which one to install (I already have https://wiki.gnome.org/Projects/Tracker but this is not what I need, or?).

Is it possible now to import feedly or .opml?

mcatanzaro commented 8 years ago

To see it with your other apps, you'll need to sudo make install

Unfortunately I think you'll need to build tracker yourself, with the RSS miner, since Ubuntu's tracker won't have that yet. :/ I forgot about that problem. Maybe someone else can help with this.

I don't think there's support for importing; it's a very new app.

arvin-foroutan commented 7 years ago

In case anyone runs into the following error:

+ aclocal --install
configure.ac:29: error: macro APPSTREAM_XML is not defined; is a m4 file missing?
/usr/share/aclocal/ax_require_defined.m4:35: AX_REQUIRE_DEFINED is expanded from...
configure.ac:29: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
+ exit 1

I was able to find the package and fix it in Ubuntu 16.04 by typing:

$ sudo apt-file search appstream-xml.m4 appstream-util: /usr/share/aclocal/appstream-xml.m4

$ sudo apt install appstream-util