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

Re: Problem compiling kdebindings (KDE4)



---------- Forwarded message ----------
From: David Palacio <dpalacio@uninorte.edu.co>
Date: 2008/5/23
Subject: Re: [Kde-bindings] Problem compiling kdebindings
To: KDE bindings for other programming languages <kde-bindings@kde.org>


2008/5/18 Arno Rehn <arno@arnorehn.de>:
> Am Samstag 17 Mai 2008 21:05:38 schrieb David Palacio:
>> Hi,
>>
>> I had been able to compile kdebindings until not so much ago. Now, there is
>> a problem when it is time to link smoke kde. I'm using Debian experimental
>> packages (4.0.72).
>>
>> Linking CXX shared library ../../lib/libsmokekde.so
>> CMakeFiles/smokekde.dir/x_16.o: In function `.L1984':
>> x_16.cpp:(.text+0xbb3): undefined reference to `KPty::~KPty()'
>> CMakeFiles/smokekde.dir/x_16.o: In function `.L1982':
>> x_16.cpp:(.text+0xbed): undefined reference to `KPty::slaveFd() const'
>> CMakeFiles/smokekde.dir/x_16.o: In function `.L1981':
>> x_16.cpp:(.text+0xbfc): undefined reference to `KPty::masterFd() const'
>> CMakeFiles/smokekde.dir/x_16.o: In function `.L1980':
>> x_16.cpp:(.text+0xc0b): undefined reference to `KPty::ttyName() const'
>> CMakeFiles/smokekde.dir/x_16.o: In function `.L1979':
>> x_16.cpp:(.text+0xc22): undefined reference to `KPty::setEcho(bool)'
>> CMakeFiles/smokekde.dir/x_16.o: In function `.L1978':
>> x_16.cpp:(.text+0xc3f): undefined reference to `KPty::setWinSize(int, int)'
>> CMakeFiles/smokekde.dir/x_16.o: In function `.L1977':
>> x_16.cpp:(.text+0xc58): undefined reference to `KPty::tcSetAttr(termios*)'
>> CMakeFiles/smokekde.dir/x_16.o: In function `.L1976':
>> x_16.cpp:(.text+0xc71): undefined reference to `KPty::tcGetAttr(termios*)
>> const' CMakeFiles/smokekde.dir/x_16.o: In function `.L1975':
>> x_16.cpp:(.text+0xc83): undefined reference to `KPty::logout()'
>> CMakeFiles/smokekde.dir/x_16.o: In function `.L1974':
>> x_16.cpp:(.text+0xca3): undefined reference to `KPty::login(char const*,
>> char const*)' CMakeFiles/smokekde.dir/x_16.o: In function `.L1973':
>> x_16.cpp:(.text+0xcc2): undefined reference to `KPty::login(char const*,
>> char const*)' CMakeFiles/smokekde.dir/x_16.o: In function `.L1971':
>> x_16.cpp:(.text+0xcdb): undefined reference to `KPty::setCTty()'
>> CMakeFiles/smokekde.dir/x_16.o: In function `.L1970':
>> x_16.cpp:(.text+0xceb): undefined reference to `KPty::openSlave()'
>> CMakeFiles/smokekde.dir/x_16.o: In function `.L1969':
>> x_16.cpp:(.text+0xcfd): undefined reference to `KPty::closeSlave()'
>> CMakeFiles/smokekde.dir/x_16.o: In function `.L1968':
>> x_16.cpp:(.text+0xd0d): undefined reference to `KPty::close()'
>> CMakeFiles/smokekde.dir/x_16.o: In function `.L1967':
>> x_16.cpp:(.text+0xd24): undefined reference to `KPty::open(int)'
>> CMakeFiles/smokekde.dir/x_16.o: In function `.L1966':
>> x_16.cpp:(.text+0xd36): undefined reference to `KPty::open()'
>> CMakeFiles/smokekde.dir/x_16.o: In function `.L1965':
>> x_16.cpp:(.text+0xd53): undefined reference to `KPty::KPty()'
>> collect2: ld returned 1 exit status
>> make[2]: *** [lib/libsmokekde.so.2.0.0] Error 1
>> make[1]: *** [smoke/kde/CMakeFiles/smokekde.dir/all] Error 2
>> make: *** [all] Error 2
> Strange.. Do you have the library libkpty.so? Otherwise you could try to build
> kdelibs from source, libkpty belongs to that..

I do have libkpty.so.

I retried it with make VERBOSE=1 and this is the command I used to link
libsmokekde:

/usr/bin/c++  -fPIC  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef
-Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith
-Wformat-security -fno-exceptions -fno-check-new -fno-common
-Woverloaded-virtual -fvisibility=hidden -fvisibility-inlines-hidden
-O2 -g -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined
-lc  -shared -Wl,-soname,libsmokekde.so.2 -o
../../lib/libsmokekde.so.2.0.0 CMakeFiles/smokekde.dir/smokedata.o
CMakeFiles/smokekde.dir/x_1.o CMakeFiles/smokekde.dir/x_2.o
CMakeFiles/smokekde.dir/x_3.o CMakeFiles/smokekde.dir/x_4.o
CMakeFiles/smokekde.dir/x_5.o CMakeFiles/smokekde.dir/x_6.o
CMakeFiles/smokekde.dir/x_7.o CMakeFiles/smokekde.dir/x_8.o
CMakeFiles/smokekde.dir/x_9.o CMakeFiles/smokekde.dir/x_10.o
CMakeFiles/smokekde.dir/x_11.o CMakeFiles/smokekde.dir/x_12.o
CMakeFiles/smokekde.dir/x_13.o CMakeFiles/smokekde.dir/x_14.o
CMakeFiles/smokekde.dir/x_15.o CMakeFiles/smokekde.dir/x_16.o
CMakeFiles/smokekde.dir/x_17.o CMakeFiles/smokekde.dir/x_18.o
CMakeFiles/smokekde.dir/x_19.o CMakeFiles/smokekde.dir/x_20.o
-L/home/david/dev/build/kdebindings/lib
/usr/lib/libknotifyconfig.so.4.1.0 /usr/lib/libknewstuff2.so.4.1.0
/usr/lib/libkde3support.so.4.1.0 /usr/lib/libkhtml.so.5.1.0
/usr/lib/libkutils.so.4.1.0 /usr/lib/libkparts.so.4.1.0
/usr/lib/libkio.so.5.1.0 /usr/lib/libkdnssd.so.4.1.0
/usr/lib/libkdeui.so.5.1.0 /usr/lib/libkdecore.so.5.1.0
../../lib/libsmokeqt.so.2.0.0 -lQtNetwork -lQtSql -lQtOpenGL -lQtDBus
-lQtXml -lQtSvg -Wl,-Bstatic -lQtUiTools -Wl,-Bdynamic -lQtWebKit
-lQt3Support -lsoprano -lkmediaplayer -lkntlm
/usr/lib/libsolid.so.4.1.0 -lQtCore -lQtGui
-Wl,-rpath,/home/david/dev/build/kdebindings/lib

I manually ran:

/usr/bin/c++  -fPIC  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef
-Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith
-Wformat-security -fno-exceptions -fno-check-new -fno-common
-Woverloaded-virtual -fvisibility=hidden -fvisibility-inlines-hidden
-O2 -g -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined
-lc  -shared -Wl,-soname,libsmokekde.so.2 -o
../../lib/libsmokekde.so.2.0.0 CMakeFiles/smokekde.dir/smokedata.o
CMakeFiles/smokekde.dir/x_1.o CMakeFiles/smokekde.dir/x_2.o
CMakeFiles/smokekde.dir/x_3.o CMakeFiles/smokekde.dir/x_4.o
CMakeFiles/smokekde.dir/x_5.o CMakeFiles/smokekde.dir/x_6.o
CMakeFiles/smokekde.dir/x_7.o CMakeFiles/smokekde.dir/x_8.o
CMakeFiles/smokekde.dir/x_9.o CMakeFiles/smokekde.dir/x_10.o
CMakeFiles/smokekde.dir/x_11.o CMakeFiles/smokekde.dir/x_12.o
CMakeFiles/smokekde.dir/x_13.o CMakeFiles/smokekde.dir/x_14.o
CMakeFiles/smokekde.dir/x_15.o CMakeFiles/smokekde.dir/x_16.o
CMakeFiles/smokekde.dir/x_17.o CMakeFiles/smokekde.dir/x_18.o
CMakeFiles/smokekde.dir/x_19.o CMakeFiles/smokekde.dir/x_20.o
-L/home/david/dev/build/kdebindings/lib
/usr/lib/libknotifyconfig.so.4.1.0 /usr/lib/libknewstuff2.so.4.1.0
/usr/lib/libkde3support.so.4.1.0 /usr/lib/libkhtml.so.5.1.0
/usr/lib/libkutils.so.4.1.0 /usr/lib/libkparts.so.4.1.0
/usr/lib/libkio.so.5.1.0 /usr/lib/libkdnssd.so.4.1.0
/usr/lib/libkdeui.so.5.1.0 /usr/lib/libkdecore.so.5.1.0
../../lib/libsmokeqt.so.2.0.0 -lQtNetwork -lQtSql -lQtOpenGL -lQtDBus
-lQtXml -lQtSvg -Wl,-Bstatic -lQtUiTools -Wl,-Bdynamic -lQtWebKit
-lQt3Support -lsoprano -lkmediaplayer -lkntlm
/usr/lib/libsolid.so.4.1.0 -lQtCore -lQtGui /usr/lib/libkpty.so
-Wl,-rpath,/home/david/dev/build/kdebindings/lib

made the necessary links and completed the compilation. Richard Dale's
"Hello world" works.

Installed software versions:
kdelibs: 4.0.74-1
cmake: 2.6-patch 0
c++: gcc version 4.2.4 20080512 (prerelease) (Debian 4.2.3-6)


Reply to: