I am trying to cross compile QT for RPI 64 bits on a Mac based on the following instructions:
https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi
The issue I am having is that cmake does not recognize 2 libraries:
cannot find -lstdc++
cannot find -lgcc_s
that are located under:
/Volumes/crosstool-ng/aarch64-rpi4-linux-gnu/aarch64-rpi4-linux-gnu/lib64
I use the following command:
../qt6/configure -release -opengl es2 -nomake examples -nomake tests -qt-host-path $HOME/qt-host -extprefix $HOME/qt-raspi -prefix /usr/local/qt6 -device linux-rasp-pi4-aarch64 -device-option CROSS_COMPILE=/Volumes/crosstool-ng/aarch64-rpi4-linux-gnu/bin/aarch64-rpi4-linux-gnu- -- -DCMAKE_TOOLCHAIN_FILE=$HOME/toolchain.cmake1 -DQT_FEATURE_xcb=ON -DFEATURE_xcb_xlib=ON -DQT_FEATURE_xlib=ON
and my toolchain.cmake1 is exactly the one that is in the description link above.
What do I need to add to the toolchain.cmake1 to have these 2 libraries included ?
Thanks
I'm trying to build qt5 on windows 11 and after running the
..\\configure -developer-build -opensource -nomake examples -nomake tests command it returns No Suitable Compiler Found in Path. Aborting.
I trying to build Qt application under windows statically but after static build application resources are missing (I use custom icons).
I compiled Qt statically using the following commands:
configure -opensource -confirm-license -static -platform win32-g++ -opengl desktop -prefix "C:\Qt\5.13.0\mingw73_64-static" -skip webengine -nomake examples
mingw32-make
mingw32-make install
Using the dynamic version of Qt, everything works, the icons are missing only when I use static version. Icons in .svg format.
Also I tried to Q_INIT_RESOURCE but have the same result :(
It may sound weird but I would like to know if we can have compiler in embedded device (lets say gcc support on imx6).
Of course, it is not uncommon to have target tools, but is is not trivial. A non-native (from the host perspective) compiler must be cross-compiled for the target architecture. You didn't provide any details, but maybe your build system can build target tools for you. Of course, you need much more than just a compiler. You probably need make, autotools, and probably more. It depends on what you are trying to compile on the target.
Your best bet would be to gain some proficiency using a cross-compiler environment. If you haven't already, you might check out the Yocto Project. It supports i.mx6 (and much more) and probably provides a path to get target tools on your board.
Good luck!
To arm arch, it will be easy to get target compiler, linaro ubuntu of linaro project will provide a completely solution for arm arch, it can provide GNOME desktop、toolchain and informative tools on your target.
You can get more info from the following link:
https://wiki.linaro.org/Platform/DevPlatform/Ubuntu
Yes that should easy enough.. What version of cross-compiler do you have in your machine, download the matching gcc compiler from here https://ftp.gnu.org/gnu/gcc/
Now what you want to do is cross-compile the GCC which you downloaded using the crosscompiler which you already have.
Following is an example of compiling 4.7.4, NOTE: replace the HOST and BUILD according to your platform:
./contrib/download_prerequisites
cd ..
mkdir objdir
cd objdir
../gcc-4.7.4/configure --build=$BUILD \
--host=$HOST \
--target=$HOST \
--prefix=/usr \
--disable-nls \
--enable-languages=c,c++ \
--with-float=hard
make -j $JOBS
make DESTDIR=<path_where_to_install> install
I Build manually Qt 4.7.4 64bit and use cmake-gui in window7 make MITK source.
configure.exe -debug-and-release -qt-sql-sqlite -no-multimedia -no-audio-backend -no-phonon -no-phonon-backend -no-declarative -mp -nomake examples -nomake demos -nomake docs -opensource -platform win32-msvc2013
after make MITK, I build it use visual studio 2010 64bit
but there is some error like this
Error 91 error : could not find CMAKE_GENERATOR in Cache D:\MITK\MITK-superbuild-msvc2010_x64-03\CUSTOMBUILD
Error 89 error MSB6006: "cmd.exe" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151
what can I do for solve this problem?
I had similar problem. Those two links were very helpful:
https://www.mail-archive.com/mitk-users#lists.sourceforge.net/msg06034.html
http://sourceforge.net/p/mitk/mailman/message/34233529/
Firstly I downloaded patch.exe from gnuwin32 site. Then I added path to it in system variables.
And using CMake I builded MITK from source file:
MITK-2015.05.0-src-win.zip
During all procedures I blocked my antivirus. Now it's working fine.