On 10/23/06, klaas.holwerda <[EMAIL PROTECTED]> wrote:
> Hi John,
>
> I did get the lattest CVS ( removed wxstedit and updated it clean. ).
> Did run ./configure and make.
> This is what i get down here. I am not sure if setup0.h needs to be
> copied on unix to setup.h, but in any case the result seems to be the same.
> Wait for 2.8.0 ? :-(

No, it should work, I just compiled it using wxWidgets 2.6.x (but from
the CVS 2.6 branch though) and it compiles fine using GTK2, unicode,
and shared libs (not static).

> checking for wxWidgets version >= 2.4.0... yes (version 2.6.3)
> checking if wxGTK uses GTK 2.x (instead of GTK 1.x)... yes
...
> The wxWidgets build which will be used by wxstedit 1.2.3
> has the following settings:
> - DEBUG build
> - ANSI mode
> - STATIC mode
> - VERSION: 2.6.3
> - PORT: gtk (with GTK+ 2.x)
>
> Now, just run make.
> ----------------------------------------------------------------
>
> [EMAIL PROTECTED] wxstedit]$ make
> ./bk-deps g++ -c -o stedit_lib_stedit.o -I./include -I/contrib/include
> -I/usr/local/lib/wx/include/gtk2-ansi-debug-static-2.6
> -I/usr/local/include/wx-2.6 -D__WXDEBUG__ -D__WXGTK__
> -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -g3 -O0 -Wall
> -Wundef -Wno-ctor-dtor-privacy ././src/stedit.cpp
...
> rm -f lib/libwx_gtk2d_stedit-2.6.a
> ar rcu lib/libwx_gtk2d_stedit-2.6.a stedit_lib_stedit.o
> stedit_lib_stedlgs.o stedit_lib_stedlgs_wdr.o stedit_lib_steexprt.o
> stedit_lib_stefindr.o stedit_lib_steframe.o stedit_lib_stelangs.o
> stedit_lib_stemenum.o stedit_lib_stenoteb.o stedit_lib_steopts.o
> stedit_lib_steprefs.o stedit_lib_steprint.o stedit_lib_steshell.o
> stedit_lib_stesplit.o stedit_lib_stestyls.o
> ranlib lib/libwx_gtk2d_stedit-2.6.a

Ok, your lib built fine.

> ./bk-deps g++ -c -o wxstedit_wxstedit.o -I./include -I/contrib/include
> -I/usr/local/lib/wx/include/gtk2-ansi-debug-static-2.6
> -I/usr/local/include/wx-2.6 -D__WXDEBUG__ -D__WXGTK__
> -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -g3 -O0 -Wall
> -Wundef -Wno-ctor-dtor-privacy ././samples/stedit/wxstedit.cpp
> g++ -o samples/stedit/wxstedit wxstedit_wxstedit.o -L./lib -L./lib
> -L/usr/local/lib -pthread /usr/local/lib/libwx_based-2.6.a
> /usr/local/lib/libwx_gtk2d_core-2.6.a
> /usr/local/lib/libwx_gtk2d_adv-2.6.a
> /usr/local/lib/libwx_gtk2d_html-2.6.a
> /usr/local/lib/libwx_gtk2d_stc-2.6.a
> /usr/local/lib/libwx_gtk2d_core-2.6.a /usr/local/lib/libwx_based-2.6.a
> -pthread -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
> -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0
> -lXinerama -lXxf86vm -lpng -ljpeg -ltiff -lz -ldl -lm -lwx_gtk2d_stedit-2.6

I don't see any errors from not finding the libs, so I don't
understand the problem. Do all these libs exist? Try this in the
wxWidgets lib dir to see if you have this symbol in any of them.

$grep wxSpinCtrl *.a

> ./lib/libwx_gtk2d_stedit-2.6.a(stedit_lib_stedit.o): In function
> `__static_initialization_and_destruction_0':
> ././src/stedit.cpp:175: undefined reference to `wxEVT_COMMAND_FIND'
> ././src/stedit.cpp:175: undefined reference to `wxEVT_COMMAND_FIND_NEXT'
> ././src/stedit.cpp:175: undefined reference to `wxEVT_COMMAND_FIND_REPLACE'
> ././src/stedit.cpp:175: undefined reference to
> `wxEVT_COMMAND_FIND_REPLACE_ALL'
> ././src/stedit.cpp:175: undefined reference to `wxEVT_COMMAND_FIND_CLOSE'
> ./lib/libwx_gtk2d_stedit-2.6.a(stedit_lib_stedit.o): In function
> `wxSTEditor::ShowGotoLineDialog()':
> ././src/stedit.cpp:3539: undefined reference to
> `wxGetNumberFromUser(wxString const&, wxString const&, wxString const&,
> long, long, long, wxWindow*, wxPoint const&)'

