IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

OpenCV Discussion :

Compilation sous Windows avec CMake


Sujet :

OpenCV

  1. #1
    Membre chevronné

    Homme Profil pro
    développeur
    Inscrit en
    Octobre 2013
    Messages
    1 576
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Oise (Picardie)

    Informations professionnelles :
    Activité : développeur

    Informations forums :
    Inscription : Octobre 2013
    Messages : 1 576
    Points : 1 989
    Points
    1 989
    Par défaut Compilation sous Windows avec CMake
    Bonjour à tous,

    J'essaye d'intégrer opencv a qt j'ai donc télécharger cmake pour compiler les source mais j'ai le message suivant
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    CMake Error: The source directory "C:/opencv" does not appear to contain CMakeLists.txt.
    Specify --help for usage, or press the help button on the CMake GUI.
    voici le gui Nom : gui.PNG
Affichages : 1213
Taille : 21,1 Ko
    Auriez-vous une idée?

  2. #2
    Membre chevronné

    Homme Profil pro
    développeur
    Inscrit en
    Octobre 2013
    Messages
    1 576
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Oise (Picardie)

    Informations professionnelles :
    Activité : développeur

    Informations forums :
    Inscription : Octobre 2013
    Messages : 1 576
    Points : 1 989
    Points
    1 989
    Par défaut
    J'ai un peux avancée il fallait donner le repertoir ou est situé le cmake mais après cela j'ail'erreur
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
      The CXX compiler identification is unknown
    The C compiler identification is unknown
    Check for working CXX compiler: C:/Qt/Tools/mingw492_32/bin/mingw32-make.exe
    Check for working CXX compiler: C:/Qt/Tools/mingw492_32/bin/mingw32-make.exe -- broken
    CMake Error at C:/CMake/share/cmake-3.4/Modules/CMakeTestCXXCompiler.cmake:54 (message):
      The C++ compiler "C:/Qt/Tools/mingw492_32/bin/mingw32-make.exe" is not able
      to compile a simple test program.
     
      It fails with the following output:
     
       Change Dir: C:/opencv-compil/CMakeFiles/CMakeTmp
     
     
     
      Run Build Command:"C:/GNUstep/bin/mingw32-make.exe" "cmTC_cb732/fast"
     
      C:/GNUstep/bin/mingw32-make.exe -f CMakeFiles\cmTC_cb732.dir\build.make
      CMakeFiles/cmTC_cb732.dir/build
     
     
      mingw32-make.exe[1]: Entering directory
      `C:/opencv-compil/CMakeFiles/CMakeTmp'
     
     
      Building CXX object CMakeFiles/cmTC_cb732.dir/testCXXCompiler.cxx.obj
     
     
      C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe -o
      CMakeFiles\cmTC_cb732.dir\testCXXCompiler.cxx.obj -c
      C:\opencv-compil\CMakeFiles\CMakeTmp\testCXXCompiler.cxx
     
     
      C:\Qt\Tools\mingw492_32\bin\mingw32-make: invalid option -- c
     
     
      Usage: mingw32-make [options] [target] ...
     
     
      Options:
     
     
        -b, -m                      Ignored for compatibility.
     
        -B, --always-make           Unconditionally make all targets.
     
        -C DIRECTORY, --directory=DIRECTORY
     
                                    Change to DIRECTORY before doing anything.
     
        -d                          Print lots of debugging information.
     
        --debug[=FLAGS]             Print various types of debugging information.
     
        -e, --environment-overrides
     
                                    Environment variables override makefiles.
     
        --eval=STRING               Evaluate STRING as a makefile statement.
     
        -f FILE, --file=FILE, --makefile=FILE
     
                                    Read FILE as a makefile.
     
        -h, --help                  Print this message and exit.
     
        -i, --ignore-errors         Ignore errors from recipes.
     
        -I DIRECTORY, --include-dir=DIRECTORY
     
                                    Search DIRECTORY for included makefiles.
     
        -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with no arg.
     
        -k, --keep-going            Keep going when some targets can't be made.
     
        -l [N], --load-average[=N], --max-load[=N]
     
                                    Don't start multiple jobs unless load is below N.
     
        -L, --check-symlink-times   Use the latest mtime between symlinks and target.
     
        -n, --just-print, --dry-run, --recon
     
                                    Don't actually run any recipe; just print them.
     
        -o FILE, --old-file=FILE, --assume-old=FILE
     
                                    Consider FILE to be very old and don't remake it.
     
        -O[TYPE], --output-sync[=TYPE]
     
                                    Synchronize output of parallel jobs by TYPE.
     
        -p, --print-data-base       Print make's internal database.
     
        -q, --question              Run no recipe; exit status says if up to date.
     
        -r, --no-builtin-rules      Disable the built-in implicit rules.
     
        -R, --no-builtin-variables  Disable the built-in variable settings.
     
        -s, --silent, --quiet       Don't echo recipes.
     
        -S, --no-keep-going, --stop
     
                                    Turns off -k.
     
        -t, --touch                 Touch targets instead of remaking them.
     
        --trace                     Print tracing information.
     
        -v, --version               Print the version number of make and exit.
     
        -w, --print-directory       Print the current directory.
     
        --no-print-directory        Turn off -w, even if it was turned on implicitly.
     
        -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
     
                                    Consider FILE to be infinitely new.
     
        --warn-undefined-variables  Warn when an undefined variable is referenced.
     
     
     
     
     
      This program built for i686-w64-mingw32
     
     
      Report bugs to <bug-make@gnu.org>
     
     
      mingw32-make.exe[1]: ***
      [CMakeFiles/cmTC_cb732.dir/testCXXCompiler.cxx.obj] Error 2
     
     
      mingw32-make.exe[1]: Leaving directory
      `C:/opencv-compil/CMakeFiles/CMakeTmp'
     
     
      mingw32-make.exe: *** [cmTC_cb732/fast] Error 2
     
     
     
     
     
     
      CMake will not be able to correctly generate this project.
    Call Stack (most recent call first):
      CMakeLists.txt:93 (project)
     
     
    Configuring incomplete, errors occurred!
    See also "C:/opencv-compil/CMakeFiles/CMakeOutput.log".
    See also "C:/opencv-compil/CMakeFiles/CMakeError.log"
    pourtant je ne fais rien de particulier j'ai les sources que je veux compiler avec cmake la ligne qui pose problème dans le cmake

Discussions similaires

  1. Erreur de compilation sous windows. (avec mingw)
    Par Invité dans le forum C++
    Réponses: 21
    Dernier message: 26/10/2015, 10h48
  2. Réponses: 0
    Dernier message: 04/08/2009, 18h46
  3. Compiler un programme Boost sous Windows avec Cygwin
    Par asher256 dans le forum Boost
    Réponses: 3
    Dernier message: 20/11/2008, 21h07
  4. Compilation sous windows avec devc++
    Par dr_octopus74 dans le forum Dev-C++
    Réponses: 4
    Dernier message: 17/01/2007, 22h48

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo