我使用UBuntu 14.04 LTS。我需要构建webkitgtk 2.8.3这是我使用的示例指令:linuxfromscratch当我运行sudo make -j8
时,我得到以下日志:
Scanning dependencies of target JavaScriptCore-4-gir
Scanning dependencies of target fake-generated-webkitdom-headers
[ 0%] Scanning dependencies of target WebKit2-fake-api-headers
Scanning dependencies of target translations_1
[ 0%] Generating ../../JavaScriptCore-4.0.typelib
[ 0%] /bin/sh: 1: ../../JavaScriptCore-4.0.gir: Permission denied
Scanning dependencies of target bmalloc
[ 0%] [ 0%] make[2]: *** [JavaScriptCore-4.0.typelib] Error 126
Generating ../../DerivedSources/webkitdom/WebKitDOMCustom.h
make[1]: *** [Source/JavaScriptCore/CMakeFiles/JavaScriptCore- 4-gir.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....Generating ../../DerivedSources/webkitdom/WebKitDOMDeprecated.h
可能出现什么问题?
编辑1 详细日志:
make[2]: Entering directory `/home/user/MyProjects/midori_dependencies/src/webkitgtk-2.8.3/build'
/usr/bin/cmake -E cmake_progress_report /home/user/MyProjects/midori_dependencies/src/webkitgtk-2.8.3/build/CMakeFiles
[ 0%] [ 0%] make[2]: Entering directory `/home/user/MyProjects/midori_dependencies/src/webkitgtk-2.8.3/build'
cd /home/user/MyProjects/midori_dependencies/src/webkitgtk-2.8.3/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/user/MyProjects/midori_dependencies/src/webkitgtk-2.8.3 /home/user/MyProjects/midori_dependencies/src/webkitgtk-2.8.3/Source/WebKit2 /home/user/MyProjects/midori_dependencies/src/webkitgtk-2.8.3/build /home/user/MyProjects/midori_dependencies/src/webkitgtk-2.8.3/build/Source/WebKit2 /home/user/MyProjects/midori_dependencies/src/webkitgtk-2.8.3/build/Source/WebKit2/CMakeFiles/WebKit2-forwarding-headers.dir/DependInfo.cmake --color=
make[2]: Entering directory `/home/user/MyProjects/midori_dependencies/src/webkitgtk-2.8.3/build'
/usr/bin/cmake -E cmake_progress_report /home/user/MyProjects/midori_dependencies/src/webkitgtk-2.8.3/build/CMakeFiles
[ 0%] Generating ../../JavaScriptCore-4.0.typelib
cd /home/user/MyProjects/midori_dependencies/src/webkitgtk-2.8.3/build/Source/JavaScriptCore && ../../JavaScriptCore-4.0.gir -o /home/user/MyProjects/midori_dependencies/src/webkitgtk-2.8.3/build/JavaScriptCore-4.0.typelib
/bin/sh: 1: ../../JavaScriptCore-4.0.gir: Permission denied
Generating ../../DerivedSources/ForwardingHeaders/webkit2gtk/webkit2
make[2]: *** [JavaScriptCore-4.0.typelib] Error 126
make[2]: Leaving directory `/home/user/MyProjects/midori_dependencies/src/webkitgtk-2.8.3/build'
make[1]: *** [Source/JavaScriptCore/CMakeFiles/JavaScriptCore-4-gir.dir/all] Error 2
/usr/bin/*** Waiting for unfinished jobs....
答案 0 :(得分:2)
如您所见,在Edit1中,您(make)尝试运行JavaScriptCore-4.0.gir
而不是使用g-ir-compiler
进行编译;我试过我的电脑,我的命令是:
cd /home/davide/src/webkitgtk-2.8.3/build/Source/JavaScriptCore && \
/usr/bin/g-ir-compiler /home/davide/src/webkitgtk-2.8.3/build/JavaScriptCore-4.0.gir \
-o /home/davide/src/webkitgtk-2.8.3/build/JavaScriptCore-4.0.typelib
作为一种变通方法,你可以编辑:
build/Source/JavaScriptCore/CMakeFiles/JavascriptCore-4-gir.dir/build
这里是我文件中的行(最后一行是您需要更改的内容):
JavaScriptCore-4.0.typelib: JavaScriptCore-4.0.gir
$(CMAKE_COMMAND) -E cmake_progress_report /home/davide/src/webkitgtk-2.8.3/build/CMakeFiles $(CMAKE_PROGRESS_1)
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold "Generating ../../JavaScriptCore-4.0.typelib"
cd /home/davide/src/webkitgtk-2.8.3/build/Source/JavaScriptCore && /usr/bin/g-ir-compiler /home/davide/src/webkitgtk-2.8.3/build/JavaScriptCore-4.0.gir -o /home/davide/src/webkitgtk-2.8.3/build/JavaScriptCore-4.0.typelib
只需添加/usr/bin/g-ir-compiler
或其中的任何内容(which g-ir-compiler
)
答案 1 :(得分:0)
webkitgtk-2.26.2 / Source / cmake / OptionsGTK.cmake webkitgtk-2.26.2 / Source / cmake / OptionsGTK.cmake 添加波纹管
列表(APPEND JavaScriptCore_LIBRARIES -latomic)