I have qt-opensource-windows-x86-5.9.1.exe, qt-everywhere-opensource-src-5.9.1 and openssl-win32 1.0.2l installed. I want to do the statically compilation with qt-everywhere-opensource-src-5.9.1 and activate OpenSSL for this I use this script.
Please what is the modification of this part of the script that a i need to do for that (line breaks added for readability):
configure.bat -static -release -platform win32-g++ -prefix %QtStaticDir% -qt-zlib -qt-pcre
-qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -sql-odbc -sql-sqlite -no-openssl
-opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests"
Thanks
Related
Qt: 5.9.8
Host: ubuntu 19.04
Compiler: arm-linux-gnueabi-gcc (Ubuntu/Linaro 8.3.0-6ubuntu1) 8.3.0
build command:
./configure -static -release -platform linux-g++-64 -xplatform linux-arm-gnueabi-g++ -device-option CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- -no-opengl -prefix "..\arm-qt" -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests -skip qt3d -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtsvg -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -no-feature-texthtmlparser -no-feature-textodfwriter -no-feature-concurrent -no-feature-effects -no-feature-sharedmemory -no-feature-systemsemaphore -no-feature-im -no-feature-process -no-feature-dom -no-feature-filesystemmodel -no-feature-filesystemwatcher -no-feature-graphicsview -no-feature-graphicseffect -no-feature-sizegrip -no-feature-calendarwidget -no-feature-printpreviewwidget -no-feature-keysequenceedit -no-feature-colordialog -no-feature-filedialog -no-feature-fontdialog -no-feature-printpreviewdialog -no-feature-progressdialog -no-feature-inputdialog -no-feature-errormessage -no-feature-wizard -no-feature-datawidgetmapper -no-feature-imageformat_bmp -no-feature-imageformat_ppm -no-feature-imageformat_xbm -no-feature-imageformat_png -no-feature-imageformat_jpeg -no-feature-image_heuristic_mask -no-feature-image_text -no-feature-colornames -no-feature-cups -no-feature-paint_debug -no-feature-freetype -no-feature-translation -no-feature-codecs -no-feature-big_codecs -no-feature-iconv -no-feature-ftp -no-feature-udpsocket -no-feature-networkproxy -no-feature-socks5 -no-feature-networkdiskcache -no-feature-bearermanagement -no-feature-completer -no-feature-fscompleter -no-feature-desktopservices -no-feature-mimetype -no-feature-systemtrayicon -no-feature-undocommand -no-feature-undostack -no-feature-undogroup -no-feature-undoview -no-feature-statemachine -no-feature-gestures -no-feature-dbus
error:
arm-linux-gnueabi-g++ -c -include .pch/Qt5Widgets -pipe -O2 -fPIC -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -D_REENTRANT -DQT_NO_USING_NAMESPACE -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_WIDGETS_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -Idialogs -I../../include -I../../include/QtWidgets -I../../include/QtWidgets/5.9.8 -I../../include/QtWidgets/5.9.8/QtWidgets -I../../include/QtGui/5.9.8 -I../../include/QtGui/5.9.8/QtGui -I../../include/QtCore/5.9.8 -I../../include/QtCore/5.9.8/QtCore -I../../include/QtGui -I../../include/QtCore -I.moc -I../../mkspecs/linux-arm-gnueabi-g++ -o .obj/qcombobox.o widgets/qcombobox.cpp
In file included from ../../include/QtCore/qglobal.h:1,
from ../../include/QtGui/../../src/gui/kernel/qtguiglobal.h:43,
from ../../include/QtGui/qtguiglobal.h:1,
from ../../include/QtWidgets/../../src/widgets/kernel/qtwidgetsglobal.h:43,
from ../../include/QtWidgets/qtwidgetsglobal.h:1,
from kernel/qt_widgets_pch.h:50:
../../include/QtCore/../../src/corelib/global/qglobal.h:738:61: error: static assertion failed: Required feature completer for file ../../include/QtWidgets/5.9.8/QtWidgets/private/../../../../../src/widgets/util/qcompleter.h not available.
#define Q_STATIC_ASSERT_X(Condition, Message) static_assert(bool(Condition), Message)
^~~~~~~~~~~~~~~
../../include/QtCore/../../src/corelib/global/qglobal.h:85:36: note: in expansion of macro ‘Q_STATIC_ASSERT_X’
#define QT_REQUIRE_CONFIG(feature) Q_STATIC_ASSERT_X(QT_FEATURE_##feature == 1, "Required feature " #feature " for file " __FILE__ " not available.")
^~~~~~~~~~~~~~~~~
../../include/QtWidgets/5.9.8/QtWidgets/private/../../../../../src/widgets/util/qcompleter.h:50:1: note: in expansion of macro ‘QT_REQUIRE_CONFIG’
QT_REQUIRE_CONFIG(completer);
^~~~~~~~~~~~~~~~~
../../include/QtCore/../../src/corelib/global/qglobal.h:738:61: error: static assertion failed: Required feature completer for file ../../include/QtWidgets/5.9.8/QtWidgets/private/../../../../../src/widgets/util/qcompleter_p.h not available.
#define Q_STATIC_ASSERT_X(Condition, Message) static_assert(bool(Condition), Message)
^~~~~~~~~~~~~~~
../../include/QtCore/../../src/corelib/global/qglobal.h:85:36: note: in expansion of macro ‘Q_STATIC_ASSERT_X’
#define QT_REQUIRE_CONFIG(feature) Q_STATIC_ASSERT_X(QT_FEATURE_##feature == 1, "Required feature " #feature " for file " __FILE__ " not available.")
^~~~~~~~~~~~~~~~~
../../include/QtWidgets/5.9.8/QtWidgets/private/../../../../../src/widgets/util/qcompleter_p.h:65:1: note: in expansion of macro ‘QT_REQUIRE_CONFIG’
QT_REQUIRE_CONFIG(completer);
^~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:48178: .obj/qcombobox.o] Error 1
make[3]: Leaving directory '/home/joker/Work/qt5/qtbase/src/widgets'
make[2]: *** [Makefile:528: sub-widgets-make_first] Error 2
make[2]: Leaving directory '/home/joker/Work/qt5/qtbase/src'
make[1]: *** [Makefile:49: sub-src-make_first] Error 2
make[1]: Leaving directory '/home/joker/Work/qt5/qtbase'
make: *** [Makefile:56: module-qtbase-make_first] Error 2
On ubuntu 16.04 with older compiler, i am got same error.
you have set the option -no-feature-completer, try to reconfigure the build without it.
I am trying to install Qt 4.8.7 from source (https://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz) in a virtual machine running Ubuntu 18.04.1 LTS
So the commands I follow are:
mkdir Qt
cd Qt
wget https://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz
tar -xzf qt-everywhere-opensource-src-4.8.7.tar.gz
mv qt-everywhere-opensource-src-4.8.7 Qt-Source
cd Qt-Source
./configure
Then I choose the Open Source Edition, accept the terms of License. After that it displays:
Qt is now configured for building. Just run 'make'.
Once everything is built, you must run 'make install'.
Qt will be installed into /usr/local/Trolltech/Qt-4.8.7
So ...
make
and I have the next error;
Another thing is that in the process of running make, there are a lot of errors like these:
Could you help me? Please
eyllanesc,
I faced the same problem as you a few days ago. And after many tries I did it.
First of all, you'll need to install another gcc and g++ version elder (I choose 4.8 version).
Follow the instructions in this another answer:
GCC & C++ alternatives
And edit the file:
mkspecs/linux-g++-64/qmake.conf
QMAKE_CFLAGS = -std=gnu++98 -fpermissive
QMAKE_LFLAGS = -std=gnu++98 -fpermissive
QMAKE_CXXFLAGS = -std=gnu++98 -fpermissive
With these flags the compiler will use C++98 version. Like
Bart_Vandewoestyne solution.
Then run:
./configure -opensource -nomake demos -nomake examples -nomake tests -debug-and-release -qt3support -no-openssl -no-webkit
make -jN
sudo make install
After the complete installation back the default gcc and g++ versions:
cd /usr/bin
sudo mv g++ g++-4.8_
sudo ln -s g++-7 g++
sudo mv gcc gcc-4.8_
sudo ln -s gcc-7 gcc
And test:
gcc --version
g++ --version
Now it's time to compile some code. But, before this we need to unchanged the modifications on our mkspec:
cd /usr/local/Trolltech/Qt-4.8.4/mkspecs/linux-g++-64/
nano qmake.conf
And comment the lines changed and back to the original configuration:
#QMAKE_CFLAGS = -std=gnu++98 -fpermissive
#QMAKE_LFLAGS = -std=gnu++98 -fpermissive
#QMAKE_CXXFLAGS = -std=gnu++98 -fpermissive
QMAKE_CFLAGS = -m64
QMAKE_LFLAGS = -m64
QMAKE_CXXFLAGS = -m64
Now your change you *.pro file adding or change these lines:
QMAKE_CXX = g++-7
QMAKE_CC = gcc-7
Let me know if it works. For me everything it's fine.
I can't get Qt5.11.1 cross compile...
I've tried different solutions like:
https://lb.raspberrypi.org/forums/viewtopic.php?t=204529
https://wiki.qt.io/index.php?title=Raspberrypi_beginners_guide&redirect=no
My OS is manjaro and raspberry one is raspbian.
this is my configure command:
./Src/configure -opengl es2 -device linux-rasp-pi3-vc4-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -sysroot /run/media/luca/rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -skip qtwebengine -skip qtscript -nomake examples -make libs -prefix /usr/local/qt5 -v -no-use-gold-linker -nomake tests -no-compile-examples -no-pch -eglfs -skip qtwaylan
and this is the output:
make[3]: ingresso nella directory "/home/luca/Dev/Qt/5.11.1/QtPi3Bplus_build/qtbase/src/network"
arm-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/run/media/luca/rootfs -DOPENSSL_API_COMPAT=0x10100000L -O2 -std=c++11 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -D_REENTRANT -fPIC -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_USE_SYSTEM_PROXIES -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_NETWORK_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -I/home/luca/Dev/Qt/5.11.1/Src/qtbase/src/network -I. -I/home/luca/Dev/Qt/5.11.1/Src/qtbase/src/network/kernel -I/home/luca/Dev/Qt/5.11.1/Src/qtbase/include -I/home/luca/Dev/Qt/5.11.1/Src/qtbase/include/QtNetwork -I../../include -I../../include/QtNetwork -I/home/luca/Dev/Qt/5.11.1/Src/qtbase/include/QtNetwork/5.11.1 -I/home/luca/Dev/Qt/5.11.1/Src/qtbase/include/QtNetwork/5.11.1/QtNetwork -I../../include/QtNetwork/5.11.1 -I../../include/QtNetwork/5.11.1/QtNetwork -I/home/luca/Dev/Qt/5.11.1/Src/qtbase/include/QtCore/5.11.1 -I/home/luca/Dev/Qt/5.11.1/Src/qtbase/include/QtCore/5.11.1/QtCore -I../../include/QtCore/5.11.1 -I../../include/QtCore/5.11.1/QtCore -I/home/luca/Dev/Qt/5.11.1/Src/qtbase/include/QtCore -I../../include/QtCore -I.moc -I/home/luca/Dev/Qt/5.11.1/Src/qtbase/mkspecs/devices/linux-rasp-pi3-vc4-g++ -o .obj/qsslsocket_openssl11.o /home/luca/Dev/Qt/5.11.1/Src/qtbase/src/network/ssl/qsslsocket_openssl11.cpp
In file included from /home/luca/Dev/Qt/5.11.1/Src/qtbase/include/QtCore/qglobal.h:1:0,
from /home/luca/Dev/Qt/5.11.1/Src/qtbase/include/QtNetwork/../../src/network/kernel/qtnetworkglobal.h:43,
from /home/luca/Dev/Qt/5.11.1/Src/qtbase/include/QtNetwork/qtnetworkglobal.h:1,
from /home/luca/Dev/Qt/5.11.1/Src/qtbase/include/QtNetwork/5.11.1/QtNetwork/private/../../../../../src/network/kernel/qtnetworkglobal_p.h:54,
from /home/luca/Dev/Qt/5.11.1/Src/qtbase/include/QtNetwork/5.11.1/QtNetwork/private/qtnetworkglobal_p.h:1,
from /home/luca/Dev/Qt/5.11.1/Src/qtbase/src/network/ssl/qssl_p.h:56,
from /home/luca/Dev/Qt/5.11.1/Src/qtbase/src/network/ssl/qsslsocket_openssl11.cpp:59:
/home/luca/Dev/Qt/5.11.1/Src/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:121:49: error: static assertion failed: Required feature library for file /home/luca/Dev/Qt/5.11.1/Src/qtbase/include/QtCore/../../src/corelib/plugin/qlibrary.h not available.
# define Q_STATIC_ASSERT_X(Condition, Message) static_assert(bool(Condition), Message)
^
/home/luca/Dev/Qt/5.11.1/Src/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:87:36: note: in expansion of macro ‘Q_STATIC_ASSERT_X’
#define QT_REQUIRE_CONFIG(feature) Q_STATIC_ASSERT_X(QT_FEATURE_##feature == 1, "Required feature " #feature " for file " __FILE__ " not available.")
^
/home/luca/Dev/Qt/5.11.1/Src/qtbase/include/QtCore/../../src/corelib/plugin/qlibrary.h:45:1: note: in expansion of macro ‘QT_REQUIRE_CONFIG’
QT_REQUIRE_CONFIG(library);
^
make[3]: *** [Makefile:27760: .obj/qsslsocket_openssl11.o] Error 1
make[3]: uscita dalla directory "/home/luca/Dev/Qt/5.11.1/QtPi3Bplus_build/qtbase/src/network"
make[2]: *** [Makefile:275: sub-network-make_first] Error 2
make[2]: uscita dalla directory "/home/luca/Dev/Qt/5.11.1/QtPi3Bplus_build/qtbase/src"
make[1]: *** [Makefile:49: sub-src-make_first] Error 2
make[1]: uscita dalla directory "/home/luca/Dev/Qt/5.11.1/QtPi3Bplus_build/qtbase"
someone know the problem??
from /home/luca/Dev/Qt/5.11.1/Src/qtbase/src/network/ssl/qsslsocket_openssl11.cpp:59:
It would seem you are missing openSSL libraries. Configure with -no-openssl if you can live without openSSL, or try to install it into your sysroot and try with -openssl-runtime .
I had the same issue. And the problem was that Qt couldn't find libdl.so To fix this I put libdl.so in /sysroot/usr/lib.
To find it i add -feature-library flag to ./configure. That command what i use:
./configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=armv8-rpi3-linux-gnueabihf- -sysroot /mnt/second/proj/dai/env/work/sysroot -opensource -confirm-license -make libs -nomake examples -nomake tests -prefix /usr/local/qt5pi -extprefix /mnt/second/proj/dai/env/work/qt5pi -hostprefix /mnt/second/proj/dai/env/work/qt5 -v -no-use-gold-linker -sql-mysql -mysql_config /mnt/second/proj/dai/env/work/../mysql_config -ssl -openssl-runtime -feature-library
I want to build Qt 5.10.1 using MSVC2015, and without MSVC Runtime.
Followed http://amin-ahmadi.com/2016/09/22/how-to-build-qt-5-7-statically-using-msvc14-microsoft-visual-studio-2015/
Configure:
configure -static -debug-and-release -prefix
"C:\Qt\5.10.1-static-msvc2015" -platform win32-msvc2015 -qt-zlib
-qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -sql-sqlite -sql-odbc -no-openssl -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests
modified src\qtbase\mkspecs\common\msvc-desktop.conf change -MD to -MT.
No error during building, but if I don't install MSVC runtime when I run my program will get:
api-ms-win-crt-runtime-l1-1-0.dll missing.
How to make the MSVC static standalone like Mingw static build?
The output of compiling test program:
cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline
-Zc:strictStrings -Zc:throwingNew -O2 -MT -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -EHsc -DUNICODE -D_UNICODE -DWIN32 -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DNDEBUG
If I don't do step 2, the output will be -MD.
So Why the -MT (step 2) didn't work?
If you having any idea or guessing, Please comment.
Update:
Win10 64
No matter I add -static-runtime or not, both can run with without vc_redist
Win 7 32
Qt 5.10.1 compilation passed, but got api-ms-win-core-winrt-l1-1-0.dll is missing when executing the program.
Even I reinstall vc_redist still got the error...
Relate: Why installed vc_redist still gives api-ms-win-core-winrt-l1-1-0.dll is missing
Qt 5.11.1 compilation also passed, but got C1083: 'QtCore/qglobal.h':No such file or directory when building the program.
Compiling Qt sources from Qt 5.5.0 you can pass -static-runtime argument to configure for static runtime.
Changes 5.5.0:
[Windows] Added -static-runtime option.
Config Options:
-static-runtime ...... With -static, use static runtime [no] (Windows only)
I downloaded arm-none-linux-gnueabi from CodeSourcery version 2011, after set path and config with this command
sudo ./configure \
-opengl es2 -no-xcb\
-release -silent \
-continue \
-opensource -confirm-license \
-prefix $DEVICE_PREFIX \
-hostprefix $HOST_PREFIX \
-sysroot $SYSTEM_ROOT \
-device $TARGET_DEVICE \
-device-option CROSS_COMPILE=${CC} \
-qt-libpng \
-qt-libjpeg \
-nomake examples \
-nomake tests
Get this Error :
executing config test use_gold_linker
+ cd /home/amin/EMA/qt-everywhere-opensource-src-5.8.0/qtbase/config.tests && arm-none-linux-gnueabi-g++ -fuse-ld=gold -o conftest-out conftest.cpp
cc1plus: error: unrecognized command line option '-fuse-ld=gold'
test config.qtbase.tests.use_gold_linker FAILED
executing config test verifyspec
+ cd /home/amin/EMA/qt-everywhere-opensource-src-5.8.0/qtbase/config.tests/common/verifyspec && /home/amin/EMA/qt-everywhere-opensource-src-5.8.0/qtbase/bin/qmake -qtconf /home/amin/EMA/qt-everywhere-opensource-src-5.8.0/qtbase/bin/qt.conf "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += static console" "QMAKE_CFLAGS += --sysroot=/" "QMAKE_CXXFLAGS += --sysroot=/" "QMAKE_LFLAGS += --sysroot=/" /home/amin/EMA/qt-everywhere-opensource-src-5.8.0/qtbase/config.tests/common/verifyspec
+ cd /home/amin/EMA/qt-everywhere-opensource-src-5.8.0/qtbase/config.tests/common/verifyspec && MAKEFLAGS= /usr/bin/make
arm-none-linux-gnueabi-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -mfloat-abi=softfp --sysroot=/ -O2 -O3 -Wall -W -fPIC -I. -I/home/amin/EMA/qt-everywhere-opensource-src-5.8.0/qtbase/mkspecs/devices/linux-beagleboard-g++ -o verifyspec.o verifyspec.cpp
arm-none-linux-gnueabi-g++ -mfloat-abi=softfp --sysroot=/ -Wl,-O1 -o verifyspec verifyspec.o -lrt -lpthread -ldl
/home/amin/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find crt1.o: No such file or directory
/home/amin/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find crti.o: No such file or directory
/home/amin/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lrt
/home/amin/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lpthread
/home/amin/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -ldl
/home/amin/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lstdc++
/home/amin/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lm
/home/amin/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lgcc_s
/home/amin/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lc
/home/amin/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lgcc_s
/home/amin/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find crtn.o: No such file or directory
collect2: ld returned 1 exit status
Makefile:64: recipe for target 'verifyspec' failed
make: *** [verifyspec] Error 1
Your compilation log shows that it was trying to use the gold linker, however the command was not found. The later error of missing libraries and object files presumably stem from this error.
gold is a relatively recent addition to the GNU toolchain, and you're using a fairly old version (gcc 4.6.1) so I would suggest upgrading your toolchain to the most recent one, unless you have really good reasons not to do so.
Qt is quite opinionated when it comes to toolchain selection. There's a list of supported compilers which does not include something based on GCC 4.6. Given that Qt requires C++11 support these days, your chances of getting this working with an ancient compiler are severely limited.
Linaro provides nice toolchains for download. Is there any reason why you are not using one? Alternatively, you also likely require some additional SW on your BBB, so chances are that you're using a distribution like Debian or a building tool such as Buildroot or Yocto for producing your images. BeagleBone Black is a mainstream platform with support provided by essentially anything targetting embedded platforms.
A TL;DR version: Update your toolchain or your build environment. Qt is no simple library.