screencloud icon indicating copy to clipboard operation
screencloud copied to clipboard

Update Windows compile description for recent versions

Open CvH opened this issue 4 years ago • 0 comments

Hi, it looks like the current compile howto for Windows is not working anymore.

What I discovered while trying (didn't work in the end) to build screencloud at Windows:

  • at Visual Studio 2019 you need at least this that it works image
  • it is not obviouse where you get the QT installer/binaries and what you really need while installing
  • you need additionally the python debug binaries (they are included at the py setup but not installed by default) or PythonQt won't build
  • recent openssl is not working at all, you need the legacy version 1.0.2.X
  • pythonqt is likely building with cmake at 3.2
  • pythonqt 3.2 is not building (LINK : fatal error can't open "C:\pythonqt\liPythonQt-Qt5-Python38.lib), current git master builds at windows
  • it would be helpful to know against which deps it works at all, maybe include the deps as submodules at git or at least name a version that was used
  • some small changes to the lib/path names at screencloud -DQUAZIP_INCLUDE_DIR=C:\ quazip\quazip -DQUAZIP_LIBRARY=C:\quazip\build\quazip5.lib -DPYTHONQT_LIBRARY=C:\pythonqt\lib\PythonQt-Qt5-Python38.lib -DPYTHONQT_QTALL_LIBRARY=C:\pythonqt\lib\PythonQt_QtAll-Qt5-Python38.lib

The cmake options are also not obvious so an example would be nice i guess 👍

quazip cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=C:\Qt\5.14.2\msvc2017\lib\cmake -DZLIB_INCLUDE_DIRS=C:\zlib -DZLIB_LIBRARY=C:\zlib\zdll.lib -DQT_QTCORE_LIBRARY=C:\Qt\5.14.2\msvc2017\lib\Qt5Core.lib

PythonQt

set PYTHON_PATH=C:\Users\abc\AppData\Local\Programs\Python\Python38-32
set PYTHON_LIB=C:\Users\abc\AppData\Local\Programs\Python\Python38-32\libs
C:\Qt\5.14.2\msvc2017\bin\qmake CONFIG+=debug_and_release
nmake all
nmake install

ScreenCloud

cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=C:\Qt\5.14.2\msvc2017\lib\cmake -DZLIB_INCLUDE_DIRS=C:\zlib -DPYTHON_EXECUTABLE=C:\Users\abc\AppData\Local\Programs\Python\Python38-32\python.exe -DQUAZIP_INCLUDE_DIR=C:\quazip\quazip -DQUAZIP_LIBRARY=C:\quazip\build\quazip5.lib -DPYTHONQT_INCLUDE_DIR=C:\pythonqt\src -DPYTHONQT_LIBRARY=C:\pythonqt\lib\PythonQt-Qt5-Python38.lib -DPYTHONQT_QTALL_INCLUDE_DIR=C:\pythonqt\extensions\PythonQt_QtAll -DPYTHONQT_QTALL_LIBRARY=C:\pythonqt\lib\PythonQt_QtAll-Qt5-Python38.lib

CvH avatar Jul 30 '20 12:07 CvH