ソースを参照

Fix build error

Tindy X 2 年 前
コミット
3ea4cad55d

+ 1 - 1
scripts/build.alpine.release.sh

@@ -44,7 +44,7 @@ export PKG_CONFIG_PATH=/usr/lib64/pkgconfig
 cmake -DCMAKE_BUILD_TYPE=Release .
 make -j2
 rm subconverter
-g++ -o base/subconverter $(find CMakeFiles/subconverter.dir/src/ -name "*.o")  -static -lpcre2-8 -levent -lyaml-cpp -L/usr/lib64 -lcurl -lmbedtls -lmbedcrypto -lmbedx509 -lz -lquickjs -llibcron -O3 -s  
+g++ -o base/subconverter $(find CMakeFiles/subconverter.dir/src/ -name "*.o")  -static -lpcre2-8 -levent -lyaml-cpp -L/usr/lib64 -lcurl -lmbedtls -lmbedcrypto -lmbedx509 -lz -l:quickjs/libquickjs.a -llibcron -O3 -s  
 
 cd base
 chmod +rx subconverter

+ 1 - 1
scripts/build.windows.release.sh

@@ -48,5 +48,5 @@ rm -f C:/Strawberry/perl/bin/pkg-config C:/Strawberry/perl/bin/pkg-config.bat
 cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" .
 make -j4
 rm subconverter.exe
-g++ $(find CMakeFiles/subconverter.dir/src -name "*.obj") curl/lib/libcurl.a -o base/subconverter.exe -static -lbcrypt -levent -lpcre2-8 -lquickjs -llibcron -lyaml-cpp -liphlpapi -lcrypt32 -lws2_32 -lwsock32 -lz -s
+g++ $(find CMakeFiles/subconverter.dir/src -name "*.obj") curl/lib/libcurl.a -o base/subconverter.exe -static -lbcrypt -levent -lpcre2-8 -l:quickjs/libquickjs.a -llibcron -lyaml-cpp -liphlpapi -lcrypt32 -lws2_32 -lwsock32 -lz -s
 mv base subconverter

+ 1 - 0
src/config/def.h

@@ -4,6 +4,7 @@
 #include <string>
 #include <vector>
 #include <tuple>
+#include <cstdint>
 
 #include "../utils/string.h"
 #include "../utils/tribool.h"

+ 1 - 0
src/utils/string_hash.h

@@ -2,6 +2,7 @@
 #define STRING_HASH_H_INCLUDED
 
 #include <string>
+#include <cstdint>
 
 using hash_t = uint64_t;