Re: Building pgagent on Linux

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Building pgagent on Linux
Date: 2011-12-06 08:56:39
Message-ID: CA+OCxoy1LtmtmFC2MDnqdiwuGOnqWKFvTufm4Dm=7bzdSHVSWA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi

2011/12/6 Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>:
>
> Hi,
>
> I'm trying to build a standalone pgagent RPM. This is the same
> environment that I can build pgadmin3 w/o any issues.
>
> After untarring pgAgent-3.0.1-Source.tar.gz, and running cmake, I got
> the following error:
>
> =======================================================
> -- The C compiler identification is GNU
> -- The CXX compiler identification is GNU
> -- Check for working C compiler: /usr/lib64/ccache/gcc
> -- Check for working C compiler: /usr/lib64/ccache/gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/lib64/ccache/c++
> -- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> CMake Error at cmake/FindWX.cmake:271 (MESSAGE):
>  The selected wxWidgets configuration (version: 2.8, debug: no, static:
> yes,
>  unicode: yes, modules: base) is not available.
> Call Stack (most recent call first):
>  CMakeLists.txt:91 (FIND_PACKAGE)
>
>
> -- Configuring incomplete, errors occurred!
>
> =======================================================
>
> Ok, so apparently it does not like wx configuration:
>
> # wx-config --selected-config
> gtk2-unicode-release-2.8

Yeah, my guess is you need to configure it for a dynamic build, not
static. Try something like:

cmake -D STATIC_BUILD:BOOL=OFF .

> (Oh, why does pgagent need wx libraries?)

Because it was written using wxWidgets.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Devrim GÜNDÜZ 2011-12-06 11:22:35 Re: Building pgagent on Linux
Previous Message Devrim GÜNDÜZ 2011-12-06 08:19:08 Building pgagent on Linux