User forums > General (but related to Code::Blocks)
Building CB - bleeding edge - gcc49 wxW30
digifuzzy:
--- Quote from: stahta01 on May 04, 2014, 06:16:18 pm ---Edit2: From wx/setup_inc.h WX_3_0_BRANCH svn 76442
Edit3: Never edit wx/setup_inc.h unless you are making or testing a patch to submit to the wxWidgets dev team!
--- End quote ---
wow...
All I did was a git clone and and configure. No hand editing of files involved. I understand your point. wxWidgets Tags doesn't show a release 3.0 or a 3.1 tag. The latest tag from the url is WX_3_0_0 @ change 75176. I have the latest from git and pasted the output of configure to point out that wx28_compat was not explicitly called out and appeared disabled.
--- Quote from: stahta01 on May 04, 2014, 06:16:18 pm ---
--- Code: ---// This setting determines the compatibility with 2.8 API: set it to 0 to
// flag all cases of using deprecated functions.
//
// Default is 1 but please try building your code with 0 as the default will
// change to 0 in the next version and the deprecated functions will disappear
// in the version after it completely.
--- End code ---
--- End quote ---
From the code snippet you included, not having wx28 compatibility appears to be "expected behaviour" as it is not the next-to-latest build.
--- Quote from: stahta01 on May 04, 2014, 06:16:18 pm ---Can you NOT tell the difference between 3.1 and 3.0?
--- End quote ---
I can build against the non-git, downloaded release. Would that alleviate your concerns?
Again, I posted what I had done as using the latest (bleeding edge).
wxWidgets people are making commits to the WX_3_0_0 tag at the moment. And there is no WX_3_1_0 tag right now (assume everything is latest from trunk).
Jenna:
I just build wxWidgets (newest trunk) with gcc 4.9 and C::B against it (also gcc 4.9) without errors, just the known deprectaion warnings.
All on Fedora 21 (Rawhide) with newest updates.
So it's not the combination of gcc 4.9, wx-trunk and newest C::B, it must be something different, which leads to the error.
digifuzzy:
--- Quote from: jens on May 05, 2014, 01:24:44 am ---I just build wxWidgets (newest trunk) with gcc 4.9 and C::B against it (also gcc 4.9) without errors, just the known deprectaion warnings.
All on Fedora 21 (Rawhide) with newest updates.
So it's not the combination of gcc 4.9, wx-trunk and newest C::B, it must be something different, which leads to the error.
--- End quote ---
Then I must be using different configure flags which are causing the errors.
Will go back to the build src page and try again.
Details to follow.
digifuzzy:
I must not be using the same flags as Jens. I keep getting hung up in the complile.
I have tried:
--enable--precomp-headers (worked in gcc4.8 build)
--disable-optimize (used in Arch wxgtk 2.8 build)
--enable-compat28 (had to try it)
Each build starts with a clean distribution before autogen/bootstrap, configure, make
wxWidgets will build without error.
CB will halt with the message:
--- Code: ---libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/opt/wx30/lib/wx/include/gtk2-unicode-3.1 -I/opt/wx30/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I../../../src/include -I../../../src/sdk/wxscintilla/include -I../../../src/include/mozilla_chardet -I../../../src/include/mozilla_chardet/mfbt -I../../../src/include/mozilla_chardet/nsprpub/pr/include -I../../../src/include/mozilla_chardet/xpcom -I../../../src/include/mozilla_chardet/xpcom/base -I../../../src/include/mozilla_chardet/xpcom/glue -ansi -DTIXML_USE_STL -O2 -ffast-math -DCB_AUTOCONF -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT parser/expression.lo -MD -MP -MF parser/.deps/expression.Tpo -c parser/expression.cpp -fPIC -DPIC -o parser/.libs/expression.o
/bin/sh ../../../libtool --tag=CXX --mode=link g++ -O2 -ffast-math -DCB_AUTOCONF -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -module -version-info 0:1:0 -shared -no-undefined -avoid-version -Wl,--no-undefined -o libcodecompletion.la -rpath /opt/cb/lib/codeblocks/plugins ccoptionsdlg.lo ccoptionsprjdlg.lo cctreectrl.lo classbrowser.lo classbrowserbuilderthread.lo codecompletion.lo coderefactoring.lo doxygen_parser.lo insertclassmethoddlg.lo nativeparser.lo nativeparser_base.lo selectincludefile.lo systemheadersthread.lo parser/ccdebuginfo.lo parser/cclogger.lo parser/parser.lo parser/parserthread.lo parser/parserthreadedtask.lo parser/profiletimer.lo parser/token.lo parser/tokenizer.lo parser/tokentree.lo parser/searchtree.lo parser/expression.lo ../../sdk/libcodeblocks.la -L/opt/wx30/lib -pthread -lwx_gtk2u-3.1 -lpthread -ldl
libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../lib/crti.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/crtbeginS.o .libs/ccoptionsdlg.o .libs/ccoptionsprjdlg.o .libs/cctreectrl.o .libs/classbrowser.o .libs/classbrowserbuilderthread.o .libs/codecompletion.o .libs/coderefactoring.o .libs/doxygen_parser.o .libs/insertclassmethoddlg.o .libs/nativeparser.o .libs/nativeparser_base.o .libs/selectincludefile.o .libs/systemheadersthread.o parser/.libs/ccdebuginfo.o parser/.libs/cclogger.o parser/.libs/parser.o parser/.libs/parserthread.o parser/.libs/parserthreadedtask.o parser/.libs/profiletimer.o parser/.libs/token.o parser/.libs/tokenizer.o parser/.libs/tokentree.o parser/.libs/searchtree.o parser/.libs/expression.o -Wl,-rpath -Wl,/home/scottfurry/localbuild/SRCs/codeblocks/codeblocks-code/src/sdk/.libs -Wl,-rpath -Wl,/opt/cb/lib ../../sdk/.libs/libcodeblocks.so -L/opt/wx30/lib -lwx_gtk2u-3.1 -lpthread -ldl -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0 -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/crtfastmath.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/crtendS.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../lib/crtn.o -O2 -Wl,--no-undefined -pthread -pthread -Wl,-soname -Wl,libcodecompletion.so -o .libs/libcodecompletion.so
.libs/codecompletion.o: In function `CodeCompletion::FindFunctionAndUpdate(int)':
codecompletion.cpp:(.text+0x256a): undefined reference to `wxCommandEvent::Clone() const'
collect2: error: ld returned 1 exit status
--- End code ---
Must be some wx flag I'm not setting in configure.
Looking in ./src/plugins/codecompletion/codecompletion.cpp function FindFunctionAndUpdate, I see a pretty standard custom event setup:
--- Code: --- choice->SetStringSelection(g_GlobalScope);
wxCommandEvent evt(wxEVT_COMMAND_CHOICE_SELECTED, XRCID("chcCodeCompletionScope"));
wxPostEvent(this, evt);
--- End code ---
And this shouldn't cause problems. Will dig some more. Something will jump out at me.
Edit: one thing did...code completion is a plugin. I have --with-contrib-plugins=all set during CB configure.
Edit: configured with --disable-code-completion - build failed during linking - same error.
--- Code: ---/bin/sh ../../libtool --tag=CXX --mode=link g++ -O2 -ffast-math -DCB_AUTOCONF -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -Wl,--no-undefined -o codeblocks app.o appglobals.o backtracedlg.o breakpointsdlg.o compilersettingsdlg.o cpuregistersdlg.o crashhandler.o debugger_interface_creator.o debuggermenu.o debuggersettingscommonpanel.o debuggersettingsdlg.o debuggersettingspanel.o disassemblydlg.o dlgabout.o dlgaboutplugin.o editkeywordsdlg.o editorconfigurationdlg.o environmentsettingsdlg.o examinememorydlg.o find_replace.o infopane.o main.o notebookstyles.o prefix.o printdlg.o projectmanagerui.o projectdepsdlg.o projectoptionsdlg.o recentitemslist.o scriptconsole.o scriptingsettingsdlg.o splashscreen.o startherepage.o switcherdlg.o threadsdlg.o virtualbuildtargetsdlg.o watchesdlg.o ../sdk/libcodeblocks.la -L/opt/wx30/lib -pthread -lwx_gtk2u_aui-3.1 -lwx_gtk2u_propgrid-3.1 -lwx_gtk2u_richtext-3.1 -lwx_gtk2u_xrc-3.1 -lwx_gtk2u_webview-3.1 -lwx_gtk2u_html-3.1 -lwx_gtk2u_qa-3.1 -lwx_gtk2u_adv-3.1 -lwx_gtk2u_core-3.1 -lwx_baseu_xml-3.1 -lwx_baseu_net-3.1 -lwx_baseu-3.1 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lpthread -ldl
libtool: link: g++ -O2 -ffast-math -DCB_AUTOCONF -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -Wl,--no-undefined -o .libs/codeblocks app.o appglobals.o backtracedlg.o breakpointsdlg.o compilersettingsdlg.o cpuregistersdlg.o crashhandler.o debugger_interface_creator.o debuggermenu.o debuggersettingscommonpanel.o debuggersettingsdlg.o debuggersettingspanel.o disassemblydlg.o dlgabout.o dlgaboutplugin.o editkeywordsdlg.o editorconfigurationdlg.o environmentsettingsdlg.o examinememorydlg.o find_replace.o infopane.o main.o notebookstyles.o prefix.o printdlg.o projectmanagerui.o projectdepsdlg.o projectoptionsdlg.o recentitemslist.o scriptconsole.o scriptingsettingsdlg.o splashscreen.o startherepage.o switcherdlg.o threadsdlg.o virtualbuildtargetsdlg.o watchesdlg.o -pthread ../sdk/.libs/libcodeblocks.so -L/opt/wx30/lib -lwx_gtk2u_aui-3.1 -lwx_gtk2u_propgrid-3.1 -lwx_gtk2u_richtext-3.1 -lwx_gtk2u_xrc-3.1 -lwx_gtk2u_webview-3.1 -lwx_gtk2u_html-3.1 -lwx_gtk2u_qa-3.1 -lwx_gtk2u_adv-3.1 -lwx_gtk2u_core-3.1 -lwx_baseu_xml-3.1 -lwx_baseu_net-3.1 -lwx_baseu-3.1 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lpthread -ldl -pthread -Wl,-rpath -Wl,/opt/cb/lib
/opt/wx30/lib/libwx_gtk2u_propgrid-3.1.so: undefined reference to `wxCommandEvent::Clone() const'
--- End code ---
stahta01:
I strongly suspect you have a broken wxWidgets installation.
(You might only have a bad Precompiled header (PCH/gch) file.)
Do you do an make uninstall before each make install?
NOTE: I have learned that wxWidgets does a very poor job of MonoLib versus MultiLib builds.
So, I use "/opt/wx/multilib" and "/opt/wx/monolib" when doing MSys configure build on windows.
I suggest building wxWidgets "samples/event" code to verify your wxWidgets is valid.
Tim S.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version