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

 C++ Discussion :

Installation et exécution d'un programme


Sujet :

C++

  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    211
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Avril 2007
    Messages : 211
    Par défaut Installation et exécution d'un programme
    Bonjour à tous,

    je souhaites utiliser un programme trouvé sur github. Je n'arrive pas à installer le programme sous linux (debian) (qui possède un outil en ligne de commande) qui me donne la valeur SSIM entre 2 images

    il s'agit de ce programme : https://github.com/romigrou/ssim

    Voici ce que je fais :


    1) git clone https://github.com/romigrou/ssim.git
    2) cd ssim
    3) vim CMakeLists.txt pour mettre sur RMGR_SSIM_NO_OPENMP sur ON, RMGR_SSIM_BUILD_CLI sur ON, RMGR_SSIM_BUILD_SAMPLE sur ON et RMGR_SSIM_BUILD_TESTS sur on
    4) cmake ..
    5) make

    et là je suis bloqué. Je ne vois pas de programme à lancer (ni comment le lancer).

    Merci de votre aide

  2. #2
    Responsable Systèmes


    Homme Profil pro
    Gestion de parcs informatique
    Inscrit en
    Août 2011
    Messages
    18 184
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Gestion de parcs informatique
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Août 2011
    Messages : 18 184
    Par défaut
    peut-être
    après le make.
    Sinon l'exe doit être dans le dossier ssim (pour plutôt un sous-dossier)

    pas de message d'erreur du compilateur ?
    Ma page sur developpez.com : http://chrtophe.developpez.com/ (avec mes articles)
    Mon article sur le P2V, mon article sur le cloud
    Consultez nos FAQ : Windows, Linux, Virtualisation

  3. #3
    Expert éminent

    Femme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    5 202
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Essonne (Île de France)

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

    Informations forums :
    Inscription : Juin 2007
    Messages : 5 202
    Par défaut
    J'ajoute que pour régler une configuration cmake, il ne faut pas modifier le CMakeLists.txt, mais utiliser le processus de configuration.

    Soit ajouter des options comme -DRMGR_SSIM_BUILD_CLI=ONSoit utiliser un outil interactif comme ccmake

  4. #4
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    211
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Avril 2007
    Messages : 211
    Par défaut
    Voici les obtenus :

    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
    seb@debian:~/ssim$ sudo cmake . -DRMGR_SSIM_BUILD_CLI=ON -DRMGR_SSIM_NO_OPENMP=ON -DRMGR_SSIM_BUILD_SAMPLE=ON -DRMGR_SSIM_BUILD_TESTS=ON
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/seb/ssim
    seb@debian:~/ssim$ sudo make
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/seb/ssim
    make[1]: *** Aucune règle pour fabriquer la cible «*rmgr-ssim-tests*». Arrêt.
    make: *** [GNUmakefile:309 : rmgr-ssim-tests] Erreur 2
    seb@debian:~/ssim$ sudo make install
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/seb/ssim
    make[1]: *** Aucune règle pour fabriquer la cible «*install*». Arrêt.
    make: *** [GNUmakefile:309 : install] Erreur 2
    Je suis un peu perdu

  5. #5
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    211
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Avril 2007
    Messages : 211
    Par défaut
    Toujours aussi perdu :

    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
    seb@debian:~$ git clone https://github.com/romigrou/ssim.git
    Clonage dans 'ssim'...
    remote: Enumerating objects: 650, done.
    remote: Counting objects: 100% (650/650), done.
    remote: Compressing objects: 100% (299/299), done.
    remote: Total 650 (delta 407), reused 558 (delta 315), pack-reused 0
    Réception d'objets: 100% (650/650), 7.37 Mio | 4.04 Mio/s, fait.
    Résolution des deltas: 100% (407/407), fait.
    seb@debian:~$ cd ssim
    seb@debian:~/ssim$ cd ls -l
    -bash: cd: trop d'arguments
    seb@debian:~/ssim$ ls -l
    total 184
    -rw-r--r-- 1 seb seb   9857 15 nov 22:02 CMakeLists.txt
    -rw-r--r-- 1 seb seb 112913 15 nov 22:02 Doxyfile
    -rw-r--r-- 1 seb seb   9698 15 nov 22:02 GenerateSolution.cmd
    -rw-r--r-- 1 seb seb  13989 15 nov 22:02 GNUmakefile
    drwxr-xr-x 3 seb seb   4096 15 nov 22:02 include
    -rw-r--r-- 1 seb seb    870 15 nov 22:02 LICENSE
    -rw-r--r-- 1 seb seb   9226 15 nov 22:02 README.md
    drwxr-xr-x 2 seb seb   4096 15 nov 22:02 sample
    drwxr-xr-x 2 seb seb   4096 15 nov 22:02 src
    drwxr-xr-x 3 seb seb   4096 15 nov 22:02 tests
    seb@debian:~/ssim$ sudo cmake -D RMGR_SSIM_BUILD_CLI=ON -D RMGR_SSIM_NO_OPENMP=ON -D RMGR_SSIM_BUILD_SAMPLE=ON -D RMGR_SSIM_BUILD_TESTS=ON CMakeLists.txt
    -- The CXX compiler identification is GNU 12.2.0
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Looking for __i386__
    -- Looking for __i386__ - not found
    -- Looking for __amd64__
    -- Looking for __amd64__ - found
    -- Performing Test RMGR_SSIM_SSE_FLAGS_SUPPORTED
    -- Performing Test RMGR_SSIM_SSE_FLAGS_SUPPORTED - Success
    -- Performing Test RMGR_SSIM_AVX_FLAGS_SUPPORTED
    -- Performing Test RMGR_SSIM_AVX_FLAGS_SUPPORTED - Success
    -- Performing Test RMGR_SSIM_FMA_FLAGS_SUPPORTED
    -- Performing Test RMGR_SSIM_FMA_FLAGS_SUPPORTED - Success
    -- Performing Test RMGR_SSIM_AVX512_FLAGS_SUPPORTED
    -- Performing Test RMGR_SSIM_AVX512_FLAGS_SUPPORTED - Success
    -- Found GTest: /usr/lib/x86_64-linux-gnu/cmake/GTest/GTestConfig.cmake (found version "1.12.1")
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/seb/ssim
    seb@debian:~/ssim$ ls -l
    total 236
    -rw-r--r-- 1 root root  17596 15 nov 22:03 CMakeCache.txt
    drwxr-xr-x 8 root root   4096 15 nov 22:03 CMakeFiles
    -rw-r--r-- 1 root root   2167 15 nov 22:03 cmake_install.cmake
    -rw-r--r-- 1 seb  seb    9857 15 nov 22:02 CMakeLists.txt
    -rw-r--r-- 1 root root   2941 15 nov 22:03 CPackConfig.cmake
    -rw-r--r-- 1 root root   3386 15 nov 22:03 CPackSourceConfig.cmake
    -rw-r--r-- 1 seb  seb  112913 15 nov 22:02 Doxyfile
    -rw-r--r-- 1 seb  seb    9698 15 nov 22:02 GenerateSolution.cmd
    -rw-r--r-- 1 seb  seb   13989 15 nov 22:02 GNUmakefile
    drwxr-xr-x 3 seb  seb    4096 15 nov 22:02 include
    -rw-r--r-- 1 seb  seb     870 15 nov 22:02 LICENSE
    -rw-r--r-- 1 root root  15664 15 nov 22:03 Makefile
    -rw-r--r-- 1 seb  seb    9226 15 nov 22:02 README.md
    drwxr-xr-x 2 seb  seb    4096 15 nov 22:02 sample
    drwxr-xr-x 2 seb  seb    4096 15 nov 22:03 src
    drwxr-xr-x 4 seb  seb    4096 15 nov 22:03 tests
    seb@debian:~/ssim$ sudo make Makefile
    seb@debian:~/ssim$ ls -l
    total 248
    drwxr-xr-x 3 root root   4096 15 nov 22:05 bin
    drwxr-xr-x 3 seb  seb    4096 15 nov 22:04 build
    -rw-r--r-- 1 seb  seb   18307 15 nov 22:04 CMakeCache.txt
    drwxr-xr-x 8 root root   4096 15 nov 22:05 CMakeFiles
    -rw-r--r-- 1 root root   2209 15 nov 22:05 cmake_install.cmake
    -rw-r--r-- 1 seb  seb    9857 15 nov 22:02 CMakeLists.txt
    -rw-r--r-- 1 seb  seb    2995 15 nov 22:04 CPackConfig.cmake
    -rw-r--r-- 1 seb  seb    3440 15 nov 22:04 CPackSourceConfig.cmake
    -rw-r--r-- 1 seb  seb  112913 15 nov 22:02 Doxyfile
    -rw-r--r-- 1 seb  seb    9698 15 nov 22:02 GenerateSolution.cmd
    -rw-r--r-- 1 seb  seb   13989 15 nov 22:02 GNUmakefile
    drwxr-xr-x 3 seb  seb    4096 15 nov 22:02 include
    drwxr-xr-x 3 root root   4096 15 nov 22:05 lib
    -rw-r--r-- 1 seb  seb     870 15 nov 22:02 LICENSE
    -rw-r--r-- 1 root root  15664 15 nov 22:05 Makefile
    -rw-r--r-- 1 seb  seb    9226 15 nov 22:02 README.md
    drwxr-xr-x 2 seb  seb    4096 15 nov 22:02 sample
    drwxr-xr-x 2 seb  seb    4096 15 nov 22:03 src
    drwxr-xr-x 4 seb  seb    4096 15 nov 22:05 tests
    Je cherche à lancer le client en ligne de commande mais je ne trouve pas

  6. #6
    Expert confirmé
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Février 2005
    Messages
    5 449
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 53
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Conseil

    Informations forums :
    Inscription : Février 2005
    Messages : 5 449
    Par défaut
    Il est pas dans le répertoire "/bin" créé par "sudo make Makefile" ?

  7. #7
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    211
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Avril 2007
    Messages : 211
    Par défaut
    Je ne le vois pas :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    seb@debian:~/ssim$ cd bin
    seb@debian:~/ssim/bin$ ls -l
    total 4
    drwxr-xr-x 3 root root 4096 15 nov 22:05 linux-amd64-gcc12-make
    seb@debian:~/ssim/bin$ cd linux-amd64-gcc12-make/
    seb@debian:~/ssim/bin/linux-amd64-gcc12-make$ ls -l
    total 4
    drwxr-xr-x 2 root root 4096 15 nov 22:05 release
    seb@debian:~/ssim/bin/linux-amd64-gcc12-make$ cd release/
    seb@debian:~/ssim/bin/linux-amd64-gcc12-make/release$ ls -l
    total 0
    seb@debian:~/ssim/bin/linux-amd64-gcc12-make/release$

  8. #8
    Expert confirmé
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Février 2005
    Messages
    5 449
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 53
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Conseil

    Informations forums :
    Inscription : Février 2005
    Messages : 5 449
    Par défaut
    Lire le "README.md" du projet Git, SVP, en particulier la section "Command Line Tool".

  9. #9
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    211
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Avril 2007
    Messages : 211
    Par défaut
    Je l'ai lu et relu :-).

    d'ailleurs j'ai ajouté -D RMGR_SSIM_BUILD_CLI=ON au niveau du cmake
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    seb@debian:~/ssim$ sudo cmake -D RMGR_SSIM_BUILD_CLI=ON -D RMGR_SSIM_NO_OPENMP=ON -D RMGR_SSIM_BUILD_SAMPLE=ON -D RMGR_SSIM_BUILD_TESTS=ON CMakeLists.txt
    Mais je n'arrive pas à trouver cet outil en ligne de commande

  10. #10
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    211
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Avril 2007
    Messages : 211
    Par défaut
    Voici un ls -R -l
    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
    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
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    seb@debian:~/ssim$ ls -R -l
    .:
    total 248
    drwxr-xr-x 3 root root   4096 15 nov 22:05 bin
    drwxr-xr-x 3 seb  seb    4096 15 nov 22:04 build
    -rw-r--r-- 1 seb  seb   18307 15 nov 22:04 CMakeCache.txt
    drwxr-xr-x 8 root root   4096 15 nov 22:05 CMakeFiles
    -rw-r--r-- 1 root root   2209 15 nov 22:05 cmake_install.cmake
    -rw-r--r-- 1 seb  seb    9857 15 nov 22:02 CMakeLists.txt
    -rw-r--r-- 1 seb  seb    2995 15 nov 22:04 CPackConfig.cmake
    -rw-r--r-- 1 seb  seb    3440 15 nov 22:04 CPackSourceConfig.cmake
    -rw-r--r-- 1 seb  seb  112913 15 nov 22:02 Doxyfile
    -rw-r--r-- 1 seb  seb    9698 15 nov 22:02 GenerateSolution.cmd
    -rw-r--r-- 1 seb  seb   13989 15 nov 22:02 GNUmakefile
    drwxr-xr-x 3 seb  seb    4096 15 nov 22:02 include
    drwxr-xr-x 3 root root   4096 15 nov 22:05 lib
    -rw-r--r-- 1 seb  seb     870 15 nov 22:02 LICENSE
    -rw-r--r-- 1 root root  15664 15 nov 22:05 Makefile
    -rw-r--r-- 1 seb  seb    9226 15 nov 22:02 README.md
    drwxr-xr-x 2 seb  seb    4096 15 nov 22:02 sample
    drwxr-xr-x 2 seb  seb    4096 15 nov 22:03 src
    drwxr-xr-x 4 seb  seb    4096 15 nov 22:05 tests
     
    ./bin:
    total 4
    drwxr-xr-x 3 root root 4096 15 nov 22:05 linux-amd64-gcc12-make
     
    ./bin/linux-amd64-gcc12-make:
    total 4
    drwxr-xr-x 2 root root 4096 15 nov 22:05 release
     
    ./bin/linux-amd64-gcc12-make/release:
    total 0
     
    ./build:
    total 4
    drwxr-xr-x 3 seb seb 4096 15 nov 22:04 linux-amd64-gcc12-make
     
    ./build/linux-amd64-gcc12-make:
    total 4
    drwxr-xr-x 2 seb seb 4096 15 nov 22:04 release
     
    ./build/linux-amd64-gcc12-make/release:
    total 0
     
    ./CMakeFiles:
    total 88
    drwxr-xr-x 3 root root  4096 15 nov 22:03 3.24.3
    -rw-r--r-- 1 root root    85 15 nov 22:05 cmake.check_cache
    -rw-r--r-- 1 root root   604 15 nov 22:03 CMakeDirectoryInformation.cmake
    -rw-r--r-- 1 root root  1312 15 nov 22:03 CMakeError.log
    -rw-r--r-- 1 root root 28966 15 nov 22:03 CMakeOutput.log
    drwxr-xr-x 2 root root  4096 15 nov 22:03 CMakeTmp
    -rw-r--r-- 1 root root  8178 15 nov 22:05 Makefile2
    -rw-r--r-- 1 root root  3365 15 nov 22:05 Makefile.cmake
    drwxr-xr-x 2 root root  4096 15 nov 22:05 pkgRedirects
    -rw-r--r-- 1 root root     3 15 nov 22:05 progress.marks
    drwxr-xr-x 3 root root  4096 15 nov 22:05 rmgr-ssim-cli.dir
    drwxr-xr-x 3 root root  4096 15 nov 22:05 rmgr-ssim.dir
    drwxr-xr-x 3 root root  4096 15 nov 22:05 rmgr-ssim-sample.dir
    -rw-r--r-- 1 root root   927 15 nov 22:05 TargetDirectories.txt
     
    ./CMakeFiles/3.24.3:
    total 32
    -rw-r--r-- 1 root root  5439 15 nov 22:03 CMakeCXXCompiler.cmake
    -rwxr-xr-x 1 root root 16040 15 nov 22:03 CMakeDetermineCompilerABI_CXX.bin
    -rw-r--r-- 1 root root   386 15 nov 22:03 CMakeSystem.cmake
    drwxr-xr-x 3 root root  4096 15 nov 22:03 CompilerIdCXX
     
    ./CMakeFiles/3.24.3/CompilerIdCXX:
    total 48
    -rwxr-xr-x 1 root root 16152 15 nov 22:03 a.out
    -rw-r--r-- 1 root root 25597 15 nov 22:03 CMakeCXXCompilerId.cpp
    drwxr-xr-x 2 root root  4096 15 nov 22:03 tmp
     
    ./CMakeFiles/3.24.3/CompilerIdCXX/tmp:
    total 0
     
    ./CMakeFiles/CMakeTmp:
    total 0
     
    ./CMakeFiles/pkgRedirects:
    total 0
     
    ./CMakeFiles/rmgr-ssim-cli.dir:
    total 44
    -rw-r--r-- 1 root root 4722 15 nov 22:05 build.make
    -rw-r--r-- 1 root root  390 15 nov 22:05 cmake_clean.cmake
    -rw-r--r-- 1 root root  116 15 nov 22:05 compiler_depend.make
    -rw-r--r-- 1 root root  120 15 nov 22:03 compiler_depend.ts
    -rw-r--r-- 1 root root  628 15 nov 22:03 DependInfo.cmake
    -rw-r--r-- 1 root root   97 15 nov 22:05 depend.make
    -rw-r--r-- 1 root root  245 15 nov 22:05 flags.make
    -rw-r--r-- 1 root root  176 15 nov 22:05 link.txt
    -rw-r--r-- 1 root root   43 15 nov 22:05 progress.make
    drwxr-xr-x 2 root root 4096 15 nov 22:03 src
     
    ./CMakeFiles/rmgr-ssim-cli.dir/src:
    total 0
     
    ./CMakeFiles/rmgr-ssim.dir:
    total 52
    -rw-r--r-- 1 root root 12182 15 nov 22:05 build.make
    -rw-r--r-- 1 root root   876 15 nov 22:05 cmake_clean.cmake
    -rw-r--r-- 1 root root    76 15 nov 22:05 cmake_clean_target.cmake
    -rw-r--r-- 1 root root   112 15 nov 22:05 compiler_depend.make
    -rw-r--r-- 1 root root   116 15 nov 22:03 compiler_depend.ts
    -rw-r--r-- 1 root root  1239 15 nov 22:03 DependInfo.cmake
    -rw-r--r-- 1 root root    93 15 nov 22:05 depend.make
    -rw-r--r-- 1 root root   589 15 nov 22:05 flags.make
    -rw-r--r-- 1 root root   407 15 nov 22:05 link.txt
    -rw-r--r-- 1 root root   148 15 nov 22:05 progress.make
    drwxr-xr-x 2 root root  4096 15 nov 22:03 src
     
    ./CMakeFiles/rmgr-ssim.dir/src:
    total 0
     
    ./CMakeFiles/rmgr-ssim-sample.dir:
    total 44
    -rw-r--r-- 1 root root 5081 15 nov 22:05 build.make
    -rw-r--r-- 1 root root  435 15 nov 22:05 cmake_clean.cmake
    -rw-r--r-- 1 root root  119 15 nov 22:05 compiler_depend.make
    -rw-r--r-- 1 root root  123 15 nov 22:03 compiler_depend.ts
    -rw-r--r-- 1 root root  667 15 nov 22:03 DependInfo.cmake
    -rw-r--r-- 1 root root  100 15 nov 22:05 depend.make
    -rw-r--r-- 1 root root  242 15 nov 22:05 flags.make
    -rw-r--r-- 1 root root  197 15 nov 22:05 link.txt
    -rw-r--r-- 1 root root   45 15 nov 22:05 progress.make
    drwxr-xr-x 2 root root 4096 15 nov 22:03 sample
     
    ./CMakeFiles/rmgr-ssim-sample.dir/sample:
    total 0
     
    ./include:
    total 4
    drwxr-xr-x 2 seb seb 4096 15 nov 22:02 rmgr
     
    ./include/rmgr:
    total 28
    -rw-r--r-- 1 seb seb 20706 15 nov 22:02 ssim.h
    -rw-r--r-- 1 seb seb  1869 15 nov 22:02 ssim-openmp.h
     
    ./lib:
    total 4
    drwxr-xr-x 3 root root 4096 15 nov 22:05 linux-amd64-gcc12-make
     
    ./lib/linux-amd64-gcc12-make:
    total 4
    drwxr-xr-x 2 root root 4096 15 nov 22:05 release
     
    ./lib/linux-amd64-gcc12-make/release:
    total 0
     
    ./sample:
    total 4
    -rw-r--r-- 1 seb seb 3443 15 nov 22:02 rmgr-ssim-sample.cpp
     
    ./src:
    total 484
    -rw-r--r-- 1 seb  seb   10146 15 nov 22:02 ssim_avx512.cpp
    -rw-r--r-- 1 seb  seb   16774 15 nov 22:02 ssim_avx.cpp
    -rw-r--r-- 1 seb  seb   13293 15 nov 22:02 ssim-cli.cpp
    -rw-r--r-- 1 seb  seb   37824 15 nov 22:02 ssim.cpp
    -rw-r--r-- 1 seb  seb   11408 15 nov 22:02 ssim_fma.cpp
    -rw-r--r-- 1 seb  seb    3708 15 nov 22:02 ssim_internal.h
    -rw-r--r-- 1 seb  seb   18921 15 nov 22:02 ssim_neon.cpp
    -rw-r--r-- 1 seb  seb    1849 15 nov 22:02 ssim-openmp.cpp
    -rw-r--r-- 1 seb  seb   17135 15 nov 22:02 ssim_sse.cpp
    -rw-r--r-- 1 root root 273150 15 nov 22:03 stb_image.h
    -rw-r--r-- 1 root root  69565 15 nov 22:03 stb_image_write.h
     
    ./tests:
    total 68
    drwxr-xr-x 3 root root  4096 15 nov 22:05 CMakeFiles
    -rw-r--r-- 1 root root  1241 15 nov 22:05 cmake_install.cmake
    -rw-r--r-- 1 seb  seb   4613 15 nov 22:02 CMakeLists.txt
    drwxr-xr-x 2 seb  seb   4096 15 nov 22:02 images
    -rw-r--r-- 1 root root  8549 15 nov 22:03 Makefile
    -rw-r--r-- 1 seb  seb  21952 15 nov 22:02 rmgr-ssim-tests.cpp
    -rw-r--r-- 1 seb  seb  11239 15 nov 22:02 ssim_naive.h
     
    ./tests/CMakeFiles:
    total 12
    -rw-r--r-- 1 root root  604 15 nov 22:03 CMakeDirectoryInformation.cmake
    -rw-r--r-- 1 root root    2 15 nov 22:05 progress.marks
    drwxr-xr-x 2 root root 4096 15 nov 22:05 rmgr-ssim-tests.dir
     
    ./tests/CMakeFiles/rmgr-ssim-tests.dir:
    total 40
    -rw-r--r-- 1 root root 5288 15 nov 22:05 build.make
    -rw-r--r-- 1 root root  420 15 nov 22:05 cmake_clean.cmake
    -rw-r--r-- 1 root root  118 15 nov 22:05 compiler_depend.make
    -rw-r--r-- 1 root root  122 15 nov 22:03 compiler_depend.ts
    -rw-r--r-- 1 root root  659 15 nov 22:03 DependInfo.cmake
    -rw-r--r-- 1 root root   99 15 nov 22:05 depend.make
    -rw-r--r-- 1 root root  348 15 nov 22:05 flags.make
    -rw-r--r-- 1 root root  230 15 nov 22:05 link.txt
    -rw-r--r-- 1 root root   45 15 nov 22:05 progress.make
     
    ./tests/images:
    total 7484
    -rw-r--r-- 1 seb seb   40603 15 nov 22:02 big_buck_bunny_1080_07806_00.jpg
    -rw-r--r-- 1 seb seb 1825456 15 nov 22:02 big_buck_bunny_1080_07806_100.jpg
    -rw-r--r-- 1 seb seb   67105 15 nov 22:02 big_buck_bunny_1080_07806_10.jpg
    -rw-r--r-- 1 seb seb  101719 15 nov 22:02 big_buck_bunny_1080_07806_20.jpg
    -rw-r--r-- 1 seb seb  132525 15 nov 22:02 big_buck_bunny_1080_07806_30.jpg
    -rw-r--r-- 1 seb seb  158990 15 nov 22:02 big_buck_bunny_1080_07806_40.jpg
    -rw-r--r-- 1 seb seb  184645 15 nov 22:02 big_buck_bunny_1080_07806_50.jpg
    -rw-r--r-- 1 seb seb  213202 15 nov 22:02 big_buck_bunny_1080_07806_60.jpg
    -rw-r--r-- 1 seb seb  255605 15 nov 22:02 big_buck_bunny_1080_07806_70.jpg
    -rw-r--r-- 1 seb seb  325973 15 nov 22:02 big_buck_bunny_1080_07806_80.jpg
    -rw-r--r-- 1 seb seb  485131 15 nov 22:02 big_buck_bunny_1080_07806_90.jpg
    -rw-r--r-- 1 seb seb 2501784 15 nov 22:02 big_buck_bunny_1080_07806.png
    -rw-r--r-- 1 seb seb   14007 15 nov 22:02 big_buck_bunny_360_07806_00.jpg
    -rw-r--r-- 1 seb seb  286552 15 nov 22:02 big_buck_bunny_360_07806_100.jpg
    -rw-r--r-- 1 seb seb   20085 15 nov 22:02 big_buck_bunny_360_07806_10.jpg
    -rw-r--r-- 1 seb seb   26835 15 nov 22:02 big_buck_bunny_360_07806_20.jpg
    -rw-r--r-- 1 seb seb   32560 15 nov 22:02 big_buck_bunny_360_07806_30.jpg
    -rw-r--r-- 1 seb seb   37201 15 nov 22:02 big_buck_bunny_360_07806_40.jpg
    -rw-r--r-- 1 seb seb   41750 15 nov 22:02 big_buck_bunny_360_07806_50.jpg
    -rw-r--r-- 1 seb seb   46552 15 nov 22:02 big_buck_bunny_360_07806_60.jpg
    -rw-r--r-- 1 seb seb   53520 15 nov 22:02 big_buck_bunny_360_07806_70.jpg
    -rw-r--r-- 1 seb seb   64932 15 nov 22:02 big_buck_bunny_360_07806_80.jpg
    -rw-r--r-- 1 seb seb   90286 15 nov 22:02 big_buck_bunny_360_07806_90.jpg
    -rw-r--r-- 1 seb seb  357338 15 nov 22:02 big_buck_bunny_360_07806.png
    -rw-r--r-- 1 seb seb   26883 15 nov 22:02 blur.png
    -rw-r--r-- 1 seb seb   58602 15 nov 22:02 contrast.png
    -rw-r--r-- 1 seb seb   53993 15 nov 22:02 einstein.png
    -rw-r--r-- 1 seb seb   43198 15 nov 22:02 impulse.png
    -rw-r--r-- 1 seb seb   10890 15 nov 22:02 jpg.png
    -rw-r--r-- 1 seb seb   41778 15 nov 22:02 meanshift.png
    seb@debian:~/ssim$

  11. #11
    Expert confirmé
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Février 2005
    Messages
    5 449
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 53
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Conseil

    Informations forums :
    Inscription : Février 2005
    Messages : 5 449
    Par défaut
    Il est peut-être "cassé", ce projet Git ?

    Un truc étrange :
    ./CMakeFiles/3.24.3/CompilerIdCXX:
    total 48
    -rwxr-xr-x 1 root root 16152 15 nov 22:03 a.out
    Jettez un coup d’œil aux fichiers Makefile généré par CMake.

  12. #12
    Expert éminent

    Femme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    5 202
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Essonne (Île de France)

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

    Informations forums :
    Inscription : Juin 2007
    Messages : 5 202
    Par défaut
    edit: il est bien cassé: on a un CMakeLists.txt à coté d'un CMakeCache.txt

    Règle numéro 1 de CMake: on ne build pas dans le dossier racine du projet (celui qui contient le CMakeLists principal).
    On parle de "out-of-source build tree"

    Tu peux nettoyer complement ton projet, et recommencer.

    La bonne solution, c'est:
    1. créer un dossier de build,
    2. lancer cmake pour qu'il configure un build dans ce dossier,
    3. lancer le build,


    Par exemple:
    Code bash : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    #récupérer les sources, ici avec git, mais ca peut être décompresser une archive ou avec mercurial (hg)…
    git clone <url> dossier
    cmake -S dossier -B dossier/build_release -DOPTION1=1 -DCMAKE_BUILD_TYPE=Release
    cmake --build dossier/build_release

    Note qu'avec un cmake plus ancient, tu dois pouvoir faire:
    Code bash : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    git clone <url> dossier
    mkdir -p dossier/build_release
    cd dossier/build_release
    cmake .. -DOPTION1=1 -DCMAKE_BUILD_TYPE=Release
    cmake --build .

    Et encore, rien ne t'oblige à mettre le dossier de build dans le dossier du projet.
    cf la documentation: cmake.org/cmake/help/latest/manual

Discussions similaires

  1. Tutoriel Kafka : De son installation à l'exécution d'un premier programme en Java
    Par DimBo2 dans le forum Plateformes réactives et architectures modulaires
    Réponses: 0
    Dernier message: 11/05/2021, 13h35
  2. installer et exécuter un programme via une page web
    Par xufux dans le forum Général Conception Web
    Réponses: 7
    Dernier message: 04/09/2006, 12h42
  3. Problème lors de l'exécution de mes programmes
    Par darkmalak01 dans le forum Langage
    Réponses: 7
    Dernier message: 27/09/2005, 18h35
  4. Réponses: 1
    Dernier message: 05/09/2005, 11h37
  5. Exécution d'un programme hors session
    Par skywaukers dans le forum Langage
    Réponses: 3
    Dernier message: 07/07/2005, 10h31

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