[問題][SOLVED] k3b 編譯失敗(Debian)

看板Linux作者 (巫師)時間6年前 (2017/09/23 21:19), 6年前編輯推噓2(201)
留言3則, 3人參與, 最新討論串1/1
有請線上大神,如下是編譯過程中的訊息,不曉得如何解決(...>_<): /home/linus/Downloads/src/k3b-2.0.2/libk3b/tools/k3bwavefilewriter.cpp:125:9: error: narrowing conversion of ‘177’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] libk3b/CMakeFiles/k3b.dir/build.make:350: recipe for target 'libk3b/CMakeFiles/k3b.dir/tools/k3bwavefilewriter.cpp.o' failed make[2]: *** [libk3b/CMakeFiles/k3b.dir/tools/k3bwavefilewriter.cpp.o] Error 1 CMakeFiles/Makefile2:224: recipe for target 'libk3b/CMakeFiles/k3b.dir/all' failed make[1]: *** [libk3b/CMakeFiles/k3b.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 -- OS :ArchLinux/GNU Debian Device:Toyota Corona Premio1.6 APP :Me... -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 124.11.64.47 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1506172768.A.6BB.html

09/23 22:34, , 1F
看一下 k3b 的需求編譯器/make 的版本
09/23 22:34, 1F
抱歉,在source裏面我好像找不到說明k3b所需的make版本,不過我目前的是這個。 linus@vaio:~/script$ make -v GNU Make 4.1 Built for i686-pc-linux-gnu

09/24 01:03, , 2F
source code 是 vanilla 還是 apt source 下來的?
09/24 01:03, 2F
兩者都試過,同樣都有問題。原文是vanilla,用apt-get source k3b編譯錯誤變成如下: /home/linus/debian/tmp/k3b-2.0.3a/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp:393:17: note: in expansion of macro ‘FFMPEG_CODEC’ FFMPEG_CODEC(d->formatContext->streams[0])->sample_fmt, ^~~~~~~~~~~~ In file included from /home/linus/debian/tmp/k3b-2.0.3a/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp:29:0: /usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here AVCodecContext *codec; ^~~~~ plugins/decoder/ffmpeg/CMakeFiles/k3bffmpegdecoder.dir/build.make:110: recipe for target 'plugins/decoder/ffmpeg/CMakeFiles/k3bffmpegdecoder.dir/k3bffmpegwrapper.cpp.o' failed make[2]: *** [plugins/decoder/ffmpeg/CMakeFiles/k3bffmpegdecoder.dir/k3bffmpegwrapper.cpp.o] Error 1 CMakeFiles/Makefile2:1278: recipe for target 'plugins/decoder/ffmpeg/CMakeFiles/k3bffmpegdecoder.dir/all' failed make[1]: *** [plugins/decoder/ffmpeg/CMakeFiles/k3bffmpegdecoder.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 ※ 編輯: magelinus (124.11.64.47), 09/24/2017 09:42:47 會自己編的原因是,使用套件k3b來dvd-ripe時,會顯示要我安裝transcode。目前的 stretch沒有這個,所以我混用jessie來取得transcode,但安裝時又碰到錯誤訊息。 linus@vaio:~/debian/tmp/k3b-2.0.3a/build$ sudo apt-get install transcode Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: transcode : Depends: libmagickcore-6.q16-2 (>= 8:6.8.8.2) but it is not going to be installed Depends: libmagickwand-6.q16-2 (>= 8:6.8.8.2) but it is not going to be installed 而我還混用unstable所以目前的libmagickcore-6.q16-2/libmagickwand-6.q16-2 版本都比上面的新 linus@vaio:~/debian/tmp/k3b-2.0.3a/build$ sudo apt-cache show libmagickwand-6.q16-2 Package: libmagickwand-6.q16-2 Source: imagemagick Version: 8:6.8.9.9-5+deb8u10 Installed-Size: 1662 Maintainer: ImageMagick Packaging Team <pkg-gmagick-im-team@lists.alioth.debian.org> Architecture: i386 那行but it is not going to be installed不曉得是啥意思...>_< ※ 編輯: magelinus (124.11.64.47), 09/24/2017 09:56:04

09/28 12:07, , 3F
已解決,看來是我混用rpository的關係。
09/28 12:07, 3F
文章代碼(AID): #1PnbzWQx (Linux)