User forums > Help

cannot find wx-config when ./configure

(1/3) > >>

lxr5109:
I followed the wiki to install codeblocks, the URL of which is:
http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Linux

I use Ubuntu 10.04, the kernel is 2.6.32-21. I'd like to install codeblocks 13.12
I've install the wxWidget 2.8.12 successfully, also modefied the PATH and ls.so.conf. And I excuted wx-config --xx,it can also give right result.

But when I excuted ./configure in codesblocks' folder, the error occured:

checking for wx-config... no
configure: error:
                wxWidgets must be installed on your system.

                Please check that wx-config is in path, the directory
                where wxWidgets libraries are installed (returned by
                'wx-config --libs' or 'wx-config --static --libs' command)
                is in LD_LIBRARY_PATH or equivalent variable and
                wxWindows version is 2.8.0 or above.

How can I fix it ?

Thank you very much !

oBFusCATed:
Isn't there a ready made package for this distro?

lxr5109:
I have only found the 16.01 for ubuntu 14.04 and above. It seems that there is no 13.12 for ubuntu 10.04.

stahta01:
Did you do the CB Bootstrap command?

And, please post the output of the wx-config --list command?

Tim S.

lxr5109:
Oh, I've found something strange.
I installed the wxWidget in my user(which is "luxr"), and when I excute wx-config, it can be found. like this:

luxr@zhuwh-desktop:~/Desktop/codeblocks-13.12$ wx-config --libs
-L/opt/wx/2.8/lib -pthread   -lwx_gtk2u-2.8

However, when I excute wx-config in root, it can't be found!

root@zhuwh-desktop:~/Desktop/codeblocks-13.12# wx-config --libs
The program 'wx-config' can be found in the following packages:
 * libwxbase2.6-dbg
 * libwxbase2.6-dev
 * libwxbase2.8-dbg
 * libwxbase2.8-dev
 * libwxgtk2.6-dbg
 * libwxgtk2.6-dev
 * libwxgtk2.8-dbg
 * libwxgtk2.8-dev
Try: apt-get install <selected package>

Maybe that's why I cannot do ./configure, because I have to use the "sudo" command. Is there any mathod to solve the problem?

Next is the output of ./bootstrap:
root@zhuwh-desktop:~/Desktop/codeblocks-13.12# ./bootstrap
Found revision: '0' ''
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'


Navigation

[0] Message Index

[#] Next page

Go to full version