[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: [slightly ot] nxc buildsystem
From: George Wright <gwright () kde ! org>
Date: 2006-05-03 0:06:17
Message-ID: 200605030106.19259.gwright () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Being completely useless at buildsystems (and nxc having a thoroughly nasty
and slightly broken one), I decided to start transitioning the nxc source
code to the framework created by kapptemplate, but haven't really got a clue
what I'm doing. I'm posting this here because it's the buildsystem created by
kapptemplate which I'm having a bit of trouble with.
My attempts so far can be found at http://gwright.org.uk/files/nxc-0.1.tar.bz2
Basically, the program is split into three components; nxcompsh, nxdriver and
nxrun. nxcompsh and nxdriver are libraries and nxrun links to both of them.
Unfortunately, for some reason completely beyond me, nxrun refuses to link to
nxdriver. This is the complaint it spits out:
/bin/sh ../libtool --silent --tag=CXX --mode=link g++ -Wno-long-long -Wundef
-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
-Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security
-Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions
-fno-check-new -fno-common -fexceptions -o nxrun -version-info -static
MainUnix.o
ConsoleCallback.o ../nxcompsh/libXcompsh.la ../nxdriver/libXdriver.la -lexpat
-L/usr/X11R6/lib -lxkbfile -lXext
libtool: link: warning: `-version-info' is ignored for programs
MainUnix.o(.text+0xa2d): In function `main':
> undefined reference to `NXDriver::NXDriver()'
MainUnix.o(.text+0xaa6): In function `main':
> undefined reference to `NXDriver::Run()'
MainUnix.o(.text+0xaae): In function `main':
> undefined reference to `NXDriver::~NXDriver()'
MainUnix.o(.text+0xb04): In function `main':
> undefined reference to `NXDriver::~NXDriver()'
collect2: ld returned 1 exit status
make: *** [nxrun] Error 1
Using a really really horrible hack in the Makefile.am for nxrun as follows,
it compiles cleanly (but obviously this is a horrible hack and really
shouldn't be used):
LDADD
= ../nxcompsh/Cookie.lo ../nxcompsh/Exception.lo ../nxcompsh/MD5.lo \
../nxcompsh/Media.lo \
../nxcompsh/ParametersList.lo ../nxcompsh/Process.lo ../nxcompsh/ProcessUnix.lo \
../nxcompsh/Protocol.lo \
../nxcompsh/Proxy.lo ../nxcompsh/Samba.lo ../nxcompsh/Session.lo \
../nxcompsh/SessionInterface.lo \
../nxcompsh/StringUtilities.lo ../nxcompsh/Transport.lo ../nxcompsh/TransportSSH.lo \
../nxcompsh/Utilities.lo \
../nxcompsh/XInterface.lo ../nxcompsh/XServer.lo ../nxdriver/NXConnection.lo \
../nxdriver/NXDriver.lo \
../nxdriver/NXSettings.lo ../nxdriver/Options.lo ../nxdriver/SettingsToParameters.lo
\
../nxcompsh/libXcompsh.la ../nxdriver/libXdriver.la -lexpat -L/usr/X11R6/lib
-lxkbfile -lXext
If anyone can suggest what is stopping the symbols being visible in the
library I'd be very grateful.
--
George Wright, http://www.gwright.org.uk
KDE Developer - http://www.kde.org
[Attachment #5 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic