Thread: Trouble with wxWindows (XRC and STC linking problem)

Trouble with wxWindows (XRC and STC linking problem)

From
"Darko Prenosil"
Date:
    I tried to compile pgadmin on MinGW and win2000, but without GTK.
There was only one change in configure script to make it possible, and one
in the code.

There is wyApp::setAuto3D call in the pgadmin, and according to wxWindows
core developers, it is deprecated (I posted a message to wxWindows group and
got this answer).

Now pgadmin compiles without problems, but there are few unresolved symbols
when linking.
I think that this is not pgadmin's problem, but I do not know where else to
ask. I posted list of link errors to wxWindows developer list(twice), but
until today, I didn't get an answer.
List of errors are same for wxWindows 2.4.1 and wxWindows from current CVS.
I even tried it with snapshot that pgadmin group proposed, with same result.

Here is a error list:

d:/mingw/lib/libwx_mswud_stc-2.5.a(stclib_stc.o): In function
`ZN16wxStyledTextCtrl18MarkerDefineBitmapEiRK8wxBitmap':
D:/MinGW/src/wxwindows/contrib/src/stc/stc.cpp:469: undefined reference to
`wxMemoryOutputStream::wxMemoryOutputStream(void*, unsigned)'
D:/MinGW/src/wxwindows/contrib/src/stc/stc.cpp:474: undefined reference to
`wxMemoryOutputStream::CopyTo(void*, unsigned) const'
D:/MinGW/src/wxwindows/contrib/src/stc/stc.cpp:477: undefined reference to
`wxMemoryOutputStream::~wxMemoryOutputStream()'
D:/MinGW/src/wxwindows/contrib/src/stc/stc.cpp:477: undefined reference to
`wxMemoryOutputStream::~wxMemoryOutputStream()'

d:/mingw/lib/libwx_mswud_stc-2.5.a(stclib_stc.o): In function
`ZN16wxStyledTextCtrl13RegisterImageEiRK8wxBitmap':
D:/MinGW/src/wxwindows/contrib/src/stc/stc.cpp:852: undefined reference to
`wxMemoryOutputStream::wxMemoryOutputStream(void*, unsigned)'
D:/MinGW/src/wxwindows/contrib/src/stc/stc.cpp:857: undefined reference to
`wxMemoryOutputStream::CopyTo(void*, unsigned) const'
D:/MinGW/src/wxwindows/contrib/src/stc/stc.cpp:860: undefined reference to
`wxMemoryOutputStream::~wxMemoryOutputStream()'
D:/MinGW/src/wxwindows/contrib/src/stc/stc.cpp:860: undefined reference to
`wxMemoryOutputStream::~wxMemoryOutputStream()'

d:/mingw/lib/libwx_mswud_stc-2.5.a(stclib_PlatWX.o): In function
`ZN11ListBoxImpl13RegisterImageEiPKc':
D:/MinGW/src/wxwindows/contrib/src/stc/PlatWX.cpp:992: undefined reference
to `wxMemoryInputStream::wxMemoryInputStream(void const*, unsigned)'
D:/MinGW/src/wxwindows/contrib/src/stc/PlatWX.cpp:1009: undefined reference
to `wxMemoryInputStream::~wxMemoryInputStream()'
D:/MinGW/src/wxwindows/contrib/src/stc/PlatWX.cpp:1009: undefined reference
to `wxMemoryInputStream::~wxMemoryInputStream()'

d:/mingw/lib/libwx_mswud_xrc-2.5.a(xrclib_xh_wizrd.o): In function
`ZN18wxWizardXmlHandler16DoCreateResourceEv':
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_wizrd.cpp:41: undefined reference
to `wxWizard::sm_classwxWizard'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_wizrd.cpp:46: undefined reference
to `wxWizard::Create(wxWindow*, int, wxString const&, wxBitmap const&,
wxPoint const&)'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_wizrd.cpp:64: undefined reference
to `wxWizardPageSimple::sm_classwxWizardPageSimple'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_wizrd.cpp:75: undefined reference
to `wxWizardPage::sm_classwxWizardPage'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_wizrd.cpp:78: undefined reference
to `wxWizardPage::Create(wxWizard*, wxBitmap const&, wchar_t const*)'

d:/mingw/lib/libwx_mswud_xrc-2.5.a(xrclib_xh_wizrd.o): In function
`ZNK12wxWindowList4FindERK9wxListKey':
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/window.h(.text$_Z
N18wxWizardPageSimple6CreateEP8wxWizardP12wxWizardPageS3_RK8wxBitmapPKw+0x2b
): undefined reference to `wxWizardPage::Create(wxWizard*, wxBitmap const&,
wchar_t const*)'
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/window.h(.text$_Z
N8wxWizardC1Ev+0x61): undefined reference to `wxWizard::Init()'
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/window.h(.data$_Z
TV8wxWizard+0x2c): undefined reference to `wxWizard::GetEventTable() const'

d:/mingw/lib/libwx_mswud_xrc-2.5.a(xrclib_xh_wizrd.o): In function
`ZN18wxWizardXmlHandlerC1Ev':
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_wizrd.cpp:35: undefined reference
to `wxWizard::RunWizard(wxWizardPage*)'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_wizrd.cpp:35: undefined reference
to `wxWizard::GetCurrentPage() const'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_wizrd.cpp:35: undefined reference
to `wxWizard::SetPageSize(wxSize const&)'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_wizrd.cpp:35: undefined reference
to `wxWizard::GetPageSize() const'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_wizrd.cpp:35: undefined reference
to `wxWizard::FitToPage(wxWizardPage const*)'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_wizrd.cpp:35: undefined reference
to `wxWizard::DoCreateControls()'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_wizrd.cpp:34: undefined reference
to `wxWizardPageSimple::GetPrev() const'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_wizrd.cpp:34: undefined reference
to `wxWizardPageSimple::GetNext() const'

d:/mingw/lib/libwx_mswud_xrc-2.5.a(xrclib_xh_wizrd.o): In function
`ZNK12wxWindowList4FindERK9wxListKey':
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/window.h(.text$_Z
N12wxWizardPageC2Ev+0x39): undefined reference to `wxWizardPage::Init()'
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/window.h(.text$_Z
NK18wxWizardPageSimple12GetClassInfoEv+0x4): undefined reference to
`wxWizardPageSimple::sm_classwxWizardPageSimple'
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/window.h(.text$_Z
NK8wxWizard12GetClassInfoEv+0x4): undefined reference to
`wxWizard::sm_classwxWizard'
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/window.h(.text$_Z
NK12wxWizardPage12GetClassInfoEv+0x4): undefined reference to
`wxWizardPage::sm_classwxWizardPage'

d:/mingw/lib/libwx_mswud_xrc-2.5.a(xrclib_xh_gdctl.o): In function
`ZN26wxGenericDirCtrlXmlHandler16DoCreateResourceEv':
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_gdctl.cpp:43: undefined reference
to `wxGenericDirCtrl::sm_classwxGenericDirCtrl'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_gdctl.cpp:43: undefined reference
to `wxGenericDirCtrl::wxGenericDirCtrl()'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_gdctl.cpp:45: undefined reference
to `wxGenericDirCtrl::Create(wxWindow*, int, wxString const&, wxPoint
const&, wxSize const&, long, wxString const&, int, wxString const&)'

d:/mingw/lib/libwx_mswud_xrc-2.5.a(xrclib_xh_gauge.o): In function
`ZN17wxGaugeXmlHandler16DoCreateResourceEv':
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_gauge.cpp:41: undefined reference
to `wxGauge95::sm_classwxGauge95'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_gauge.cpp:43: undefined reference
to `wxGauge95::Create(wxWindow*, int, int, wxPoint const&, wxSize const&,
long, wxValidator const&, wxString const&)'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_gauge.cpp:53: undefined reference
to `wxGauge95::SetValue(int)'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_gauge.cpp:57: undefined reference
to `wxGauge95::SetShadowWidth(int)'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_gauge.cpp:61: undefined reference
to `wxGauge95::SetBezelFace(int)'
d:/mingw/lib/libwx_mswud_xrc-2.5.a(xrclib_xh_gauge.o): In function
`ZN17wxGaugeXmlHandlerC2Ev':
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_gauge.cpp:30: undefined reference
to `wxGauge95::SetBackgroundColour(wxColour const&)'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_gauge.cpp:30: undefined reference
to `wxGauge95::SetForegroundColour(wxColour const&)'
d:/mingw/lib/libwx_mswud_xrc-2.5.a(xrclib_xh_gauge.o): In function
`ZNK12wxStringData7IsValidEv':
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/string.h(.text$_Z
NK9wxGauge9512GetClassInfoEv+0x4): undefined reference to
`wxGauge95::sm_classwxGauge95'

d:/mingw/lib/libwx_mswud_xrc-2.5.a(xrclib_xh_chckl.o): In function
`ZN21wxCheckListXmlHandler16DoCreateResourceEv':
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_chckl.cpp:53: undefined reference
to `wxCheckListBox::sm_classwxCheckListBox'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_chckl.cpp:53: undefined reference
to `wxCheckListBox::wxCheckListBox()'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_chckl.cpp:55: undefined reference
to `wxCheckListBox::Create(wxWindow*, int, wxPoint const&, wxSize const&,
int, wxString const*, long, wxValidator const&, wxString const&)'

d:/mingw/lib/libwx_mswud_xrc-2.5.a(xrclib_xh_cald.o): In function
`ZN24wxCalendarCtrlXmlHandler16DoCreateResourceEv':
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_cald.cpp:46: undefined reference
to `wxCalendarCtrl::sm_classwxCalendarCtrl'
D:/MinGW/src/wxwindows/contrib/src/xrc/xh_cald.cpp:48: undefined reference
to `wxCalendarCtrl::Create(wxWindow*, int, wxDateTime const&, wxPoint
const&, wxSize const&, long, wxString const&)'

d:/mingw/lib/libwx_mswud_xrc-2.5.a(xrclib_xh_cald.o): In function
`ZNK12wxStringData7IsValidEv':
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/string.h(.text$_Z
N14wxCalendarCtrlC1Ev+0x188): undefined reference to
`wxCalendarCtrl::Init()'
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/string.h(.data$_Z
TV14wxCalendarCtrl+0xc): undefined reference to
`wxCalendarCtrl::~wxCalendarCtrl()'
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/string.h(.data$_Z
TV14wxCalendarCtrl+0x10): undefined reference to
`wxCalendarCtrl::~wxCalendarCtrl()'
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/string.h(.data$_Z
TV14wxCalendarCtrl+0x2c): undefined reference to
`wxCalendarCtrl::GetEventTable() const'
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/string.h(.data$_Z
TV14wxCalendarCtrl+0x40): undefined reference to `wxCalendarCtrl::Destroy()'
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/string.h(.data$_Z
TV14wxCalendarCtrl+0x90): undefined reference to
`wxCalendarCtrl::Show(bool)'
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/string.h(.data$_Z
TV14wxCalendarCtrl+0x94): undefined reference to
`wxCalendarCtrl::Enable(bool)'
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/string.h(.data$_Z
TV14wxCalendarCtrl+0x1a4): undefined reference to
`wxCalendarCtrl::DoGetPosition(int*, int*) const'
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/string.h(.data$_Z
TV14wxCalendarCtrl+0x1a8): undefined reference to
`wxCalendarCtrl::DoGetSize(int*, int*) const'
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/string.h(.data$_Z
TV14wxCalendarCtrl+0x1b0): undefined reference to
`wxCalendarCtrl::DoGetBestSize() const'
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/string.h(.data$_Z
TV14wxCalendarCtrl+0x1b4): undefined reference to
`wxCalendarCtrl::DoSetSize(int, int, int, int, int)'
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/string.h(.data$_Z
TV14wxCalendarCtrl+0x1bc): undefined reference to
`wxCalendarCtrl::DoMoveWindow(int, int, int, int)'
D:/MinGW/src/wxwindows/contrib/src/xrc/../../../include/wx/string.h(.text$_Z
NK14wxCalendarCtrl12GetClassInfoEv+0x4): undefined reference to
`wxCalendarCtrl::sm_classwxCalendarCtrl'
make[2]: *** [pgadmin3.exe] Error 1

What this means ? Compilation of /contrib/xrc and /contrib/stc went OK !
Any help appreciated !

Regards !



Re: Trouble with wxWindows (XRC and STC linking problem)

From
"Dave Page"
Date:

> -----Original Message-----
> From: Darko Prenosil [mailto:Darko.Prenosil@finteh.hr]
> Sent: 11 July 2003 22:06
> To: pgadmin-hackers@postgresql.org
> Subject: [pgadmin-hackers] Trouble with wxWindows (XRC and
> STC linking problem)
>
>
>     I tried to compile pgadmin on MinGW and win2000, but
> without GTK. There was only one change in configure script to
> make it possible, and one in the code.

Cool!

> There is wyApp::setAuto3D call in the pgadmin, and according
> to wxWindows core developers, it is deprecated (I posted a
> message to wxWindows group and got this answer).

OK, removed. It was only in Win32 builds anyway and didn't seem to do
much.

What were the changes to configure that you made?

> Now pgadmin compiles without problems, but there are few
> unresolved symbols when linking. I think that this is not
> pgadmin's problem, but I do not know where else to ask. I
> posted list of link errors to wxWindows developer
> list(twice), but until today, I didn't get an answer. List of
> errors are same for wxWindows 2.4.1 and wxWindows from
> current CVS. I even tried it with snapshot that pgadmin group
> proposed, with same result.

Please try the wxWindows 2.5 tarball from
http://www.pgadmin.org/snapshots. We need 2.5 for the Unicode support,
but the wxWindows CVS code was a bit iffy last time we looked (I think
they're shifting it all around) so we've stick with this version that
we've nbeen patching as required.

Regards, Dave.

Re: Trouble with wxWindows (XRC and STC linking problem)

From
"Darko Prenosil"
Date:
----- Original Message -----
From: "Dave Page" <dpage@vale-housing.co.uk>
To: "Darko Prenosil" <Darko.Prenosil@finteh.hr>;
<pgadmin-hackers@postgresql.org>
Sent: Saturday, July 12, 2003 11:14 PM
Subject: Re: [pgadmin-hackers] Trouble with wxWindows (XRC and STC linking
problem)

>What were the changes to configure that you made?

Attached is changed acinclude.m4. It is really tested only on
"libwx_mswud-2.5", but I think it should work for other builds too. Maybe it
is a god idea to put this on revision to someone who REALLY knows autoconf
and automake.

>Please try the wxWindows 2.5 tarball from
>http://www.pgadmin.org/snapshots. We need 2.5 for the Unicode support,
>but the wxWindows CVS code was a bit iffy last time we looked (I think
>they're shifting it all around) so we've stick with this version that
>we've nbeen patching as required.

I'll try this snapshot, but I do not think this will solve anything. I am
suspecting MinGW makefiles for XRC and STC. I think that this is an old
problem (since 2.4), and it is big question if it ever worked for MinGW. Do
You know anyone to ask about this ? I just wish if wxWindows developers had
someone like Tom , Bruce, Jan and few others (my questions on pgsql group
were  newer ignored - no matter how stupid they were !).
I forget to show linker commands that the new acinclude produces,
maybe someone can get some conclusion from it:

g++ -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g -I../src/inc
lude -I -g -O2  -L/d/mingw/lib -o pgadmin3.exe  pgAdmin3.o pgConn.o pgSet.o
pgAggregate.o pgCast.o pgCheck.o pgCollection.o pgColumn.o pgConstraints.o
pgConversion.o pgDatabase.o pgDomain.o pgForeignKey.o pgFunction.o pgGroup.o
pgIndex.o
pgIndexConstraint.o pgLanguage.o pgObject.o pgOperator.o pgOperatorClass.o
pgRule.o pgSchema.o pgSequence.o pgServer.o pgTable.o pgTrigger.o pgType.o
pgUser.o pgView.o pgDatatype.o ctlSQLBox.o ctlSQLResult.o frmExport.o
dlgAddTableView.o events.o frmAbout.o frmChildTableViewFrame.o frmConnect.o
frmMain.o frmOptions.o frmPassword.o frmQuery.o frmQueryBuilder.o frmHelp.o
frmQBJoin.o frmSplash.o frmVacuum.o frmEditGrid.o dlgProperty.o dlgUser.o
dlgGroup.o dlgDatabase.o dlgLanguage.o dlgSchema.o dlgDomain.o dlgTable.o
dlgColumn.o dlgIndex.o dlgFunction.o dlgView.o dlgRule.o dlgOperator.o
dlgAggregate.o
dlgCast.o dlgConversion.o dlgIndexConstraint.o dlgForeignKey.o dlgSequence.o
dlgTrigger.o dlgType.o dlgCheck.o frmStatus.o misc.o sysLogger.o
sysSettings.o
-L/d/mingw/lib  -mthreads   /d/mingw/lib/libwx_mswud-2.5.a
/d/mingw/lib/libpq.a
/d/mingw/lib/libwxregexd.a -lpng -ljpeg -ltiff -lz -lrpcrt4 -loleaut32 -lole
32 -luuid -lwinspool
-lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi
32  -lwx_mswud_stc-2.5 -lwx_mswud_xrc-2.5

However, I'll let You know compile results for this snapshot.

Regards !


Attachment

Re: Trouble with wxWindows (XRC and STC linking problem)

From
"Dave Page"
Date:

> -----Original Message-----
> From: Darko Prenosil [mailto:Darko.Prenosil@finteh.hr]
> Sent: 12 July 2003 22:00
> To: Dave Page; pgadmin-hackers@postgresql.org
> Subject: Re: [pgadmin-hackers] Trouble with wxWindows (XRC
> and STC linking problem)
>
>
>
> ----- Original Message -----
> From: "Dave Page" <dpage@vale-housing.co.uk>
> To: "Darko Prenosil" <Darko.Prenosil@finteh.hr>;
> <pgadmin-hackers@postgresql.org>
> Sent: Saturday, July 12, 2003 11:14 PM
> Subject: Re: [pgadmin-hackers] Trouble with wxWindows (XRC
> and STC linking
> problem)
>
> >What were the changes to configure that you made?
>
> Attached is changed acinclude.m4. It is really tested only on
> "libwx_mswud-2.5", but I think it should work for other
> builds too. Maybe it is a god idea to put this on revision to
> someone who REALLY knows autoconf and automake.

Thanks, Adam, look OK to you?

> >Please try the wxWindows 2.5 tarball from
> >http://www.pgadmin.org/snapshots. We need 2.5 for the
> Unicode support,
> >but the wxWindows CVS code was a bit iffy last time we
> looked (I think
> >they're shifting it all around) so we've stick with this
> version that
> >we've nbeen patching as required.
>
> I'll try this snapshot, but I do not think this will solve
> anything.

No, but at least we'll all be playing in the same ballpark. Recent wx
cvs code has included changes to xrc that stop it compiling on FreeBSD
as well...

I am suspecting MinGW makefiles for XRC and STC. I
> think that this is an old problem (since 2.4), and it is big
> question if it ever worked for MinGW. Do You know anyone to
> ask about this ? I just wish if wxWindows developers had
> someone like Tom , Bruce, Jan and few others (my questions on
> pgsql group were  newer ignored - no matter how stupid they
> were !). I forget to show linker commands that the new
> acinclude produces, maybe someone can get some conclusion from it:

That's the beauty of PostgreSQL - there's a great bunch of people
working on it. I don't really know any of the wxWindows guys, but I
beleive the 'main man' is a guy called Vadim.

Regards, Dave.

Re: Trouble with wxWindows (XRC and STC linking problem)

From
"Darko Prenosil"
Date:
----- Original Message -----
From: "Darko Prenosil" <Darko.Prenosil@finteh.hr>
To: "Dave Page" <dpage@vale-housing.co.uk>; <pgadmin-hackers@postgresql.org>
Sent: Saturday, July 12, 2003 10:59 PM
Subject: Re: [pgadmin-hackers] Trouble with wxWindows (XRC and STC linking
problem)


>
> ----- Original Message -----
> From: "Dave Page" <dpage@vale-housing.co.uk>
> To: "Darko Prenosil" <Darko.Prenosil@finteh.hr>;
> <pgadmin-hackers@postgresql.org>
> Sent: Saturday, July 12, 2003 11:14 PM
> Subject: Re: [pgadmin-hackers] Trouble with wxWindows (XRC and STC linking
> problem)
>
> >What were the changes to configure that you made?
>
> Attached is changed acinclude.m4. It is really tested only on
> "libwx_mswud-2.5", but I think it should work for other builds too. Maybe
it
> is a god idea to put this on revision to someone who REALLY knows autoconf
> and automake.
>
> >Please try the wxWindows 2.5 tarball from
> >http://www.pgadmin.org/snapshots. We need 2.5 for the Unicode support,
> >but the wxWindows CVS code was a bit iffy last time we looked (I think
> >they're shifting it all around) so we've stick with this version that
> >we've nbeen patching as required.
>
> I'll try this snapshot, but I do not think this will solve anything. I am
> suspecting MinGW makefiles for XRC and STC. I think that this is an old
> problem (since 2.4), and it is big question if it ever worked for MinGW.
Do
> You know anyone to ask about this ? I just wish if wxWindows developers
had
> someone like Tom , Bruce, Jan and few others (my questions on pgsql group
> were  newer ignored - no matter how stupid they were !).
> I forget to show linker commands that the new acinclude produces,
> maybe someone can get some conclusion from it:
>

I got response today from Slavik !
I just send more information about this back to wxWindows list, and I hope
he will
help me to solve this.

Regards !


Re: Trouble with wxWindows (XRC and STC linking

From
"Adam H. Pendleton"
Date:
This new acinclude.m4 file looks fine to me.  I'm going to submit a
cleaner version later this week, but the functionality of the two will
be the same.

ahp


Re: Trouble with wxWindows (XRC and STC linking

From
"Darko Prenosil"
Date:
----- Original Message -----
From: "Adam H. Pendleton" <fmonkey@fmonkey.net>
To: "Darko Prenosil" <Darko.Prenosil@finteh.hr>
Cc: "Dave Page" <dpage@vale-housing.co.uk>; <pgadmin-hackers@postgresql.org>
Sent: Tuesday, July 15, 2003 5:36 PM
Subject: Re: [pgadmin-hackers] Trouble with wxWindows (XRC and STC linking


> This new acinclude.m4 file looks fine to me.  I'm going to submit a
> cleaner version later this week, but the functionality of the two will
> be the same.
>
> ahp
>
No, it is not OK !!!
I messed up the order of contrib libs and the base wx lib.
It should be first xrc & stc and after that base wx lib (just as for gtk),
otherwise it won't link correctly.
For example:
                    *libwx_msw-*)
                        LIBS="$LIBS $WX_NEW_LDFLAGS"
                        LIBS="$LIBS
${WX_HOME}/lib/libwx_msw_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_msw_xrc-${WX_VERSION}.a"
must be:
                    *libwx_msw-*)
                        LIBS="$LIBS
${WX_HOME}/lib/libwx_msw_stc-${WX_VERSION}.a
${WX_HOME}/lib/libwx_msw_xrc-${WX_VERSION}.a"
                        LIBS="$LIBS $WX_NEW_LDFLAGS"

All of those linking errors I mentioned in prev. mails were because of this
error.
(Thanks to Vaclav Slavik from wxWindows list, that helped me to solve this
problem)

Today I finally compiled and linked pgadmin3 with MinGW.

There are few problems left:
    1. paths for "make install" in Makefile must be fixed for WIN32 because
of internal directory structure of resource and  doc files. (They are not
same for win and *nix)
        That should be easy enough.
    2. From some reason XRC resources are not loaded at all. I got message
like :
            Cannot load resources from file
'D:\MinGW\local\pgadmin3\bin\ui\common\frmVacuum.xrc'.
        File is there, but can't be loaded from some reason. I suspect that
this is "slash-backslash" problem with file paths. I'll try to examine it
more closely.
        So, for now I can only start pgadmin and see it's main window, but
nothing else.
    3. When starting pgadmin, there is that old "command prompt" window,
like it is a "DOS" program.
        I have some samples here that are using a whole bunch of additional
compiler flags, but I do not know which one tells to compiler/linker that it
should be a WIN32 program.
        I'll try to figure out.
    4. I started this whole story, because I wanted to compile pgadmin
without GTK and Microsoft VC, and there is still no easy way to compile
"libpq" with MinGW.
        Maybe we can create "branch" for libpq, inside of pgadmin, and
correct the makefiles as we find appropriate. (There is "branch" for whole
wxWindows, libpq is no that big )
        The efforts to make "WIN32 port of PostgreSQL", are using MinGW, so
it should be easy enough.
        I tried to compile whole PostgreSQL on MinGW and it can be done,
there are known problems with linking (fork - IPC), but build system does
his job well.

I already "wasted" few hours on this, I'm prepared to spend few more, but
don't have much experience with wxWindows and MinGW, so any help is
appreciated.
I think it would be great to compile FREE admin tool for FREE SQL server on
FREE compiler.

Regards !



Re: Trouble with wxWindows (XRC and STC linking

From
"Darko Prenosil"
Date:
There is one more problem with acinclude.m4.

This is part of message that Vaclav Slavik (wxWindows guru) send to me:

>Are you sure about this? For one thing, "wx-config --libs --static"
>should output exactly same thing as "wx-config --libs" because
>--static must come before --libs. For another, it doesn't do this
>here neither with 2.4 nor on the trunk.

I tried it, and this is true !
Those two are same only if You compile wxWindows with --disable-shared, so
static is forced.

Regards !