Re: gtkmm and autoconf



On Thu, 2008-10-02 at 12:31 -0400, Ruben Safir wrote:

This is my src directory Makefile.am
_______________________________________________

bin_PROGRAMS = onewindow
onewindow_SOURCES = one_window.cc 

You are not specifying any libraries to link to, or any paths to headers
to use.

http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/sec-headers-and-linking.html
says
"
PKG_CHECK_MODULES([MYAPP], [gtkmm-2.4 >= 2.8.0])

This checks for the presence of gtkmm and defines MYAPP_LIBS and
MYAPP_CFLAGS for use in your Makefile.am files.
"

You can do that as suggested here:
http://www.openismus.com/documents/linux/using_libraries/using_libraries.shtml#makefile

or this might be better:

AM_CPPFLAGS = $(MYAPP_CFLAGS)
onwindow_LDADD = $(MYAPP_LIBS)

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com




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