Thread: Building PgAdmin with a debug build
Hello, I'm attempting to build PgAdmin3 from master, including a debug build. I resolved various packages using my system's package manager, including -debug and -devel packages. When, and only when I pass the --enable-debug parameter to configure, I invariably get this error message: ./configure -with-gtk --enable-gtk2 --enable-debug -with-wx-version=2.8 *snip* checking for PQgetOutResult in -lpq... no checking wxWidgets version... ok checking wxWidgets in /usr/local... failed configure: error: Your wxWidgets installation cannot support pgAdmin in the selected configuration. This may be because it was configured without the --enable-unicode option, or the combination of dynamic/static linking and debug/non-debug libraries selected did not match any installed wxWidgets libraries. I thought there might be some arcane problem with my system packages, so I downloaded the stable release of WxWidgets-gtk (wxGTK-2.8.11.tar.gz), and built it successfully with a "./configure --enable-debug; make; make install". I then ran ldconfig. Now, I'm getting the same error message with any set of configure parameters at all (rather than just when I've included --enable-debug). How can I build pgadmin3 with debug and release builds? -- Regards, Peter Geoghegan
Le 23/10/2010 05:22, Peter Geoghegan a écrit : > Hello, > > I'm attempting to build PgAdmin3 from master, including a debug build. > I resolved various packages using my system's package manager, > including -debug and -devel packages. > > When, and only when I pass the --enable-debug parameter to configure, > I invariably get this error message: > > ./configure -with-gtk --enable-gtk2 --enable-debug -with-wx-version=2.8 > *snip* > checking for PQgetOutResult in -lpq... no > checking wxWidgets version... ok > checking wxWidgets in /usr/local... failed > configure: error: Your wxWidgets installation cannot support pgAdmin > in the selected configuration. This may be because it was configured > without the --enable-unicode option, or the combination of > dynamic/static linking and debug/non-debug libraries selected did not > match any installed wxWidgets libraries. > > I thought there might be some arcane problem with my system packages, > so I downloaded the stable release of WxWidgets-gtk > (wxGTK-2.8.11.tar.gz), and built it successfully with a "./configure > --enable-debug; make; make install". I then ran ldconfig. > > Now, I'm getting the same error message with any set of configure > parameters at all (rather than just when I've included > --enable-debug). > > How can I build pgadmin3 with debug and release builds? > You need a debug and *unicode* build of wxWidgets. So your configure command should also contain "--enable-unicode". Mine looks like this: ./configure --with-gtk --enable-gtk2 \ --enable-unicode --enable-debug \ --prefix=/opt/wxgtk-2.8 -- Guillaumehttp://www.postgresql.frhttp://dalibo.com
On 23 October 2010 13:33, Guillaume Lelarge <guillaume@lelarge.info> wrote: > > You need a debug and *unicode* build of wxWidgets. So your configure > command should also contain "--enable-unicode". Mine looks like this: > > ./configure --with-gtk --enable-gtk2 \ > --enable-unicode --enable-debug \ > --prefix=/opt/wxgtk-2.8 Hmm....I've built/installed WxWidgets (this time, wxWidgets-2.8.11.tar.gz) with those exact parameters, and now when I to do this: peter@linux-peter-home:~/pgadmin3> ./configure -with-gtk --enable-gtk2 --enable-debug I still get this: checking for PQgetOutResult in -lpq... no checking wxWidgets version... ok checking wxWidgets in /usr/local... failed configure: error: Your wxWidgets installation cannot support pgAdmin in the selected configuration. This may be because it was configured without the --enable-unicode option, or the combination of dynamic/static linking and debug/non-debug libraries selected did not match any installed wxWidgets libraries. I'm not sure that I'm satisfying this condition, which appears at the end of make install output for WxWidgets: ------------------------------------------------------ The installation of wxWidgets is finished. On certainplatforms (e.g. Linux) you'll now have to run ldconfigif you installeda shared library and also modify theLD_LIBRARY_PATH (or equivalent) environment variable. wxWidgets comes with no guarantees and doesn't claimto be suitable for any purpose. Read the wxWidgets Licence on licencing conditions. ------------------------------------------------------ I've run ldconfig. However, the LD_LIBRARY_PATH environment variable is not set. -- Regards, Peter Geoghegan
Le 23/10/2010 07:07, Peter Geoghegan a écrit : > On 23 October 2010 13:33, Guillaume Lelarge <guillaume@lelarge.info> wrote: > >> >> You need a debug and *unicode* build of wxWidgets. So your configure >> command should also contain "--enable-unicode". Mine looks like this: >> >> ./configure --with-gtk --enable-gtk2 \ >> --enable-unicode --enable-debug \ >> --prefix=/opt/wxgtk-2.8 > > Hmm....I've built/installed WxWidgets (this time, > wxWidgets-2.8.11.tar.gz) with those exact parameters, and now when I > to do this: > > peter@linux-peter-home:~/pgadmin3> ./configure -with-gtk --enable-gtk2 > --enable-debug > Hm, let's try another time. You once again forgot the --enable-unicode option. -- Guillaumehttp://www.postgresql.frhttp://dalibo.com
On Sat, Oct 23, 2010 at 3:33 PM, Guillaume Lelarge <guillaume@lelarge.info> wrote: > Le 23/10/2010 07:07, Peter Geoghegan a écrit : >> On 23 October 2010 13:33, Guillaume Lelarge <guillaume@lelarge.info> wrote: >> >>> >>> You need a debug and *unicode* build of wxWidgets. So your configure >>> command should also contain "--enable-unicode". Mine looks like this: >>> >>> ./configure --with-gtk --enable-gtk2 \ >>> --enable-unicode --enable-debug \ >>> --prefix=/opt/wxgtk-2.8 >> >> Hmm....I've built/installed WxWidgets (this time, >> wxWidgets-2.8.11.tar.gz) with those exact parameters, and now when I >> to do this: >> >> peter@linux-peter-home:~/pgadmin3> ./configure -with-gtk --enable-gtk2 >> --enable-debug >> > > Hm, let's try another time. You once again forgot the --enable-unicode > option. Actually, I think Peter is mixing up wxWidgets options with pgAdmin options. The command he posted above looks like it's in the pgAdmin source directory, but --with-gtk and --enable-gtk2 are wxWidgets options. I'd suggest using the wxWidgets build script in xtra/wx-build in the pgAdmin tree. I actually tweaked that earlier today with a couple of improvements. -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company
On 23 October 2010 15:36, Dave Page <dpage@pgadmin.org> wrote: >> Hm, let's try another time. You once again forgot the --enable-unicode >> option. > Actually, I think Peter is mixing up wxWidgets options with pgAdmin > options. The command he posted above looks like it's in the pgAdmin > source directory, but --with-gtk and --enable-gtk2 are wxWidgets > options. > > I'd suggest using the wxWidgets build script in xtra/wx-build in the > pgAdmin tree. I actually tweaked that earlier today with a couple of > improvements. I did forget, but it actually doesn't matter for now. Let's take a step back here - if I just run ./configure, without any parameters, or just with --enable-unicode, I still get the same error message (previously, when building against my distro's packages, I could successfully run configure provided I left out the --enable-debug parameter). I hate autohell. I did a git pull, and saw Dave's improvements to ./xtra/wx-build. Unfortunately, running build-wxgtk doesn't improve matters - I simply see the same error as before, plus we attempt a make. This is an Opensuse 11.3 system. peter@linux-peter-home:~/pgadmin3> whereis wx-config wx-config: /usr/local/bin/wx-config peter@linux-peter-home:~/pgadmin3> wx-config --list Default config is gtk2-unicode-debug-2.8 Default config will be used for output Alternate matches: gtk2-ansi-debug-2.8 Where does this leave me? -- Regards, Peter Geoghegan
On Sat, Oct 23, 2010 at 4:52 PM, Peter Geoghegan <peter.geoghegan86@gmail.com> wrote: > On 23 October 2010 15:36, Dave Page <dpage@pgadmin.org> wrote: > >>> Hm, let's try another time. You once again forgot the --enable-unicode >>> option. > >> Actually, I think Peter is mixing up wxWidgets options with pgAdmin >> options. The command he posted above looks like it's in the pgAdmin >> source directory, but --with-gtk and --enable-gtk2 are wxWidgets >> options. >> >> I'd suggest using the wxWidgets build script in xtra/wx-build in the >> pgAdmin tree. I actually tweaked that earlier today with a couple of >> improvements. > > I did forget, but it actually doesn't matter for now. Let's take a > step back here - if I just run ./configure, without any parameters, or > just with --enable-unicode, I still get the same error message > (previously, when building against my distro's packages, I could > successfully run configure provided I left out the --enable-debug > parameter). > > I hate autohell. > > I did a git pull, and saw Dave's improvements to ./xtra/wx-build. > Unfortunately, running build-wxgtk doesn't improve matters - I simply > see the same error as before, plus we attempt a make. Does the script complete successfully? If so, you should have every supported build variation of wxWidgets in /usr/local. > This is an Opensuse 11.3 system. > > peter@linux-peter-home:~/pgadmin3> whereis wx-config > wx-config: /usr/local/bin/wx-config > peter@linux-peter-home:~/pgadmin3> wx-config --list Try "which wx-config", not whereis. I suspect pgAdmin isn't finding the one you think it is. Then, try configuring pgAdmin with --with-wx=/usr/local/ -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company
On 23 October 2010 17:01, Dave Page <dpage@pgadmin.org> wrote: > Does the script complete successfully? If so, you should have every > supported build variation of wxWidgets in /usr/local. I didn't let the script finish.....I thought your changes might have introduced defects or something, and that it was running in an infinite loop. Actually, I was just seeing it build every variation in turn...I must have seen at least 4 or 5 runs of a configure script, which sort of threw me off. I have run the script through to completion now, and have successfully built pgadmin3, with --enable-debug. Thanks, Peter Geoghegan