Build error from Windows to Mac
-
Hello,
I created a Qt project in Windows and I am trying now to build it with Mac. I am using the same version of Qt 5.12.0 that I used for crating the project in Windows. I tried debugging it with Desktop Qt 5.12.0 clang 64bit.
I get the following errors:
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++11 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -mmacosx-version-min=10.12 -Wall -W -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_CHARTS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_CORE_LIB -I../ -I. -IC:/Program\ Files\ (x86)/Windows\ Kits/10/Include/10.0.10240.0/ucrt -I/Users/Qt/5.12.0/clang_64/lib/QtCharts.framework/Headers -I/Users/Qt/5.12.0/clang_64/lib/QtWidgets.framework/Headers -I/Users/Qt/5.12.0/clang_64/lib/QtGui.framework/Headers -I/Users/Qt/5.12.0/clang_64/lib/QtSerialPort.framework/Headers -I/Users/Qt/5.12.0/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/Users/Qt/5.12.0/clang_64/mkspecs/macx-clang -F/Users/Qt/5.12.0/clang_64/lib -o alglibmisc.o ../alglib/alglibmisc.cpp'
make: *** [alglibmisc.o] Error 2I get this error for all the files that are contained in the imported alglib folder.
Could anyone please help me?
I really thank you for your attention.
Best regards
-
@cb96 said in Build error from Windows to Mac:
. -IC:/Program\ Files\ (x86)/Windows\ Kits/10/Include/10.0.10240.0/ucrt
This can't be correct for a Mac build. Use a clean source and build dir.
-
Hi and welcome to devnet,
Are you using a script to build your application ?
If so, can you share it ?