From: klaas.holwerda <kho...@xs...> - 2006-10-21 08:08:37
|
Hi, I am trying to compile and link wxstedit ( as from CVS ). Can somebody confirm it compile and links? ( ./configure make make install ) But it does not link the sample. And it looks the linking line is wrong and what i see build in ./lib, looks unicode lib, which i don't understand, because i don't have that one compiled on wxWidgets. Down here all i can think of. What can be wrong? ( BTW wxLua does compile and link, of course without wxstedit, but it does find styled text control etc. So i think my wxWidgets install is fine) Klaas [klaas@localhost wxstedit]$ wx-config --libs -L/usr/local/lib -pthread /usr/local/lib/libwx_gtk2d_xrc-2.6.a /usr/local/lib/libwx_gtk2d_qa-2.6.a /usr/local/lib/libwx_gtk2d_html-2.6.a /usr/local/lib/libwx_gtk2d_adv-2.6.a /usr/local/lib/libwx_gtk2d_core-2.6.a /usr/local/lib/libwx_based_xml-2.6.a /usr/local/lib/libwx_based_net-2.6.a /usr/local/lib/libwx_based-2.6.a -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 -lexpat -lz -ldl -lm ---------------------------------------------------------------- Configuration for MYCOMP 1.0 successfully completed. Summary of main configuration settings for MYCOMP: - DEBUG build - ANSI mode - STATIC mode The wxWidgets build which will be used by MYCOMP 1.0 has the following settings: - DEBUG build - ANSI mode - STATIC mode - VERSION: 2.6.3 - PORT: gtk (with GTK+ 2.x) Now, just run make. ---------------------------------------------------------------- [klaas@localhost wxstedit]$ ls ./lib CVS libwx_gtk2ud_stedit-2.6.a Readme.txt [klaas@localhost wxstedit]$ make g++ -o samples/stedit/wxstedit wxstedit_wxstedit.o -L./lib -L./lib -L/usr/local/lib -pthread /usr/local/lib/libwx_gtk2d_core-2.6.a /usr/local/lib/libwx_based-2.6.a -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_gtk2ud_stedit-2.6 wxstedit_wxstedit.o: In function `wxStEditApp::CreateShell()': ././samples/stedit/wxstedit.cpp:436: undefined reference to `wxStyledTextCtrl::TextWidth(int, wxString const&)' wxstedit_wxstedit.o: In function `wxStEditApp::OnMenuEvent(wxCommandEvent&)': ././samples/stedit/wxstedit.cpp:457: undefined reference to `wxHtmlWindow::SetPage(wxString const&)' ././samples/stedit/wxstedit.cpp:471: undefined reference to `wxHtmlWindow::SetPage(wxString const&)' wxstedit_wxstedit.o: In function `wxHtmlWindow': /usr/local/include/wx-2.6/wx/html/htmlwin.h:77: undefined reference to `vtable for wxHtmlWindow' /usr/local/include/wx-2.6/wx/html/htmlwin.h:78: undefined reference to `wxHtmlWindow::Init()' /usr/local/include/wx-2.6/wx/html/htmlwin.h:79: undefined reference to `wxHtmlWindow::Create(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&)' wxstedit_wxstedit.o: In function `wxStyledTextCtrl': /usr/local/include/wx-2.6/wx/stc/stc.h:1758: undefined reference to `vtable for wxStyledTextCtrl' wxstedit_wxstedit.o: In function `wxSTEditor': |
From: John L. <jla...@gm...> - 2006-10-21 15:35:54
|
Humm, this is probably a problem with the bakefile generated configure. I can look into it on sunday, but until then, try using the Makefiles in the src and samples/stedit dir. I do try to keep it working in 2.6.3, but I typically comile with wxWidgets CVS head. I'll get bacck to you on sunday, John Labenski On 10/21/06, klaas.holwerda <kho...@xs...> wrote: > Hi, > > I am trying to compile and link wxstedit ( as from CVS ). > > Can somebody confirm it compile and links? ( ./configure make make install ) > > But it does not link the sample. And it looks the linking line is wrong > and what i see build in ./lib, looks unicode lib, which i don't > understand, because i don't have that one compiled on wxWidgets. > > Down here all i can think of. What can be wrong? > > ( BTW wxLua does compile and link, of course without wxstedit, but it > does find styled text control etc. > So i think my wxWidgets install is fine) > > Klaas > > [klaas@localhost wxstedit]$ wx-config --libs > -L/usr/local/lib -pthread /usr/local/lib/libwx_gtk2d_xrc-2.6.a > /usr/local/lib/libwx_gtk2d_qa-2.6.a > /usr/local/lib/libwx_gtk2d_html-2.6.a > /usr/local/lib/libwx_gtk2d_adv-2.6.a > /usr/local/lib/libwx_gtk2d_core-2.6.a > /usr/local/lib/libwx_based_xml-2.6.a > /usr/local/lib/libwx_based_net-2.6.a /usr/local/lib/libwx_based-2.6.a > -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 -lexpat -lz -ldl -lm > > > ---------------------------------------------------------------- > Configuration for MYCOMP 1.0 successfully completed. > Summary of main configuration settings for MYCOMP: > - DEBUG build > - ANSI mode > - STATIC mode > > The wxWidgets build which will be used by MYCOMP 1.0 > has the following settings: > - DEBUG build > - ANSI mode > - STATIC mode > - VERSION: 2.6.3 > - PORT: gtk (with GTK+ 2.x) > > Now, just run make. > ---------------------------------------------------------------- > [klaas@localhost wxstedit]$ ls ./lib > CVS libwx_gtk2ud_stedit-2.6.a Readme.txt > > > [klaas@localhost wxstedit]$ make > g++ -o samples/stedit/wxstedit wxstedit_wxstedit.o -L./lib > -L./lib -L/usr/local/lib -pthread > /usr/local/lib/libwx_gtk2d_core-2.6.a /usr/local/lib/libwx_based-2.6.a > -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_gtk2ud_stedit-2.6 > wxstedit_wxstedit.o: In function `wxStEditApp::CreateShell()': > ././samples/stedit/wxstedit.cpp:436: undefined reference to > `wxStyledTextCtrl::TextWidth(int, wxString const&)' > wxstedit_wxstedit.o: In function > `wxStEditApp::OnMenuEvent(wxCommandEvent&)': > ././samples/stedit/wxstedit.cpp:457: undefined reference to > `wxHtmlWindow::SetPage(wxString const&)' > ././samples/stedit/wxstedit.cpp:471: undefined reference to > `wxHtmlWindow::SetPage(wxString const&)' > wxstedit_wxstedit.o: In function `wxHtmlWindow': > /usr/local/include/wx-2.6/wx/html/htmlwin.h:77: undefined reference to > `vtable for wxHtmlWindow' > /usr/local/include/wx-2.6/wx/html/htmlwin.h:78: undefined reference to > `wxHtmlWindow::Init()' > /usr/local/include/wx-2.6/wx/html/htmlwin.h:79: undefined reference to > `wxHtmlWindow::Create(wxWindow*, int, wxPoint const&, wxSize const&, > long, wxString const&)' > wxstedit_wxstedit.o: In function `wxStyledTextCtrl': > /usr/local/include/wx-2.6/wx/stc/stc.h:1758: undefined reference to > `vtable for wxStyledTextCtrl' > wxstedit_wxstedit.o: In function `wxSTEditor': > > > > ------------------------------------------------------------------------- > 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 > wxC...@li... > https://lists.sourceforge.net/lists/listinfo/wxcode-users > |
From: Francesco M. <f18...@ya...> - 2006-10-21 17:10:26
|
klaas.holwerda ha scritto: > Hi, > > I am trying to compile and link wxstedit ( as from CVS ). > > Can somebody confirm it compile and links? ( ./configure make make install ) when trying to compile with latest CVS I get: ./bk-deps g++ -c -o stedit_lib_stestyls.o -I./include -I/contrib/include -I/usr/local/lib/wx/include/gtk2-ansi-debug-static-2.7 -I/usr/local/include/wx-2.7 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXGTK__ -pthread -g3 -O0 -Wall -Wundef -Wno-ctor-dtor-privacy ././src/stestyls.cpp ././src/stestyls.cpp: In member function ‘virtual void wxSTEditorStyles::UpdateEditor(wxSTEditor*)’: ././src/stestyls.cpp:678: error: ‘class wxSTEditor’ has no member named ‘SetCaretLineBack’ but that maybe because I'm using CVS HEAD of wxWidgets... > But it does not link the sample. And it looks the linking line is wrong > and what i see build in ./lib, looks unicode lib, which i don't > understand, because i don't have that one compiled on wxWidgets. that seems a problem not in configure but in the makefiles since the configure script recognized an ANSI wx build... > /usr/local/lib/libwx_gtk2d_core-2.6.a /usr/local/lib/libwx_based-2.6.a > -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_gtk2ud_stedit-2.6 > /usr/local/include/wx-2.6/wx/html/htmlwin.h:78: undefined reference to > `wxHtmlWindow::Init()' looking at this error and at the linking line I'd guess the <wx-lib>html</wx-lib> tag is missing somewhere... try to add the wx html library manually to the makefile... Francesco |
From: John L. <jla...@gm...> - 2006-10-23 14:44:25
|
On 10/21/06, Francesco Montorsi <f18...@ya...> wrote: > klaas.holwerda ha scritto: > > Hi, > > > > I am trying to compile and link wxstedit ( as from CVS ). > > > > Can somebody confirm it compile and links? ( ./configure make make install ) > when trying to compile with latest CVS I get: > > ./bk-deps g++ -c -o stedit_lib_stestyls.o -I./include > -I/contrib/include > -I/usr/local/lib/wx/include/gtk2-ansi-debug-static-2.7 > -I/usr/local/include/wx-2.7 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES > -D__WXDEBUG__ -D__WXGTK__ -pthread -g3 -O0 -Wall -Wundef > -Wno-ctor-dtor-privacy ././src/stestyls.cpp > ././src/stestyls.cpp: In member function 'virtual void > wxSTEditorStyles::UpdateEditor(wxSTEditor*)': > ././src/stestyls.cpp:678: error: 'class wxSTEditor' has no member named > 'SetCaretLineBack' > > but that maybe because I'm using CVS HEAD of wxWidgets... Yes, the CVS version of wxStEdit has am ifdef for this. I'll do a release today. > > But it does not link the sample. And it looks the linking line is wrong > > and what i see build in ./lib, looks unicode lib, which i don't > > understand, because i don't have that one compiled on wxWidgets. > that seems a problem not in configure but in the makefiles since the > configure script recognized an ANSI wx build... This was a hack I hand coded into the configure script for myself, a long time ago. You made some changes to the bakefiles to generate differently named libs (thanks) a month or two ago and though I updated the bakefiles, I forgot to run bakefile_gen for the wxstedit project. Regards, John Labenski |
From: klaas.holwerda <kho...@xs...> - 2006-10-21 22:35:33
|
klaas.holwerda wrote: > Hi, > > I am trying to compile and link wxstedit ( as from CVS ). > I eventually downloaded wxstedit1.2.1, which did compile with 2.6.3. But did succeed not with wxLua, but a small change ( already in CVS ) which is in wxstedit.h did make it compile. Linking to stedit.lib i somehow made it go all the way. I tried several things with CVS wxstedit, but gave up. On windows i remember i needed to have the lattest CVS version of both wxLua and wxStedit. I think it would be nice to have a wxstedit download which works with the latest wxLua CVS, and the official wxWidgets2.6.3. Maybe CVS is to much on the move? But the download of wxstedit, also is not working for wxLua out of the box. I wonder which wxCode project is a good test case, which does compile right away, i have tried to find one, but gave up. I am sorry i can only test. wxWidgets moving and changing in the way it is configured i get lost. Thanks, klaas |
From: John L. <jla...@gm...> - 2006-10-23 14:40:36
|
I forgot to rerun bakefile_gen in wxStEdit! Please try the CVS version of it and it should work out of the box. *hopefully* Just so you know, my test machines are : Win2k w/ MSVS2005 GUI using dsw/dsp files : wxWidgets 2.6 CVS Linux gcc using src/Makefiles : wxWidgets CVS HEAD I should switch over to using the configure Makefiles. On 10/21/06, klaas.holwerda <kho...@xs...> wrote: > klaas.holwerda wrote: > > I am trying to compile and link wxstedit ( as from CVS ). This is what I use, I will make a release later today. > I eventually downloaded wxstedit1.2.1, which did compile with 2.6.3. > But did succeed not with wxLua, but a small change ( already in CVS ) > which is in wxstedit.h did make it compile. > Linking to stedit.lib i somehow made it go all the way. > > I tried several things with CVS wxstedit, but gave up. > On windows i remember i needed to have the lattest CVS version of both > wxLua and wxStedit. This is best, as the builds for both have been changed. I will put some compile-time checks into wxLuaEdit to make sure that the version of wxStEdit is right too. > I wonder which wxCode project is a good test case, which does compile > right away, i have tried to find one, but gave up. I don't know. wxStEdit should compile out of the box. :) > I am sorry i can only test. wxWidgets moving and changing in the way it > is configured i get lost. It's hard to follow, and hard to keep 2.6.x and 2.7.x working together in the code. wxWidgets 2.8 should be out by the end of the year, so with your fingers crossed we can keep everything working until then. Let me know if this works for you, John Labenski |