User forums > Help
How to install codeblocks on raspberry pi 4?
MBajor:
As I understand, there is no binary release of codeblocks 20.03 for the arm architecture.
Unfortunately, all my attempts to build wxGTK-2.8.12 failed. Because wxGTK-2.8.12 requires gtk+-2.8.0 which is no longer supported by the "sudo apt-get install -y libwxgtk2.8-dev" command. Attempts to build gtk+-2.8.0 also failed.
wxWidgets 3.1.4 are installed normally but I can't build a codeblocks on wxWidgets 3.1.4.
Does anyone have any idea how to install a code block on the arm architecture (Raspberry pi os)?
AndrewCot:
I suggest having a read in the forum for the following search results "wxWidgets 3.1.4" to see if/how you can use wxWidgets 3.1.4 when building the CB trunk code.
MBajor:
Attempt to build code blocks on wxWidgets 3.1.4 gives me the following error after "make" command:
--- Quote ---main.cpp: In member function ‘bool MainFrame::OnDropFiles(wxCoord, wxCoord, const wxArrayString&)’:
main.cpp:2682:22: error: ‘wxPaintEvent::wxPaintEvent(wxWindowBase*)’ is private within this context
wxPaintEvent e;
^
In file included from /usr/local/include/wx-3.1/wx/wx.h:24,
from /usr/local/include/wx-3.1/wx/wxprec.h:42,
from ./sdk_common.h:24,
from ./sdk_precomp.h:13,
from ./sdk.h:17:
/usr/local/include/wx-3.1/wx/event.h:2379:14: note: declared private here
explicit wxPaintEvent(wxWindowBase* window = NULL);
--- End quote ---
oBFusCATed:
Why are you installing 3.1.4? Regular 3.0.x is probably enough.
Also to use recent wx you need this patch https://sourceforge.net/p/codeblocks/code/11991/
MBajor:
After downloading the codeblocks from the SVN repository, the codeblocks was compiled and installed well even thru wxWidgets 3.1.4 (thank you AndrewCot and oBFusCATed). However, there was a problem when running it through the terminal. I'm getting an error:
--- Quote ---codeblocks: symbol lookup error: codeblocks: undefined symbol: cbEVT_DEBUGGER_UPDATED
--- End quote ---
"sudo apt-get update", "sudo rpi-eeprom-update -a" and "sudo apt full-upgrade" did not give anything.
Small warnings like:
--- Quote ---libtool: warning: relinking 'libabbreviations.la'
...
libtool: warning: relinking 'libtodo.la'
...
--- End quote ---
were when installing the codeblocks however I don't think it's related.
Maybe the problem was in the installation of dependencies. How can this be verified?
Navigation
[0] Message Index
[#] Next page
Go to full version