Hi Everyone,

I'm trying to re-compile/build an app for M1 ARM64.
I installed Qt 6.2 and MySQL 8, both supports M1/ARM64.
I've run into a brick wall trying to build the MySQL ARM64 driver as it appears that /usr/bin/clang++ is defaulting to -arch x86_64.
So there could be issues relating to Qt 6.2/M1, don't know, and I can't find any info/solution.

I therefore opted to build the x86_64 driver and re-built the app in Qt Creator with "CONFIG += x86_64" in the .pro file, but the target build is still ARM64 and so, won't load the x86_64 driver (wrong architecture).

So my question is, how do I either:
a) build an ARM64 driver --or--
b) force Qt Creator to build x86_64 app.

Below is the .pro config details:

Qt Code:
  1. QT += sql
  2. QT += printsupport
  3. TARGET = VDB
  4. TEMPLATE = app
  5. CONFIG += x86_64
  6. # QT_DEBUG_PLUGINS = 1
  7.  
  8. DYLD_LIBRARY_PATH += /usr/local/mysql
  9. LIBS += -L/usr/local/mysql
  10. LD_LIBRARY_PATH += //usr/local/mysql
  11.  
  12. ### DYLD_LIBRARY_PATH += /usr/local/mysql-ARM64
  13. ### LIBS += -L/usr/local/mysql-ARM64
  14. ### LD_LIBRARY_PATH += //usr/local/mysql-ARM64
To copy to clipboard, switch view to plain text mode 

Thanks,