2012-03-10 84 views
1

當我試圖通過命令行安裝xuggler時我收到錯誤消息,如何解決這個問題,下面給出的命令行,我在這裏給出的不是完整的,只有最後幾行,即通過命令「ant run-tests」開始安裝大約15分鐘後。同時在Ubuntu 11.10中安裝xuggler獲取錯誤信息

allbackHelper*, std::allocator<_Tp> = std::allocator<com::xuggle::ferry::JNIHelper::CallbackHelper*>] 
[exec] /usr/include/c++/4.6/bits/allocator.h:109:7: note: no known conversion for argument 1 from ‘std::_List_base<com::xuggle::ferry::JNIHelper::CallbackHelper*, std::allocator<com::xuggle::ferry::JNIHelper::CallbackHelper*> >::_Tp_alloc_type {aka std::allocator<com::xuggle::ferry::JNIHelper::CallbackHelper*>}’ to ‘std::allocator<com::xuggle::ferry::JNIHelper::CallbackHelper*>&’ 
[exec] /usr/include/c++/4.6/bits/allocator.h:107:7: note: std::allocator<_Tp>::allocator() [with _Tp = com::xuggle::ferry::JNIHelper::CallbackHelper*] 
[exec] /usr/include/c++/4.6/bits/allocator.h:107:7: note: candidate expects 0 arguments, 1 provided 
[exec] In file included from /usr/include/c++/4.6/i686-linux-gnu/./bits/c++allocator.h:34:0, 
[exec]     from /usr/include/c++/4.6/bits/allocator.h:48, 
[exec]     from /usr/include/c++/4.6/list:62, 
[exec]     from ../../../../../../../csrc/com/xuggle/ferry/JNIHelper.h:24, 
[exec]     from ../../../../../../../csrc/com/xuggle/ferry/JNIHelper.cpp:21: 
[exec] /usr/include/c++/4.6/ext/new_allocator.h: In member function ‘void __gnu_cxx::new_allocator<_Tp>::construct(__gnu_cxx::new_allocator<_Tp>::pointer, _Tp&) [with _Tp = com::xuggle::ferry::JNIHelper::CallbackHelper*, __gnu_cxx::new_allocator<_Tp>::pointer = com::xuggle::ferry::JNIHelper::CallbackHelper**]’: 
[exec] /usr/include/c++/4.6/bits/stl_list.h:476:6: instantiated from ‘std::list<_Tp, _Alloc>::_Node* std::list<_Tp, _Alloc>::_M_create_node(std::list<_Tp, _Alloc>::value_type&) [with _Tp = com::xuggle::ferry::JNIHelper::CallbackHelper*, _Alloc = std::allocator<com::xuggle::ferry::JNIHelper::CallbackHelper*>, std::list<_Tp, _Alloc>::_Node = std::_List_node<com::xuggle::ferry::JNIHelper::CallbackHelper*>, std::list<_Tp, _Alloc>::value_type = com::xuggle::ferry::JNIHelper::CallbackHelper*]’ 
[exec] /usr/include/c++/4.6/bits/stl_list.h:1515:42: instantiated from ‘void std::list<_Tp, _Alloc>::_M_insert(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::value_type&) [with _Tp = com::xuggle::ferry::JNIHelper::CallbackHelper*, _Alloc = std::allocator<com::xuggle::ferry::JNIHelper::CallbackHelper*>, std::list<_Tp, _Alloc>::iterator = std::_List_iterator<com::xuggle::ferry::JNIHelper::CallbackHelper*>, std::list<_Tp, _Alloc>::value_type = com::xuggle::ferry::JNIHelper::CallbackHelper*]’ 
[exec] /usr/include/c++/4.6/bits/stl_list.h:988:9: instantiated from ‘void std::list<_Tp, _Alloc>::push_back(std::list<_Tp, _Alloc>::value_type&) [with _Tp = com::xuggle::ferry::JNIHelper::CallbackHelper*, _Alloc = std::allocator<com::xuggle::ferry::JNIHelper::CallbackHelper*>, std::list<_Tp, _Alloc>::value_type = com::xuggle::ferry::JNIHelper::CallbackHelper*]’ 
[exec] ../../../../../../../csrc/com/xuggle/ferry/JNIHelper.cpp:88:29: instantiated from here 
[exec] /usr/include/c++/4.6/ext/new_allocator.h:108:9: error: no matching function for call to ‘operator new(unsigned int, void*)’ 
[exec] /usr/include/c++/4.6/ext/new_allocator.h:108:9: note: candidate is: 
[exec] <built-in>:0:0: note: void* operator new(unsigned int) 
[exec] <built-in>:0:0: note: candidate expects 1 argument, 2 provided 
[exec] make[5]: Leaving directory `/home/sajith/xuggle-xuggle-xuggler-dbd82d2/build/native/i686-pc-linux-gnu/csrc/com/xuggle/ferry' 
[exec] make[4]: Leaving directory `/home/sajith/xuggle-xuggle-xuggler-dbd82d2/build/native/i686-pc-linux-gnu/csrc/com/xuggle/ferry' 
[exec] make[3]: Leaving directory `/home/sajith/xuggle-xuggle-xuggler-dbd82d2/build/native/i686-pc-linux-gnu/csrc/com/xuggle' 
[exec] make[2]: Leaving directory `/home/sajith/xuggle-xuggle-xuggler-dbd82d2/build/native/i686-pc-linux-gnu/csrc/com' 
[exec] make[1]: Leaving directory `/home/sajith/xuggle-xuggle-xuggler-dbd82d2/build/native/i686-pc-linux-gnu/csrc' 
[exec] cc1plus: all warnings being treated as errors 
[exec] 
[exec] make[5]: *** [JNIHelper.lo] Error 1 
[exec] make[4]: *** [all] Error 2 
[exec] make[3]: *** [all-recursive] Error 1 
[exec] make[2]: *** [all-recursive] Error 1 
[exec] make[1]: *** [all-recursive] Error 1 
[exec] make: *** [all-recursive] Error 1 

BUILD FAILED /home/sajith/xuggle-xuggle-xuggler-dbd82d2/mk/buildtools/buildhelper.xml:1149:EXEC返回:2

之後顯示在上述錯誤信息安裝有15分鐘的(如命令「螞蟻運行測試」的結果)

+0

你是否設法解決這個問題? – cagcowboy 2012-10-14 15:09:20

+0

不.....我安裝在windows ..... – sajith 2012-10-23 09:58:17

回答

0

我找到了一個解決方案來解決這個構建失敗:

[exec] cc1plus: all warnings being treated as errors 

從谷歌研究我發現這是一個與你正在使用的gcc版本有關的問題。但是,如果你想從gcc版本獨立修復它(你不能選擇一些Linux發行gcc版本),轉到xuggle下載/解壓文件夾及用途:

grep -rl "Werror" * | xargs sed -i 's/Werror/Wno-error/g' 

這將迫使編譯器要考慮的警告爲警告而不是錯誤,並且構建會成功。


注意:如果你想確保這個命令生效,命令使用前:

grep -rl "Werror" * 

命令的使用和後:

grep -rl "Wno-error" * 

他們應該給你相同的文件列表。