cmake issue with keepassx, gcrypt includes

I’ve been trying to build keepassx 2.0 with opensuse 12.2, but cmake can’t seem to find libraries like gcrypt.

cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=DEBUG -DWITH_GUI_TESTS=ON -DQT_QMAKE_EXECUTABLE=$HOME/QtSDK/Desktop/Qt/4.8.1/gcc/bin/qmake

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
  Could NOT find Gcrypt (missing: GCRYPT_LIBRARIES GCRYPT_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindGcrypt.cmake:21 (find_package_handle_standard_args)
  CMakeLists.txt:164 (find_package)




-- Configuring incomplete, errors occurred!

gcrypt is installed:

> rpm -qa | grep gcryptlibgcrypt11-1.5.0-9.2.2.i586

I’ve tried passing in with -D the various *LIBRARIES and *_INCLUDE_DIR for each thing as they come up, like zlib, but it basically looks like /etc/ld.so.conf somehow isn’t working, but when I run

sudo ldconfig -v

by hand I do see output: libgcrypt.so.11 -> libgcrypt.so.11.7.0.

Any ideas about what I’m missing? The above cmake command is what I’d used in Fedora 17 to make it compile (KeePassX • View topic - How to build 2.0 alpha 2 on fedora 17?), but I’m running into a wall right now with opensuse.

Hi
A user has built it on OBS…
https://build.opensuse.org/package/view_file?file=keepassx.spec&package=keepassx&project=home%3Aaevseev&rev=4816da3926f31a83680f650bb10f0ff1


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.6-2.10-desktop
up 3 days 6:24, 4 users, load average: 0.46, 0.19, 0.10
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Excellent, that’s a good hint. I’m downloading the -devel packages in the required listing from his build script, and will give that a try. I haven’t run into OBS before, but the last time I used SuSE might have been a box set where I had to decide between CD and DVD install. Is OBS just a place where individuals work out build scripts for packages, or is an area that people add to YaST for additional repositories?

Hi
The Open Build Service is where it all happens for the distribution,
development and individuals :wink:

Yes, you can add (not recommended for all) development repositories from
OBS, home repositories are considered work in progress areas for most
and ymmv…

You can search here;
http://software.opensuse.org/search?

The build service project is here;
https://build.opensuse.org/


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.6-2.10-desktop
up 3 days 9:20, 4 users, load average: 0.16, 0.14, 0.10
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU