Home » Uncategorized » Playing with clang and Qt

Playing with clang and Qt

http://www.freehackers.org/thomas/2010/01/10/playing-with-clang-and-qt/

qmake -recursive -spec linux-clang
make

--
$ cd /usr/include/c++/4.9.0/
$ sudo cp x86_64-unknown-linux-gnu/bits/* bits/
..
$ cp /usr/bin/uic qt5/qtbase/bin/

http://code.woboq.org/qt5/qtbase/src/corelib/global/qconfig.cpp.html

static const char qt_configure_licensee_str [512 + 12] = "qt_lcnsuser=Open Source";
static const char qt_configure_licensed_products_str [512 + 12] = "qt_lcnsprod=OpenSource";

static const char qt_configure_prefix_path_strs[][256 + 12] = {
"qt_prfxpath=/opt/qt5/qtbase",
"qt_docspath=/opt/qt5/qtbase/doc",
"qt_hdrspath=/opt/qt5/qtbase/include",
"qt_libspath=/opt/qt5/qtbase/lib",
"qt_lbexpath=/opt/qt5/qtbase/libexec",
"qt_binspath=/opt/qt5/qtbase/bin",
"qt_plugpath=/opt/qt5/qtbase/plugins",
"qt_impspath=/opt/qt5/qtbase/imports",
"qt_qml2path=/opt/qt5/qtbase/qml",
"qt_adatpath=/opt/qt5/qtbase",
"qt_datapath=/opt/qt5/qtbase",
"qt_trnspath=/opt/qt5/qtbase/translations",
"qt_xmplpath=/opt/qt5/qtbase/examples",
"qt_tstspath=/opt/qt5/qtbase/tests",
};

#define QT_CONFIGURE_LICENSEE qt_configure_licensee_str + 12;
#define QT_CONFIGURE_LICENSED_PRODUCTS qt_configure_licensed_products_str + 12;
#define QT_CONFIGURE_PREFIX_PATH qt_configure_prefix_path_strs + 12;

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s