2016-10-21 1 views
0

J'ai essayé d'installer et de réinstaller libpng de http://libpng.org/pub/png/libpng.html. J'ai besoin de cela à utiliser pour la vérification du visage en utilisant bob (hébergé par python). J'avais suivi la première étape en installant libzip et ziplib de this answer. Cependant, je continue d'avoir des erreurs.Erreur lors de l'installation de libpng pour Windows x64

Ici je liste le résultat de cmake:

-- Building for: Visual Studio 14 2015 
-- Found ZLIB: c:/Python27/work/libpng-1.6.26/lib/zlib.lib (found version "1.2.8") 
-- Performing Test HAVE_LD_VERSION_SCRIPT 
-- Performing Test HAVE_LD_VERSION_SCRIPT - Failed 
-- Performing Test HAVE_SOLARIS_LD_VERSION_SCRIPT 
-- Performing Test HAVE_SOLARIS_LD_VERSION_SCRIPT - Failed 
-- Configuring done 
-- Generating done 
-- Build files have been written to: C:/Python27/work/libpng-1.6.26/libpng-1.6.26 

Ensuite, cela est que je reçois quand la construction libpng.sln:

Severity Code Description Project File Line Suppression State 
Warning MSB8028 The intermediate directory (x64\Debug\) contains files shared from another project (png.vcxproj, pngfix.vcxproj, pngimage.vcxproj, pngstest.vcxproj, pngtest.vcxproj, pngunknown.vcxproj, pngvalid.vcxproj, png_static.vcxproj). This can lead to incorrect clean and rebuild behavior. png-fix-itxt C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 392 
Warning MSB8028 The intermediate directory (x64\Debug\) contains files shared from another project (png-fix-itxt.vcxproj, pngfix.vcxproj, pngimage.vcxproj, pngstest.vcxproj, pngtest.vcxproj, pngunknown.vcxproj, pngvalid.vcxproj, png_static.vcxproj). This can lead to incorrect clean and rebuild behavior. png C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 392 
Error LNK1112 module machine type 'x64' conflicts with target machine type 'X86' png C:\Python27\work\libpng-1.6.26\libpng-1.6.26\x64\Debug\png.obj 1 
Error LNK1112 module machine type 'x64' conflicts with target machine type 'X86' png-fix-itxt C:\Python27\work\libpng-1.6.26\libpng-1.6.26\x64\Debug\png-fix-itxt.obj 1 
Warning MSB8028 The intermediate directory (x64\Debug\) contains files shared from another project (png-fix-itxt.vcxproj, png.vcxproj, pngfix.vcxproj, pngstest.vcxproj, pngtest.vcxproj, pngunknown.vcxproj, pngvalid.vcxproj, png_static.vcxproj). This can lead to incorrect clean and rebuild behavior. pngimage C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 392 
Warning MSB8028 The intermediate directory (x64\Debug\) contains files shared from another project (png-fix-itxt.vcxproj, png.vcxproj, pngimage.vcxproj, pngstest.vcxproj, pngtest.vcxproj, pngunknown.vcxproj, pngvalid.vcxproj, png_static.vcxproj). This can lead to incorrect clean and rebuild behavior. pngfix C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 392 
Warning MSB8028 The intermediate directory (x64\Debug\) contains files shared from another project (png-fix-itxt.vcxproj, png.vcxproj, pngfix.vcxproj, pngimage.vcxproj, pngstest.vcxproj, pngtest.vcxproj, pngvalid.vcxproj, png_static.vcxproj). This can lead to incorrect clean and rebuild behavior. pngunknown C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 392 
Error LNK1104 cannot open file 'Debug\libpng16d.lib' pngimage C:\Python27\work\libpng-1.6.26\libpng-1.6.26\LINK 1 
Error LNK1104 cannot open file 'Debug\libpng16d.lib' pngunknown C:\Python27\work\libpng-1.6.26\libpng-1.6.26\LINK 1 
Error LNK1104 cannot open file 'Debug\libpng16d.lib' pngfix C:\Python27\work\libpng-1.6.26\libpng-1.6.26\LINK 1 
Warning MSB8028 The intermediate directory (x64\Debug\) contains files shared from another project (png-fix-itxt.vcxproj, png.vcxproj, pngfix.vcxproj, pngimage.vcxproj, pngtest.vcxproj, pngunknown.vcxproj, pngvalid.vcxproj, png_static.vcxproj). This can lead to incorrect clean and rebuild behavior. pngstest C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 392 
Warning MSB8028 The intermediate directory (x64\Debug\) contains files shared from another project (png-fix-itxt.vcxproj, png.vcxproj, pngfix.vcxproj, pngimage.vcxproj, pngstest.vcxproj, pngtest.vcxproj, pngunknown.vcxproj, png_static.vcxproj). This can lead to incorrect clean and rebuild behavior. pngvalid C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 392 
Warning MSB8028 The intermediate directory (x64\Debug\) contains files shared from another project (png-fix-itxt.vcxproj, png.vcxproj, pngfix.vcxproj, pngimage.vcxproj, pngstest.vcxproj, pngunknown.vcxproj, pngvalid.vcxproj, png_static.vcxproj). This can lead to incorrect clean and rebuild behavior. pngtest C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 392 
Error LNK1104 cannot open file 'Debug\libpng16d.lib' pngvalid C:\Python27\work\libpng-1.6.26\libpng-1.6.26\LINK 1 
Error LNK1104 cannot open file 'Debug\libpng16d.lib' pngtest C:\Python27\work\libpng-1.6.26\libpng-1.6.26\LINK 1 
Error LNK1104 cannot open file 'Debug\libpng16d.lib' pngstest C:\Python27\work\libpng-1.6.26\libpng-1.6.26\LINK 1 

Pour autant que je sache, celui que je devrais traiter est une version x64. Et aussi il semble que cmake ne fonctionne pas correctement. Mais je n'ai aucune idée sur la façon de le réparer.

Répondre

0

J'ai installé libpng en suivant les étapes de cette réponse juste maintenant. Je ne pense pas que vous l'avez installé correctement parce que j'ai vu une fois ces résultats quand j'ai mal installé.

- Exécution d'essai HAVE_LD_VERSION_SCRIPT

- Exécution de test HAVE_LD_VERSION_SCRIPT - Échec

- Exécution d'essai HAVE_SOLARIS_LD_VERSION_SCRIPT

- Exécution de test HAVE_SOLARIS_LD_VERSION_SCRIPT - Failed

Ensuite, J'ai trouvé que j'avais fait des erreurs en choisissant CMAKE_INSTALL_PREF IX et CMAKE_PREFIX_PATH de libzip. Rappelez simplement que zlib et libzip doivent être installés dans le même chemin. Et libpng devrait être installé dans un chemin identique au précédent.

0

Etes-vous sûr d'avoir sélectionné le bon générateur avec CMake? Autant que je sache, vous devez choisir "Visual Studio 14 2015 Win64" comme nom de cible si vous voulez construire des binaires 64 bits.