News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

rev 8107 Ubuntu build error

Started by LarsPensjo, July 14, 2012, 09:01:27 AM

Previous topic - Next topic

LarsPensjo

I get the following compilation error:

debuggersettingscommonpanel.o: In function `wxCheckBoxBase::DoGet3StateValue() const':
debuggersettingscommonpanel.cpp:(.text._ZNK14wxCheckBoxBase16DoGet3StateValueEv[wxCheckBoxBase::DoGet3StateValue() const]+0x22): undefined reference to `wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*)'

MortenMacFly

Quote from: LarsPensjo on July 14, 2012, 09:01:27 AM
(.text._ZNK14wxCheckBoxBase16DoGet3StateValueEv[wxCheckBoxBase::DoGet3StateValue() const]+0x22): undefined reference to `wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*)'
Don't mix wxWidgets debug with wxWidgets release libs.

Next time,. please post the full build log. Such snippets are usually not helpful at all.
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]

LarsPensjo

Quote from: MortenMacFly on July 14, 2012, 10:30:49 AM
Quote from: LarsPensjo on July 14, 2012, 09:01:27 AM
(.text._ZNK14wxCheckBoxBase16DoGet3StateValueEv[wxCheckBoxBase::DoGet3StateValue() const]+0x22): undefined reference to `wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*)'
Don't mix wxWidgets debug with wxWidgets release libs.

Next time,. please post the full build log. Such snippets are usually not helpful at all.

Thank you, now it compiles!

After doing "sudo make install", I get the following error:
~/src/codeblocks$ which codeblocks
/usr/local/bin/codeblocks
~/src/codeblocks$ codeblocks
codeblocks: symbol lookup error: codeblocks: undefined symbol: _ZTI14cbBacktraceDlg


I did have CB 10.05 installed first, but uninstalled it before doing the "sudo make install".

LarsPensjo

I can run CB using codeblocks/src/src/codeblocks from the source folder, but /usr/local/bin/codeblocks doesn't work.

I can also run CB using codeblocks/src/src/.libs/lt-codeblocks. It seems the codeblocks/src/src/codeblocks is a shell script that runs the lt-file eventually. But the file in /usr/local/bin is not the lt-file, it is a copy of the codeblocks/src/src/.libs/codeblocks

If I copy the lt-file to /usr/local/bin/codeblocks, then everything is fine. Did the "make install" go wrong somewhere? Or did I fail to follow some instruction?

MortenMacFly

Quote from: LarsPensjo on July 14, 2012, 11:11:29 AM

codeblocks: symbol lookup error: codeblocks: undefined symbol: _ZTI14cbBacktraceDlg

I did have CB 10.05 installed first, but uninstalled it before doing the "sudo make install".
It seems you did not un-install it completely, including its dependencies. This dialog came after 10/05. I Don't know your system and what you did exactly, all I can tell is that you are mixing two incompatible Code::Blocks libraries now. Why don't you simply use the Ubuntu packages provided via the nightlies? This will avoid such hassle if you don't exactly know what you are doing...
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]

LarsPensjo

Quote from: MortenMacFly on July 14, 2012, 01:12:11 PM
Why don't you simply use the Ubuntu packages provided via the nightlies? This will avoid such hassle if you don't exactly know what you are doing...

Of, I didn't know there was one. But I found it in the wiki now.

Thanks for an excellent IDE!

I wish you could release an official update soon...