Обсуждение: pgAdmin3.app library problem

Поиск
Список
Период
Сортировка

pgAdmin3.app library problem

От
Jyrki Wahlstedt
Дата:
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.

with regards,
!
! Jyrki Wahlstedt
! Tinatie 3 A 2            mob. +358-40-502 0164
! FI-00440 Helsinki
!
! Our life is no dream; but it ought to become one and perhaps will.
! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0  A780
6366 EFD9 139C C386



Re: pgAdmin3.app library problem

От
"Florian G. Pflug"
Дата:
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 ;-)

greetings, Florian Pflug

Вложения

Re: pgAdmin3.app library problem

От
Jyrki Wahlstedt
Дата:
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 ;-)
>
> greetings, Florian Pflug
>
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!

!
! Jyrki Wahlstedt
! Tinatie 3 A 2            mob. +358-40-502 0164
! FI-00440 Helsinki
!
! Our life is no dream; but it ought to become one and perhaps will.
! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0  A780
6366 EFD9 139C C386



Re: pgAdmin3.app library problem

От
Jyrki Wahlstedt
Дата:
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 ;-)
>>
>> greetings, Florian Pflug
>>
>>
> 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!?

!
! Jyrki Wahlstedt
! Tinatie 3 A 2            mob. +358-40-502 0164
! FI-00440 Helsinki
!
! Our life is no dream; but it ought to become one and perhaps will.
! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0  A780
6366 EFD9 139C C386



Re: pgAdmin3.app library problem

От
"Florian G. Pflug"
Дата:
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

Вложения