I have notice the include for star projects of QT5 in the daily branch development, but i don't know it's already ready.
I have installed QT creator 5.8 and my QT folder is at /opt/QT
In the location of QT5 i introduced /opt/Qt/5.8/Src/qtbase but the wizard returned the error
The path you entered seems valid, but this wizard
can't locate the following Qt's library file:
Qt5Core in it.
(Also tried prepending lib and appending .a and .lib).
Maybe is too early to use this wizard tool for QT5 or ia m doing something wrong.
The problem was i choose the wrong file path
The correct one is
Then the wizard create the main file as follow
#include <QApplication>
#include <QFont>
#include <QPushButton>
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
QPushButton quit("Quit");
quit.resize(75, 30);
quit.setFont(QFont("Times", 18, QFont::Bold));
QObject::connect(&quit, SIGNAL(clicked()), &app, SLOT(quit()));
quit.show();
return app.exec();
}
But when i compile give the error
||=== Build: Debug in ee (compiler: GNU GCC Compiler) ===|
/opt/Qt/5.8/gcc_64/include/QtCore/qglobal.h|1097|error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
I did, but a bunch warnings shows up
||=== Build: Debug in ee (compiler: GNU GCC Compiler) ===|
||warning: libicui18n.so.56, needed by /opt/Qt/5.8/gcc_64/lib/libQt5Core.so, not found (try using -rpath or -rpath-link)|
||warning: libicuuc.so.56, needed by /opt/Qt/5.8/gcc_64/lib/libQt5Core.so, not found (try using -rpath or -rpath-link)|
||warning: libicudata.so.56, needed by /opt/Qt/5.8/gcc_64/lib/libQt5Core.so, not found (try using -rpath or -rpath-link)|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucol_open_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `u_strToLower_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucnv_getStandardName_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucnv_compareNames_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucal_clone_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucnv_getAlias_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `uenum_next_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucal_open_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucol_setAttribute_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `u_strToUpper_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucnv_setSubstChars_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucal_getTimeZoneDisplayName_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucal_openCountryTimeZones_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucnv_fromUnicode_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucnv_open_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucal_openTimeZones_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucnv_countAliases_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `u_errorName_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucal_inDaylightTime_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `uenum_close_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucnv_getAvailableName_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucal_close_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucal_openTimeZoneIDEnumeration_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucnv_getDefaultName_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucal_getDSTSavings_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucal_getDefaultTimeZone_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucnv_toUnicode_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucal_setMillis_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucol_strcoll_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucnv_close_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucol_close_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucol_getSortKey_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucnv_countAvailable_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucnv_getMaxCharSize_56'|
/opt/Qt/5.8/gcc_64/lib/libQt5Core.so||undefined reference to `ucal_get_56'|
||error: ld returned 1 exit status|
||=== Build failed: 36 error(s), 3 warning(s) (0 minute(s), 0 second(s)) ===|