User forums > Using Code::Blocks
[solved] CB compiles, but won't run
yop:
In my suse box, I built wxWidgets myself and had no problems. If you've run ldconfig and the libraries do not reside to some insane path then try removing the precompiled libs and build wxWidgets from source using the guide from cb wiki
mandrav:
--- Quote from: squizzz on November 03, 2005, 11:23:45 pm ---Thanks, that was enough to give the next clue, which is:
--- Quote ---codeblocks: error while loading shared libraries: libwx_gtk_xrc-2.6.so.0: cannot open shared object file: No such file or directory
--- End quote ---
It seems that I do not have libwx_gtk_xrc-2.6.so.0 anywhere on my drive, but instead there is libwx_gtk2_xrc-2.6.so.0.
And it seems that I need different runtime libraries for wxWidgets, right...? (I'm a Linux newbie)
--- End quote ---
Can you tell us what is returned if you run "wx-config --libs"?
squizzz:
--- Quote from: mandrav on November 04, 2005, 08:33:57 am ---Can you tell us what is returned if you run "wx-config --libs"?
--- End quote ---
wx-config --libs says:
--- Quote ---There is no such file or directory
--- End quote ---
I just uninstalled wxGTK-devel I installed using some suspicious *.rpm some time ago (I think I failed to run CB compiled with this one because it has had wrong flags used to compile wxGTK, can't be sure though) and successfully compiled wxGTK 2.6.1 from sources... (PII 450MHz == pain)
now wx-config --libs says:
--- Quote ----L/opt/wx/2.6/lib -pthread -L/usr/X11R6/lib -lwx_gtk2u-2.6
--- End quote ---
Now I will try to compile CB RC2 from sources.
@sethjackson: I know not whether this quote is original or not, but it is fun to say it from time to time, esp. when software you are working on (astonishingly) compiles without errors. :)
mandrav:
--- Quote ---Now I will try to compile CB RC2 from sources.
--- End quote ---
Now you 'll succeed ;)
squizzz:
Whoops... something went wrong. :(
"./configure" step goes well - no errors/warnings. The only "suspicious" line could be:
--- Quote ---(...)
checking for wx-config... /opt/wx/2.6/bin/wx-config
checking for wxWidgets version >= 2.4.2... yes (version 2.6.1)
checking for wxWidgets static library... no
configure: Configuring Code::Blocks...
(...)
--- End quote ---
It is not stated even as warning however, and "configure" script ends correctly.
Unfortunately "make" fails...
After ~1 hour of compilation everything ends up with:
--- Quote ---/opt/wx/2.6/lib/libwx_gtk2u-2.6.so: undefined reference to `pango_x_get_context'
collect2: ld returned 1 exit status
--- End quote ---
Strange, since I do have libpango packages installed.
Also some 3-4 strange warnings appear in the meantime, but unfortunately they don't get logged to file (make >> make.log) but only are printed onto terminal. They also don't appear again unless I perform another clean make* (which lasts about an hour :( ), so I can't quote them now.
(*) by clean make I mean either first "make" or "make" done after "make clean", don't know the right term
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version