Skip to content

Cannot compile on Mageia 4 #62

Open

Description

@scriptum
$ 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

Activity

  1. IngwiePhoenix commented on Dec 1, 2014

    @IngwiePhoenix
    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.

  2. IngwiePhoenix commented on Dec 1, 2014

    @IngwiePhoenix
    Contributor

    Correction, it was: -D OS_ODBO_DISABLED.

  3. unitpoint commented on Dec 1, 2014

    @unitpoint
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions