User forums > Using Code::Blocks

wxGTK2-2.4.12 xrc compile problem

(1/2) > >>

Ci:
I've got wxGTK2 like in subject. When I want to compile I've got the error:

--- Code: ---Linking executable devel/codeblocks.exe...
/usr/bin/ld: cannot find -lwx_gtk2_xrc-2.4
--- End code ---

I've install wxGTK2-xrc package. I didn't recompile all wxGTK( is the problem??).
What should I do??

BTW. U made GREAT job with creating this app. Good luck guys   :)

TheTuxKeeper:
Look how the libs are named with:

--- Code: ---ls /usr/lib/wx_*
--- End code ---

Did you run ldconfig after installing the wxGTK2-xrc package ?


Daniel

Ci:
I haven't got any wx_* files in /usr/lib . The wxGTK2-xrc package has got little diffrent filenames:

--- Code: ---/usr/lib/libwx_gtk2_xrc-2.4.so.0
/usr/lib/libwx_gtk2_xrc-2.4.so.0.1.1
--- End code ---

I download the package for my Linux  - FC4.

So I tried to change Makefile.unix
LIB_WXXRC=wx_gtk2_xrc-2.4
LIB_WXSTC=wx_gtk2_stc-2.4

to
LIB_WXXRC=libwx_gtk2_xrc-2.4
LIB_WXSTC=libwx_gtk2_stc-2.4

But it didn't work... :( I run ldconfig after installing this package but still nothing...

grv575:
/usr/lib is searched by default I believe (or already in /etc/ld.so.conf) so no need for ldconfig in your case.
try
cd /usr/lib
ln -s libwx_gtk2_xrc-2.4.so.0.1.1 libwx_gtk2_xrc-2.4.so

Ci:
It worked... but  :( now I have this kind of problem:

--- Code: ---Linking executable devel/codeblocks.exe...
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxWindow::sm_classwxWindow'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxWindow::Clear()'
/usr/lib/libwx_gtk2_stc-2.4.so: undefined reference to `wxTheClipboard'
/usr/lib/libwx_gtk2_stc-2.4.so: undefined reference to `vtable for wxEventTableEntry'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxFlexGridSizer::AddGrowableRow(unsigned int)'
/usr/lib/libwx_gtk2_stc-2.4.so: undefined reference to `wxListView::sm_classwxListView'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxButton::sm_classwxButton'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxWindow::ApplyWidgetStyle()'
devel/libcodeblocks.so: undefined reference to `wxStyledTextCtrl::DoGetBestSize() const'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxFlexGridSizer::AddGrowableCol(unsigned int)'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxString::InitWith(char const*, unsigned int, unsigned int)'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxObject::sm_classwxObject'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxPanel::sm_classwxPanel'
/usr/lib/libwx_gtk2_stc-2.4.so: undefined reference to `wxListItem::sm_classwxListItem'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxTextCtrlBase::~wxTextCtrlBase()'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxSizer::sm_classwxSizer'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxString::ConcatSelf(int, char const*)'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxWindowBase::FindWindow(wxString const&)'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxMenuBar::sm_classwxMenuBar'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxWizard::Create(wxWindow*, int, wxString const&, wxBitmap const&, wxPoint const&)'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxControl::sm_classwxControl'
/usr/lib/libwx_gtk2_stc-2.4.so: undefined reference to `wxEVT_SCROLL_ENDSCROLL'
/usr/lib/libwx_gtk2_stc-2.4.so: undefined reference to `wxTimer::sm_classwxTimer'
/usr/lib/libwx_gtk2_stc-2.4.so: undefined reference to `wxSystemSettingsNative::GetMetric(wxSystemMetric)'
/usr/lib/libwx_gtk2_stc-2.4.so: undefined reference to `wxRect::wxRect(wxPoint const&, wxSize const&)'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxDialog::sm_classwxDialog'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxMenu::sm_classwxMenu'
/usr/lib/libwx_gtk2_stc-2.4.so: undefined reference to `wxScrollBar::sm_classwxScrollBar'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxWizardPage::sm_classwxWizardPage'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxString::CopyBeforeWrite()'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxFrame::sm_classwxFrame'
/usr/lib/libwx_gtk2_stc-2.4.so: undefined reference to `wxFile::Read(void*, long long)'
/usr/lib/libwx_gtk2_xrc-2.4.so: undefined reference to `wxButton::ApplyWidgetStyle()'
collect2: ld returned 1 exit status
make: *** [devel/codeblocks.exe] Błąd 1
--- End code ---

BTW. Does anybody made a package of C::B..??

Navigation

[0] Message Index

[#] Next page

Go to full version