Skip to content

Commit

Permalink
Hopefully fixes the Linux builds for qwt (shared version)
Browse files Browse the repository at this point in the history
- Also should add OMOptimBasis as a shared library


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20717 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed May 21, 2014
1 parent 247509b commit eb5b782
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion OMPlot/OMPlotGUI/Makefile.unix.in
Expand Up @@ -20,7 +20,7 @@ Makefile: OMPlotGUI.pro OMPlotGUI.config
Makefile.lib: Makefile OMPlotLib.pro OMPlotGUI.config
@rm -f $@
$(QMAKE) OMPlotLib.pro -o $@

cp -a ../bin/libOMPlot* $(top_builddir)/build/lib/omc/
clean:
test ! -f Makefile || $(MAKE) -f Makefile clean
test ! -f Makefile.lib || $(MAKE) -f Makefile.lib clean
Expand Down
4 changes: 2 additions & 2 deletions OMPlot/OMPlotGUI/OMPlotGUI.config.in
Expand Up @@ -2,8 +2,8 @@ QMAKE_CC = @CC@
QMAKE_CXX = @CXX@
QMAKE_LINK = @CXX@

LIBS += -L../../3rdParty/qwt/build/lib -lqwt -L ../../build/lib/omc -lgc @RPATH_QMAKE@
INCLUDEPATH += ../../3rdParty/qwt/build/include ../../3rdParty/gc-7.2/include
LIBS += -L ../../build/lib/omc -lqwt -lgc @RPATH_QMAKE@
INCLUDEPATH += ../../3rdParty/qwt/src ../../3rdParty/gc-7.2/include

QMAKE_CFLAGS = @CFLAGS@ @CPPFLAGS@
QMAKE_CXXFLAGS = @CFLAGS@ @CPPFLAGS@
Expand Down
8 changes: 5 additions & 3 deletions OMPlot/OMPlotGUI/OMPlotLib.pro
Expand Up @@ -9,7 +9,10 @@ QT += core gui
TARGET = OMPlot
TEMPLATE = lib

CONFIG += release staticlib
CONFIG += release
win32 {
CONFIG += staticlib
}
QMAKE_LFLAGS += -enable-auto-import

SOURCES += main.cpp \
Expand Down Expand Up @@ -50,8 +53,7 @@ LIBS += -L../../3rdParty/qwt/build/lib -lqwtd \
-L../../3rdParty/gc-7.2/.libs -lgc
}
else {
LIBS += -L../../3rdParty/qwt/build/lib -lqwt \
-L../../3rdParty/gc-7.2/.libs -lgc
LIBS += -L../../build/lib/omc/ -lqwt -lgc
}
INCLUDEPATH += ../../3rdParty/qwt/build/include \
../../3rdParty/gc-7.2/include
Expand Down

0 comments on commit eb5b782

Please sign in to comment.