| @@ -23,35 +23,31 @@ export UIC=$MINGW-uic | |||||
| export STRIP=$MINGW-strip | export STRIP=$MINGW-strip | ||||
| export WINDRES=$MINGW-windres | export WINDRES=$MINGW-windres | ||||
| export CFLAGS="-DPTW32_STATIC_LIB -I$MINGW_PATH/include" | |||||
| export CXXFLAGS="-DPTW32_STATIC_LIB -DFLUIDSYNTH_NOT_A_DLL -I$MINGW_PATH/include" | |||||
| export EXTRA_LIBS="-lglib-2.0 -lgthread-2.0 -lgig -lsndfile -lFLAC -lvorbisenc -lvorbis -logg -ldsound -lole32 -lrpcrt4 -lws2_32 -lwinmm" | |||||
| export WINEARCH=win32 | export WINEARCH=win32 | ||||
| export WINEPREFIX=~/.winepy3_x86 | export WINEPREFIX=~/.winepy3_x86 | ||||
| export PYTHON_EXE="C:\\\\Python33\\\\python.exe" | |||||
| export PYTHON_EXE="C:\\\\Python34\\\\python.exe" | |||||
| export CXFREEZE="wine $PYTHON_EXE C:\\\\Python33\\\\Scripts\\\\cxfreeze" | |||||
| export CXFREEZE="wine $PYTHON_EXE C:\\\\Python34\\\\Scripts\\\\cxfreeze" | |||||
| export PYUIC="wine $PYTHON_EXE -m PyQt5.uic.pyuic" | export PYUIC="wine $PYTHON_EXE -m PyQt5.uic.pyuic" | ||||
| export PYRCC="wine C:\\\\Python33\\\\Lib\\\\site-packages\\\\PyQt5\\\\pyrcc5.exe" | |||||
| export PYRCC="wine C:\\\\Python34\\\\Lib\\\\site-packages\\\\PyQt5\\\\pyrcc5.exe" | |||||
| export DEFAULT_QT=5 | |||||
| # Clean build | # Clean build | ||||
| make clean | make clean | ||||
| # Build PyQt5 resources | # Build PyQt5 resources | ||||
| make source/carla_config.py | |||||
| sed "s/config_UseQt5 = False/config_UseQt5 = True/" -i source/carla_config.py | |||||
| make $JOBS UI RES WIDGETS | make $JOBS UI RES WIDGETS | ||||
| # Build discovery | # Build discovery | ||||
| make $JOBS discovery EXTRA_LIBS="$EXTRA_LIBS" | |||||
| mv source/discovery/carla-discovery-native.exe source/discovery/carla-discovery-win32.exe | |||||
| make $JOBS discovery | |||||
| mv bin/carla-discovery-native.exe bin/carla-discovery-win32.exe | |||||
| # Build backend | # Build backend | ||||
| make $JOBS backend EXTRA_LIBS="$EXTRA_LIBS" | |||||
| make $JOBS backend | |||||
| # Build Plugin bridges | # Build Plugin bridges | ||||
| # make $JOBS bridges EXTRA_LIBS="$EXTRA_LIBS" | |||||
| # make $JOBS bridges | |||||
| # Build UI bridges | # Build UI bridges | ||||
| # make $JOBS -C source/bridges ui_lv2-win32 ui_vst-hwnd | # make $JOBS -C source/bridges ui_lv2-win32 ui_vst-hwnd | ||||
| @@ -61,67 +57,35 @@ cp ./source/carla ./source/carla.pyw | |||||
| $CXFREEZE --include-modules=subprocess,inspect --target-dir=".\\data\\windows\\Carla" ".\\source\\carla.pyw" | $CXFREEZE --include-modules=subprocess,inspect --target-dir=".\\data\\windows\\Carla" ".\\source\\carla.pyw" | ||||
| rm -f ./source/carla.pyw | rm -f ./source/carla.pyw | ||||
| # rm -rf ./data/windows/CarlaControl | |||||
| # cp ./source/carla_control.py ./source/carla_control.pyw | |||||
| # $CXFREEZE --include-modules=subprocess,inspect --target-dir=".\\data\\windows\\CarlaControl" ".\\source\\carla_control.pyw" | |||||
| # rm -f ./source/carla_control.pyw | |||||
| cd data/windows | |||||
| mkdir Carla/backend | |||||
| mkdir Carla/bridges | |||||
| mkdir Carla/discovery | |||||
| cp ../../source/backend/*.dll Carla/backend/ | |||||
| cp ../../source/discovery/*.exe Carla/discovery/ | |||||
| # mv CarlaControl/carla_control.exe CarlaControl/CarlaControl.exe | |||||
| # rm -f Carla/imageformats/*.so | |||||
| cp $WINEPREFIX/drive_c/Python33/python33.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/libEGL.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/libGLESv2.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/icuin49.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/icuuc49.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/icudt49.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5Core.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5Gui.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5Widgets.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5OpenGL.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5PrintSupport.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5Svg.dll Carla/ | |||||
| cp -r $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/plugins/imageformats/ Carla/ | |||||
| cp -r $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/plugins/iconengines/ Carla/ | |||||
| cp -r $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/plugins/platforms/ Carla/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/python33.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/libEGL.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/libGLESv2.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/icuin49.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/icuuc49.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/icudt49.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5Core.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5Gui.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5Widgets.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5OpenGL.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5PrintSupport.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5Svg.dll CarlaControl/ | |||||
| # cp -r $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/plugins/imageformats/ CarlaControl/ | |||||
| # cp -r $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/plugins/iconengines/ CarlaControl/ | |||||
| # cp -r $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/plugins/platforms/ CarlaControl/ | |||||
| cd data/windows/ | |||||
| cp ../../bin/*.dll Carla/ | |||||
| cp ../../bin/*.exe Carla/ | |||||
| rm -f Carla/PyQt5.Qsci.pyd Carla/PyQt5.QtNetwork.pyd Carla/PyQt5.QtSql.pyd Carla/PyQt5.QtTest.pyd | |||||
| cp $WINEPREFIX/drive_c/Python34/python34.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/icudt49.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/icuin49.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/icuuc49.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/libEGL.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/libGLESv2.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Core.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Gui.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Widgets.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5OpenGL.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5PrintSupport.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Svg.dll Carla/ | |||||
| # Build unzipfx | # Build unzipfx | ||||
| make -C unzipfx-carla -f Makefile.win32 | make -C unzipfx-carla -f Makefile.win32 | ||||
| # make -C unzipfx-carla-control -f Makefile.win32 | |||||
| # Create static build | # Create static build | ||||
| rm -f Carla.zip CarlaControl.zip | rm -f Carla.zip CarlaControl.zip | ||||
| zip -r -9 Carla.zip Carla | zip -r -9 Carla.zip Carla | ||||
| # zip -r -9 CarlaControl.zip CarlaControl | |||||
| rm -f Carla.exe CarlaControl.exe | rm -f Carla.exe CarlaControl.exe | ||||
| cat unzipfx-carla/unzipfx2cat.exe Carla.zip > Carla.exe | cat unzipfx-carla/unzipfx2cat.exe Carla.zip > Carla.exe | ||||
| # cat unzipfx-carla-control/unzipfx2cat.exe CarlaControl.zip > CarlaControl.exe | |||||
| chmod +x Carla.exe | chmod +x Carla.exe | ||||
| # chmod +x CarlaControl.exe | |||||
| # Cleanup | # Cleanup | ||||
| make -C unzipfx-carla -f Makefile.win32 clean | make -C unzipfx-carla -f Makefile.win32 clean | ||||
| @@ -133,4 +97,4 @@ cd ../.. | |||||
| # Testing: | # Testing: | ||||
| echo "export WINEPREFIX=~/.winepy3_x86" | echo "export WINEPREFIX=~/.winepy3_x86" | ||||
| echo "wine $PYTHON_EXE ./source/carla -platformpluginpath \"C:\\\\Python33\\\\Lib\\\\site-packages\\\\PyQt5\\\\plugins\\\\platforms\"" | |||||
| echo "wine $PYTHON_EXE ./source/carla -platformpluginpath \"C:\\\\Python34\\\\Lib\\\\site-packages\\\\PyQt5\\\\plugins\\\\platforms\"" | |||||
| @@ -24,35 +24,31 @@ export UIC=$MINGW-uic | |||||
| export STRIP=$MINGW-strip | export STRIP=$MINGW-strip | ||||
| export WINDRES=$MINGW-windres | export WINDRES=$MINGW-windres | ||||
| export CFLAGS="-DPTW32_STATIC_LIB -I$MINGW_PATH/include" | |||||
| export CXXFLAGS="-DPTW32_STATIC_LIB -DFLUIDSYNTH_NOT_A_DLL -I$MINGW_PATH/include" | |||||
| export EXTRA_LIBS="-lglib-2.0 -lgthread-2.0 -lgig -lsndfile -lFLAC -lvorbisenc -lvorbis -logg -ldsound -lole32 -lrpcrt4 -lws2_32 -lwinmm" | |||||
| export WINEARCH=win64 | export WINEARCH=win64 | ||||
| export WINEPREFIX=~/.winepy3_x64 | export WINEPREFIX=~/.winepy3_x64 | ||||
| export PYTHON_EXE="C:\\\\Python33\\\\python.exe" | |||||
| export PYTHON_EXE="C:\\\\Python34\\\\python.exe" | |||||
| export CXFREEZE="wine $PYTHON_EXE C:\\\\Python33\\\\Scripts\\\\cxfreeze" | |||||
| export CXFREEZE="wine $PYTHON_EXE C:\\\\Python34\\\\Scripts\\\\cxfreeze" | |||||
| export PYUIC="wine $PYTHON_EXE -m PyQt5.uic.pyuic" | export PYUIC="wine $PYTHON_EXE -m PyQt5.uic.pyuic" | ||||
| export PYRCC="wine C:\\\\Python33\\\\Lib\\\\site-packages\\\\PyQt5\\\\pyrcc5.exe" | |||||
| export PYRCC="wine C:\\\\Python34\\\\Lib\\\\site-packages\\\\PyQt5\\\\pyrcc5.exe" | |||||
| export DEFAULT_QT=5 | |||||
| # Clean build | # Clean build | ||||
| make clean | make clean | ||||
| # Build PyQt5 resources | # Build PyQt5 resources | ||||
| make source/carla_config.py | |||||
| sed "s/config_UseQt5 = False/config_UseQt5 = True/" -i source/carla_config.py | |||||
| make $JOBS UI RES WIDGETS | make $JOBS UI RES WIDGETS | ||||
| # Build discovery | # Build discovery | ||||
| make $JOBS discovery EXTRA_LIBS="$EXTRA_LIBS" | |||||
| mv source/discovery/carla-discovery-native.exe source/discovery/carla-discovery-win64.exe | |||||
| make $JOBS discovery | |||||
| mv bin/carla-discovery-native.exe bin/carla-discovery-win64.exe | |||||
| # Build backend | # Build backend | ||||
| make $JOBS backend EXTRA_LIBS="$EXTRA_LIBS" | |||||
| make $JOBS backend | |||||
| # Build Plugin bridges | # Build Plugin bridges | ||||
| # make $JOBS bridges EXTRA_LIBS="$EXTRA_LIBS" | |||||
| # make $JOBS bridges | |||||
| # Build UI bridges | # Build UI bridges | ||||
| # make $JOBS -C source/bridges ui_lv2-win32 ui_vst-hwnd | # make $JOBS -C source/bridges ui_lv2-win32 ui_vst-hwnd | ||||
| @@ -62,67 +58,35 @@ cp ./source/carla ./source/carla.pyw | |||||
| $CXFREEZE --include-modules=subprocess,inspect --target-dir=".\\data\\windows\\Carla" ".\\source\\carla.pyw" | $CXFREEZE --include-modules=subprocess,inspect --target-dir=".\\data\\windows\\Carla" ".\\source\\carla.pyw" | ||||
| rm -f ./source/carla.pyw | rm -f ./source/carla.pyw | ||||
| # rm -rf ./data/windows/CarlaControl | |||||
| # cp ./source/carla_control.py ./source/carla_control.pyw | |||||
| # $CXFREEZE --include-modules=subprocess,inspect --target-dir=".\\data\\windows\\CarlaControl" ".\\source\\carla_control.pyw" | |||||
| # rm -f ./source/carla_control.pyw | |||||
| cd data/windows | |||||
| mkdir Carla/backend | |||||
| mkdir Carla/bridges | |||||
| mkdir Carla/discovery | |||||
| cp ../../source/backend/*.dll Carla/backend/ | |||||
| cp ../../source/discovery/*.exe Carla/discovery/ | |||||
| # mv CarlaControl/carla_control.exe CarlaControl/CarlaControl.exe | |||||
| # rm -f Carla/imageformats/*.so | |||||
| cp $WINEPREFIX/drive_c/Python33/python33.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/libEGL.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/libGLESv2.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/icuin49.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/icuuc49.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/icudt49.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5Core.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5Gui.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5Widgets.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5OpenGL.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5PrintSupport.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5Svg.dll Carla/ | |||||
| cp -r $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/plugins/imageformats/ Carla/ | |||||
| cp -r $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/plugins/iconengines/ Carla/ | |||||
| cp -r $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/plugins/platforms/ Carla/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/python33.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/libEGL.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/libGLESv2.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/icuin49.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/icuuc49.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/icudt49.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5Core.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5Gui.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5Widgets.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5OpenGL.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5PrintSupport.dll CarlaControl/ | |||||
| # cp $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/Qt5Svg.dll CarlaControl/ | |||||
| # cp -r $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/plugins/imageformats/ CarlaControl/ | |||||
| # cp -r $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/plugins/iconengines/ CarlaControl/ | |||||
| # cp -r $WINEPREFIX/drive_c/Python33/Lib/site-packages/PyQt5/plugins/platforms/ CarlaControl/ | |||||
| cd data/windows/ | |||||
| cp ../../bin/*.dll Carla/ | |||||
| cp ../../bin/*.exe Carla/ | |||||
| rm -f Carla/PyQt5.Qsci.pyd Carla/PyQt5.QtNetwork.pyd Carla/PyQt5.QtSql.pyd Carla/PyQt5.QtTest.pyd | |||||
| cp $WINEPREFIX/drive_c/Python34/python34.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/icudt49.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/icuin49.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/icuuc49.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/libEGL.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/libGLESv2.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Core.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Gui.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Widgets.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5OpenGL.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5PrintSupport.dll Carla/ | |||||
| cp $WINEPREFIX/drive_c/Python34/Lib/site-packages/PyQt5/Qt5Svg.dll Carla/ | |||||
| # Build unzipfx | # Build unzipfx | ||||
| make -C unzipfx-carla -f Makefile.win32 | make -C unzipfx-carla -f Makefile.win32 | ||||
| # make -C unzipfx-carla-control -f Makefile.win32 | |||||
| # Create static build | # Create static build | ||||
| rm -f Carla.zip CarlaControl.zip | rm -f Carla.zip CarlaControl.zip | ||||
| zip -r -9 Carla.zip Carla | zip -r -9 Carla.zip Carla | ||||
| # zip -r -9 CarlaControl.zip CarlaControl | |||||
| rm -f Carla.exe CarlaControl.exe | rm -f Carla.exe CarlaControl.exe | ||||
| cat unzipfx-carla/unzipfx2cat.exe Carla.zip > Carla.exe | cat unzipfx-carla/unzipfx2cat.exe Carla.zip > Carla.exe | ||||
| # cat unzipfx-carla-control/unzipfx2cat.exe CarlaControl.zip > CarlaControl.exe | |||||
| chmod +x Carla.exe | chmod +x Carla.exe | ||||
| # chmod +x CarlaControl.exe | |||||
| # Cleanup | # Cleanup | ||||
| make -C unzipfx-carla -f Makefile.win32 clean | make -C unzipfx-carla -f Makefile.win32 clean | ||||
| @@ -134,4 +98,4 @@ cd ../.. | |||||
| # Testing: | # Testing: | ||||
| echo "export WINEPREFIX=~/.winepy3_x64" | echo "export WINEPREFIX=~/.winepy3_x64" | ||||
| echo "wine $PYTHON_EXE ./source/carla -platformpluginpath \"C:\\\\Python33\\\\Lib\\\\site-packages\\\\PyQt5\\\\plugins\\\\platforms\"" | |||||
| echo "wine $PYTHON_EXE ./source/carla -platformpluginpath \"C:\\\\Python34\\\\Lib\\\\site-packages\\\\PyQt5\\\\plugins\\\\platforms\"" | |||||
| @@ -8,6 +8,7 @@ export WINEARCH=win32 | |||||
| export WINEPREFIX=~/.winepy3_x86 | export WINEPREFIX=~/.winepy3_x86 | ||||
| wineboot | wineboot | ||||
| regsvr32 wineasio.dll | regsvr32 wineasio.dll | ||||
| winetricks vcrun2010 | |||||
| winetricks corefonts | winetricks corefonts | ||||
| winetricks fontsmooth=rgb | winetricks fontsmooth=rgb | ||||
| @@ -22,6 +23,7 @@ export WINEPREFIX=~/.winepy3_x64 | |||||
| wineboot | wineboot | ||||
| regsvr32 wineasio.dll | regsvr32 wineasio.dll | ||||
| wine64 regsvr32 wineasio.dll | wine64 regsvr32 wineasio.dll | ||||
| winetricks vcrun2010 | |||||
| winetricks corefonts | winetricks corefonts | ||||
| winetricks fontsmooth=rgb | winetricks fontsmooth=rgb | ||||
| @@ -189,7 +189,7 @@ class CarlaPatchbayW(QFrame): | |||||
| self.fPeaksIn.setVisible(showMeters) | self.fPeaksIn.setVisible(showMeters) | ||||
| self.fPeaksOut.setVisible(showMeters) | self.fPeaksOut.setVisible(showMeters) | ||||
| showKeyboard = settings.value("ShowKeyboard", True, type=bool) | |||||
| showKeyboard = settings.value("ShowKeyboard", not(MACOS or WINDOWS), type=bool) | |||||
| self.fParent.ui.act_settings_show_keyboard.setChecked(showKeyboard) | self.fParent.ui.act_settings_show_keyboard.setChecked(showKeyboard) | ||||
| self.fKeys.setVisible(showKeyboard) | self.fKeys.setVisible(showKeyboard) | ||||
| @@ -283,7 +283,7 @@ class CarlaSettingsW(QDialog): | |||||
| if gCarla.isPlugin: | if gCarla.isPlugin: | ||||
| self.ui.lw_page.hideRow(self.TAB_INDEX_PATHS) | self.ui.lw_page.hideRow(self.TAB_INDEX_PATHS) | ||||
| if WINDOWS: | |||||
| if WINDOWS and not config_UseQt5: | |||||
| self.ui.group_main_theme.setEnabled(False) | self.ui.group_main_theme.setEnabled(False) | ||||
| self.ui.ch_main_theme_pro.setChecked(False) | self.ui.ch_main_theme_pro.setChecked(False) | ||||
| @@ -535,7 +535,7 @@ def initHost(initName, libPrefix = None, failError = True): | |||||
| elif CWDl.endswith("source"): | elif CWDl.endswith("source"): | ||||
| gCarla.pathBinaries = os.path.abspath(os.path.join(CWD, "..", "bin")) | gCarla.pathBinaries = os.path.abspath(os.path.join(CWD, "..", "bin")) | ||||
| elif CWDl.endswith("bin"): | |||||
| elif CWDl.endswith("bin") or os.path.isfile(sys.path[0]): | |||||
| gCarla.pathBinaries = CWD | gCarla.pathBinaries = CWD | ||||
| # ------------------------------------------------------------- | # ------------------------------------------------------------- | ||||
| @@ -54,7 +54,7 @@ class CarlaApplication(object): | |||||
| elif CWDl.endswith("resources"): | elif CWDl.endswith("resources"): | ||||
| if CWDl.endswith("native-plugins%sresources" % os.sep): | if CWDl.endswith("native-plugins%sresources" % os.sep): | ||||
| stylesDir = os.path.abspath(os.path.join(CWD, "..", "..", "..", "..", "bin")) | stylesDir = os.path.abspath(os.path.join(CWD, "..", "..", "..", "..", "bin")) | ||||
| elif "carla-native.lv2" in sys.argv[0]: | |||||
| elif "carla-native.lv2" in sys.argv[0].lower(): | |||||
| stylesDir = os.path.abspath(os.path.join(CWD, "..", "..", "..", "lib", "lv2", "carla-native.lv2")) | stylesDir = os.path.abspath(os.path.join(CWD, "..", "..", "..", "lib", "lv2", "carla-native.lv2")) | ||||
| else: | else: | ||||
| stylesDir = os.path.abspath(os.path.join(CWD, "..", "..", "..", "lib", "carla")) | stylesDir = os.path.abspath(os.path.join(CWD, "..", "..", "..", "lib", "carla")) | ||||
| @@ -62,7 +62,7 @@ class CarlaApplication(object): | |||||
| elif CWDl.endswith("source"): | elif CWDl.endswith("source"): | ||||
| stylesDir = os.path.abspath(os.path.join(CWD, "..", "bin")) | stylesDir = os.path.abspath(os.path.join(CWD, "..", "bin")) | ||||
| if stylesDir: | |||||
| if stylesDir and os.path.exists(stylesDir): | |||||
| QApplication.addLibraryPath(stylesDir) | QApplication.addLibraryPath(stylesDir) | ||||
| elif not config_UseQt5: | elif not config_UseQt5: | ||||
| @@ -91,6 +91,10 @@ class CarlaApplication(object): | |||||
| QApplication.setDesktopSettingsAware(False) | QApplication.setDesktopSettingsAware(False) | ||||
| QApplication.setFont(customFont) | QApplication.setFont(customFont) | ||||
| # fix Qt5 not finding plarform dir on Windows | |||||
| if WINDOWS: | |||||
| QApplication.addLibraryPath(CWD) | |||||
| # set style | # set style | ||||
| QApplication.setStyle("carla" if stylesDir else "fusion") | QApplication.setStyle("carla" if stylesDir else "fusion") | ||||
| @@ -66,7 +66,7 @@ public: | |||||
| */ | */ | ||||
| bool isThreadRunning() const noexcept | bool isThreadRunning() const noexcept | ||||
| { | { | ||||
| #ifdef CARLA_OS_WIN | |||||
| #ifdef PTW32_DLLPORT | |||||
| return (fHandle.p != nullptr); | return (fHandle.p != nullptr); | ||||
| #else | #else | ||||
| return (fHandle != 0); | return (fHandle != 0); | ||||
| @@ -97,7 +97,7 @@ public: | |||||
| if (pthread_create(&handle, nullptr, _entryPoint, this) == 0) | if (pthread_create(&handle, nullptr, _entryPoint, this) == 0) | ||||
| { | { | ||||
| #ifdef CARLA_OS_WIN | |||||
| #ifdef PTW32_DLLPORT | |||||
| CARLA_SAFE_ASSERT_RETURN(handle.p != nullptr, false); | CARLA_SAFE_ASSERT_RETURN(handle.p != nullptr, false); | ||||
| #else | #else | ||||
| CARLA_SAFE_ASSERT_RETURN(handle != 0, false); | CARLA_SAFE_ASSERT_RETURN(handle != 0, false); | ||||
| @@ -215,7 +215,7 @@ private: | |||||
| */ | */ | ||||
| void _init() noexcept | void _init() noexcept | ||||
| { | { | ||||
| #ifdef CARLA_OS_WIN | |||||
| #ifdef PTW32_DLLPORT | |||||
| fHandle.p = nullptr; | fHandle.p = nullptr; | ||||
| fHandle.x = 0; | fHandle.x = 0; | ||||
| #else | #else | ||||
| @@ -228,7 +228,7 @@ private: | |||||
| */ | */ | ||||
| void _copyFrom(const pthread_t& handle) noexcept | void _copyFrom(const pthread_t& handle) noexcept | ||||
| { | { | ||||
| #ifdef CARLA_OS_WIN | |||||
| #ifdef PTW32_DLLPORT | |||||
| fHandle.p = handle.p; | fHandle.p = handle.p; | ||||
| fHandle.x = handle.x; | fHandle.x = handle.x; | ||||
| #else | #else | ||||
| @@ -241,7 +241,7 @@ private: | |||||
| */ | */ | ||||
| void _copyTo(volatile pthread_t& handle) const noexcept | void _copyTo(volatile pthread_t& handle) const noexcept | ||||
| { | { | ||||
| #ifdef CARLA_OS_WIN | |||||
| #ifdef PTW32_DLLPORT | |||||
| handle.p = fHandle.p; | handle.p = fHandle.p; | ||||
| handle.x = fHandle.x; | handle.x = fHandle.x; | ||||
| #else | #else | ||||