Qt-interest Archive, March 2002
Qt 3.0.2 library problem
Message 1 in thread
Hi there,
I've built my own Linux-system from scratch and I want to have Qt running on
it.
I compiled and installed it by following the steps from the INSTALL file.
No errors.
Now, I want to compile a little "Hello World"-Qt-program.
Unfortunately lots of error messages appear on the screen:
[root@ASLinux qttest] # c++ -I/usr/local/qt/include hello.cpp
/tmp/cc2DKHLx.o: In function `main':
/tmp/cc2DKHLx.o(.text+0x18): undefined reference to
`QApplication::QApplication(int &, char **)'
/tmp/cc2DKHLx.o(.text+0x44): undefined reference to `QString::QString(char
const *)'
/tmp/cc2DKHLx.o(.text+0x5c): undefined reference to `QLabel::QLabel(QString
const &, QWidget *, char const *, unsigned int)'
/tmp/cc2DKHLx.o(.text+0xb0): undefined reference to
`QApplication::setMainWidget(QWidget *)'
/tmp/cc2DKHLx.o(.text+0xd8): undefined reference to
`QApplication::exec(void)'
/tmp/cc2DKHLx.o(.text+0xeb): undefined reference to
`QApplication::~QApplication(void)'
/tmp/cc2DKHLx.o(.text+0x14a): undefined reference to
`QApplication::~QApplication(void)'
/tmp/cc2DKHLx.o: In function `QString::~QString(void)':
/tmp/cc2DKHLx.o(.gnu.linkonce.t._._7QString+0x26): undefined reference to
`QString::shared_null'
/tmp/cc2DKHLx.o(.gnu.linkonce.t._._7QString+0x2e): undefined reference to
`QString::shared_null'
/tmp/cc2DKHLx.o(.gnu.linkonce.t._._7QString+0x3d): undefined reference to
`QStringData::deleteSelf(void)'
collect2: ld returned 1 exit status
It looks like he couldn't find the Qt-Libraries. :(
Why? I also wrote the path to the libs into the /etc/ld.so.conf file.
I really don't know, what's wrong.
Does someone have a hint for me?
Thank you,
regards, Simon Stiefel
--
[ signature omitted ]
Message 2 in thread
Try using the -L parameter (?) and/or including the libqt.so file in your
list of objects.
On Monday 18 March 2002 2:36 pm, Simon Stiefel wrote:
> Hi there,
>
> I've built my own Linux-system from scratch and I want to have Qt running
> on it.
> I compiled and installed it by following the steps from the INSTALL file.
> No errors.
> Now, I want to compile a little "Hello World"-Qt-program.
> Unfortunately lots of error messages appear on the screen:
>
> [root@ASLinux qttest] # c++ -I/usr/local/qt/include hello.cpp
> /tmp/cc2DKHLx.o: In function `main':
> /tmp/cc2DKHLx.o(.text+0x18): undefined reference to
> `QApplication::QApplication(int &, char **)'
> /tmp/cc2DKHLx.o(.text+0x44): undefined reference to `QString::QString(char
> const *)'
> /tmp/cc2DKHLx.o(.text+0x5c): undefined reference to `QLabel::QLabel(QString
> const &, QWidget *, char const *, unsigned int)'
> /tmp/cc2DKHLx.o(.text+0xb0): undefined reference to
> `QApplication::setMainWidget(QWidget *)'
> /tmp/cc2DKHLx.o(.text+0xd8): undefined reference to
> `QApplication::exec(void)'
> /tmp/cc2DKHLx.o(.text+0xeb): undefined reference to
> `QApplication::~QApplication(void)'
> /tmp/cc2DKHLx.o(.text+0x14a): undefined reference to
> `QApplication::~QApplication(void)'
> /tmp/cc2DKHLx.o: In function `QString::~QString(void)':
> /tmp/cc2DKHLx.o(.gnu.linkonce.t._._7QString+0x26): undefined reference to
> `QString::shared_null'
> /tmp/cc2DKHLx.o(.gnu.linkonce.t._._7QString+0x2e): undefined reference to
> `QString::shared_null'
> /tmp/cc2DKHLx.o(.gnu.linkonce.t._._7QString+0x3d): undefined reference to
> `QStringData::deleteSelf(void)'
> collect2: ld returned 1 exit status
>
> It looks like he couldn't find the Qt-Libraries. :(
> Why? I also wrote the path to the libs into the /etc/ld.so.conf file.
>
> I really don't know, what's wrong.
> Does someone have a hint for me?
>
> Thank you,
>
> regards, Simon Stiefel
Message 3 in thread
Hi @ all,
Am Montag, 18. März 2002 22:36 schrieb Simon Stiefel:
> I've built my own Linux-system from scratch and I want to have Qt
> running on it.
> I compiled and installed it by following the steps from the
> INSTALL file. No errors.
> Now, I want to compile a little "Hello World"-Qt-program.
> Unfortunately lots of error messages appear on the screen:
I've the same problems with QT3 and KDE2!
After installing KDE3, QT3 will works fine ...
ByE
Andre
Message 4 in thread
Mandrake 8.1, KDE 2.2, Qt 3.0.2
I used qtconfig to change the look'n feel from windows
to SGI just to check to see how it would look. It
messed up all the Qt's apps. All now have an
extremely ugly unreadalble font. I switched back to
Windows, but the ugly font is still there.
When I go back to my other user account, the settings
are all fine. Does anyone know what file qtconfig
actually modifies? That way I can copy it from my
other account and try to undo what I did.
I tried ~/.qt/*. Copied everything from my other user
account to the current one, but this did not help
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
Message 5 in thread
If you are using SuSe 7.3 and Kdevelop then This is a BUG!
You have to get the old auotconf from SuSe
regards
Abud
Message 6 in thread
On Mon, 18 Mar 2002, Christopher Thompson wrote:
> Try using the -L parameter (?) and/or including the libqt.so file in your
> list of objects.
Hmm, same errors when I try to use the -L parameter. :(
Uhm, how can I include this file to my list of objects?
regards, Simon Stiefel
--
[ signature omitted ]
Message 7 in thread
On Monday 18 March 2002 3:09 pm, Simon Stiefel wrote:
> On Mon, 18 Mar 2002, Christopher Thompson wrote:
> > Try using the -L parameter (?) and/or including the libqt.so file in your
> > list of objects.
>
> Hmm, same errors when I try to use the -L parameter. :(
>
> Uhm, how can I include this file to my list of objects?
>
>
> regards, Simon Stiefel
Well, first try adding -L/usr/local/qt/lib (or wherever) and also, -lqt. If
that doesn't work, you'll need to add libqt.so to your list of object files.
g++ --foo --bar baz.o barf.o zumpow.o /usr/local/qt/lib/libqt.so -o executable
Message 8 in thread
Simon Stiefel wrote:
> On Mon, 18 Mar 2002, Christopher Thompson wrote:
>
>
>>Try using the -L parameter (?) and/or including the libqt.so file in your
>>list of objects.
>>
>
> Hmm, same errors when I try to use the -L parameter. :(
>
> Uhm, how can I include this file to my list of objects?
>
>
> regards, Simon Stiefel
>
>
>
Are you actually including <qapplication>, <qstring>,
and other required header files? What does your
hello.cpp actually consist of?
--
[ signature omitted ]
Message 9 in thread
> On Mon, 18 Mar 2002, Christopher Thompson wrote:
>
> Well, first try adding -L/usr/local/qt/lib (or wherever) and also, -lqt.
> If
> that doesn't work, you'll need to add libqt.so to your list of object
> files.
>
> g++ --foo --bar baz.o barf.o zumpow.o /usr/local/qt/lib/libqt.so -o
> executable
Thank you!
Now it works! :)
regards, Simon Stiefel
--
[ signature omitted ]