MAC OS(Marvericks) でKeePass2のファイルを読む(KeepassX2インストール)

準備が長かったけれど、下記の作業の続き。
MAC OS(Marvericks) でKeePass2のファイルを読む(準備その1)

MAC OS(Marvericks) でKeePass2のファイルを読む(準備その2)

最初は「KeePassX 2.0 Alpha 4 released」を入れようとしたけれど、cmakeの部分や「AutoType」のプログラムのLinkができなくて調べたら最新リポジトリのほうで修正されていたからgithubからダウンロード。

$ git clone 'https://github.com/keepassx/keepassx.git'
Macmini:Documents rebine$ git clone 'https://github.com/keepassx/keepassx.git'
Cloning into 'keepassx'...
remote: Counting objects: 6841, done.
remote: Compressing objects: 100% (3255/3255), done.
remote: Total 6841 (delta 3909), reused 6434 (delta 3545)
Receiving objects: 100% (6841/6841), 3.40 MiB | 573.00 KiB/s, done.
Resolving deltas: 100% (3909/3909), done.
Checking connectivity... done
Macmini:Documents rebine$ cd keepassx/
Macmini:keepassx rebine$ mkdir build
Macmini:keepassx rebine$ cd build/
$ cmake .. -DCMAKE_OSX_ARCHITECTURES="x86_64" -DZLIB_ROOT=/usr/local/opt/zlib/lib -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
Macmini:build rebine$ cmake .. -DCMAKE_OSX_ARCHITECTURES="x86_64" -DZLIB_ROOT=/usr/local/opt/zlib/lib -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
-- The C compiler identification is Clang 5.0.0
-- The CXX compiler identification is Clang 5.0.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test WERROR_C_AVAILABLE
-- Performing Test WERROR_C_AVAILABLE - Success
-- Performing Test WERROR_CXX_AVAILABLE
-- Performing Test WERROR_CXX_AVAILABLE - Success
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /usr/local/bin/qmake (found suitable version "4.8.5", minimum required is "4.6.0") 
-- Found Gcrypt: /usr/local/lib/libgcrypt.dylib  
-- Found ZLIB: /usr/local/opt/zlib/lib/libz.dylib (found version "1.2.5") 
-- Performing Test ZLIB_SUPPORTS_GZIP
-- Performing Test ZLIB_SUPPORTS_GZIP - Success
-- Performing Test HAVE_PR_SET_DUMPABLE
-- Performing Test HAVE_PR_SET_DUMPABLE - Failed
-- Performing Test HAVE_RLIMIT_CORE
-- Performing Test HAVE_RLIMIT_CORE - Success
-- Performing Test HAVE_PT_DENY_ATTACH
-- Performing Test HAVE_PT_DENY_ATTACH - Success
-- 
-- The following REQUIRED packages have been found:
 
 * Qt4 (required version >= 4.6.0)
 * Gcrypt
 * ZLIB
 
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/rebine/Documents/keepassx/build
ebineryuuji-no-Mac-mini:build rebine$ make
[  0%] Generating streams/moc_SymmetricCipherStream.cxx
[  1%] Generating ui_AboutDialog.h
[  1%] Generating ui_ChangeMasterKeyWidget.h
[  1%] Generating ui_DatabaseOpenWidget.h
[  2%] Generating ui_DatabaseSettingsWidget.h
[  2%] Generating ui_EditWidget.h
[  3%] Generating ui_EditWidgetIcons.h
[  3%] Generating ui_EditWidgetProperties.h
[  3%] Generating ui_MainWindow.h
[  4%] Generating ui_PasswordGeneratorWidget.h
[  4%] Generating ui_SearchWidget.h
[  4%] Generating ui_SettingsWidgetGeneral.h
[  5%] Generating ui_SettingsWidgetSecurity.h
[  5%] Generating ui_WelcomeWidget.h
[  6%] Generating ui_EditEntryWidgetAdvanced.h
[  6%] Generating ui_EditEntryWidgetAutoType.h
[  6%] Generating ui_EditEntryWidgetHistory.h
[  7%] Generating ui_EditEntryWidgetMain.h
[  7%] Generating ui_EditGroupWidgetMain.h
[  7%] Generating autotype/moc_AutoType.cxx
[  8%] Generating autotype/moc_AutoTypeSelectDialog.cxx
[  8%] Generating autotype/moc_AutoTypeSelectView.cxx
[  8%] Generating autotype/moc_ShortcutWidget.cxx
[  9%] Generating autotype/moc_WindowSelectComboBox.cxx
[  9%] Generating core/moc_AutoTypeAssociations.cxx
[ 10%] Generating core/moc_Config.cxx
[ 10%] Generating core/moc_Database.cxx
[ 10%] Generating core/moc_Entry.cxx
[ 11%] Generating core/moc_EntryAttachments.cxx
[ 11%] Generating core/moc_EntryAttributes.cxx
[ 11%] Generating core/moc_Group.cxx
[ 12%] Generating core/moc_Metadata.cxx
[ 12%] Generating core/moc_qsavefile.cxx
[ 13%] Generating gui/moc_AboutDialog.cxx
[ 13%] Generating gui/moc_Application.cxx
[ 13%] Generating gui/moc_ChangeMasterKeyWidget.cxx
[ 14%] Generating gui/moc_Clipboard.cxx
[ 14%] Generating gui/moc_DatabaseOpenWidget.cxx
[ 14%] Generating gui/moc_DatabaseSettingsWidget.cxx
[ 15%] Generating gui/moc_DatabaseTabWidget.cxx
[ 15%] Generating gui/moc_DatabaseWidget.cxx
[ 15%] Generating gui/moc_DialogyWidget.cxx
[ 16%] Generating gui/moc_DragTabBar.cxx
[ 16%] Generating gui/moc_EditWidget.cxx
[ 17%] Generating gui/moc_EditWidgetIcons.cxx
[ 17%] Generating gui/moc_EditWidgetProperties.cxx
[ 17%] Generating gui/moc_IconModels.cxx
[ 18%] Generating gui/moc_KeePass1OpenWidget.cxx
[ 18%] Generating gui/moc_LineEdit.cxx
[ 18%] Generating gui/moc_MainWindow.cxx
[ 19%] Generating gui/moc_PasswordGeneratorWidget.cxx
[ 19%] Generating gui/moc_SettingsWidget.cxx
[ 20%] Generating gui/moc_SortFilterHideProxyModel.cxx
[ 20%] Generating gui/moc_UnlockDatabaseWidget.cxx
[ 20%] Generating gui/moc_WelcomeWidget.cxx
[ 21%] Generating gui/entry/moc_AutoTypeAssociationsModel.cxx
[ 21%] Generating gui/entry/moc_EditEntryWidget.cxx
[ 21%] Generating gui/entry/moc_EntryAttachmentsModel.cxx
[ 22%] Generating gui/entry/moc_EntryAttributesModel.cxx
[ 22%] Generating gui/entry/moc_EntryHistoryModel.cxx
[ 22%] Generating gui/entry/moc_EntryModel.cxx
[ 23%] Generating gui/entry/moc_EntryView.cxx
[ 23%] Generating gui/group/moc_EditGroupWidget.cxx
[ 24%] Generating gui/group/moc_GroupModel.cxx
[ 24%] Generating gui/group/moc_GroupView.cxx
[ 24%] Generating keys/moc_CompositeKey_p.cxx
[ 25%] Generating streams/moc_HashedBlockStream.cxx
[ 25%] Generating streams/moc_LayeredStream.cxx
[ 25%] Generating streams/moc_qtiocompressor.cxx
[ 26%] Generating streams/moc_StoreDataStream.cxx
Scanning dependencies of target keepassx_core
[ 27%] Building CXX object src/CMakeFiles/keepassx_core.dir/autotype/AutoType.cpp.o
In file included from /Users/rebine/Documents/keepassx/src/autotype/AutoType.cpp:18:
In file included from /Users/rebine/Documents/keepassx/src/autotype/AutoType.h:21:
In file included from /usr/local/Cellar/qt/4.8.5/lib/QtCore.framework/Headers/QObject:1:
In file included from /usr/local/Cellar/qt/4.8.5/lib/QtCore.framework/Headers/qobject.h:47:
In file included from /usr/local/Cellar/qt/4.8.5/lib/QtCore.framework/Headers/qobjectdefs.h:45:
In file included from /usr/local/Cellar/qt/4.8.5/lib/QtCore.framework/Headers/qnamespace.h:45:
/usr/local/Cellar/qt/4.8.5/lib/QtCore.framework/Headers/qglobal.h:331:6: warning: "This version of Mac OS X is unsupported"
      [-W#warnings]
#    warning "This version of Mac OS X is unsupported"

これ以降、延々とこのMacOSXのバージョンはサポートしてないと出るけれど、makeは完了する。

$ make install
Macmini:build rebine$ make install
[ 75%] Built target keepassx_core
[ 75%] Built target KeePassX
[ 77%] Built target testautotype
[ 78%] Built target keepassx-autotype-test
[ 78%] Built target kdbx-extract
[ 79%] Built target modeltest
[ 80%] Built target testargumentparser
[ 81%] Built target testcryptohash
[ 82%] Built target testdeletedobjects
[ 83%] Built target testentry
[ 84%] Built target testentrymodel
[ 85%] Built target testgroup
[ 86%] Built target testgroupmodel
[ 87%] Built target testhashedblockstream
[ 88%] Built target testkeepass1reader
[ 90%] Built target testkeepass2randomstream
[ 91%] Built target testkeepass2reader
[ 92%] Built target testkeepass2writer
[ 93%] Built target testkeepass2xmlreader
[ 94%] Built target testkeys
[ 95%] Built target testmodified
[ 96%] Built target testqsavefile
[ 97%] Built target testrandom
[ 98%] Built target testsymmetriccipher
[100%] Built target testwildcardmatcher
Install the project...
-- Install configuration: ""
-- Installing: /Applications/./KeePassX.app
-- Installing: /Applications/./KeePassX.app/Contents
-- Installing: /Applications/./KeePassX.app/Contents/Info.plist
-- Installing: /Applications/./KeePassX.app/Contents/MacOS
-- Installing: /Applications/./KeePassX.app/Contents/MacOS/KeePassX
-- Installing: /Applications/KeePassX.app/Contents/PlugIns/imageformats/libqjpeg.dylib
-- Installing: /Applications/KeePassX.app/Contents/PlugIns/imageformats/libqgif.dylib
-- Installing: /Applications/KeePassX.app/Contents/PlugIns/imageformats/libqico.dylib
-- Installing: /Applications/KeePassX.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib
-- fixup_qt4_executable
--   executable='/Applications/KeePassX.app'
--   qtplugins=''
--   libs='/Applications/KeePassX.app/Contents/PlugIns/imageformats/libqjpeg.dylib;/Applications/KeePassX.app/Contents/PlugIns/imageformats/libqgif.dylib;/Applications/KeePassX.app/Contents/PlugIns/imageformats/libqico.dylib;/Applications/KeePassX.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib'
--   dirs='/usr/local/Cellar/qt/4.8.5/lib;/usr/local/Cellar/qt/4.8.5/bin'
--   plugins_dir=''
--   request_qt_conf=''
-- Writing /Applications/KeePassX.app/Contents/Resources/qt.conf
-- fixup_bundle
--   app='/Applications/KeePassX.app'
--   libs='/Applications/KeePassX.app/Contents/PlugIns/imageformats/libqjpeg.dylib;/Applications/KeePassX.app/Contents/PlugIns/imageformats/libqgif.dylib;/Applications/KeePassX.app/Contents/PlugIns/imageformats/libqico.dylib;/Applications/KeePassX.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib'
--   dirs='/usr/local/Cellar/qt/4.8.5/lib;/usr/local/Cellar/qt/4.8.5/bin'
-- fixup_bundle: preparing...
-- fixup_bundle: copying...
-- 1/22: *NOT* copying '/Applications/KeePassX.app/Contents/PlugIns/imageformats/libqjpeg.dylib'
-- 2/22: copying '/usr/local/Cellar/qt/4.8.5/lib/QtCore.framework/Versions/4/QtCore'
-- 3/22: copying '/usr/local/Cellar/qt/4.8.5/lib/QtGui.framework/Versions/4/QtGui'
-- 4/22: copying '/usr/local/lib/libjpeg.8.dylib'
-- 5/22: *NOT* copying '/Applications/KeePassX.app/Contents/PlugIns/imageformats/libqgif.dylib'
-- 6/22: *NOT* copying '/Applications/KeePassX.app/Contents/PlugIns/imageformats/libqico.dylib'
-- 7/22: *NOT* copying '/Applications/KeePassX.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib'
-- 8/22: *NOT* copying '/Applications/KeePassX.app/Contents/MacOS/KeePassX'
-- 9/22: copying '/usr/local/lib/libgcrypt.11.dylib'
-- 10/22: copying '/usr/local/lib/libgpg-error.0.dylib'
-- 11/22: copying '/usr/local/opt/zlib/lib/libz.1.2.8.dylib'
-- fixup_bundle: fixing...
-- 12/22: fixing up '/Applications/KeePassX.app/Contents/PlugIns/imageformats/libqjpeg.dylib'
-- 13/22: fixing up '/Applications/KeePassX.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore'
-- 14/22: fixing up '/Applications/KeePassX.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui'
-- 15/22: fixing up '/Applications/KeePassX.app/Contents/MacOS/libjpeg.8.dylib'
-- 16/22: fixing up '/Applications/KeePassX.app/Contents/PlugIns/imageformats/libqgif.dylib'
-- 17/22: fixing up '/Applications/KeePassX.app/Contents/PlugIns/imageformats/libqico.dylib'
-- 18/22: fixing up '/Applications/KeePassX.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib'
-- 19/22: fixing up '/Applications/KeePassX.app/Contents/MacOS/KeePassX'
-- 20/22: fixing up '/Applications/KeePassX.app/Contents/MacOS/libgcrypt.11.dylib'
-- 21/22: fixing up '/Applications/KeePassX.app/Contents/MacOS/libgpg-error.0.dylib'
-- 22/22: fixing up '/Applications/KeePassX.app/Contents/MacOS/libz.1.2.8.dylib'
-- fixup_bundle: cleaning up...
-- fixup_bundle: verifying...
-- ===========================================================================
-- Analyzing app='/Applications/KeePassX.app'
-- bundle='/Applications/KeePassX.app'
-- executable='/Applications/KeePassX.app/Contents/MacOS/KeePassX'
-- valid='1'
-- executable file 1: /Applications/KeePassX.app/Contents/MacOS/KeePassX
-- verified='1'
-- info='Verified 1 executable files in '/Applications/KeePassX.app''
-- 
-- verified='1'
-- info=''
-- 
-- fixup_bundle: done
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C00_Password.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C01_Package_Network.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C02_MessageBox_Warning.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C03_Server.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C04_Klipper.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C05_Edu_Languages.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C06_KCMDF.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C07_Kate.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C08_Socket.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C09_Identity.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C10_Kontact.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C11_Camera.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C12_IRKickFlash.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C13_KGPG_Key3.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C14_Laptop_Power.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C15_Scanner.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C16_Mozilla_Firebird.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C17_CDROM_Unmount.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C18_Display.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C19_Mail_Generic.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C20_Misc.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C21_KOrganizer.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C22_ASCII.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C23_Icons.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C24_Connect_Established.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C25_Folder_Mail.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C26_FileSave.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C27_NFS_Unmount.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C28_QuickTime.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C29_KGPG_Term.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C30_Konsole.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C31_FilePrint.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C32_FSView.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C33_Run.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C34_Configure.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C35_KRFB.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C36_Ark.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C37_KPercentage.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C38_Samba_Unmount.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C39_History.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C40_Mail_Find.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C41_VectorGfx.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C42_KCMMemory.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C43_EditTrash.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C44_KNotes.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C45_Cancel.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C46_Help.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C47_KPackage.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C48_Folder.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C49_Folder_Blue_Open.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C50_Folder_Tar.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C51_Decrypted.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C52_Encrypted.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C53_Apply.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C54_Signature.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C55_Thumbnail.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C56_KAddressBook.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C57_View_Text.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C58_KGPG.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C59_Package_Development.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C60_KFM_Home.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C61_Services.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C62_Tux.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C63_Feather.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C64_Apple.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C65_W.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C66_Money.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C67_Certificate.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/database/C68_BlackBerry.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/keepassx.icns
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/128x128
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/128x128/apps
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/128x128/apps/keepassx.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/application-exit.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/auto-type.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/configure.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/database-change-key.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/document-close.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/document-edit.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/document-encrypt.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/document-new.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/document-open.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/document-save-as.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/document-save.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/edit-clear-locationbar-ltr.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/edit-clear-locationbar-rtl.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/entry-clone.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/entry-delete.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/entry-edit.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/entry-new.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/group-delete.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/group-edit.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/group-new.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/help-about.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/password-generate.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/actions/system-search.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/apps
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/16x16/apps/keepassx.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/22x22
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/22x22/actions
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/22x22/actions/dialog-close.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/22x22/actions/dialog-ok.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/22x22/actions/entry-delete.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/22x22/actions/entry-edit.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/22x22/actions/entry-new.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/22x22/actions/system-search.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/22x22/status
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/22x22/status/dialog-error.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/22x22/status/dialog-information.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/22x22/status/dialog-warning.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/24x24
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/24x24/apps
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/24x24/apps/keepassx.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/256x256
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/256x256/apps
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/256x256/apps/keepassx.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/32x32
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/32x32/apps
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/32x32/apps/keepassx.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/48x48
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/48x48/apps
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/48x48/apps/keepassx.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/64x64
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/64x64/apps
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/64x64/apps/keepassx.png
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/scalable
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/scalable/apps
-- Installing: /Applications/KeePassX.app/Contents/Resources/icons/application/scalable/apps/keepassx.svgz

失敗時の出力

Macmini:keepassx-2.0-alpha4 rebine$  cmake -DCMAKE_INSTALL_PREFIX=/usr/local  -DCMAKE_VERBOSE_MAKEFILE=ON  -DCMAKE_BUILD_TYPE=Release  -DWITH_GUI_TESTS=ON  -DCMAKE_OSX_ARCHITECTURES="i386;x86_64" -DEXTRA_INCLUDE=/usr/local/opt/zlib/include/zlib.h -DZLIB_ROOT=/usr/local/opt/zlib/lib
-- Performing Test WERROR_C_AVAILABLE
-- Performing Test WERROR_C_AVAILABLE - Success
-- Performing Test WERROR_CXX_AVAILABLE
-- Performing Test WERROR_CXX_AVAILABLE - Success
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/local/bin/qmake (found suitable version "4.8.5", minimum required is "4.6.0") 
-- Found Gcrypt: /usr/local/lib/libgcrypt.dylib  
-- Found ZLIB: /usr/local/opt/zlib/lib/libz.dylib (found version "1.2.8") 
-- Performing Test ZLIB_SUPPORTS_GZIP
-- Performing Test ZLIB_SUPPORTS_GZIP - Failed
CMake Error at CMakeLists.txt:179 (message):
  zlib 1.2.x or higher is required to use the gzip format
 
 
-- Configuring incomplete, errors occurred!
See also "/Users/rebine/Downloads/keepassx-2.0-alpha4/CMakeFiles/CMakeOutput.log".
See also "/Users/rebine/Downloads/keepassx-2.0-alpha4/CMakeFiles/CMakeError.log".

なんか、下記のサイトを見る限りは回避策がないのでコメントアウト
Build KeePassX In OSX Mountain Lion (without MacPorts!)

で、githubの最新を使わないと下記のエラー

Scanning dependencies of target keepassx_core
[ 27%] Building CXX object src/CMakeFiles/keepassx_core.dir/autotype/AutoType.cpp.o
clang (LLVM option parsing): Unknown command line argument '-stack-protector-buffer-size=4'.  Try: 'clang (LLVM option parsing) -help'
clang (LLVM option parsing): Did you mean '-path-profile-verifier-file=4'?
make[2]: *** [src/CMakeFiles/keepassx_core.dir/autotype/AutoType.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/keepassx_core.dir/all] Error 2
make: *** [all] Error 2

結局このエラーを回避できなかったので、2.0 Alpha release4.0はあきらめて、github最新にした。