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

Re: library problem

From: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>
To: Jyrki Wahlstedt <jyrki(dot)wahlstedt(at)hut(dot)fi>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: library problem
Date: 2005-05-20 16:42:30
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgadmin-hackers
Jyrki Wahlstedt wrote:
> On 20.5.2005, at 16:22, Jyrki Wahlstedt wrote:
>> On 20.5.2005, at 16:02, Florian G. Pflug wrote:
>>> Jyrki Wahlstedt wrote:
>>>> Hi,
>>>> I built pgAdmin3 checked out by svn today on OS X 10.4.1 with   
>>>> wxWidgets from DarwinPorts (wxWidgets 2.6.0, Revision 1,  graphics/ 
>>>> wxWidgets). The build went without problems (used -- 
>>>> enable-appbundle  --enable-static), but when launched, the  program 
>>>> quit with the  following (though due to no label a bit  suspect, but 
>>>> the version  number tells enough):
>>>> Fatal Error: Mismatch between the program and library build  
>>>> versions  detected.
>>>> The library used 2.6 (no debug,Unicode,compiler with C++ ABI  
>>>> 102,wx  containers,compatible with 2.4),
>>>> and your program used 2.6 (no debug,Unicode,compiler with C++  ABI  
>>>> 1002,wx containers,compatible with 2.4).
>>>> The only mismatch I see is that 102 differs from 1002. Now I  don't  
>>>> know enough to tell, which one is correct, whom to tell &c.
>>> Hm... which gcc (3.3 or 4.0 - both are shipped with osx tiger dev- 
>>> tools) did you use for pgadmin3? and which one for wx? If you  didn't 
>>> use
>>> the same version, thats quite certainly the problem ;-)
>> Ok,
>> should have said that right away. I used 3.3 with wxWidgets, didn't  
>> build otherwise. Next step for me: use 3.3 for pgAdmin, too. I'll  let 
>> you know, thanks!
> That was it, thank you! BTW, would it be ok, if I tried to write a  
> Portfile to include pgAdmin3 to DarwinPorts? It shouldn't be too  hard, 
> actually, as wxWidgets is there already and also postgresql(8)  and they 
> seem to work together (at least as long as the compilers  agree:-).  
> That is, if it's a good idea!?

Should you ever try compiling wx+pgadmin3 with gcc4, please let me know
if it works - I'm still doing my pgadmin3-related work on panther,
because I guess versions compiled on tiger won't run on panther...

Regarding the Portfile - I guess more ways to get pgadmin3 running on 
osx are always good, so I'd say: go for it! ;-)
You'll have to decide, however, if you want to install it "the unix way" 
- the language and xrc stuff to /usr/share/pgadmin3, the binary to 
/usr/bin, ...
Or if you want to do it the "osx way", and build an .app-bundle. The 
second choice should work out-of-the-box - I'm not sure about the first.
You might run into trouble, because if you start a graphical app that is
not contained in a bundle, sometimes the interface appears, but you 
can't click it. To solve this, you either need to build a .app-bundle,
or you needs to add a resource-fork to the binary.

greetings, Florian Pflug

In response to

pgadmin-hackers by date

Next:From: svnDate: 2005-05-20 21:49:23
Subject: SVN Commit by dpage: r4229 - in trunk/pgadmin3/xtra/pgagent: . include
Previous:From: svnDate: 2005-05-20 15:44:01
Subject: SVN Commit by dpage: r4228 - trunk/pgadmin3/xtra/pgagent

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