forked from spajak/cef-pdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.txt
158 lines (69 loc) · 5.35 KB
/
build.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
Note:
The chromium-embedded builds can be downloaded from
http://opensource.spotify.com/cefbuilds/index.html
Find Chromium releases for Windows by version: ('download' link, 'show more' link)
https://chocolatey.org/packages/chromium/
"C:\Users\Administrator\Documents\Visual Studio 2017\Projects\cef-pdf"
"C:\Users\Administrator\Documents\Visual Studio 2017\CEF\cef_binary_3.3626.1895.g7001d56_windows64_minimal"
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCEF_ROOT=/path/to/cef/release /path/to/cef-pdf
ninja
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCEF_ROOT=/path/to/cef/release /path/to/cef-pdf
make
cd /d "C:\Users\Administrator\Documents\Visual Studio 2017\Projects\cef-pdf\build"
cmake -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=Release -DCEF_ROOT="C:\Users\Administrator\Documents\Visual Studio 2017\CEF\cef_binary_3.3626.1895.g7001d56_windows64_minimal" "C:\Users\Administrator\Documents\Visual Studio 2017\Projects\cef-pdf"
Invalid escape sequence \U
Invalid escape sequence \S
==> forward slash ...
cmake -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=Release -DCEF_ROOT="C:/Users/Administrator/Documents/Visual Studio 2017/CEF/cef_binary_3.3626.1895.g7001d56_windows64_minimal" "C:/Users/Administrator/Documents/Visual Studio 2017/Projects/cef-pdf"
cmake -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=Release -DCEF_ROOT="D:/username/Documents/Visual Studio 2017/CEF/cef_binary_3.3626.1895.g7001d56_windows32_minimal" "D:/username/Documents/Visual Studio 2017/Projects/cef-pdf"
cd /d "D:\Stefan.Steiger\Documents\Visual Studio 2017\Projects\cef-pdf\build"
cmake -G "Visual Studio 15 2017" -DPROJECT_ARCH="x86_64" -DCMAKE_BUILD_TYPE=Release -DCEF_ROOT="D:/username/Documents/Visual Studio 2017/CEF/cef_binary_3.3626.1895.g7001d56_windows64" "D:/username/Documents/Visual Studio 2017/Projects/cef-pdf"
cd /d "D:\Stefan.Steiger\Documents\Visual Studio 2017\Projects\cef-pdf\build"
cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Release -DCEF_ROOT="D:/username/Documents/Visual Studio 2017/CEF/cef_binary_3.3626.1895.g7001d56_windows64" "D:/username/Documents/Visual Studio 2017/Projects/cef-pdf"
cd /d "D:\Stefan.Steiger\Documents\Visual Studio 2017\Projects\cef-pdf\buildx86"
cmake -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=Release -DCEF_ROOT="D:/username/Documents/Visual Studio 2017/CEF/cef_binary_3.3626.1895.g7001d56_windows32" "D:/username/Documents/Visual Studio 2017/Projects/cef-pdf"
cd /d "D:\Stefan.Steiger\Documents\Visual Studio 2017\Projects\cef-pdf\buildx64"
cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Release -DCEF_ROOT="D:/username/Documents/Visual Studio 2017/CEF/cef_binary_3.3626.1895.g7001d56_windows64" "D:/username/Documents/Visual Studio 2017/Projects/cef-pdf"
-------------------------------------------------------------------------------
cd /root/Desktop/nana/build
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCEF_ROOT=/root/Desktop/nana/cef_binary_3.3626.1895.g7001d56_linux64_minimal /root/Desktop/nana/cef-pdf
cmake: /usr/local/lib/libcurl.so.4: no version information available (required by cmake)
cmake: /usr/local/lib/libcurl.so.4: no version information available (required by cmake)
cmake --version
// https://stackoverflow.com/questions/30017397/error-curl-usr-local-lib-libcurl-so-4-no-version-information-available-requ
sudo rm /usr/local/lib/libcurl.so.4
sudo ln -s /usr/lib/x86_64-linux-gnu/libcurl.so.4.4.0 /usr/local/lib/libcurl.so.4
http://www.cmake.org/download/
https://stackoverflow.com/questions/42167432/cmake-list-does-not-recognize-sub-command-filter
That is to be expected, list(FILTER was introduced in CMake 3.6.
https://askubuntu.com/questions/355565/how-do-i-install-the-latest-version-of-cmake-from-the-command-line
https://askubuntu.com/questions/952429/is-there-a-good-ppa-for-cmake-backports
wget https://cmake.org/files/v3.14/cmake-3.12.0-Linux-x86_64.sh
wget https://cmake.org/files/v3.14/cmake-3.14.0-rc4-Linux-x86_64.sh
sudo sh cmake-3.14.0-rc4-Linux-x86_64.sh --prefix=/usr/local --exclude-subdir
./include/wrapper/cef_helpers.h:#define CEF_REQUIRE_RENDERER_THREAD() DCHECK(CefCurrentlyOn(TID_RENDERER));
/include/base/cef_logging.h:#define DCHECK(condition)
./include/base/cef_logging.h:#define LAZY_STREAM(stream, condi
#define DCHECK(condition) \
LAZY_STREAM(LOG_STREAM(DCHECK), DCHECK_IS_ON() && !(condition)) \
<< "Check failed: " #condition ". "
#define LAZY_STREAM(stream, condition) \
!(condition) ? (void)0 : ::cef::logging::LogMessageVoidify() & (stream)
cd /root/Desktop/nana/build
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCEF_ROOT=/root/Desktop/nana/cef_binary_3.3626.1895.g7001d56_linux64_minimal /root/Desktop/nana/cef-pdf
Remove werror:
https://stackoverflow.com/questions/41182827/disable-werror-for-one-of-cmakelists-txt
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
Make all warnings into errors.
-Werror and -Wno-error
------------------------
return commandLine->HasSwitch("server") ? runServer(app, commandLine) : runJob(app, commandLine);
if (commandLine->HasSwitch("port")) {
if (commandLine->HasSwitch("host")) {
app->SetDisableJavaScript(!commandLine->HasSwitch("javascript"));
if (commandLine->HasSwitch("list-sizes"))
commandLine->HasSwitch("stdin"))
{
if (!args.empty()) { job->SetOutputPath(args[0]); }
else
{ writeToStdOut = true; }