Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Build error from Windows to Mac
Forum Updated to NodeBB v4.3 + New Features

Build error from Windows to Mac

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 326 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cb96
    wrote on last edited by cb96
    #1

    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 2

    I 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

    Christian EhrlicherC 1 Reply Last reply
    0
    • C cb96

      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 2

      I 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

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        Are you using a script to build your application ?
        If so, can you share it ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        C 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi and welcome to devnet,

          Are you using a script to build your application ?
          If so, can you share it ?

          C Offline
          C Offline
          cb96
          wrote on last edited by
          #4

          @SGaist Thanks for your quick answer. I am trying debugging and running the project directly from Qt Creator play button.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved