Skip to contentSkip to conversation

undefined reference to `qBadAlloc()'

Buildroot Karl Krach 1 participant 1 message Jun 18, 2010

lore
Share & tools
lore

Karl Krach

author
#0 lore raw

Hello,

I have a solved problem and report this, just for documentation. I found this bug, because I have to evaluate the impact of exceptions on the qt performance (we made bad experience with ARM some time ago).

If you compile qt WITHOUT exceptions (e.g. because you ve not enabled the xml-pattern module) and don't remove your whole output/ directory, you will get on a future compilation WITH exception strange linker errors.

Reason: Qt is linking against the installed libQtCore.so (which has no exceptions) first, and only afterwards against your fresh compiled libQtCore.so.

I would add a

touch $@
+ rm -rf $(STAGING_DIR)/usr/lib/libQt*

$(QT_TARGET_DIR)/.compiled: $(QT_TARGET_DIR)/.configured

to packages/qt/qt.mk to solve this problem. Calling "make uninstall" would solve this problem too.

Thx,

Charly