Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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 Adeel Asghar, 9 years ago

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

comment:2 by Adrian Pop, 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 Martin Sjölund, 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 Adrian Pop, 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 Martin Sjölund, 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 Adrian Pop, 9 years ago

Yes, but qmake is not in the path, is inside /opt/openmodelica/libexec/qt4/bin.

comment:7 by Martin Sjölund, 9 years ago

The common directory in OMEdit checks QTDIR, unless Adeel reverted my changes ;)

comment:8 by Adrian Pop, 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 Martin Sjölund, 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 Adam Dershowitz, 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 Adeel Asghar, 9 years ago

It does relate. However, Martin has fixed it now so it should work again.

comment:12 by Adeel Asghar, 9 years ago

Resolution: fixed
Status: newclosed

comment:13 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:14 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.