Re: [Interest] CMake problems with WASM

2023-11-21 Thread Thiago Macieira
On Tuesday, 21 November 2023 08:43:20 PST DAS Loop wrote: > Yes Thiago, CMAKE_TOOLCHAIN_FILE is the way but vcpkg is doing the same. Either vcpkg knows about building for WASM or it doesn't. If it does, then its toolchain file is the one you want and it will produce WASM content. If it doesn't,

Re: [Interest] CMake problems with WASM

2023-11-21 Thread DAS Loop
Yes Thiago, CMAKE_TOOLCHAIN_FILE is the way but vcpkg is doing the same. QT_CHAINLOAD_TOOLCHAIN_FILE works (more or less), thanks Alexandru. Thanks, David On Tue, Nov 21, 2023 at 4:26 PM Thiago Macieira wrote: > On Tuesday, 21 November 2023 06:04:36 PST DAS Loop wrote: > > The app is compiled

Re: [Interest] CMake problems with WASM

2023-11-21 Thread Thiago Macieira
On Tuesday, 21 November 2023 06:04:36 PST DAS Loop wrote: > The app is compiled for wasm as expected. > > > Because I´m using vcpkg, using CMAKE_TOOLCHAIN_FILE is not a solution for > me. > > > Any idea of what is wrong? If you're cross-compiling, you MUST use CMAKE_TOOLCHAIN_FILE. -- Thiago

Re: [Interest] CMake problems with WASM

2023-11-21 Thread Alexandru Croitor via Interest
Hi, Configure with cmake -B build -G Ninja -S . -DCMAKE_TOOLCHAIN_FILE=/Users/Shared/Qt6.2.0/6.6.0/wasm_singlethread/lib/cmake/Qt6/qt.toolchain.cmake -DQT_CHAINLOAD_TOOLCHAIN_FILE= > On 21. Nov 2023, at 15:04, DAS Loop wrote: > > > Hi, > > I have a small test for wasm using cmake that co

[Interest] CMake problems with WASM

2023-11-21 Thread DAS Loop
Hi, I have a small test for wasm using cmake that compiles only for the main architecture (in my case macOS). With Qt installed in the following paths: - /Users/Shared/Qt6.2.0/6.6.0/macos - /Users/Shared/Qt6.2.0/6.6.0/wasm_singlethread If I generate the build with: cmake -B build -G Ninja -S .

Re: [Interest] Building a Qt app with target SDK 33 on Android with the latest Qt Creator 11.0.3

2023-11-21 Thread ekke
Hi Nuno, yep - you should set these variables in .pro: ANDROID_MIN_SDK_VERSION = "21" ANDROID_TARGET_SDK_VERSION = "33" QMake will put them into gradle.properties ekke Am 21.11.23 um 11:13 schrieb Nuno Santos: Ekke, Thanks for your reply. I’m still using qmake. I could select the Android B

Re: [Interest] Building a Qt app with target SDK 33 on Android with the latest Qt Creator 11.0.3

2023-11-21 Thread Nuno Santos
Ekke, Thanks for your reply. I’m still using qmake. I could select the Android Build Platform SDK as android-33 But the build would still get targeted to 31 But I have discovered that setting ANDROID_TARGET_SDK_VERSION variable on qmake set to 33 does the trick. Best regards, Nuno > On 21

Re: [Interest] Building a Qt app with target SDK 33 on Android with the latest Qt Creator 11.0.3

2023-11-21 Thread ekke
In QtCreator, Build Android APK can you select Android Build Platform SDK: android-33 and Android Build-tools version 33.0.2 ? are you building with QMake or CMake, for Qt 5.15 or 6.6 ? Am 21.11.23 um 10:25 schrieb Nuno Santos: Hi, I’m having issues in build an app targeting SDK 33 with Qt Cre

[Interest] Building a Qt app with target SDK 33 on Android with the latest Qt Creator 11.0.3

2023-11-21 Thread Nuno Santos
Hi, I’m having issues in build an app targeting SDK 33 with Qt Creator. No matter what I do I have always end up with a build targeting SDK 31. I’m using the latest Qt Creator 11.0.3 Does anyone knows how to work this around? Thanks! Regards, Nuno