Обсуждение: Re: [pgadmin-support] I fixed a couple compile errors, but not all,

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

Re: [pgadmin-support] I fixed a couple compile errors, but not all,

От
Andreas Pflug
Дата:
Please stay on the list with pgadmin topics!

Shea Martin wrote:
>
>
> Andreas Pflug wrote:
>
>> Shea Martin wrote:
>>
>>
>>> But now I have run into a problem I am not sure how to fix.  It looks
>>> like an autoboxing problem, but I could be wrong.  I didn't have a
>>> lot of time to look into it.
>>> The error is as follows:
>>> <code>
>>> make  all-recursive
>>> make[1]: Entering directory
>>> `/home/z1/SUN_PACKAGES/tarballs/postgres/pgadmin3-1.2.0'
>>> Making all in src
>>> make[2]: Entering directory
>>> `/home/z1/SUN_PACKAGES/tarballs/postgres/pgadmin3-1.2.0/src'
>>> if g++ -DHAVE_CONFIG_H -I. -I. -I..
>>> -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g
>>> -I../src/include -I../src/agent/include -I/usr/local/pgsql/include
>>> -DSSL -I/usr/local/lib/wx/include/motif-ansi-release-2.5
>>> -I/usr/local/include/wx-2.5 -D__WXMOTIF__ -I/usr/openwin/include
>>
>>
>>
>> You're obviously compiling it for Motif, not GTK2; we never tried that
>> and you'll probably face several font related resizing problems there.

Additionally, you need to build it unicode; we won't support ansi mode
for pgadmin any more.

>>
>>
>>> utils/sysSettings.cpp: In constructor `sysSettings::sysSettings(const
>>> wxString&)':
>>
>>
>>
>> It exists for win32 and gtk2. Equivalent could be
>>     systemFont = new wxFont();
>>     systemFont->SetNativeFontInfo(fontName);
>> if you like to try it. I'd recommend GTK2, because with Motif you'll
>> be on your own unless you want to claim responsibility of the Motif
>> pgAdmin version.
>>
>> Regards,
>> Andreas
>
>
> systemFont is statically allocated, so the above would not work.

Late at night... ok, so use systemFont.SetNativeFontInfo(fontName)

>
> I looked through the include dir of the gtk2 install, and didn't see
> this constructor.

Look closer.

> Why would wxWidgets define different public
> constructors for gtk and motif.

Dont ask me...


> I think I have the motif version installed.  I don't mind giving a hand
> to maintain it.  The code changes were minimal, and would work in the
> GTK2 version as well.

The porting work will be to get wx running correctly, pgadmin will be
the smaller part. Font and sizing handling needed more than a year's
work to be fixed for win32 and gtk until we finally had a working 2.5.3.

>
> Installing GTK2 is real PIA.  Luckily many OS's install it by default,
> like most all Linux's, and Solaris 10.  Unfortunately, Solaris 8 and 9
> are still pretty common.

Don't blame gtk for not being preinstalled on Solaris 8 and 9, blame Sun.

IIRC, you're the first user to ask for Motif in the last two years of
pgAdmin III development. I really wonder if it's worth the trouble.
Installing gtk2 might take some time, but it's a good documented and
safe way to get pgadmin running.

Regards,
Andreas

Re: [pgadmin-support] I fixed a couple compile

От
Raphaël Enrici
Дата:
Andreas Pflug wrote:

> Please stay on the list with pgadmin topics!
>
> Shea Martin wrote:
>
>>
> <big snip>
>
>>
>> Installing GTK2 is real PIA.  Luckily many OS's install it by
>> default, like most all Linux's, and Solaris 10.  Unfortunately,
>> Solaris 8 and 9 are still pretty common.
>
>
> Don't blame gtk for not being preinstalled on Solaris 8 and 9, blame Sun.


Hiroshi and I worked last year on getting pgAdmin to run on Solaris.
AFAIR it was pgAdmin III 1.1.x with an old wxWidgets. I used to rebuild
gtk2 for some personal reasons but hiroshi was using sun's [1] one IIRC.

You may find some sun packages for it.

If you need a gcc built gtk2 package you may also take a look at
sunfreeware [2] or blastwave [3].

Please, tell us if you succeed. I'll come back on Solaris port if I have
more free time... this is definitely not the case at the time of this
writing...

Regards,
Raphaël
[1] http://www.sun.com/software/star/gnome/
[2] http://www.sunfreeware.com/
[3] http://www.blastwave.org/ and in particular:
http://www.blastwave.org/packages.php/gtk2


Re: [pgadmin-support] I fixed a couple compile

От
Shea Martin
Дата:
Well my motif version  coredumps to no end, despite the fact that all my
wx-demo's seemed to work ok.

So...
I just installed gtk2 and all the required patches from SFW (about 8
packages I think).  I am having a heck of a time building wx for gtk2.
Too bad sunfreeware didn't have a wx package.

~S

Raphaël Enrici wrote:

> Andreas Pflug wrote:
>
>> Please stay on the list with pgadmin topics!
>>
>> Shea Martin wrote:
>>
>>>
>> <big snip>
>>
>>>
>>> Installing GTK2 is real PIA.  Luckily many OS's install it by
>>> default, like most all Linux's, and Solaris 10.  Unfortunately,
>>> Solaris 8 and 9 are still pretty common.
>>
>>
>>
>> Don't blame gtk for not being preinstalled on Solaris 8 and 9, blame
>> Sun.
>
>
>
> Hiroshi and I worked last year on getting pgAdmin to run on Solaris.
> AFAIR it was pgAdmin III 1.1.x with an old wxWidgets. I used to
> rebuild gtk2 for some personal reasons but hiroshi was using sun's [1]
> one IIRC.
>
> You may find some sun packages for it.
>
> If you need a gcc built gtk2 package you may also take a look at
> sunfreeware [2] or blastwave [3].
>
> Please, tell us if you succeed. I'll come back on Solaris port if I
> have more free time... this is definitely not the case at the time of
> this writing...
>
> Regards,
> Raphaël
> [1] http://www.sun.com/software/star/gnome/
> [2] http://www.sunfreeware.com/
> [3] http://www.blastwave.org/ and in particular:
> http://www.blastwave.org/packages.php/gtk2
>
>



______
This e-mail message (including any attachments) is intended for the individual to whom it is addressed and contains
informationthat is privileged and confidential.  If you are not the intended recipient, note that any dissemination,
distributionor copying of this communication is strictly prohibited.  If you have received this communication in error,
pleasenotify the sender and erase this e-mail message immediately.  For complete disclaimer information, please see
http://arcis.com/emaildisclaimer