Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile on Mageia 4 #62

Open
scriptum opened this issue Nov 28, 2014 · 3 comments
Open

Cannot compile on Mageia 4 #62

scriptum opened this issue Nov 28, 2014 · 3 comments

Comments

@scriptum
Copy link

$ mkdir build && cd build
$ cmake -DBUILD_SOCI=ON -DCMAKE_INSTALL_PREFIX=/ ..
CMake Error at CMakeLists.txt:156 (message):
  [ ERROR ]: Couldn't find PCRE library
....................................
$ rpm -qi lib64pcre-devel
Name        : lib64pcre-devel
Version     : 8.33
Release     : 2.mga4
Architecture: x86_64
Install Date: Чт 04 сен 2014 13:31:57
Group       : Development/C
Size        : 1207151
License     : BSD-Style
Signature   : RSA/SHA1, Сб 19 окт 2013 17:13:15, Key ID b742fa8b80420f66
Source RPM  : pcre-8.33-2.mga4.src.rpm
Build Date  : Сб 19 окт 2013 17:04:55
Build Host  : sucuk.mageia.org
Relocations : (not relocatable)
Packager    : umeabot <umeabot>
Vendor      : Mageia.Org
URL         : http://www.pcre.org/
Summary     : Headers and static lib for pcre development
Description :
Install this package if you want do compile applications using the pcre
library.
$ lsb_release -a
LSB Version:    *
Distributor ID: Mageia
Description:    Mageia 4
Release:    4
Codename:   thornicroft
$ uname -a
Linux localhost 3.14.24-desktop-1.mga4 #1 SMP Sat Nov 15 23:54:03 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
@IngwiePhoenix
Copy link
Contributor

Your headers most probably are not in the default directory. You want to pick up where the libraries and headers have gone to and supply them as CMake parameters. You can use the tool ccmake (an ncurses based interface) to edit your settings.

$ mkdir build && cd build
$ cmake ..
...Your error appears...
$ ccmake .

Generally, I would highly suggest you to build soci yourself from the 3rdparty folder. Then, if you do not have ODBC installed, you also want to

export CMAKE_CXX_FLAGS="-DDISABLE_OCDB"

See os.cpp and os-fcgi.cpp for reference. For me, I couldn't get OCDB to work. There are a few macros you can use to disable a few modules.

A CMake refactor will happen soon.

@IngwiePhoenix
Copy link
Contributor

Correction, it was: -D OS_ODBO_DISABLED.

@unitpoint
Copy link
Owner

If I understand correctly scriptum has issue with PCRE library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants