#3587 closed defect (fixed)
OMEdit build on MacOS is broken
Reported by: | Adrian Pop | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | high | Milestone: | 1.9.4 |
Component: | OMEdit | Version: | |
Keywords: | Cc: |
Description
We get something like:
make[2]: OMEditGUI.pro: No such file or directory make[2]: *** [Resources/nls/qm.stamp] Error 1 make[1]: *** [omedit] Error 2 make: *** [omedit] Error 2
See also: https://test.openmodelica.org/hudson/view/Mac/job/OpenModelica_OSX_BUILD/4264/consoleFull
Change History (14)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
I don't know yet, I'm trying to build it with single processor now so we can get more info.
comment:3 by , 9 years ago
It could be that qmake was not found because something changed in macports again (I guess it tried to execute the command OMEditGUI.pro, and . is not on the PATH, and OMEditGUI.pro is not an executable anyway).
comment:4 by , 9 years ago
Yes, it seems we use $(QMAKE) inside the Makefile and that is not set to anything.
Also, I had to manually set the PATH so that I can build OMC on mac. How are the paths set for the hudson user?
comment:5 by , 9 years ago
https://test.openmodelica.org/hudson/job/OpenModelica_OSX_BUILD/configure
says essentially:
export QTDIR=/opt/openmodelica/libexec/qt4 ./configure --without-omc --enable-modelica3d CC=clang CXX=clang++ CFLAGS='-Os' GNUCXX=g++-mp-4.8 OMPCC="gcc-mp-4.8 -fopenmp -mno-avx" --with-omlibrary=core --with-omniORB FC=gfortran-mp-4.8 LDFLAGS=-L/opt/openmodelica/lib CPPFLAGS=-I/opt/openmodelica/include time make -j4
comment:6 by , 9 years ago
Yes, but qmake is not in the path, is inside /opt/openmodelica/libexec/qt4/bin
.
comment:7 by , 9 years ago
The common directory in OMEdit checks QTDIR, unless Adeel reverted my changes ;)
comment:8 by , 9 years ago
Yeah, it seems that configure doesn't properly set QMAKE inside Makefile.unix.in where we we have QMAKE=@QMAKE@
. After running configure QMAKE in Makefile.unix is nothing.
comment:9 by , 9 years ago
I have now updated OMEdit/common to the version that checks QTDIR... Adeel reverted to an old version in the merge conflict.
comment:10 by , 9 years ago
I don't know if it relates, but for the last 4 days, OpenModelica_OSX_BUILD has been failing on Hudson, while OpenModelica_OSX_NIGHTLY_BUILD on Hudson has continued to work.
comment:11 by , 9 years ago
It does relate. However, Martin has fixed it now so it should work again.
comment:12 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Strange. Why does it says "No such file or directory" when we have that file https://github.com/OpenModelica/OMEdit/blob/master/OMEdit/OMEditGUI/OMEditGUI.pro