Compile QT and append a suffix to the generated DLLs name - visual-studio

Due to this error, I need to compile QT and generate the whole set of libs and DLLs with a custom suffix. Something like Qt5Core_MySuffix.dll, Qt5Gui_MySuffix.dll, Qt5Core_MySuffix.lib, and so on...
How can I do that? I am using this and this tutorials to perform the compilation.
Do I need to edit the configure.bat file?
Environment:
Windows7
MSVC2015

You can do this on configuration step. Where is an option qtlibinfix:
-qtlibinfix <infix> Renames all Qt* libs to Qt*<infix>.
Just add it to the configure command from you link:
configure -static -qtlibinfix MyInFix -debug-and-release -prefix “C:\Qt\Static\5.7.0” -platform win32-msvc2015 -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -qt-sql-sqlite -qt-sql-odbc -no-openssl -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests
EDIT: I'm not sure if the BUG with not adding InFix to the Qt plugins is fixed. If not, you can easily fix it yourself. Take a look here

Related

QT6 Cross Compile RPI 4

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

Building qt5 No Suitable Compiler Found In Path. Windows11

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.

Qt Application resources are missing in static build

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 :(

Can we have a compiler running in embedded device

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

MITK Build Error

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.

Resources