User forums > Using Code::Blocks
Missing files to compile with Autotools
grv575:
Well it needs wx-config. You still have the one from SUSE wx2.5? See you shouldn't install wx2.6.1 over wx2.5 to the same directory. Instead, it would have been better to leave the SUSE wx under the /usr root (/usr/bin/wx-config, /usr/lib/libwx......) and then install wx2.6.1 under a different tree:
./configure --prefix=/opt/wx26
Then you just edit /etc/ldconfig to point to the lib directory in use (/usr/lib or /opt/wx26/lib) and run ldconfig and also edit your path to include the wx bin directory in use.
So, try to repair the suse wx. or just install 2.6.1 in /opt/wx26 and use that. or try just copying the /opt/wx26/bin/wx-config file over to your wx25 directory (/usr/bin/wx-config) and hope it works :)
fiammy:
OK. I'll try that. I reinstalled the SuSE RPM after deinstalling the 2.6.1, but there's always something one forgets ...
fiammy:
Sadly :-( I have to report a failure. I get the same messages. I have the right wx-config after the installation of the SuSE RPM, but I get the same error messages. Would that be something that isn't in 2.5.3, but is available in 2.6.1? I'll have a look later this evening.
David
grv575:
Sorry, I misread the configure error message.
You know, it's probably missing the search path for the wx libraries (although I would expect the .rpm to do this). So either:
a) export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
or wherever the libwx*.a library files are located (instead of /usr/local/lib)
b) edit /etc/ld.so.conf
append /usr/local/lib
(or wherever the libwx*.a library files...)
run ldconfig
then run bootstrap and configure again.
Also, what do the following 3 commands give you?
wx-config --prefix
wx-config --static --libs
wx-config --list
fiammy:
This is the output of the three commands :
kevin:/usr/lib/wx/config # wx-config --prefix
/usr
kevin:/usr/lib/wx/config # wx-config --static --libs
ls: wx*-2.4-config: Onbekend bestand of map
ls: wx*-2.4-config: Onbekend bestand of map
Warning: No config found to match: /usr/bin/wx-config --static --libs
in /usr/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
kevin:/usr/lib/wx/config # wx-config --list
Default config is gtk2-unicode-release-2.5
Default config will be used for output
Alternate matches:
gtk2-ansi-release-2.5
ls: wx*-2.4-config: Onbekend bestand of map
ls: wx*-2.4-config: Onbekend bestand of map
I think I should be changing the default release Code::Blocks uses to the ansi version, but I'm not sure how to do it. I'll have a look in the wxWidgets docs.
I don't know if the prefix is all right either.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version