Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

error: cannot find -lippicv

I have tried to create a simple application with QtCreator and was trying to compile the application I have installed opencv 3.1.0.

In the compilation it is giving the error. what is the issue. Anyone can help me. I could not find any solution for this issue.

17:41:21: Running steps for project test1... 17:41:21: Configuration unchanged, skipping qmake step. 17:41:21: Starting: "/usr/bin/make" g++ -Wl,-rpath,/home/santhosh/Qt/5.5/gcc_64 -Wl,-rpath,/home/santhosh/Qt/5.5/gcc_64/lib -o test1 main.o mainwindow.o moc_mainwindow.o pkg-config --libs opencv -L/home/santhosh/Qt/5.5/gcc_64/lib -lQt5Widgets -L/usr/lib64 -lQt5Gui -lQt5Core -lGL -lpthread /usr/bin/ld: cannot find -lippicv Makefile:221: recipe for target 'test1' failed collect2: error: ld returned 1 exit status make: * [test1] Error 1 17:41:21: The process "/usr/bin/make" exited with code 2. Error while building/deploying project test1 (kit: Desktop Qt 5.5.1 GCC 64bit) When executing step "Make" 17:41:21: Elapsed time: 00:00.

include "mainwindow.h"

include "ui_mainwindow.h"

//start:added by santhosh

include <qmessagebox>

include <opencv2 core="" core.hpp="">

include <opencv2 highgui="" highgui.hpp="">

//stop:added by santhosh

MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); }

MainWindow::~MainWindow() { delete ui; } //start:added by santhosh void MainWindow::on_pushButton_clicked() { cv::Mat test_image = cv::imread("test_1img.jpg",0); if (!test_image.data) { QMessageBox msg; msg.setText("Cou1ld not Load image"); msg.exec(); } cv::namedWindow("test image", cv::WINDOW_AUTOSIZE); cv::imshow("test image", test_image); } //stop:added by santhosh