User forums > Help
Problem compile CB-RC2 under Ubuntu Linux 5.10 Breezy(solved)
(1/1)
cyberkoa:
Hi all,
I am facing some problem compiling CB-RC2 under Ubuntu Linux 5.10 Breezy, I believe is the share library environment settings but I lack of this knowledge. Therefore, hope that you can give me some help
I follow the steps in Wiki that compiling CVS HEAD , I manage to go through all the hassle setting up build-essential package , autotools, libtool, aclocal , convert bootstrap using dos2unix but I stuck at the ./compile .
The error sounds "cannot find wx library , make sure your wx-config is in the PATH , and wx-config --libs return the correct value, and LD_LIBRARY_PATH is set up properly." (I shall paste the exact error later , I am in Ms Windows now)
I have check that
i) wx-config is in the PATH and return the correct value ,
ii) /etc/ld.so.config contains /opt/wx/2.6/lib , ldconfig -v also show there is 2 link to the wx gtk2 library
iii) echo $LD_LIBRARY_PATH show "/opt/wx/2.6/lib"
I have tried in 2 different PCs , both give me the same error. I think tiwag is using Ubuntu Hoary right , any hints ?
I compile using "sudo" with the default super user ID not root.
OS : Ubuntu Linux 5.10
wxGTK verision : wx-gtk2.6.2
GTK version : libgtk-dev version 2.x
koa
mandrav:
You also need wxgtk-common (or something like that), which provides wx-config.
After that it should be a breeze in breezy ;)
Charon:
Hi
this package is just called "wx-common" in Ubuntu Breezy.
if your compile won't be successfull you could give my ubuntu-package a try 8)
http://www.char0n.de/stuff/codeblocks-1.0rc2.deb
cyberkoa:
Thanks for feedback , I have settled the problem.
It is due to the environment variable problem, since I copy the code blocks source using "sudo" to /usr/share/codeblocks , and I use sudo to do the compilation , the profile environment variable is different . I found that by hacking into "configure" script
Therefore , I copy those source to ~/codeblocks-rc2 , and compile , now it passes the wx-config stage but stuck at creating makefile.
After refering to the thread by northtar
http://forums.codeblocks.org/index.php/topic,1227.0.html
I run the following commands before compilation
--- Code: ---find . -type f -and -not -name "*.png" -and -not -name "*.bmp" | sed "s/.*/\"\\0\"/" | xargs dos2unix
find . -type f -and -not -name "*.cpp" -and -not -name "*.h" -and -not -name "*.png" -and -not -name "*.bmp" | sed "s/.*/\"\\0\"/" | xargs dos2unix
--- End code ---
and the compilation success.
The only problem later is the authority problem to access the program files that installed to /usr/local/share , it can be easily solved by granting the authotiry of the folders to the default user in Ubuntu .
Navigation
[0] Message Index
Go to full version