News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Building C::B

Started by Auria, February 22, 2007, 02:09:26 AM

Previous topic - Next topic

Auria

Hi, i'm trying to build C::B but i'm hitting a issue.

I have both wx 2.6.3 and 2.8.0 installed. Since Code::Blocks doesn't yet support 2.8.0, i made sure all wx-config's pointed to wxWidget 2.6.3.

However, i still get this:

startherepage.o: In function `wxScrolledWindow::Layout()':/usr/local/include/wx-2.8/wx/scrolwin.h:297: undefined reference to `wxScrollHelper::ScrollLayout()'
startherepage.o: In function `wxScrolledWindow::DoSetVirtualSize(int, int)':/usr/local/include/wx-2.8/wx/scrolwin.h:297: undefined reference to `wxScrollHelper::ScrollDoSetVirtualSize(int, int)'
startherepage.o: In function `wxScrolledWindow::GetBestVirtualSize() const':/usr/local/include/wx-2.8/wx/scrolwin.h:297: undefined reference to `wxScrollHelper::ScrollGetBestVirtualSize() const'

So my question is, where does C::B get its headers paths for wx, and how can i point it to wxWidgets 2.6 ??

(I also tried with wxWidgets 2.8 but i go too many errors with odcombo.cpp)

MortenMacFly

Quote from: Auria on February 22, 2007, 02:09:26 AM
Since Code::Blocks doesn't yet support 2.8.0, [...]
What makes you say so? The current nightlies do (thanks Biplabs nice wizard).
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

stahta01

Quote from: MortenMacFly on February 22, 2007, 04:29:45 PM
Quote from: Auria on February 22, 2007, 02:09:26 AM
Since Code::Blocks doesn't yet support 2.8.0, [...]
What makes you say so? The current nightlies do (thanks Biplabs nice wizard).
With regards, Morten.

I don't think he meant using wx28 to build a project. I think he meant building C::B that links against wx28.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

MortenMacFly

Quote from: stahta01 on February 22, 2007, 05:17:30 PM
I don't think he meant using wx28 to build a project.
Ooops... my fault. :oops:
Well... what does wx-config --cxxflags give you???
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Der Meister

You probably should add "--with-wx-config=wx-config-2.6" as option when invoking the configure-script. ;)
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Auria

#5
Quote from: MortenMacFly on February 22, 2007, 05:48:32 PM
Well... what does wx-config --cxxflags give you???
With regards, Morten.

wx-config --cppflags
-I/usr/local/lib/wx/include/gtk2-ansi-release-2.6 -I/usr/local/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA

This is what i find weird :/ there were files included from wx-2.8, yet all flags point to wx-2.6

QuoteYou probably should add "--with-wx-config=wx-config-2.6" as option when invoking the configure-script. Wink

Thanks that's what i was looking for :D

Quote
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindowBase::DoCentre(int)'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindowBase::GetWindowBorderSize() const'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `vtable for wxColourBase'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindow::GTKProcessEvent(wxEvent&) const'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindowBase::IsShownOnScreen() const'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindow::GetLayoutDirection() const'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindow::ScrollPages(int)'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxStaticText::GTKWidgetNeedsMnemonic() const'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindow::DoIsExposed(int, int, int, int) const'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindow::DoIsExposed(int, int) const'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindowBase::GetHelpTextAtPoint(wxPoint const&, wxHelpEvent::Origin) const'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindow::AdjustForLayoutDirection(int, int, int) const'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindow::ScrollLines(int)'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindow::SetWindowStyleFlag(long)'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxStockGDI::GetColour(wxStockGDI::Item)'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindow::GTKWidgetDoSetMnemonic(_GtkWidget*)'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindow::IsDoubleBuffered() const'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindowBase::SetInitialSize(wxSize const&)'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxControlBase::DoUpdateWindowUI(wxUpdateUIEvent&)'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindow::SetLayoutDirection(wxLayoutDirection)'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindow::GTKWidgetNeedsMnemonic() const'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxDateTime::GetTmNow(tm*)'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindowBase::DoGetScreenPosition(int*, int*) const'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxXmlResourceHandler::IsOfClass(wxXmlNode*, wxString const&)'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxControl::OnInternalIdle()'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxWindow::GTKGetWindow(wxArrayGdkWindows&) const'
/home/mmg/Desktop/CodeBlocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxStaticText::GTKWidgetDoSetMnemonic(_GtkWidget*)'

:( What can that mean?

-L/usr/local/lib -pthread   -lwx_gtk2_xrc-2.6 -lwx_gtk2_qa-2.6 -lwx_gtk2_html-2.6 -lwx_gtk2_adv-2.6 -lwx_gtk2_core-2.6 -lwx_base_xml-2.6 -lwx_base_net-2.6 -lwx_base-2.6

MortenMacFly

Quote from: Auria on February 22, 2007, 10:36:51 PM
:( What can that mean?
It could mean that some files were compiled using the wx280 headers and still present, for example pre-compiled headers (did you do a full "make clean-zipfiles; make clean-bin; make clean"?). Try a full clean checkout and  compilation (including bootstrap and stuff...). The best would be to completely remove your old sandbox.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Auria

#7
Quote from: MortenMacFly on February 23, 2007, 11:13:15 AM
Quote from: Auria on February 22, 2007, 10:36:51 PM
:( What can that mean?
It could mean that some files were compiled using the wx280 headers and still present, for example pre-compiled headers (did you do a full "make clean-zipfiles; make clean-bin; make clean"?). Try a full clean checkout and  compilation (including bootstrap and stuff...). The best would be to completely remove your old sandbox.
With regards, Morten.

woot it worked!!! Had been trying for a very long time to get codeblocks working! many thanks to you all