pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sheet branch -- call for testing.


From: Ben Pfaff
Subject: Re: Sheet branch -- call for testing.
Date: Sat, 27 May 2017 15:16:40 -0700
User-agent: Mutt/1.5.23 (2014-03-12)

On Sat, May 27, 2017 at 09:16:20PM +0200, John Darrington wrote:
> On Sat, May 27, 2017 at 10:15:40AM -0700, Ben Pfaff wrote:
>      
>      When I try to build ssw, I get the following link error after some
>      successful builds:
>      
>          libtool: link: gcc -pthread -I/usr/include/gtk-3.0 
> -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 
> -I/usr/include/dbus-1.0 -I/usr/lib/i386-linux-gnu/dbus-1.0/include 
> -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo 
> -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 
> -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 
> -I/usr/include/freetype2 -I/usr/include/libpng16 
> -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 
> -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/glib-2.0 
> -I/usr/lib/i386-linux-gnu/glib-2.0/include -I ./src -g -O2 -o demo/demo 
> demo/demo_demo-main.o  -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 
> -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 
> -lm -lspread-sheet-widget -pthread
>          /usr/bin/ld: cannot find -lspread-sheet-widget
> 
> I don't understand this error. You should have a file 
> libspread-sheet-widget.la 
> in the top build directory so libtool should be able to find it.  It 
> certainly 
> works for me.

It's a dependency problem.  Automake doesn't know that the library needs
to be built first, so with "make -j10" (my usual "make" command), the
build can happen out of order.

To see this, run "make clean; make demo/demo".

Here's a fix:

diff -up /home/blp/pspp/spread-sheet-widget-0.0/Makefile.am\~ 
/home/blp/pspp/spread-sheet-widget-0.0/Makefile.am
--- /home/blp/pspp/spread-sheet-widget-0.0/Makefile.am~ 2017-05-24 
23:37:00.000000000 -0700
+++ /home/blp/pspp/spread-sheet-widget-0.0/Makefile.am  2017-05-27 
15:14:22.808649450 -0700
@@ -33,7 +33,7 @@ include_HEADERS = config.h \
        src/ssw-cell.h
 
 bin_PROGRAMS = demo/demo
-demo_demo_LDADD = $(GTK3_LIBS) $(GLIB2_LIBS) -lm -lspread-sheet-widget
+demo_demo_LDADD = $(GTK3_LIBS) $(GLIB2_LIBS) -lm libspread-sheet-widget.la
 demo_demo_SOURCES = demo/main.c
 
 BUILT_SOURCES = \

Diff finished.  Sat May 27 15:14:46 2017

Thanks,

Ben.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]