Hi every body,
I'm a new to code block and i wanna use it to develope a GUI application using the wxwidgets library,
I'm using Ubuntu 9.4 running on VirtualBox (as Virtual machine )
- I installed the Wxwidgets successfully.
# tar -xzvf wxwidgets-2.8.10.tar.gz
# cd wxwidgets-2.8.10
# mkdir build-x11
# cd build-x11
# ../configure --with-x11 --without-gtk --enable-no_rtti --enable-no_exceptions --disable-threads --disable-sockets --disable-joystick --disable-mdi --disable-printarch --disable-postscript --disable-resources --disable-prologio --with-zlib=builtin --with-libpng=builtin --with-libjpeg=builtin --with-libtiff=builtin
# make
#make install
#ldconfig
- I installed the Code::Block successfully too.
#apt-get install codeblocks
- I create a new Wxwidget projects.
file -> new project -> wxwidgets project -> ...- I compiled this project and every thing gonna good.
- Run the project in Linux and the project run successfully
After that i install the Arm-Linux cross compilation tool-chain to the linux as follow:
# cd /opt/FriendlyArm/mini2440/source/
# tar -xzvf arm-linux-gcc-4.3.2.tgz
after unpacking the ziped file it gives me usr directory
export PATH=/opt/FriendlyArm/mini2440/source/usr/local/arm/4.3.2:$PATH
After that i gone to the my code::block
Setting -> compiler and debugger -> choose the GNU ARM GCC compiler -> and under the toolchain executables change this configuration
- c compiler --> arm-linux-gcc
- c++ compiler --> arm-linux-g++
- Linker for dynamic library --> arm-linux-gcc
- Linker for static library --> arm-linux-ar
- Debugger --> arm-linux-qdb
- compiler installation directory --> /opt/FriendlyArm/mini2440/source/usr/local/arm/4.3.2
project -> properties -> build option
Choose release tap -> duplicated ->and choose ArmRelease as new name
Choose the compiler as GNU ARM GCC compiler
OK
and when i compiled ARMRelease it gives me this error
cannot find -lwx_gtk2u_richtext-2.8
I googled in the internet and find that i should add this lines to the configuration
'wx-config --cflags' to the compiler option and
'wx-config --libs' to the linker option
I successfully add this lines to the compiler and linker as follow:
project -> properties -> build-option ->choose ARMRelease -> compiler -> other option
project -> properties -> build-option ->choose ARMRelease -> linker -> other option
After that i got more errors :
this some of all because it is more that 2000 char and it got refused by the forumas follow:
obj/ARMRelease/GUIFrame.o||In function `__static_initialization_and_destruction_0(int, int)':|
GUIFrame.cpp:(.text+0x48)||undefined reference to `std::ios_base::Init::Init()'|
GUIFrame.cpp:(.text+0x64)||undefined reference to `wxEventHashTable::wxEventHashTable(wxEventTable const&)'|
GUIFrame.cpp:(.text+0x174)||undefined reference to `std::ios_base::Init::~Init()'|
GUIFrame.cpp:(.text+0x180)||undefined reference to `wxEventHashTable::~wxEventHashTable()'|
GUIFrame.cpp:(.text+0x18c)||undefined reference to `wxEVT_CLOSE_WINDOW'|
GUIFrame.cpp:(.text+0x190)||undefined reference to `wxEVT_COMMAND_MENU_SELECTED'|
GUIFrame.cpp:(.text+0x194)||undefined reference to `wxEVT_NULL'|
obj/ARMRelease/GUIFrame.o||In function `GUIFrame::GUIFrame(wxWindow*, int, wxString, wxPoint, wxSize, int)':|
GUIFrame.cpp:(.text+0x1dc)||undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)'|
GUIFrame.cpp:(.text+0x1e4)||undefined reference to `wxFrameBase::wxFrameBase()'|
GUIFrame.cpp:(.text+0x1f4)||undefined reference to `wxFrame::Init()'|
GUIFrame.cpp:(.text+0x224)||undefined reference to `wxFrame::Create(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long, wxString const&)'|
||=== Build finished: 534 errors, 0 warnings ===|
Could any body help me please
I don't know what can i do.