Browse Source

Fix build with Qt4

tags/1.9.4
falkTX 11 years ago
parent
commit
f687755700
5 changed files with 10 additions and 8 deletions
  1. +1
    -1
      data/windows/build-win32.sh
  2. +1
    -1
      data/windows/build-win64.sh
  3. +4
    -0
      source/backend/engine/Makefile
  4. +2
    -3
      source/backend/standalone/Makefile
  5. +2
    -3
      source/carla_shared.py

+ 1
- 1
data/windows/build-win32.sh View File

@@ -34,7 +34,7 @@ export PYUIC="wine $PYTHON_EXE C:\\\\Python33\\\\Lib\\\\site-packages\\\\PyQt4\\
export PYRCC="wine C:\\\\Python33\\\\Lib\\\\site-packages\\\\PyQt4\\\\pyrcc4.exe -py3"

export CFLAGS="-DPTW32_STATIC_LIB -I$MINGW_PATH/include"
export CXXFLAGS="-DPTW32_STATIC_LIB -DFLUIDSYNTH_NOT_A_DLL -D__WINDOWS_ASIO__ -D__WINDOWS_DS__ -D__WINDOWS_MM__ -I$MINGW_PATH/include"
export CXXFLAGS="-DPTW32_STATIC_LIB -DFLUIDSYNTH_NOT_A_DLL -I$MINGW_PATH/include"
export EXTRA_LIBS1="-lglib-2.0 -lgthread-2.0 -lgig -lsndfile -lFLAC -lvorbisenc -lvorbis -logg"
export EXTRA_LIBS2="$MINGW_PATH/lib/qt4/plugins/imageformats/libqsvg.a $MINGW_PATH/lib/qt4/plugins/iconengines/libqsvgicon.a"



+ 1
- 1
data/windows/build-win64.sh View File

@@ -34,7 +34,7 @@ export PYUIC="wine $PYTHON_EXE C:\\\\Python33\\\\Lib\\\\site-packages\\\\PyQt4\\
export PYRCC="wine C:\\\\Python33\\\\Lib\\\\site-packages\\\\PyQt4\\\\pyrcc4.exe -py3"

export CFLAGS="-DPTW32_STATIC_LIB -I$MINGW_PATH/include"
export CXXFLAGS="-DPTW32_STATIC_LIB -DFLUIDSYNTH_NOT_A_DLL -D__WINDOWS_ASIO__ -D__WINDOWS_DS__ -D__WINDOWS_MM__ -I$MINGW_PATH/include"
export CXXFLAGS="-DPTW32_STATIC_LIB -DFLUIDSYNTH_NOT_A_DLL -I$MINGW_PATH/include"
export EXTRA_LIBS1="-lglib-2.0 -lgthread-2.0 -lgig -lsndfile -lFLAC -lvorbisenc -lvorbis -logg"
export EXTRA_LIBS2="$MINGW_PATH/lib/qt4/plugins/imageformats/libqsvg.a $MINGW_PATH/lib/qt4/plugins/iconengines/libqsvgicon.a"



+ 4
- 0
source/backend/engine/Makefile View File

@@ -46,6 +46,10 @@ BUILD_CXX_FLAGS += $(shell pkg-config --cflags libpulse-simple) -D__LINUX_PULSE_
LINK_FLAGS += $(shell pkg-config --libs libpulse-simple)
endif

ifeq ($(WIN32),true)
BUILD_CXX_FLAGS += -D__WINDOWS_ASIO__ -D__WINDOWS_DS__ -D__WINDOWS_MM__
endif

PLUGIN_CXX_FLAGS = $(BUILD_CXX_FLAGS)
PLUGIN_CXX_FLAGS += -Idistrho -I../../libs/distrho
PLUGIN_CXX_FLAGS += -DWANT_PLUGIN


+ 2
- 3
source/backend/standalone/Makefile View File

@@ -24,7 +24,7 @@ LINK_FLAGS += $(shell pkg-config --libs liblo)
ifeq ($(HAVE_QT5),true)
LINK_FLAGS += $(shell pkg-config --libs Qt5Core Qt5Xml Qt5Widgets)
else
LINK_FLAGS += $(shell pkg-config --libs QtCore QtXml QtWidgets)
LINK_FLAGS += $(shell pkg-config --libs QtCore QtGui QtXml)
endif

# --------------------------------------------------------------
@@ -57,8 +57,7 @@ endif
# Native

ifeq ($(WIN32),true)
DGL_LIBS = -lgdi32
W32_LIBS = -lcomdlg32 -ldsound -limm32 -lole32 -luuid -lwinmm -lwinspool -lws2_32
W32_LIBS = -lcomdlg32 -ldsound -lgdi32 -limm32 -lole32 -luuid -lwinmm -lwinspool -lws2_32
ifeq ($(HAVE_LINUXSAMPLER),true)
W32_LIBS += -lrpcrt4
endif


+ 2
- 3
source/carla_shared.py View File

@@ -146,7 +146,7 @@ Carla.processMode = PROCESS_MODE_CONTINUOUS_RACK
Carla.maxParameters = MAX_RACK_PLUGINS

# ------------------------------------------------------------------------------------------------------------
# Carla GUI stuff
# Carla GUI defines

ICON_STATE_NULL = 0
ICON_STATE_WAIT = 1
@@ -308,8 +308,7 @@ elif HAIKU:
splitter = ":"

DEFAULT_LADSPA_PATH = ":".join((os.path.join(HOME, ".ladspa"),
os.path.join("/", "usr", "lib", "ladspa"),
os.path.join("/", "usr", "local", "lib", "ladspa")))
os.path.join("/", "boot", "common", "add-ons", "ladspa")))

DEFAULT_DSSI_PATH = ":".join((os.path.join(HOME, ".dssi"),
os.path.join("/", "boot", "common", "add-ons", "dssi")))


Loading…
Cancel
Save