从Ubuntu 16.04卸载OpenCV 3.2.0期间出错

时间:2018-09-26 10:17:54

标签: opencv

我想从Ubuntu 16.04计算机将OpenCV从3.2.0升级到3.4.3。我正在尝试删除OpenCV 3.2.0作为第一步(否则,我想并行安装另一个版本会是个坏主意吗?)。由于是从源代码安装的,因此我进入了构建目录并执行了sudo make uninstall。短时间后,该过程将失败并显示

-- Configuring incomplete, errors occurred!
See also "/home/nettef/opencv-3.2.0/build/CMakeFiles/CMakeOutput.log".
See also "/home/nettef/opencv-3.2.0/build/CMakeFiles/CMakeError.log".
Makefile:10212: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1

读取的错误日志条目(第一个,但其他相似):

Build output check failed:
    Regex: 'command line option .* is valid for .* but not for C\+\+'
    Output line: 'cc1plus: warning: command line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++'
Compilation failed:
    source file: '/home/nettef/opencv-3.2.0/build/CMakeFiles/CMakeTmp/src.cxx'
    check option: ' -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations  -Wmissing-prototypes'
===== BUILD LOG =====
Change Dir: /home/nettef/opencv-3.2.0/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_5ef6c/fast"
/usr/bin/make -f CMakeFiles/cmTC_5ef6c.dir/build.make CMakeFiles/cmTC_5ef6c.dir/build
make[1]: Entering directory '/home/nettef/opencv-3.2.0/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_5ef6c.dir/src.cxx.o
/usr/bin/c++     -O3 -DNDEBUG   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -o CMakeFiles/cmTC_5ef6c.dir/src.cxx.o -c /home/nettef/opencv-3.2.0/build/CMakeFiles/CMakeTmp/src.cxx
cc1plus: warning: command line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
/home/nettef/opencv-3.2.0/build/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma   [-Wunknown-pragmas]
 #pragma
 ^
Linking CXX executable cmTC_5ef6c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5ef6c.dir/link.txt --verbose=1
/usr/bin/c++     -O3 -DNDEBUG    CMakeFiles/cmTC_5ef6c.dir/src.cxx.o  -o cmTC_5ef6c -rdynamic 
make[1]: Leaving directory '/home/nettef/opencv-3.2.0/build/CMakeFiles/CMakeTmp'

===== END =====

here所述,我尝试用-Wmissing-prototypes注释掉这一行,但没有效果。

1 个答案:

答案 0 :(得分:0)

该错误表明cmake无法从var objectarray=[]; var customer={ name,address,postalcode,phone,email} function addToArray() { var customerobject={name,address,postalcode,phone,email}; customerobject.name=document.getElementById("name").value; customerobject.address=document.getElementById("address").value; customerobject.postalcode=document.getElementById("postalcode").value; customerobject.phone=document.getElementById("phone").value; customerobject.email=document.getElementById("email").value; objectarray.push(customerobject); displayList(); }目录中找到// RETRIEVING ALL Queries Query allQueries = firebaseFirestore .collection("yourcollection") .orderBy("timestamp", Query.Direction.DESCENDING) .limit(5); allQueries.addSnapshotListener(new EventListener<QuerySnapshot>() { @Override public void onEvent(QuerySnapshot documentSnapshots, FirebaseFirestoreException e) { for (DocumentChange doc : documentSnapshots.getDocumentChanges()) { if (doc.getType() == DocumentChange.Type.ADDED) { // get all ids String postId = doc.getDocument().getId(); contentProfileDashboard = doc.getDocument().toObject(ContentProfileDashboard.class); contentListDashboard.add(contentProfileDashboard); // fire the event adapterProfileDashboard.notifyDataSetChanged(); } } } }); 文件夹。确保您指向正确的路径。

modules