[LAD] jackmixdesk undefined references

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: LAD <linux-audio-dev@...>
Date: Monday, April 16, 2012 - 1:07 pm

This is a multi-part message in MIME format.
--------------080405090002060108030003
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

Hello there.

Can these files be a cause for undefined references when compiling?
I have to compile them into the binary, because phat from svn makes
problems.

configure.ac

> dnl Require autoconf version >= 2.57

Makefile.am

> AUTOMAKE_OPTIONS = foreign

mixdesk_gtk.c
console

Thanks a lot

Uli

--------------080405090002060108030003
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

Hello there.

Can these files be a cause for undefined references when compiling?
I have to compile them into the binary, because phat from svn makes
problems.

configure.ac

dnl Require autoconf version >= 2.57
AC_PREREQ(2.57)

dnl ############# Initialization

AC_INIT([jackmixdesk], [0.4], [audio-mobster@gmx.de])

AC_CONFIG_SRCDIR([mixdesk.c])
AC_CANONICAL_SYSTEM

dnl Version 1.7 of automake is recommended
AM_INIT_AUTOMAKE([1.7])
AM_CONFIG_HEADER([config.h])

dnl ############# Compiler and tools Checks

AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_C_INLINE

dnl ############## Library Checks

AC_CHECK_LIB([m], [sqrt], , [AC_MSG_ERROR(Can't find libm)])
AC_CHECK_LIB([m], [powf])

# Check for libjack (need 0.100.0 for jack_client_open)
PKG_CHECK_MODULES(JACK, jack >= 0.100.0)

# Check for liblash
PKG_CHECK_MODULES(LASH, lash-1.0)

# Check for liblo
PKG_CHECK_MODULES(LO, liblo >= 0.23)

# Check for libxml2
PKG_CHECK_MODULES(XML2, libxml-2.0 >= 2.6.27)

# Check for GTK 2.0
PKG_CHECK_MODULES(GTK, gtk+-2.0, HAVE_GTK="Yes", HAVE_GTK="No")

# Check for libX11
PKG_CHECK_MODULES(X11, x11, HAVE_X11="Yes", HAVE_X11="No")

# Check for libgnomecanvas
PKG_CHECK_MODULES(LIBGNOMECANVAS, libgnomecanvas-2.0,
HAVE_LIBGNOMECANVAS="Yes", HAVE_LIBGNOMECANVAS="No")

# Check for libidn
PKG_CHECK_MODULES(IDN, libidn, HAVE_IDN="Yes", HAVE_IDN="No")

dnl ############## Decide what to build

BUILD_PROGRAMS="jackmixdesk"

if test "x$HAVE_GTK" == "xYes"
test "x$HAVE_LIBGNOMECANVAS" == "xYes"
test "x$HAVE_IDN" == "xYes"
test "x$HAVE_X11" == "xYes"
then
BUILD_PROGRAMS="$BUILD_PROGRAMS jackmixdesk_gtk"
else
AC_MSG_WARN([Not building GTK frontend due to missing libraries])
fi

AC_SUBST(BUILD_PROGRAMS)

dnl ############## Header Checks

AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h strings.h sys/time.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_TYPE_SIGNAL

# Checks for library functions.
AC_FUNC_MALLOC

AC_CONFIG_FILES([Makefile])

AC_OUTPUT

Makefile.am

AUTOMAKE_OPTIONS = foreign

bin_PROGRAMS = @BUILD_PROGRAMS@
EXTRA_PROGRAMS = jackmixdesk jackmixdesk_gtk

jackmixdesk_SOURCES = mixdesk.c db.h

jackmixdesk_CFLAGS = -Wall -O2 @JACK_CFLAGS@ @LASH_CFLAGS@ @LO_CFLAGS@
@XML2_CFLAGS@

jackmixdesk_LDFLAGS = -lm @JACK_LIBS@ @LASH_LIBS@ @LO_LIBS@ @XML2_LIBS@

jackmixdesk_gtk_SOURCES = config.h phatknob.h phatknob.c \
phatvfanslider.c phathfanslider.c \
phatkeyboard.c phatpad.h phatvkeyboard.h phatkeyboard.h phatprivate.h \
phathfanslider.h phathkeyboard.c phatprivate.c phatfanslider.h\
phathkeyboard.h phatpad.c phatvfanslider.h mixdesk_gtk.c

jackmixdesk_gtk_CFLAGS = -Wall -O2 @JACK_CFLAGS@ @IDN_CFLAGS@
@LO_CFLAGS@ \
@GTK_CFLAGS@ @LIBGNOMECANVAS_CFLAGS@ @LASH_CFLAGS@ @XML2_CFLAGS@
@X11_CFLAGS@ -DINSTALL_DIR=\"$(datadir)\"

jackmixdesk_gtk_LDFLAGS = -lm @JACK_LIBS@ @IDN_LIBS@ @LO_LIBS@
@GTK_LIBS@ @X11_LIBS@ @LIBGNOMECANVAS_LIBS@ @LASH_LIBS@ @XML2_LIBS@

pixmapdir =$(datadir)/$(PACKAGE)/pixmaps
pixmap_DATA = knob.png

licensedir =$(datadir)/doc/$(PACKAGE)-$(VERSION)
license_DATA = COPYING

readmedir =$(datadir)/doc/$(PACKAGE)-$(VERSION)
readme_DATA = README

svgdiagramdir =$(datadir)/doc/$(PACKAGE)-$(VERSION)
svgdiagram_DATA = jackmixdesk.svg

pngdiagramdir =$(datadir)/doc/$(PACKAGE)-$(VERSION)
pngdiagram_DATA = jackmixdesk.png

tododir =$(datadir)/doc/$(PACKAGE)-$(VERSION)
todo_DATA = TODO

EXTRA_DIST = autogen.sh TODO doc/jackmixdesk.svg

mixdesk_gtk.c
#include "phatfanslider.h"
#include "phatvfanslider.h"
#include "phathfanslider.h"

console
/home/uli/workspace/jackmixdesk/trunk/mixdesk_gtk.c:2859:
undefined reference to `phat_fan_slider_set_value'

Thanks a lot

Uli

--------------080405090002060108030003--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

This is the only confirmed message in this thread.
Possibly related messages: