forked from commonqt/commonqt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
206 lines (139 loc) · 5.18 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
In Linux I installed from scratch on top of Ubuntu MATE 20.04.
Previous requirements:
gcc
Qt 5.15.2
OpenGL dev
cmake
git
Install llvm-dev 11 and clang-dev 11
Always use your Qt5 path where required:
git clone https://github.com/mcristg/smokegen
cd smokegen
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local \
-DLLVM_DIR="/usr/lib/llvm-11/cmake" \
-DQt5_DIR="~/Qt/5.15.2/gcc_64/lib/cmake/Qt5" \
-G "Unix Makefiles" ../
make
sudo make install
cd ../../
git clone https://github.com/mcristg/smokeqt
cd smokeqt
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local \
-DQt5_DIR="~/Qt/5.15.2/gcc_64/lib/cmake/Qt5" \
-G "Unix Makefiles" ../
make
Correct any errors that appear, see files in commonqt/Instructions:
manual-modification-smokeqtcore.txt
sudo make install
cd ../../
git clone -b commonqt5 https://github.com/mcristg/commonqt
cd commonqt
export PATH=$PATH:~/Qt/5.15.2/gcc_64/bin
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_PREFIX_PATH=~/Qt/5.15.2/gcc_64 \
-DSMOKE_LIB=/usr/local \
-DQt5_DIR=~/Qt/5.15.2/gcc_64/lib/cmake/Qt5 \
-G "Unix Makefiles" ../
make
sudo make install
In the terminal (your Qt5 path)
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/your path/Qt/5.15.2/gcc_64/lib
or in /etc
create qt5_lib.conf to add the path to qt5 lib with the following 2 lines (your Qt5 path)
include /etc/ld.so.conf.d/*.conf
/your path/Qt/5.15.0/gcc_64/lib
and then run:
sudo ldconfig
Test commonqt5.
sbcl
(ql:quickload :cffi)
(ql:quickload :named-readtables)
(ql:quickload :cl-ppcre)
(ql:quickload :closer-mop)
(ql:quickload :iterate)
(ql:quickload :trivial-garbage)
(pushnew "/your path/dev/commonqt/" asdf:*central-registry*)
(asdf:oos 'asdf:load-op 'qt)
(asdf:oos 'asdf:load-op 'qt-tutorial)
(qt-tutorial-14:main)
In Win 10.
Previous requirements:
Visual studio 2019 16.11.8 Community version
Clang/LLVM Support in Visual Studio
see:
https://devblogs.microsoft.com/cppblog/clang-llvm-support-in-visual-studio/
https://docs.microsoft.com/en-us/cpp/build/clang-support-msbuild?view=vs-2019#:~:text=To%20configure%20a%20Visual%20Studio,-cl)%20and%20then%20OK
Qt 5.15.2
cmake
git
Download llvm and clang version 11.1.0
open win 10 terminal (cmd)
qtenv2.bat
%comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
The path in this guide is c:\dev.
Always use your path where required.
download llvm 11.0.1
unpack llvm:
cd C:\dev\llvm-11.1.0.src
download clang 11.0.1
unpack in C:\dev\llvm-11.1.0.src\tools
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_INSTALL_PREFIX=C:/dev/llvm-11 ^
-DLLVM_INCLUDE_TESTS=Off -DLLVM_INCLUDE_EXAMPLES=Off -G "Visual Studio 16 2019" -T ClangCL ../
MsBuild LLVM.sln /t:Build /p:Configuration=Release
MsBuild INSTALL.vcxproj /t:Build /p:Configuration=Release
cd ..\..\
Always use your Qt5 path where required:
git clone https://github.com/mcristg/smokegen
cmake -DCMAKE_INSTALL_PREFIX=C:/dev/smokegen-lib -DLLVM_DIR="C:/dev/llvm-11/lib/cmake/llvm" ^
-DQt5_DIR="C:/dev/Qt/5.15.2/msvc2019_64/lib/cmake/Qt5" -G "Visual Studio 16 2019" -T ClangCL ../
MsBuild smokegenerator.sln /t:Build /p:Configuration=Release
MsBuild INSTALL.vcxproj /t:Build /p:Configuration=Release
cd ..\..\
git clone https://github.com/mcristg/smokeqt
cd smokeqt
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=C:/dev/smokeqt-lib ^
-DQt5_DIR="C:/dev/Qt/5.15.2/msvc2019_64/lib/cmake/Qt5" ^
-DSMOKE_CMAKE_MODULE_DIR="C:/dev/smokegen-lib/share/smoke/cmake" ^
-G "Visual Studio 16 2019" -A x64 -T ClangCL ../
MsBuild SMOKEQT5.sln /t:Build /p:Configuration=Release
Correct any errors that appear, see files in commonqt/Instructions:
smokeqtcore manual patch.txt
MsBuild INSTALL.vcxproj /t:Build /p:Configuration=Release
cd ..\..\
Copy smoke.h from your "path\smokegen-lib\include" to "your path\smokeqt-lib\include",
smokebase.dll from your "path\smokegen-lib\bin" to "your path\smokeqt-lib\bin"
and smokebase.lib from your "path\smokegen-lib\lib" to "your path\smokeqt-lib\lib"
git clone -b commonqt5 https://github.com/mcristg/commonqt
cd commonqt
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=C:/dev/smokeqt-lib ^
-DCMAKE_PREFIX_PATH=C:/dev/Qt/5.15.2/msvc2019_64 ^
-DSMOKE_LIB=c:/dev/smokeqt-lib ^
-DQt5_DIR="C:/dev/Qt/5.15.2/msvc2019_64/lib/cmake/Qt5" ^
-G "Visual Studio 16 2019" -A x64 -Thost=x64 ../
MsBuild commonqt.sln /t:Build /p:Configuration=Release
MsBuild INSTALL.vcxproj /t:Build /p:Configuration=Release
close win 10 terminal (cmd) and add your path\smokeqt-lib\bin path to your system
open win 10 terminal (cmd)
sbcl
(ql:quickload :cffi)
(ql:quickload :named-readtables)
(ql:quickload :cl-ppcre)
(ql:quickload :closer-mop)
(ql:quickload :iterate)
(ql:quickload :trivial-garbage)
(pushnew "c:/dev/commonqt/" asdf:*central-registry*)
(asdf:oos 'asdf:load-op 'qt)
(asdf:oos 'asdf:load-op 'qt-tutorial)
(qt-tutorial-14:main)