Yocto Windows SDK with meta-qt6
CC'd the mailing list
Quoted 5 lines · Ansar
Hi,
I am trying to create a Kit in Qt Creator 7.0.2 from an SDK generated for
x86_64arch with mingw support (meta-mingw) for Windows Host. Upon adding qmake.exe file and compilers (C/C++), Kit throws error of "The Compiler GCC cannot produce code for Qt Version". However, the ABIs set in both GCC and Qt versions are same and compatible. Screenshot is attached below.
Quoted 7 lines
Upon investigating, i found out that the gcc compiler /x86_64-oe-linux-gcc.exe /doesn't work on cmdline. It throws error of missing libwinpthread-1.dll library which is actually present there but seems like the compiler binary is wrongly placed by meta-mingw layer. Currently, the locations of library and compiler binary is as below:
<sdk>/sysroot/x86_64-mingw32/usr/bin/libwinpthread-1.dll <sdk>/sysroot/x86_64-mingw32/usr/bin/x86_64-oe-linux/x86_64-oe-linux-gcc.exe
This setup throws error. But if I copy the libwinpthread-1.dll library onto the same directory where the compiler binary is present, it works fine. Which means that, somehow the compiler is expecting the dll to be loaded from current working directory whereas it is present in its parent directory. So, the SDK paths needs to be fixed.
Can you check if it works without any additional layers? Also would it be possible to get your local.conf?
Quoted 6 lines
Kindly input what could be the proper fix for it.
Regards,
Ansar Rasool
Quoted 15 lines · Joshua Watt
**[Please note: This e-mail is from an EXTERNAL e-mail address]
CC'd the mailing list
Quoted 8 lines · Ansar
Hi,
I am trying to create a Kit in Qt Creator 7.0.2 from an SDK generated for
x86_64arch with mingw support (meta-mingw) for Windows Host. Upon adding qmake.exe file and compilers (C/C++), Kit throws error of "The Compiler GCC cannot produce code for Qt Version". However, the ABIs set in both GCC and Qt versions are same and compatible. Screenshot is attached below.Upon investigating, i found out that the gcc compiler /x86_64-oe-linux-gcc.exe /doesn't work on cmdline. It throws error of missing libwinpthread-1.dll library which is actually present there but seems like the compiler binary is wrongly placed by meta-mingw layer. Currently, the locations of library and compiler binary is as below:
Quoted 8 lines
Quoted 4 lines
<sdk>/sysroot/x86_64-mingw32/usr/bin/libwinpthread-1.dll <sdk>/sysroot/x86_64-mingw32/usr/bin/x86_64-oe-linux/x86_64-oe-linux-gcc.exe
This setup throws error. But if I copy the libwinpthread-1.dll library onto the same directory where the compiler binary is present, it works fine. Which means that, somehow the compiler is expecting the dll to be loaded from current working directory whereas it is present in its parent directory. So, the SDK paths needs to be fixed.
Can you check if it works without any additional layers? Also would it be possible to get your local.conf?
Ansar, also please include the bblayers.conf file.
Sakib
Quoted 16 lines
Quoted 7 lines
Kindly input what could be the proper fix for it.
Regards,
Ansar Rasool-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57404):https://lists.yoctoproject.org/g/yocto/message/57404 Mute This Topic:https://lists.yoctoproject.org/mt/92044125/4422444 Group Owner:[email protected] Unsubscribe:https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-