Publicité
+ Répondre à la discussion
Affichage des résultats 1 à 6 sur 6
  1. #1
    Invité régulier
    Homme Profil pro Yassine
    élève ingénieur en informatique
    Inscrit en
    août 2011
    Messages
    15
    Détails du profil
    Informations personnelles :
    Nom : Homme Yassine
    Localisation : Tunisie

    Informations professionnelles :
    Activité : élève ingénieur en informatique

    Informations forums :
    Inscription : août 2011
    Messages : 15
    Points : 7
    Points
    7

    Par défaut Édition des liens avec OpenCV

    Bonsoir ,

    J'ai déja terminer mon application en utilisant QT Creator et la bibliothèque OpenCV sur le système linux .

    Mais maintenant j'essayer d’intégrer mon application sur windows 7 64bits de même avec QT Creator . et j'ai rencontrer des probéleme de linker avec la bibliothèque OpenCV .
    voila mon .pro
    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
     
    #-------------------------------------------------
    #
    # Project created by QtCreator 2012-06-20T15:54:39
    #
    #-------------------------------------------------
     
    QT       += core gui
     
    TARGET = Detect
    TEMPLATE = app
     
     
    SOURCES += main.cpp\
            mainwindow.cpp \
        morphofeatures.cpp \
        detect.cpp \
        basicocr.cpp \
        preprocessing.cpp \
        recognition.cpp
     
    HEADERS  += mainwindow.h \
        morphofeatures.h \
        detect.h \
        basicocr.h \
        preprocessing.h \
        recognition.h
     
    FORMS    += mainwindow.ui
     
    win32{
    INCLUDEPATH += C:\opencv\build\include \
    LIBS += -LC:\opencv\build\x64\mingw\lib \
    -lopencv_core240 \
    -lopencv_highgui240 \
    -lopencv_imgproc240
    }
    et la sortie de compilation
    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
     
    Exécution des étapes de compilation pour le projet Detect...
    Configuration inchangée, étape QMake sautée.
    Commence : "C:\QtSDK\mingw\bin\mingw32-make.exe" 
    c:\qtsdk\desktop\qt\4.7.3\mingw\bin\qmake.exe -spec ..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\mkspecs\win32-g++ -o Makefile ..\Detectplate\Detect.pro
    WARNING: c:\Users\pc\Detectplate\Detect.pro:35: Unescaped backslashes are deprecated.
    WARNING: c:\Users\pc\Detectplate\Detect.pro:35: Unescaped backslashes are deprecated.
    WARNING: c:\Users\pc\Detectplate\Detect.pro:35: Unescaped backslashes are deprecated.
    C:/QtSDK/mingw/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory `C:/Users/pc/Detect-build-desktop'
    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug\Detect.exe debug/main.o debug/mainwindow.o debug/morphofeatures.o debug/detect.o debug/basicocr.o debug/preprocessing.o debug/recognition.o debug/moc_mainwindow.o  -L"c:\QtSDK\Desktop\Qt\4.7.3\mingw\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4 -LC:\OpenSSL-Win32_full\lib 
    mingw32-make[1]: Leaving directory `C:/Users/pc/Detect-build-desktop'
    debug/mainwindow.o:C:\Users\pc\Detect-build-desktop/../Detectplate/mainwindow.cpp:20: undefined reference to `cv::imread(std::string const&, int)'
    debug/mainwindow.o:C:\Users\pc\Detect-build-desktop/../Detectplate/mainwindow.cpp:26: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/mainwindow.o:C:\Users\pc\Detect-build-desktop/../Detectplate/mainwindow.cpp:26: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/mainwindow.o:C:\Users\pc\Detect-build-desktop/../Detectplate/mainwindow.cpp:26: undefined reference to `cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
    debug/mainwindow.o:C:\Users\pc\Detect-build-desktop/../Detectplate/mainwindow.cpp:27: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/mainwindow.o:C:\Users\pc\Detect-build-desktop/../Detectplate/mainwindow.cpp:27: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/mainwindow.o:C:\Users\pc\Detect-build-desktop/../Detectplate/mainwindow.cpp:27: undefined reference to `cv::resize(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_<int>, double, double, int)'
    debug/mainwindow.o:C:\Users\pc\Detect-build-desktop/../Detectplate/mainwindow.cpp:51: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/mainwindow.o:C:\Users\pc\Detect-build-desktop/../Detectplate/mainwindow.cpp:51: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/mainwindow.o:C:\Users\pc\Detect-build-desktop/../Detectplate/mainwindow.cpp:51: undefined reference to `cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
    debug/mainwindow.o:C:\Users\pc\Detect-build-desktop/../Detectplate/mainwindow.cpp:64: undefined reference to `cv::imread(std::string const&, int)'
    debug/mainwindow.o:C:\Users\pc\Detect-build-desktop/../Detectplate/mainwindow.cpp:104: undefined reference to `cv::waitKey(int)'
    debug/mainwindow.o: In function `Mat':
    C:\Users\pc\Detect-build-desktop/../../../opencv/build/include/opencv2/core/mat.hpp:125: undefined reference to `cv::Mat::copySize(cv::Mat const&)'
    debug/mainwindow.o: In function `~Mat':
    C:\Users\pc\Detect-build-desktop/../../../opencv/build/include/opencv2/core/mat.hpp:278: undefined reference to `cv::fastFree(void*)'
    debug/mainwindow.o:C:\Users\pc\Detect-build-desktop/../../../opencv/build/include/opencv2/core/mat.hpp:298: undefined reference to `cv::Mat::copySize(cv::Mat const&)'
    debug/mainwindow.o:C:\Users\pc\Detect-build-desktop/../../../opencv/build/include/opencv2/core/mat.hpp:364: undefined reference to `cv::Mat::deallocate()'
    debug/morphofeatures.o:C:\Users\pc\Detect-build-desktop/../Detectplate/morphofeatures.cpp:16: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/morphofeatures.o:C:\Users\pc\Detect-build-desktop/../Detectplate/morphofeatures.cpp:16: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/morphofeatures.o:C:\Users\pc\Detect-build-desktop/../Detectplate/morphofeatures.cpp:16: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/morphofeatures.o:C:\Users\pc\Detect-build-desktop/../Detectplate/morphofeatures.cpp:16: undefined reference to `cv::morphologyEx(cv::_InputArray const&, cv::_OutputArray const&, int, cv::_InputArray const&, cv::Point_<int>, int, int, cv::Scalar_<double> const&)'
    debug/morphofeatures.o:C:\Users\pc\Detect-build-desktop/../Detectplate/morphofeatures.cpp:24: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/morphofeatures.o:C:\Users\pc\Detect-build-desktop/../Detectplate/morphofeatures.cpp:24: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/morphofeatures.o:C:\Users\pc\Detect-build-desktop/../Detectplate/morphofeatures.cpp:24: undefined reference to `cv::threshold(cv::_InputArray const&, cv::_OutputArray const&, double, double, int)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:39: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:39: undefined reference to `cv::findContours(cv::_OutputArray const&, cv::_OutputArray const&, int, int, cv::Point_<int>)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:42: undefined reference to `cv::noArray()'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:42: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:42: undefined reference to `cv::drawContours(cv::_OutputArray const&, cv::_InputArray const&, int, cv::Scalar_<double> const&, int, int, cv::_InputArray const&, int, cv::Point_<int>)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:43: undefined reference to `cv::namedWindow(std::string const&, int)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:44: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:44: undefined reference to `cv::imshow(std::string const&, cv::_InputArray const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:53: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:53: undefined reference to `cv::arcLength(cv::_InputArray const&, bool)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:53: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:53: undefined reference to `cv::approxPolyDP(cv::_InputArray const&, cv::_OutputArray const&, double, bool)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:61: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:61: undefined reference to `cv::contourArea(cv::_InputArray const&, bool)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:61: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:61: undefined reference to `cv::contourArea(cv::_InputArray const&, bool)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:61: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:61: undefined reference to `cv::isContourConvex(cv::_InputArray const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:90: undefined reference to `cv::polylines(cv::Mat&, cv::Point_<int> const**, int const*, int, bool, cv::Scalar_<double> const&, int, int, int)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:92: undefined reference to `cv::namedWindow(std::string const&, int)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:93: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:93: undefined reference to `cv::imshow(std::string const&, cv::_InputArray const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:109: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:109: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:109: undefined reference to `cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:125: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:125: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:125: undefined reference to `cv::resize(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_<int>, double, double, int)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:131: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:131: undefined reference to `cv::boundingRect(cv::_InputArray const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:132: undefined reference to `cv::Mat::Mat(cv::Mat const&, cv::Rect_<int> const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:134: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:134: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:134: undefined reference to `cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:135: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:135: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:135: undefined reference to `cv::resize(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_<int>, double, double, int)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:136: undefined reference to `cv::namedWindow(std::string const&, int)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:137: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../Detectplate/detect.cpp:137: undefined reference to `cv::imshow(std::string const&, cv::_InputArray const&)'
    debug/detect.o: In function `Mat':
    C:\Users\pc\Detect-build-desktop/../../../opencv/build/include/opencv2/core/mat.hpp:95: undefined reference to `cv::Mat::operator=(cv::Scalar_<double> const&)'
    debug/detect.o:C:\Users\pc\Detect-build-desktop/../../../opencv/build/include/opencv2/core/mat.hpp:350: undefined reference to `cv::Mat::create(int, int const*, int)'
    debug/detect.o: In function `OutputArray<cv::Point_<int> >':
    C:\Users\pc\Detect-build-desktop/../../../opencv/build/include/opencv2/core/mat.hpp:1134: undefined reference to `vtable for cv::_OutputArray'
    debug/detect.o: In function `InputArray<cv::Point_<int> >':
    C:\Users\pc\Detect-build-desktop/../../../opencv/build/include/opencv2/core/mat.hpp:1119: undefined reference to `vtable for cv::_InputArray'
    C:\Users\pc\Detect-build-desktop/../../../opencv/build/include/opencv2/core/mat.hpp:1119: undefined reference to `vtable for cv::_InputArray'
    debug/detect.o: In function `Mat<cv::Point_<int> >':
    C:\Users\pc\Detect-build-desktop/../../../opencv/build/include/opencv2/core/mat.hpp:188: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    C:\Users\pc\Detect-build-desktop/../../../opencv/build/include/opencv2/core/mat.hpp:188: undefined reference to `cv::Mat::copyTo(cv::_OutputArray const&) const'
    debug/detect.o: In function `OutputArray<cv::Point_<int> >':
    C:\Users\pc\Detect-build-desktop/../../../opencv/build/include/opencv2/core/mat.hpp:1133: undefined reference to `vtable for cv::_OutputArray'
    debug/detect.o: In function `InputArray<cv::Point_<int> >':
    C:\Users\pc\Detect-build-desktop/../../../opencv/build/include/opencv2/core/mat.hpp:1116: undefined reference to `vtable for cv::_InputArray'
    debug/basicocr.o:C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:29: undefined reference to `cvLoadImage'
    debug/basicocr.o:C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:39: undefined reference to `cvSet'
    debug/basicocr.o:C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:43: undefined reference to `cvCreateImage'
    debug/basicocr.o:C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:45: undefined reference to `cvConvertScale'
    debug/basicocr.o:C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:47: undefined reference to `cvGetSubRect'
    debug/basicocr.o:C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:51: undefined reference to `cvReshape'
    debug/basicocr.o:C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:52: undefined reference to `cvCopy'
    debug/basicocr.o:C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:59: undefined reference to `CvKNearest::CvKNearest(CvMat const*, CvMat const*, CvMat const*, bool, int)'
    debug/basicocr.o:C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:66: undefined reference to `cvCreateMat'
    debug/basicocr.o:C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:73: undefined reference to `cvCreateImage'
    debug/basicocr.o:C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:74: undefined reference to `cvConvertScale'
    debug/basicocr.o:C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:75: undefined reference to `cvGetSubRect'
    debug/basicocr.o:C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:77: undefined reference to `cvReshape'
    debug/basicocr.o:C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:109: undefined reference to `cvLoadImage'
    debug/basicocr.o: In function `basicOCR':
    C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:137: undefined reference to `cvCreateMat'
    C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:138: undefined reference to `cvCreateMat'
    C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:137: undefined reference to `cvCreateMat'
    C:\Users\pc\Detect-build-desktop/../Detectplate/basicocr.cpp:138: undefined reference to `cvCreateMat'
    debug/basicocr.o: In function `cvGetRow':
    C:\Users\pc\Detect-build-desktop/../../../opencv/build/include/opencv2/core/core_c.h:184: undefined reference to `cvGetRows'
    debug/preprocessing.o: In function `Z5findXP9_IplImagePiS1_':
    C:\Users\pc\Detect-build-desktop/../Detectplate/preprocessing.cpp:25: undefined reference to `cvSum'
    debug/preprocessing.o: In function `Z5findYP9_IplImagePiS1_':
    C:\Users\pc\Detect-build-desktop/../Detectplate/preprocessing.cpp:46: undefined reference to `cvSum'
    debug/preprocessing.o:C:\Users\pc\Detect-build-desktop/../Detectplate/preprocessing.cpp:83: undefined reference to `cvGetSubRect'
    debug/preprocessing.o:C:\Users\pc\Detect-build-desktop/../Detectplate/preprocessing.cpp:87: undefined reference to `cvCreateImage'
    debug/preprocessing.o:C:\Users\pc\Detect-build-desktop/../Detectplate/preprocessing.cpp:88: undefined reference to `cvSet'
    debug/preprocessing.o:C:\Users\pc\Detect-build-desktop/../Detectplate/preprocessing.cpp:92: undefined reference to `cvGetSubRect'
    debug/preprocessing.o:C:\Users\pc\Detect-build-desktop/../Detectplate/preprocessing.cpp:93: undefined reference to `cvCopy'
    debug/preprocessing.o:C:\Users\pc\Detect-build-desktop/../Detectplate/preprocessing.cpp:95: undefined reference to `cvCreateImage'
    debug/preprocessing.o:C:\Users\pc\Detect-build-desktop/../Detectplate/preprocessing.cpp:96: undefined reference to `cvResize'
    debug/preprocessing.o: In function `cvGetCol':
    C:\Users\pc\Detect-build-desktop/../../../opencv/build/include/opencv2/core/core_c.h:195: undefined reference to `cvGetCols'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:73: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:73: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:73: undefined reference to `cv::resize(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_<int>, double, double, int)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:76: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:76: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:76: undefined reference to `cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:78: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:78: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:78: undefined reference to `cv::blur(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_<int>, cv::Point_<int>, int)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:80: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:80: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:80: undefined reference to `cv::threshold(cv::_InputArray const&, cv::_OutputArray const&, double, double, int)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:82: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:82: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:82: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:82: undefined reference to `cv::erode(cv::_InputArray const&, cv::_OutputArray const&, cv::_InputArray const&, cv::Point_<int>, int, int, cv::Scalar_<double> const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:87: undefined reference to `cv::namedWindow(std::string const&, int)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:88: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:88: undefined reference to `cv::imshow(std::string const&, cv::_InputArray const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:92: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:92: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:92: undefined reference to `cv::resize(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_<int>, double, double, int)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:93: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:93: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:93: undefined reference to `cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:94: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:94: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:94: undefined reference to `cv::threshold(cv::_InputArray const&, cv::_OutputArray const&, double, double, int)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:164: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:164: undefined reference to `cv::findContours(cv::_OutputArray const&, cv::_OutputArray const&, int, int, cv::Point_<int>)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:168: undefined reference to `cv::noArray()'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:168: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:168: undefined reference to `cv::drawContours(cv::_OutputArray const&, cv::_InputArray const&, int, cv::Scalar_<double> const&, int, int, cv::_InputArray const&, int, cv::Point_<int>)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:169: undefined reference to `cv::namedWindow(std::string const&, int)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:170: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:170: undefined reference to `cv::imshow(std::string const&, cv::_InputArray const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:185: undefined reference to `cv::noArray()'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:185: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:185: undefined reference to `cv::drawContours(cv::_OutputArray const&, cv::_InputArray const&, int, cv::Scalar_<double> const&, int, int, cv::_InputArray const&, int, cv::Point_<int>)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:186: undefined reference to `cv::namedWindow(std::string const&, int)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:187: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:187: undefined reference to `cv::imshow(std::string const&, cv::_InputArray const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:199: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:199: undefined reference to `cv::boundingRect(cv::_InputArray const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:210: undefined reference to `cv::rectangle(cv::Mat&, cv::Rect_<int>, cv::Scalar_<double> const&, int, int, int)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:224: undefined reference to `cv::Mat::Mat(cv::Mat const&, cv::Rect_<int> const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:232: undefined reference to `cv::noArray()'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:232: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:232: undefined reference to `cv::drawContours(cv::_OutputArray const&, cv::_InputArray const&, int, cv::Scalar_<double> const&, int, int, cv::_InputArray const&, int, cv::Point_<int>)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:233: undefined reference to `cv::namedWindow(std::string const&, int)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:234: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:234: undefined reference to `cv::imshow(std::string const&, cv::_InputArray const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:238: undefined reference to `cv::noArray()'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:238: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:238: undefined reference to `cv::drawContours(cv::_OutputArray const&, cv::_InputArray const&, int, cv::Scalar_<double> const&, int, int, cv::_InputArray const&, int, cv::Point_<int>)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:239: undefined reference to `cv::namedWindow(std::string const&, int)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:240: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:240: undefined reference to `cv::imshow(std::string const&, cv::_InputArray const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:264: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:264: undefined reference to `cv::imwrite(std::string const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:265: undefined reference to `cv::namedWindow(std::string const&, int)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:266: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:266: undefined reference to `cv::imshow(std::string const&, cv::_InputArray const&)'
    debug/recognition.o:C:\Users\pc\Detect-build-desktop/../Detectplate/recognition.cpp:276: undefined reference to `cv::Mat::operator _IplImage() const'
    collect2: ld returned 1 exit status
    mingw32-make[1]: *** [debug\Detect.exe] Error 1
    mingw32-make: *** [debug] Error 2
    Le processus "C:\QtSDK\mingw\bin\mingw32-make.exe" s'est terminé avec le code 2.
    Erreur à la compilation du projet Detect (cible : Desktop)
    Lors de l'exécution de l'étape 'Make'

    Merci de me aider .

  2. #2
    Responsable 2D/3D/Jeux

    Avatar de LittleWhite
    Homme Profil pro Alexandre Laurent
    Ingénieur développement logiciels
    Inscrit en
    mai 2008
    Messages
    14 411
    Détails du profil
    Informations personnelles :
    Nom : Homme Alexandre Laurent
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : mai 2008
    Messages : 14 411
    Points : 67 585
    Points
    67 585

    Par défaut

    Bonjour,

    Il semble qu'il ne prenne pas en compte les lignes :
    LIBS += -LC:\opencv\build\x64\mingw\lib \
    -lopencv_core240 \
    -lopencv_highgui240 \
    -lopencv_imgproc240
    lorsque l'on regarde :
    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug\Detect.exe debug/main.o debug/mainwindow.o debug/morphofeatures.o debug/detect.o debug/basicocr.o debug/preprocessing.o debug/recognition.o debug/moc_mainwindow.o -L"c:\QtSDK\Desktop\Qt\4.7.3\mingw\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4 -LC:\OpenSSL-Win32_full\lib
    Mais je ne vois pas pourquoi
    Vous souhaitez participer à la rubrique 2D / 3D / Jeux ? Contactez-moi
    La rubrique a aussi un blog !

    Ma page sur DVP
    Mon Portfolio

    Qui connaît l'erreur, connaît la solution.

  3. #3
    Modérateur

    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    mai 2009
    Messages
    1 008
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 25
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : mai 2009
    Messages : 1 008
    Points : 1 744
    Points
    1 744

    Par défaut

    A mon avis le x64 y est pour quelque chose, tu ne peux pas compiler de version 64bits avec un compilateur 32bits, un Qt 32bits...

  4. #4
    Invité régulier
    Homme Profil pro Yassine
    élève ingénieur en informatique
    Inscrit en
    août 2011
    Messages
    15
    Détails du profil
    Informations personnelles :
    Nom : Homme Yassine
    Localisation : Tunisie

    Informations professionnelles :
    Activité : élève ingénieur en informatique

    Informations forums :
    Inscription : août 2011
    Messages : 15
    Points : 7
    Points
    7

    Par défaut

    Bonjour ,
    Merci pour vos aides ,

    En fait mon compilateur MinGW est 32bits donc il faut faire la liaison avec x86/mingw .
    Donc :
    1 - j'ai coller mes lib nécessaire (libopencv_core240.dll.a ; libopencv_highgui.dll.a ; libopencv_imgproc.dll.a ; libopencv_ml240.dll.a )pour mon projet dans la répertoire des lib de Mon compilateur MinGW chez moi (
    "C:\QtSDK\Desktop\Qt\4.7.3\mingw\lib")
    2- pour la configuration du projet .pro
    Code :Sélectionner tout - Visualiser dans une fenêtre à part

    Code :
    1
    2
    3
    4
    5
    6
    7
     
    win32{
    LIBS += -lopencv_core240 \
    -lopencv_highgui240 \
    -lopencv_imgproc240 \
    -lopencv_ml240
    }
    et les erreurs de "undefined reference " sont disparus
    l’exécutable a été créer mais
    mais voila le résultats de lancement
    L'application n'a pas réussi à démarrer correctement (0xc000007b)

    Quelqu’un a une idée ? SVP

  5. #5
    Modérateur

    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    mai 2009
    Messages
    1 008
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 25
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : mai 2009
    Messages : 1 008
    Points : 1 744
    Points
    1 744

    Par défaut

    1) Ça ne se fait pas de déplacer des libs n'importe où pour arriver à ses fins (tu vas t'y perdre). Tu avais la bonne méthode au-dessus avec le -L<dossier des libs>, fallait juste mettre x86 au lieu de x64 je suppose.

    2) Ok tu as compilé avec succès. Pour l'exécution, il faut copier les dépendances (les 4 dll et leurs dépendances) à côté de l'exécutable (ou en environnement de développement, les rajouter dans le PATH pour éviter de les copier pour chaque projet).

  6. #6
    Responsable Qt

    Avatar de dourouc05
    Homme Profil pro Thibaut Cuvelier
    Étudiant
    Inscrit en
    août 2008
    Messages
    19 337
    Détails du profil
    Informations personnelles :
    Nom : Homme Thibaut Cuvelier
    Localisation : Belgique

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Enseignement

    Informations forums :
    Inscription : août 2008
    Messages : 19 337
    Points : 74 963
    Points
    74 963
    Vous souhaitez participer aux rubriques Qt ou PyQt/PySide (tutoriels, FAQ, traductions, sources) ? Contactez-moi par MP.

    Créer des applications avec Qt 5.

    Pas de question d'ordre technique par MP !

Liens sociaux

Règles de messages

  • Vous ne pouvez pas créer de nouvelles discussions
  • Vous ne pouvez pas envoyer des réponses
  • Vous ne pouvez pas envoyer des pièces jointes
  • Vous ne pouvez pas modifier vos messages
  •