bat and README.md
This commit is contained in:
57
README.md
57
README.md
@@ -2,14 +2,37 @@
|
|||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
This repo contains PIP, QAD and derived projects:
|
This repo contains:
|
||||||
* cd_utils - PIP-based client/server library for read, transmit and use custom structures of coefficients
|
* PIP
|
||||||
* qcd_utils - Qt bindings to CDUtils and "CD Pult" executable - full-featured CD client
|
* * PIP - main library
|
||||||
* piqt - helpers to convert PIP <-> Qt types
|
* * PIP::USB - PIUSB (libusb)
|
||||||
* piqt_utils - Gui libraries and executables to edit PIConnection configs and watch PIIntrospection
|
* * PIP::Console - PIScreen
|
||||||
* qglview - old Qt-base OpenGL engine
|
* * PIP::Crypt - Cryptography (libsodium)
|
||||||
|
* * PIP::Compress - Compression (zlib)
|
||||||
|
* * PIP::FFTW - FFT with libfftw3
|
||||||
|
* * PIP::OpenCL - PIP OpenCL bindings
|
||||||
|
* * PIP::IOUtils
|
||||||
|
* * PIP::Cloud
|
||||||
|
* * PIP::Lua - PIP Lua bindings
|
||||||
|
* QAD - Qt for Advanced Developers:
|
||||||
|
* * QAD::Utils
|
||||||
|
* * QAD::Widgets
|
||||||
|
* * QAD::Application
|
||||||
|
* * QAD::Blockview
|
||||||
|
* * QAD::Graphic
|
||||||
|
* * QAD::SQLTable
|
||||||
|
* * QAD::TouchWidgets
|
||||||
|
* * QAD::Doc
|
||||||
|
* * QAD::PIQt - helpers to convert PIP <-> Qt types
|
||||||
|
* * QAD::PIQtUtils - Gui libraries and executables to edit PIConnection configs and watch PIIntrospection
|
||||||
|
* * qglview - old Qt-base OpenGL engine
|
||||||
* qglengine - new Qt-base OpenGL engine
|
* qglengine - new Qt-base OpenGL engine
|
||||||
|
* * QGLEngine::Core - 3d engine
|
||||||
|
* * QGLEngine::Widgets - qt widgets for manage 3d obects and materials
|
||||||
|
* CD
|
||||||
|
* * CD::Core - PIP-based client/server library for read, transmit and use custom structures of coefficients
|
||||||
|
* * CD::Qt - Qt bindings to CDUtils and "CD Pult" executable - full-featured CD client
|
||||||
|
|
||||||
## Compile
|
## Compile
|
||||||
This repo can be compile with GCC/MinGW/Clang, for Qt 4/5.
|
This repo can be compile with GCC/MinGW/Clang, for Qt 4/5.
|
||||||
|
|
||||||
@@ -23,27 +46,25 @@ CMake options:
|
|||||||
* **QGLENGINE** - build or not QGLEngine, disabled by default
|
* **QGLENGINE** - build or not QGLEngine, disabled by default
|
||||||
|
|
||||||
## Windows scripts
|
## Windows scripts
|
||||||
Build steps for i686 architecture:
|
Build steps:
|
||||||
1. unzip mingw.7z to C:\mingw
|
1. unzip mingw.7z to C:\mingw
|
||||||
2. unzip qt.7z to C:\qt
|
2. unzip qt.7z to C:\qt
|
||||||
3. download and install cmake from https://cmake.org/download/
|
3. download and install cmake from https://cmake.org/download/
|
||||||
4. Prepare environment
|
4. Prepare environment for x86 or amd64 architecture:
|
||||||
- set prefix for mingw e.g.: for C:\mingw\7_1_x32\
|
- set prefix for mingw e.g.: for C:\mingw\8_1_x32\ or C:\mingw\8_1_x64\
|
||||||
set SDK_MINGW_DIR=C:\mingw\7_1_x
|
set SDK_MINGW_DIR=C:\mingw\7_1_x
|
||||||
- set prefix for Qt5 e.g.: for C:\qt\qt5120_win32\
|
- set prefix for Qt5 e.g.: for C:\qt\qt5150_win32\ or C:\qt\qt5150_win64\
|
||||||
set SDK_QT5_DIR=C:\qt\qt5120_win
|
set SDK_QT5_DIR=C:\qt\qt5150_win
|
||||||
- set SDK_CMAKE_DIR=C:\cmake
|
- set SDK_CMAKE_DIR=C:\cmake or C:\Program Files\CMake
|
||||||
5. run make_libs32.bat
|
5. run make_shstk32.bat or make_shstk64.bat
|
||||||
|
|
||||||
Build steps for amd64 architecture:
|
|
||||||
-- follow previos steps, but replace '32' to '64'
|
|
||||||
|
|
||||||
Build steps for both architectures:
|
Build steps for both architectures:
|
||||||
-- follow previos steps, but on '4' state run make_libs_all.bat
|
-- follow previos steps, but on '4' state run make_libs_all.bat
|
||||||
|
|
||||||
## Non-Windows scripts
|
## Non-Windows scripts
|
||||||
Script "make_libs.sh" compile and install SDK for current environment, e.g.
|
Script "make_shstk.sh" compile and install SDK for current environment, e.g.
|
||||||
`./make_libs.sh -j4`
|
`./make_shstk.sh -j4`
|
||||||
|
|
||||||
## Docker
|
## Docker
|
||||||
This repo provide Dockerfile, so you can exec `docker build -t libs .` in this directory
|
This repo provide Dockerfile, so you can exec `docker build -t libs .` in this directory
|
||||||
|
|||||||
2
cmake
2
cmake
Submodule cmake updated: d1a11269f7...2f84d98a32
@@ -1,6 +0,0 @@
|
|||||||
@echo off
|
|
||||||
set ARCH=%~1
|
|
||||||
set PATH=%SDK_MINGW_DIR%%ARCH%\bin;%SDK_QT4_DIR%%ARCH%\bin;%SDK_CMAKE_DIR%\bin
|
|
||||||
if defined SDK_QT5_DIR set Qt5_DIR=%SDK_QT5_DIR%%ARCH%
|
|
||||||
mkdir ..\shstk_build_win%ARCH%
|
|
||||||
cd ../shstk_build_win%ARCH% && cmake_mgw -Wno-dev -DQGLVIEW=1 -DQGLENGINE=1 -DQT4=0 ../shstk && make install -j4 && cd ../shstk && pause
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
make_libs.bat 32
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
make_libs.bat 64
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
start cmd /C make_libs32.bat
|
|
||||||
start cmd /C make_libs64.bat
|
|
||||||
18
make_shstk.bat
Normal file
18
make_shstk.bat
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
@echo off
|
||||||
|
set ARCH=%~1
|
||||||
|
if defined SDK_JOBS_COUNT (
|
||||||
|
set JOBS_COUNT=%SDK_JOBS_COUNT%
|
||||||
|
) else (
|
||||||
|
set JOBS_COUNT=4
|
||||||
|
)
|
||||||
|
set PATH=%SDK_MINGW_DIR%%ARCH%\bin;%SDK_QT4_DIR%%ARCH%\bin;%SDK_CMAKE_DIR%\bin
|
||||||
|
if defined SDK_QT5_DIR set Qt5_DIR=%SDK_QT5_DIR%%ARCH%
|
||||||
|
cd cmake && ^
|
||||||
|
call install.bat && ^
|
||||||
|
cd .. && ^
|
||||||
|
if not exist ..\shstk_build_win%ARCH% mkdir ..\shstk_build_win%ARCH% && ^
|
||||||
|
cd ..\shstk_build_win%ARCH% && ^
|
||||||
|
cmake_mgw -DQGLVIEW=1 -DQGLENGINE=1 -DQT4=0 ../shstk && ^
|
||||||
|
make install -j%JOBS_COUNT% && ^
|
||||||
|
cd ..\shstk && ^
|
||||||
|
pause
|
||||||
1
make_shstk32.bat
Normal file
1
make_shstk32.bat
Normal file
@@ -0,0 +1 @@
|
|||||||
|
make_shstk.bat 32
|
||||||
1
make_shstk64.bat
Normal file
1
make_shstk64.bat
Normal file
@@ -0,0 +1 @@
|
|||||||
|
make_shstk.bat 64
|
||||||
2
make_shstk_all.bat
Normal file
2
make_shstk_all.bat
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
start cmd /C make_shstk32.bat
|
||||||
|
start cmd /C make_shstk64.bat
|
||||||
@@ -1,6 +1,11 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
if defined SDK_JOBS_COUNT (
|
||||||
|
set JOBS_COUNT=%SDK_JOBS_COUNT%
|
||||||
|
) else (
|
||||||
|
set JOBS_COUNT=4
|
||||||
|
)
|
||||||
mkdir ..\shstk_build_android_%~1
|
mkdir ..\shstk_build_android_%~1
|
||||||
cd ..\shstk_build_android_%~1
|
cd ..\shstk_build_android_%~1
|
||||||
call ..\shstk\cmake\cmake_android 21 %~1 ..\shstk "-DUTILS=0 -DCMAKE_BUILD_TYPE=Release"
|
call ..\shstk\cmake\cmake_android 21 %~1 ..\shstk "-DUTILS=0 -DCMAKE_BUILD_TYPE=Release"
|
||||||
call make install -j4
|
call make install -j%JOBS_COUNT%
|
||||||
cd ..\shstk
|
cd ..\shstk
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
@echo off
|
@echo off
|
||||||
for %%a in (x86,x86_64,arm,arm64) do (
|
for %%a in (x86,x86_64,arm,arm64) do (
|
||||||
call .\make_libs_android %%a
|
call .\make_shstk_android %%a
|
||||||
)
|
)
|
||||||
Reference in New Issue
Block a user