linux:chromium:cef

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
linux:chromium:cef [2019/02/18 06:04] – [ビルド] ともやんlinux:chromium:cef [2019/05/18 02:23] (現在) – 外部編集 非ログインユーザー
行 1: 行 1:
 ====== Chromium Embedded Framework ====== ====== Chromium Embedded Framework ======
-Chromium Embedded FrameworkCEFは、Chromiumベースのブラウザを他のアプリケーションに埋め込むための単純なフレームワークである。\\+Chromium Embedded Framework(CEFは、Chromiumベースのブラウザを他のアプリケーションに埋め込むための単純なフレームワークである。\\
  
 ===== フレームワークのダウンロード ===== ===== フレームワークのダウンロード =====
-[[https://bitbucket.org/chromiumembedded/cef|chromiumembedded / cef — Bitbucket]] の Binary Distributions - [[http://opensource.spotify.com/cefbuilds/index.html|CEF Automated Builds]] より [[http://opensource.spotify.com/cefbuilds/cef_binary_3.3626.1886.g162fdec_linux64.tar.bz2|cef_binary_3.3626.1886.g162fdec_linux64.tar.bz2]](フレームワークのバイナリディストリビューション)をダウンロードする。\\+[[https://bitbucket.org/chromiumembedded/cef|chromiumembedded / cef — Bitbucket]] の Binary Distributions - [[http://opensource.spotify.com/cefbuilds/index.html|CEF Automated Builds]] より [[http://opensource.spotify.com/cefbuilds/cef_binary_74.1.16%2Bge20b240%2Bchromium-74.0.3729.131_linux64.tar.bz2|cef_binary_74.1.16+ge20b240+chromium-74.0.3729.131_linux64.tar.bz2]](フレームワークのバイナリディストリビューション)をダウンロードする。\\
  
 ===== フレームワーク入門 ===== ===== フレームワーク入門 =====
行 29: 行 29:
 Chromium Embedded Framework (CEF) のバイナリディストリビューションを解凍する。 Chromium Embedded Framework (CEF) のバイナリディストリビューションを解凍する。
 <code> <code>
-$ tar jxvf cef_binary_3.3626.1886.g162fdec_linux64.tar.bz2+$ tar jxvf cef_binary_74.1.16+ge20b240+chromium-74.0.3729.131_linux64.tar.bz2
 </code> </code>
 Makefile を生成する。 Makefile を生成する。
 <code> <code>
-$ cd cef_binary_3.3626.1886.g162fdec_linux64+$ cd cef_binary_74.1.16+ge20b240+chromium-74.0.3729.131_linux64/
 $ mkdir build && cd build $ mkdir build && cd build
 $ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug .. $ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ..
行 39: 行 39:
 <WRAP prewrap 100%> <WRAP prewrap 100%>
 <code> <code>
--- The C compiler identification is GNU 8.2.1 +-- The C compiler identification is GNU 9.1.1 
--- The CXX compiler identification is GNU 8.2.1+-- The CXX compiler identification is GNU 9.1.1
 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc
 -- Check for working C compiler: /usr/bin/cc -- works -- Check for working C compiler: /usr/bin/cc -- works
行 60: 行 60:
   CMake variable CEF_ROOT is set to:   CMake variable CEF_ROOT is set to:
  
-    /home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64+    /home/tomoyan/my_projects/cef_binary_74.1.16+ge20b240+chromium-74.0.3729.131_linux64
  
   For compatibility, CMake is ignoring the variable.   For compatibility, CMake is ignoring the variable.
 This warning is for project developers.  Use -Wno-dev to suppress it. This warning is for project developers.  Use -Wno-dev to suppress it.
  
 +-- Performing Test COMPILER_SUPPORTS_NO_UNDEFINED_VAR_TEMPLATE
 +-- Performing Test COMPILER_SUPPORTS_NO_UNDEFINED_VAR_TEMPLATE - Success
 -- Performing Test COMPILER_SUPPORTS_NO_UNUSED_LOCAL_TYPEDEFS -- Performing Test COMPILER_SUPPORTS_NO_UNUSED_LOCAL_TYPEDEFS
 -- Performing Test COMPILER_SUPPORTS_NO_UNUSED_LOCAL_TYPEDEFS - Success -- Performing Test COMPILER_SUPPORTS_NO_UNUSED_LOCAL_TYPEDEFS - Success
行 76: 行 78:
 -- Project architecture:         x86_64 -- Project architecture:         x86_64
 -- Build type:                   Debug -- Build type:                   Debug
--- Binary distribution root:     /home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64+-- Binary distribution root:     /home/tomoyan/my_projects/cef_binary_74.1.16+ge20b240+chromium-74.0.3729.131_linux64
 -- CEF sandbox:                  ON -- CEF sandbox:                  ON
 -- Standard libraries:           X11 -- Standard libraries:           X11
行 85: 行 87:
 -- C compile flags (Debug):      -O0;-g  -- C compile flags (Debug):      -O0;-g 
 -- C compile flags (Release):    -O2;-fdata-sections;-ffunction-sections;-fno-ident;-U_FORTIFY_SOURCE;-D_FORTIFY_SOURCE=2  -- C compile flags (Release):    -O2;-fdata-sections;-ffunction-sections;-fno-ident;-U_FORTIFY_SOURCE;-D_FORTIFY_SOURCE=2 
--- C++ compile flags:            -fno-strict-aliasing;-fPIC;-fstack-protector;-funwind-tables;-fvisibility=hidden;--param=ssp-buffer-size=4;-pipe;-pthread;-Wall;-Werror;-Wno-missing-field-initializers;-Wno-unused-parameter;-Wno-error=comment;-Wno-comment;-m64;-march=x86-64 -fno-exceptions;-fno-rtti;-fno-threadsafe-statics;-fvisibility-inlines-hidden;-std=gnu++11;-Wsign-compare;-Wno-literal-suffix;-Wno-narrowing+-- C++ compile flags:            -fno-strict-aliasing;-fPIC;-fstack-protector;-funwind-tables;-fvisibility=hidden;--param=ssp-buffer-size=4;-pipe;-pthread;-Wall;-Werror;-Wno-missing-field-initializers;-Wno-unused-parameter;-Wno-error=comment;-Wno-comment;-m64;-march=x86-64 -fno-exceptions;-fno-rtti;-fno-threadsafe-statics;-fvisibility-inlines-hidden;-std=gnu++11;-Wsign-compare;-Wno-undefined-var-template;-Wno-literal-suffix;-Wno-narrowing;-Wno-attributes
 -- C++ compile flags (Debug):    -O0;-g  -- C++ compile flags (Debug):    -O0;-g 
 -- C++ compile flags (Release):  -O2;-fdata-sections;-ffunction-sections;-fno-ident;-U_FORTIFY_SOURCE;-D_FORTIFY_SOURCE=2  -- C++ compile flags (Release):  -O2;-fdata-sections;-ffunction-sections;-fno-ident;-U_FORTIFY_SOURCE;-D_FORTIFY_SOURCE=2 
行 98: 行 100:
 -- Configuring done -- Configuring done
 -- Generating done -- Generating done
--- Build files have been written to: /home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/build+-- Build files have been written to: /home/tomoyan/my_projects/cef_binary_74.1.16+ge20b240+chromium-74.0.3729.131_linux64/build
 </code> </code>
 </WRAP> </WRAP>
行 107: 行 109:
 <WRAP prewrap 100%> <WRAP prewrap 100%>
 <code> <code>
-In file included from /home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/ctocpp/value_ctocpp.h:25, +Scanning dependencies of target cef_gtest 
-                 from /home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/cpptoc/accessibility_handler_cpptoc.cc:16: +Scanning dependencies of target libcef_dll_wrapper 
-/home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/ctocpp/ctocpp_ref_counted.h:78:27: エラー: ‘cfi-icall’ attribute directive ignored [-Werror=attributes] +[  0%] Building CXX object tests/gtest/CMakeFiles/cef_gtest.dir/src/gtest-all.cc.o 
-   void UnderlyingAddRef() const { +[  0%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/shutdown_checker.cc.o 
-                           ^~~~~ +[  1%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_atomicops_x86_gcc.cc.
-/home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/ctocpp/ctocpp_ref_counted.h:86:28: エラー: ‘cfi-icall’ attribute directive ignored [-Werror=attributes] +〜省略〜 
-   bool UnderlyingRelease() const { +65%Building CXX object tests/cefclient/CMakeFiles/cefclient.dir/browser/scheme_test.cc.o 
-                            ^~~~~ + 
-/home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/ctocpp/ctocpp_ref_counted.h:95:30: エラー: ‘cfi-icall’ attribute directive ignored [-Werror=attributes] +*** Run the following command manually to set SUID permissions *** 
-   bool UnderlyingHasOneRef() const { +EXE="/home/tomoyan/my_projects/cef_binary_74.1.16+ge20b240+chromium-74.0.3729.131_linux64/build/tests/cefsimple/Debug/chrome-sandbox" && sudo -- chown root:root $EXE && sudo -- chmod 4755 $EXE 
-                              ^~~~~ + 
-/home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/ctocpp/ctocpp_ref_counted.h:104:37: エラー‘cfi-icall’ attribute directive ignored [-Werror=attributes] +[ 65%] Built target cefsimple 
-   bool UnderlyingHasAtLeastOneRef() const { +66%Building CXX object tests/cefclient/CMakeFiles/cefclient.dir/browser/server_test.cc.o 
-                                     ^~~~~ +〜省略〜 
-cc1plus: all warnings being treated as errors +99%Building CXX object tests/ceftests/CMakeFiles/ceftests.dir/views/textfield_unittest.cc.o 
-make[2]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/build.make:219: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/accessibility_handler_cpptoc.cc.o] エラー 1 +[100%] Building CXX object tests/ceftests/CMakeFiles/ceftests.dir/views/window_unittest.cc.o 
-make[2]: *** 未完了のジョブを待っています.... +[100%Linking CXX executable Debug/ceftests 
-In file included from /home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/ctocpp/command_line_ctocpp.h:26, + 
-                 from /home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/cpptoc/app_cpptoc.cc:19: +*** Run the following command manually to set SUID permissions *** 
-/home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/ctocpp/ctocpp_ref_counted.h:78:27: エラー: ‘cfi-icall’ attribute directive ignored [-Werror=attributes+EXE="/home/tomoyan/my_projects/cef_binary_74.1.16+ge20b240+chromium-74.0.3729.131_linux64/build/tests/cefclient/Debug/chrome-sandbox" && sudo -- chown root:root $EXE && sudo -- chmod 4755 $EXE 
-   void UnderlyingAddRef() const { + 
-                           ^~~~~ +[100%Built target cefclient 
-/home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/ctocpp/ctocpp_ref_counted.h:86:28: エラー: ‘cfi-icall’ attribute directive ignored [-Werror=attributes] + 
-   bool UnderlyingRelease() const { +*** Run the following command manually to set SUID permissions *** 
-                            ^~~~~ +EXE="/home/tomoyan/my_projects/cef_binary_74.1.16+ge20b240+chromium-74.0.3729.131_linux64/build/tests/ceftests/Debug/chrome-sandbox" && sudo -- chown root:root $EXE && sudo -- chmod 4755 $EXE 
-/home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/ctocpp/ctocpp_ref_counted.h:95:30: エラー: ‘cfi-icall’ attribute directive ignored [-Werror=attributes] + 
-   bool UnderlyingHasOneRef() const { +[100%Built target ceftests
-                              ^~~~~ +
-/home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/ctocpp/ctocpp_ref_counted.h:104:37: エラー: ‘cfi-icall’ attribute directive ignored [-Werror=attributes+
-   bool UnderlyingHasAtLeastOneRef() const { +
-                                     ^~~~~ +
-In file included from /home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/ctocpp/scheme_registrar_ctocpp.h:25, +
-                 from /home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/cpptoc/app_cpptoc.cc:20: +
-/home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/ctocpp/ctocpp_scoped.h:184:14: エラー: ‘cfi-icall’ attribute directive ignored [-Werror=attributes] +
-     void* ptr) { +
-              ^ +
-cc1plus: all warnings being treated as errors +
-make[2]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/build.make:232: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/app_cpptoc.cc.o] エラー 1 +
-make[1]: *** [CMakeFiles/Makefile2:91: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/all] エラー 2 +
-make: *** [Makefile:84: allエラー 2+
 </code> </code>
 </WRAP> </WRAP>
-ビルドエラー発生してコンパイルが停止してしまった。\\ + 
-[[https://www.magpcss.org/ceforum/viewtopic.php?f=6&t=16313|CEF Forum • Building new version fails with attribute directive ignored]] 同じケースのエラーの対処っていたのでそれ参考に cmake/cef_variables.cmake 修正する。\\+==== SUIDアクセス許可を設定 ==== 
 +ビルドが終わったら指示したがって、手動で次のコマンド実行して SUID アクセス許可設定する。 
 +<WRAP prewrap 100%>
 <code> <code>
-vi ../cmake/cef_variables.cmake+EXE="/home/tomoyan/my_projects/cef_binary_74.1.16+ge20b240+chromium-74.0.3729.131_linux64/build/tests/ceftests/Debug/chrome-sandbox" && sudo -- chown root:root $EXE && sudo -- chmod 4755 $EXE
 </code> </code>
-<file autoconf cmake/cef_variables.cmake> +</WRAP>
-+
-# Linux configuration. +
-#+
  
-if(OS_LINUX) +==== Sample の実行 ==== 
-  # Platform-specific compiler/linker flags. +cefclient 実行する。\\
-  set(CEF_LIBTYPE SHARED) +
-  list(APPEND CEF_COMPILER_FLAGS +
-    -fno-strict-aliasing            # Avoid assumptions regarding non-aliasing of objects of different types +
-    -fPIC                           # Generate position-independent code for shared libraries +
-    -fstack-protector               # Protect some vulnerable functions from stack-smashing (security feature) +
-    -funwind-tables                 # Support stack unwinding for backtrace() +
-    -fvisibility=hidden             # Give hidden visibility to declarations that are not explicitly marked as visible +
-    --param=ssp-buffer-size=4       # Set the minimum buffer size protected by SSP (security feature, related to stack-protector) +
-    -pipe                           # Use pipes rather than temporary files for communication between build stages +
-    -pthread                        # Use the pthread library +
-    -Wall                           # Enable all warnings +
-#    -Werror                         # Treat warnings as errors +
-    -Wno-missing-field-initializers # Don't warn about missing field initializers +
-    -Wno-unused-parameter           # Don't warn about unused parameters +
-    -Wno-error=comment              # Don't warn about code in comments +
-    -Wno-comment                    # Don't warn about code in comments +
-    ) +
-</file> +
-※**-Werror**コンパイラオプション無効にする。\\ +
-\\ +
-再度 CEF をビルドする。+
 <code> <code>
-make -j4+./tests/cefclient/Debug/cefclient
 </code> </code>
-<WRAP prewrap 100%>+URL に chrome:%%//%%version/ を入力する。\\ 
 +{{:linux:chromium:cefclient_about_version.png?800|}}\\ 
 + 
 +==== cef-project のビルド ==== 
 + 
 +=== cef-project のダウンロード ===
 <code> <code>
-CMake Warning (dev) at CMakeLists.txt:187 (find_package):+$ git clone https://bitbucket.org/chromiumembedded/cef-project.git 
 +</code> 
 + 
 +=== Makefile の生成 === 
 +cmake を実行すると cef_binary のダウンロードをしてから Makefile を生成してくれます。 
 +<code> 
 +$ cd cef-project 
 +$ mkdir build && cd build 
 +$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release .. 
 +</code> 
 +<code> 
 +-- The C compiler identification is GNU 9.1.1 
 +-- The CXX compiler identification is GNU 9.1.1 
 +-- Check for working C compiler: /usr/bin/cc 
 +-- Check for working C compiler: /usr/bin/cc -- works 
 +-- Detecting C compiler ABI info 
 +-- Detecting C compiler ABI info - done 
 +-- Detecting C compile features 
 +-- Detecting C compile features - done 
 +-- Check for working CXX compiler: /usr/bin/c++ 
 +-- Check for working CXX compiler: /usr/bin/c++ -- works 
 +-- Detecting CXX compiler ABI info 
 +-- Detecting CXX compiler ABI info - done 
 +-- Detecting CXX compile features 
 +-- Detecting CXX compile features - done 
 +CMake Warning (dev) at CMakeLists.txt:54 (find_package):
   Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.   Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
   Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy   Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
行 194: 行 191:
   CMake variable CEF_ROOT is set to:   CMake variable CEF_ROOT is set to:
  
-    /home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64+    /home/tomoyan/my_projects/cef-project/third_party/cef/cef_binary_3.3538.1852.gcb937fc_linux64
  
   For compatibility, CMake is ignoring the variable.   For compatibility, CMake is ignoring the variable.
 This warning is for project developers.  Use -Wno-dev to suppress it. This warning is for project developers.  Use -Wno-dev to suppress it.
 +
 +-- Performing Test COMPILER_SUPPORTS_NO_UNUSED_LOCAL_TYPEDEFS
 +-- Performing Test COMPILER_SUPPORTS_NO_UNUSED_LOCAL_TYPEDEFS - Success
 +-- Performing Test COMPILER_SUPPORTS_NO_LITERAL_SUFFIX
 +-- Performing Test COMPILER_SUPPORTS_NO_LITERAL_SUFFIX - Success
 +-- Performing Test COMPILER_SUPPORTS_NO_NARROWING
 +-- Performing Test COMPILER_SUPPORTS_NO_NARROWING - Success
 +-- Found PythonInterp: /usr/bin/python (found version "2.7.16"
 +-- Downloading clang-format from Google Storage...
 〜省略〜 〜省略〜
-In file included from /home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/ctocpp/value_ctocpp.h:25, +-- [download 98% complete] 
-                 from /home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/cpptoc/accessibility_handler_cpptoc.cc:16: +-- [download 99% complete] 
-/home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/libcef_dll/ctocpp/ctocpp_ref_counted.h:78:27警告: ‘cfi-icall’ attribute directive ignored [-Wattributes] +-- [download 100% complete] 
-   void UnderlyingAddRef() const { +-- Extracting /home/tomoyan/my_projects/cef-project/third_party/cef/cef_binary_3.3538.1852.gcb937fc_linux64.tar.bz2... 
-                           ^~~~~ +CMake Warning (dev) at CMakeLists.txt:54 (find_package): 
-〜省略〜 +  Policy CMP0074 is not setfind_package uses <PackageName>_ROOT variables. 
-[ 99%] Building CXX object tests/ceftests/CMakeFiles/ceftests.dir/views/textfield_unittest.cc.o +  Run "cmake --help-policy CMP0074" for policy details Use the cmake_policy 
-[100%] Building CXX object tests/ceftests/CMakeFiles/ceftests.dir/views/window_unittest.cc.o +  command to set the policy and suppress this warning.
-[100%] Linking CXX executable Debug/ceftests+
  
-*** Run the following command manually to set SUID permissions *** +  CMake variable CEF_ROOT is set to:
-EXE="/home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/build/tests/cefclient/Debug/chrome-sandbox" && sudo -- chown root:root $EXE && sudo -- chmod 4755 $EXE+
  
-[100%] Built target cefclient+    /home/tomoyan/my_projects/cef-project/third_party/cef/cef_binary_3.3538.1852.gcb937fc_linux64 
 + 
 +  For compatibility, CMake is ignoring the variable. 
 +This warning is for project developers.  Use -Wno-dev to suppress it. 
 + 
 +-- Performing Test COMPILER_SUPPORTS_NO_UNUSED_LOCAL_TYPEDEFS 
 +-- Performing Test COMPILER_SUPPORTS_NO_UNUSED_LOCAL_TYPEDEFS - Success 
 +-- Performing Test COMPILER_SUPPORTS_NO_LITERAL_SUFFIX 
 +-- Performing Test COMPILER_SUPPORTS_NO_LITERAL_SUFFIX - Success 
 +-- Performing Test COMPILER_SUPPORTS_NO_NARROWING 
 +-- Performing Test COMPILER_SUPPORTS_NO_NARROWING - Success 
 +-- Found PythonInterp: /usr/bin/python (found version "2.7.15")  
 +-- Downloading clang-format from Google Storage... 
 +0> File tools/buildtools/linux64/clang-format exists and SHA1 matches. Skipping. 
 +Success! 
 +Downloading 1 files took 0.005556 second(s) 
 +-- *** CEF CONFIGURATION SETTINGS *** 
 +-- Generator:                    Unix Makefiles 
 +-- Platform:                     Linux 
 +-- Project architecture:         x86_64 
 +-- Build type:                   Release 
 +-- Binary distribution root:     /home/tomoyan/my_projects/cef-project/third_party/cef/cef_binary_3.3538.1852.gcb937fc_linux64 
 +-- CEF sandbox:                  ON 
 +-- Standard libraries:           X11 
 +-- Compile defines:              __STDC_CONSTANT_MACROS;__STDC_FORMAT_MACROS;_FILE_OFFSET_BITS=64;CEF_USE_SANDBOX 
 +-- Compile defines (Debug):       
 +-- Compile defines (Release):    NDEBUG 
 +-- C compile flags:              -fno-strict-aliasing;-fPIC;-fstack-protector;-funwind-tables;-fvisibility=hidden;--param=ssp-buffer-size=4;-pipe;-pthread;-Wall;-Werror;-Wno-missing-field-initializers;-Wno-unused-parameter;-Wno-error=comment;-Wno-comment;-m64;-march=x86-64 -std=c99;-Wno-unused-local-typedefs 
 +-- C compile flags (Debug):      -O0;-g  
 +-- C compile flags (Release):    -O2;-fdata-sections;-ffunction-sections;-fno-ident;-U_FORTIFY_SOURCE;-D_FORTIFY_SOURCE=2  
 +-- C++ compile flags:            -fno-strict-aliasing;-fPIC;-fstack-protector;-funwind-tables;-fvisibility=hidden;--param=ssp-buffer-size=4;-pipe;-pthread;-Wall;-Werror;-Wno-missing-field-initializers;-Wno-unused-parameter;-Wno-error=comment;-Wno-comment;-m64;-march=x86-64 -fno-exceptions;-fno-rtti;-fno-threadsafe-statics;-fvisibility-inlines-hidden;-std=gnu++11;-Wsign-compare;-Wno-literal-suffix;-Wno-narrowing 
 +-- C++ compile flags (Debug):    -O0;-g  
 +-- C++ compile flags (Release):  -O2;-fdata-sections;-ffunction-sections;-fno-ident;-U_FORTIFY_SOURCE;-D_FORTIFY_SOURCE=2  
 +-- Exe link flags:               -fPIC;-pthread;-Wl,--disable-new-dtags;-Wl,--fatal-warnings;-Wl,-rpath,.;-Wl,-z,noexecstack;-Wl,-z,now;-Wl,-z,relro;-m64  
 +-- Exe link flags (Debug):         
 +-- Exe link flags (Release):     -Wl,-O1;-Wl,--as-needed;-Wl,--gc-sections  
 +-- Shared link flags:            -fPIC;-pthread;-Wl,--disable-new-dtags;-Wl,--fatal-warnings;-Wl,-rpath,.;-Wl,-z,noexecstack;-Wl,-z,now;-Wl,-z,relro;-m64  
 +-- Shared link flags (Debug):      
 +-- Shared link flags (Release):  -Wl,-O1;-Wl,--as-needed;-Wl,--gc-sections  
 +-- CEF Binary files:             chrome-sandbox;libcef.so;libEGL.so;libGLESv2.so;natives_blob.bin;snapshot_blob.bin;v8_context_snapshot.bin;swiftshader 
 +-- CEF Resource files:           cef.pak;cef_100_percent.pak;cef_200_percent.pak;cef_extensions.pak;devtools_resources.pak;icudtl.dat;locales 
 +-- Configuring done 
 +-- Generating done 
 +-- Build files have been written to: /home/tomoyan/my_projects/cef-project/build 
 +</code> 
 + 
 +=== ビルド === 
 +cef-project をビルドする。 
 +<code> 
 +$ make -j4 
 +</code> 
 +<code> 
 +CMake Warning (dev) at CMakeLists.txt:54 (find_package): 
 +  Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables. 
 +  Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy 
 +  command to set the policy and suppress this warning. 
 + 
 +  CMake variable CEF_ROOT is set to: 
 + 
 +    /home/tomoyan/my_projects/cef-project/third_party/cef/cef_binary_3.3538.1852.gcb937fc_linux64 
 + 
 +  For compatibility, CMake is ignoring the variable. 
 +This warning is for project developers.  Use -Wno-dev to suppress it. 
 + 
 +-- Downloading clang-format from Google Storage... 
 +0> File tools/buildtools/linux64/clang-format exists and SHA1 matches. Skipping. 
 +Success! 
 +〜省略〜 
 +[100%] Building CXX object third_party/cef/cef_binary_3.3538.1852.gcb937fc_linux64/tests/ceftests/CMakeFiles/ceftests.dir/views/window_unittest.cc.o 
 +[100%] Linking CXX executable Release/ceftests
  
 *** Run the following command manually to set SUID permissions *** *** Run the following command manually to set SUID permissions ***
-EXE="/home/tomoyan/my_projects/cef_binary_3.3626.1886.g162fdec_linux64/build/tests/ceftests/Debug/chrome-sandbox" && sudo -- chown root:root $EXE && sudo -- chmod 4755 $EXE+EXE="/home/tomoyan/my_projects/cef-project/build/third_party/cef/cef_binary_3.3538.1852.gcb937fc_linux64/tests/ceftests/Release/chrome-sandbox" && sudo -- chown root:root $EXE && sudo -- chmod 4755 $EXE
  
 [100%] Built target ceftests [100%] Built target ceftests
 +</code>
 +
 +=== SUIDアクセス許可を設定 ===
 +ビルドが終わったら指示にしたがって、手動で次のコマンドを実行して SUID アクセス許可を設定する。
 +<WRAP prewrap 100%>
 +<code>
 +$ EXE="/home/tomoyan/my_projects/cef-project/build/third_party/cef/cef_binary_3.3538.1852.gcb937fc_linux64/tests/ceftests/Release/chrome-sandbox" && sudo -- chown root:root $EXE && sudo -- chmod 4755 $EXE
 </code> </code>
 </WRAP> </WRAP>
-※**警告‘cfi-icall’ attribute directive ignored [-Wattributes]** 警告は出るがコンパイルは通る様になった。\\+ 
 +==== 参考文献 ==== 
 +[[https://bitbucket.org/chromiumembedded/cef-project|chromiumembedded / cef-project — Bitbucket]]\\ 
 +[[https://github.com/cztomczak/cefpython|GitHub cztomczak/cefpython: Python bindings for the Chromium Embedded Framework (CEF)]]\\
  
  • linux/chromium/cef.1550437482.txt.gz
  • 最終更新: 2019/05/18 02:23
  • (外部編集)