Opened 7 years ago

Last modified 6 years ago

#4989 assigned defect

Build error using homebrew's Qt 5.11 on macOS

Reported by: Silvio Traversaro <pegua1@…> Owned by: Adeel Asghar
Priority: high Milestone: Future
Component: *unknown* Version:
Keywords: Cc:

Description

When building GUIs exectuables such as OMPlotGUI and OMEditGUI on macOS using the latest Qt 5.11, I get the following error:

clang++ -c -I/usr/local/opt/gettext/include -std=c++11 -O2 -std=gnu++11   x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -mmacosx-version-min=10.11 -w -fPIC -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../build/include/omplot/qwt -I../../../build/include/omc/c -I. -I/usr/local/Cellar/qt/5.11.0/lib/QtSvg.framework/Headers -I/usr/local/Cellar/qt/5.11.0/lib/QtPrintSupport.framework/Headers -I/usr/local/Cellar/qt/5.11.0/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.11.0/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.11.0/lib/QtCore.framework/Headers -I../generatedfiles/moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AGL.framework/Headers -I/usr/local/Cellar/qt/5.11.0/mkspecs/macx-clang -F/usr/local/Cellar/qt/5.11.0/lib -o Plot.o Plot.cpp
clang: error: no such file or directory: 'x86_64'

Apparently this is due to a qmake.sh that is stripping away the -arch flag from the makefile. A fix is proposed in https://github.com/OpenModelica/OpenModelica-common/pull/2 .

Change History (2)

comment:1 by Per Östlund, 7 years ago

Owner: changed from somebody to Adeel Asghar
Status: newassigned

comment:2 by Silvio Traversaro <pegua1@…>, 6 years ago

Hi everyone, thanks for the 1.13 released andhappy holidays!

There is anything that I can do to help you in merging https://github.com/OpenModelica/OpenModelica-common/pull/2 ? In my organization we are using OpenModelica, and on macOS for all our dependencies we use homebrew.
That fix is the only thing that is preventing us to have a working OpenModelica formula (https://github.com/traversaro/homebrew-modelica). We could handle this as patch in the homebrew formula, but doing that is non trivial as OpenModelica-common is contained as a git submodules in several OpenModelica's repositories. However we will investigate the possibility of including this as a patch in the homebrew formula if necessary.

Thanks a lot.

Note: See TracTickets for help on using tickets.