CMake issue


pmprog

DNF (Did Not Finish)
Joined
Apr 25, 2011
Messages
4,150
I was wondering if somebody could help me, I'm trying to build the latest version KeePassX and am getting the following cmake errors, but I'll be honest, I don't really get what it's telling me

panda:/media/APPS/development/keepassx/build$ cmake ..
CMake Error at /mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:172 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:16 (project)


-- The C compiler identification is GNU 4.7.2
CMake Error at /mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:171 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:16 (project)


-- The CXX compiler identification is GNU 4.7.2
CMake Error at /mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:167 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:16 (project)


-- Check for working C compiler: /mnt/utmp/codeblocks/usr/bin/cc
-- Check for working C compiler: /mnt/utmp/codeblocks/usr/bin/cc -- works
-- Detecting C compiler ABI info
CMake Error at /mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:31 (try_compile):
Cannot copy output executable

'/media/APPS/development/keepassx/build/CMakeFiles/CMakeTmp/cmTryCompileExec1199804097'

to destination specified by COPY_FILE:

'/media/APPS/development/keepassx/build/CMakeFiles/2.8.10.2/CMakeDetermineCompilerABI_C.bin'

Call Stack (most recent call first):
/mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:75 (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:16 (project)


-- Detecting C compiler ABI info - done
CMake Error at /mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:78 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:16 (project)


-- Check for working CXX compiler: /mnt/utmp/codeblocks/usr/bin/c++
-- Check for working CXX compiler: /mnt/utmp/codeblocks/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
CMake Error at /mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:31 (try_compile):
Cannot copy output executable

'/media/APPS/development/keepassx/build/CMakeFiles/CMakeTmp/cmTryCompileExec2665036969'

to destination specified by COPY_FILE:

'/media/APPS/development/keepassx/build/CMakeFiles/2.8.10.2/CMakeDetermineCompilerABI_CXX.bin'

Call Stack (most recent call first):
/mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:68 (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:16 (project)


-- Detecting CXX compiler ABI info - done
CMake Error at /mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:71 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:16 (project)


-- Performing Test WERROR_C_AVAILABLE
-- Performing Test WERROR_C_AVAILABLE - Success
-- Performing Test WERROR_CXX_AVAILABLE
-- Performing Test WERROR_CXX_AVAILABLE - Success
CMake Error at /mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CheckSymbolExists.cmake:70 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
/mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CheckCXXSymbolExists.cmake:41 (_CHECK_SYMBOL_EXISTS)
/mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/FindQt4.cmake:743 (CHECK_CXX_SYMBOL_EXISTS)
CMakeLists.txt:157 (find_package)


-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
CMake Error at /mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CheckSymbolExists.cmake:70 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
/mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CheckCXXSymbolExists.cmake:41 (_CHECK_SYMBOL_EXISTS)
/mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/FindQt4.cmake:744 (CHECK_CXX_SYMBOL_EXISTS)
CMakeLists.txt:157 (find_package)


-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
CMake Error at /mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CheckSymbolExists.cmake:70 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
/mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CheckCXXSymbolExists.cmake:41 (_CHECK_SYMBOL_EXISTS)
/mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/FindQt4.cmake:745 (CHECK_CXX_SYMBOL_EXISTS)
CMakeLists.txt:157 (find_package)


-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
CMake Error at /mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CheckSymbolExists.cmake:70 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
/mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CheckCXXSymbolExists.cmake:41 (_CHECK_SYMBOL_EXISTS)
/mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/FindQt4.cmake:746 (CHECK_CXX_SYMBOL_EXISTS)
CMakeLists.txt:157 (find_package)


-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /mnt/utmp/codeblocks/usr/bin/qmake (found suitable version "4.8.4", minimum required is "4.6.0")
-- Found Gcrypt: /mnt/utmp/codeblocks/usr/lib/libgcrypt.so
-- Found ZLIB: /mnt/utmp/codeblocks/usr/bin/lib/libz.so (found version "1.2.3")
-- Performing Test ZLIB_SUPPORTS_GZIP
-- Performing Test ZLIB_SUPPORTS_GZIP - Success
-- Performing Test HAVE_PR_SET_DUMPABLE
-- Performing Test HAVE_PR_SET_DUMPABLE - Success
-- Performing Test HAVE_RLIMIT_CORE
-- Performing Test HAVE_RLIMIT_CORE - Success
CMake Error at src/CMakeLists.txt:18 (configure_file):
configure_file Problem configuring file


-- Looking for XOpenDisplay in /mnt/utmp/codeblocks/usr/lib/libX11.so;/mnt/utmp/codeblocks/usr/lib/libXext.so
-- Looking for XOpenDisplay in /mnt/utmp/codeblocks/usr/lib/libX11.so;/mnt/utmp/codeblocks/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /mnt/utmp/codeblocks/usr/lib/libX11.so
CMake Error at tests/CMakeLists.txt:22 (configure_file):
configure_file Problem configuring file


-- Configuring incomplete, errors occurred!
panda:/media/APPS/development/keepassx/build$ make
make: *** No targets specified and no makefile found. Stop.
panda:/media/APPS/development/keepassx/build$

Any ideas?

Cheers
 
I'm not an expert but i think it's writing permissions...

CMake Error at /mnt/utmp/codeblocks/usr/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:31 (try_compile):
Cannot copy output executable

'/media/APPS/development/keepassx/build/CMakeFiles/CMakeTmp/cmTryCompileExec1199804097'

to destination specified by COPY_FILE:

'/media/APPS/development/keepassx/build/CMakeFiles/2.8.10.2/CMakeDetermineCompilerABI_C.bin'
maybe you are trying to compile on a Fat formatted SD card. Use an ext2 or ext4 to build.
 
I hope it's not that, I don't particularly want to reformat my SD cards, because I won't be able to use them in my desktop (well, has anyone who runs Windows tried this? does it work okay?)

I'll see if I can root out a spare SD card or something when I get home to try, cheers
 
I think this particular software cannot be configure in build forder, but directly in the same folder a CMakeList.txt.

Try to configure with a "ccmake ." to ave the interactive one (and use "c" to configure, and "g" to generate Makefile).

Hope it helps.
 
I think this particular software cannot be configure in build forder, but directly in the same folder a CMakeList.txt.
Hmmm, that's what it said here, but I'll try your way too. Hopefully get this built so I can update my PND, then it'll look like I've done something useful this year :eek:
 
I think this particular software cannot be configure in build forder, but directly in the same folder a CMakeList.txt.
Hmmm, that's what it said here, but I'll try your way too. Hopefully get this built so I can update my PND, then it'll look like I've done something useful this year :eek:
I already had a similar case. cmake configure appily, but then, no Makefile in the build folder.

The year is far from beeing over, plenty of time left to do plenty PND and other things ;)
 
The year may be far from over, but my TD game has ground to a halt. Hopefully things should ease up after May though. We'll see :)
 
I hope it's not that, I don't particularly want to reformat my SD cards, because I won't be able to use them in my desktop (well, has anyone who runs Windows tried this? does it work okay?)

I'll see if I can root out a spare SD card or something when I get home to try, cheers
I don't know for your link but i use this one http://www.ext2fsd.com/ to share read/write files from Win (XP in my case) and ext2 formatted SD cards and work good without problems.

I have installed the version 0.50 but now i think will upgrade to the new version 0.51.
 
Last edited by a moderator:
okay, ccmake works, however, the copy of libgcrypt is out of date, and I can't build that because it can't find libgpg. I've managed to build libgpg, and I copied to to the codeblocks appdata/local folder, however, the configure on libgcrypt still can't seem to find it :(
 
Try put you new builded version of libgcrypt in a folder inside your SD card and then relaunch ccmake (ccmake .), go to the line where libgcrypt is specified (press t to expand all the ccmake options) and edit the path to this missing lib with your path to the SD card
 
It's okay, I'm making progress now :) Fingers crossed.

Thanks anyway
 
Last edited by a moderator:
I've built libgcrypt, though it gave me some weird message about externals to gpg_set_errno, but it still gave me a libgcrypt.so (which contains the gpg_set_errno string)

So I copied that libgcrypt stuff to the appdata too, and started to build KeePassX, which works great until

Linking CXX executable keepassx

libkeepassx_core.a(SymmetricCipherGcrypt.cpp.o): In function `SymmetricCipherGcrypt::setKey(QByteArray const&)':

SymmetricCipherGcrypt.cpp:(.text+0x370): undefined reference to `gcry_cipher_setkey'

libkeepassx_core.a(SymmetricCipherGcrypt.cpp.o): In function `SymmetricCipherGcrypt::setIv(QByteArray const&)':

SymmetricCipherGcrypt.cpp:(.text+0x410): undefined reference to `gcry_cipher_setiv'

libkeepassx_core.a(SymmetricCipherGcrypt.cpp.o): In function `SymmetricCipherGcrypt::reset()':

SymmetricCipherGcrypt.cpp:(.text+0x8b8): undefined reference to `gcry_cipher_setiv'

and a couple of others; Again, I don't this, those are valid externs from my libgcrypt.so file

Any ideas?
 
Last edited by a moderator:
Just wanted to say I've managed to get this to build now. Hopefully try and release an updated PND this weekend.

Thanks for everyone's help
 
 (well, has anyone who runs Windows tried this? does it work okay?)
Last time I used Ext2IFS it was buggy as hell and it still doesn't seem to support ext4 at all. Ext2fsd works much better, provides more options and flexibility, and has (still incomplete but already working) ext4 support.
 
Back
Top