Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgadmin-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group