These are all pretty generic wxWidgets things that are part of core,
base, or adv (dunno which, but they're definitely in one of them). I
can't understand why there would be a problem? I use shared libs by
the way.

> ././src/stedlgs.cpp:206: undefined reference to `wxSpinCtrl::ms_classInfo'
> ./lib/libwx_gtk2d_stedit-2.6.a(stedit_lib_stedlgs_wdr.o): In function
> `wxSpinCtrl':

I know that this means that you're not linking to the compiled
wxSpinCtrl (later you have the same problem with the
wxSplitterWindow).  Where are these compiled to for you?

==============================

For example with my shared libs in the wxWidgets/lib dir

[EMAIL PROTECTED] lib]$ grep wxSpinCtrl *
Binary file libwx_gtk2ud_adv-2.6.so matches
Binary file libwx_gtk2ud_adv-2.6.so.0 matches
Binary file libwx_gtk2ud_adv-2.6.so.0.3.1 matches
Binary file libwx_gtk2ud_core-2.6.so matches
Binary file libwx_gtk2ud_core-2.6.so.0 matches
Binary file libwx_gtk2ud_core-2.6.so.0.3.1 matches
Binary file libwx_gtk2ud_html-2.6.so matches
Binary file libwx_gtk2ud_html-2.6.so.0 matches
Binary file libwx_gtk2ud_html-2.6.so.0.3.1 matches
Binary file libwx_gtk2ud_xrc-2.6.so matches
Binary file libwx_gtk2ud_xrc-2.6.so.0 matches
Binary file libwx_gtk2ud_xrc-2.6.so.0.3.1 matches

Ok, so it's in core and adv, html, xrc just reference it, the full
list of functions in wxSpinCtrl are actually in core

[EMAIL PROTECTED] lib]$ strings libwx_gtk2ud_core-2.6.so |grep wxSpinCtrl
_ZNK10wxSpinCtrl15UseGTKStyleBaseEv
_ZNK10wxSpinCtrl12GetClassInfoEv
_ZN10wxSpinCtrl12ms_classInfoE
_ZNK10wxSpinCtrl13GetEventTableEv
_ZN10wxSpinCtrl13sm_eventTableE
_ZNK10wxSpinCtrl17GetEventHashTableEv
_ZN10wxSpinCtrl17sm_eventHashTableE
_ZN10wxSpinCtrlD0Ev
_ZTV10wxSpinCtrl
_ZN10wxSpinCtrlD1Ev
_ZN10wxSpinCtrl14wxCreateObjectEv
_ZN10wxSpinCtrl20sm_eventTableEntriesE
_ZN10wxSpinCtrl6OnCharER10wxKeyEvent
_ZN10wxSpinCtrl25GetClassDefaultAttributesE15wxWindowVariant
_ZNK10wxSpinCtrl13DoGetBestSizeEv
_ZN10wxSpinCtrl14IsOwnGtkWindowEP12_GdkDrawable
_ZN10wxSpinCtrl8SetRangeEii
_ZN10wxSpinCtrl12SetSelectionEll
_ZNK10wxSpinCtrl8GetValueEv
_ZNK10wxSpinCtrl6GetMaxEv
_ZNK10wxSpinCtrl6GetMinEv
_ZN10wxSpinCtrl15GtkEnableEventsEv
_ZN10wxSpinCtrl16GtkDisableEventsEv
_ZN10wxSpinCtrl8SetValueEi
_ZN10wxSpinCtrl8SetValueERK8wxString
_ZN10wxSpinCtrl6CreateEP8wxWindowiRK8wxStringRK7wxPointRK6wxSizeliiiS4_
_ZN10wxSpinCtrlC1Ev
_ZTI10wxSpinCtrl
_ZTS10wxSpinCtrl
_ZN10wxSpinCtrlC1EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizeliiiS4_
@10wxSpinCtrl

This just shows the wxSpinCtrl functions called from somewhere in the adv lib.

[EMAIL PROTECTED] lib]$ strings libwx_gtk2ud_adv-2.6.so |grep wxSpinCtrl
_ZN10wxSpinCtrl8SetValueERK8wxString
_ZN10wxSpinCtrlC1EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizeliiiS4_
_ZTV10wxSpinCtrl
_ZN10wxSpinCtrl6CreateEP8wxWindowiRK8wxStringRK7wxPointRK6wxSizeliiiS4_
_ZN10wxSpinCtrl12SetSelectionEll

Regards,
     John Labenski

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
wxCode-users mailing list
wxCode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxcode-users

Reply via email to