User forums > Help

[HELP] Compile and install CodeBlocks issues!

(1/4) > >>

wangfei406:
I'm working on Redhat Enterprise Linux 4. I cannot bear ddd to debug programs since it is too rough to use, so I decided to use IDE like CodeBlocks. But I don't have the root previlege to install softwares. As a result, I have to get the source code to compile by myself.

But I got some compile issues. As we know, wxWidgets is the requisite. Here is the download link http://sourceforge.net/projects/wxwindows/files/2.8.12/.
But which one should I use?(I'm using  Redhat Enterprise Linux 4) wxWidgets-2.8.12.tar.bz2 or wxGTK-2.8.12.tar.bz2? Or others? And what is the difference? Forgive me, I am new to linux.  :?

Actually, I have tried both of them. If I use wxWidgets-2.8.12.tar.bz2 to install, I will get compile errors when compiling codeblocks. But the compile error can be resolved if I turn to wxGTK-2.8.12.tar.bz2. However, I got other build error as below. Here I am using codeblocks10.5.  version 8.02 has the similar errors while making resources. What's matter? Please help me!


------------------------
mv -f .deps/switcherdlg.Tpo .deps/switcherdlg.Po
/bin/sh ../../libtool --tag=CXX   --mode=link g++  -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions   -o codeblocks app.o appglobals.o compilersettingsdlg.o crashhandler.o dlgabout.o dlgaboutplugin.o environmentsettingsdlg.o infopane.o main.o notebookstyles.o prefix.o printdlg.o scriptconsole.o scriptingsettingsdlg.o splashscreen.o startherepage.o switcherdlg.o -L../sdk -lcodeblocks -L/remote/vgrnd57/feiwang/install_tools/wxGTK-2.8.10/lib -pthread   -L/usr/X11R6/lib64   -lwx_gtk2u-2.8  -lpthread -ldl
libtool: link: g++ -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -o .libs/codeblocks app.o appglobals.o compilersettingsdlg.o crashhandler.o dlgabout.o dlgaboutplugin.o environmentsettingsdlg.o infopane.o main.o notebookstyles.o prefix.o printdlg.o scriptconsole.o scriptingsettingsdlg.o splashscreen.o startherepage.o switcherdlg.o -pthread  -L/remote/vgrnd57/feiwang/software/codeblocks-10.05-release/src/sdk /remote/vgrnd57/feiwang/software/codeblocks-10.05-release/src/sdk/.libs/libcodeblocks.so -L/remote/vgrnd57/feiwang/install_tools/wxGTK-2.8.10/lib -L/usr/X11R6/lib64 -lwx_gtk2u-2.8 -lpthread -ldl -pthread -Wl,-rpath -Wl,/remote/vgrnd57/feiwang/install_tools/codeblocks-10.05-release/lib
make[3]: Leaving directory `/remote/vgrnd57/feiwang/software/codeblocks-10.05-release/src/src'
make[2]: Leaving directory `/remote/vgrnd57/feiwang/software/codeblocks-10.05-release/src/src'
Making all in plugins
make[2]: Entering directory `/remote/vgrnd57/feiwang/software/codeblocks-10.05-release/src/plugins'
Making all in astyle
make[3]: Entering directory `/remote/vgrnd57/feiwang/software/codeblocks-10.05-release/src/plugins/astyle'
Making all in resources
make[4]: Entering directory `/remote/vgrnd57/feiwang/software/codeblocks-10.05-release/src/plugins/astyle/resources'
PWD=`pwd` cd . && zip /remote/vgrnd57/feiwang/software/codeblocks-10.05-release/src/plugins/astyle/resources/astyle.zip manifest.xml *.xrc > /dev/null
/remote/vgrnd57/feiwang/software/codeblocks-10.05-release/src/plugins/astyle/resources/astyle.zip: No such file or directory
make[4]: *** [astyle.zip] Error 1
make[4]: Leaving directory `/remote/vgrnd57/feiwang/software/codeblocks-10.05-release/src/plugins/astyle/resources'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/remote/vgrnd57/feiwang/software/codeblocks-10.05-release/src/plugins/astyle'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/remote/vgrnd57/feiwang/software/codeblocks-10.05-release/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/remote/vgrnd57/feiwang/software/codeblocks-10.05-release/src'
make: *** [all-recursive] Error 1
-----------------------------------------

Jenna:
Does zip exist on your system ?
Can you call it from the commandline ?

wangfei406:

--- Quote from: jens on October 27, 2011, 12:22:41 pm ---Does zip exist on your system ?
Can you call it from the commandline ?

--- End quote ---

Yes, I tested. But it seems too old. I  have also supected zip causes the error. But seems not.
codeblocks 8.02 reports simlilar build errors in src/src/resources/image/16x16. I don't know why!


feiwang@vgamdquad98:/remote/vgrnd57/feiwang/software/codeblocks-10.05-release % zip --version
zip 1.2.4 (18 Aug 93)
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H
feiwang@vgamdquad98:/remote/vgrnd57/feiwang/so

Jenna:
You can try to run the zip command from commandline in the appropriate folder, without the "> /dev/null" to see what it really does.

wangfei406:
zip /remote/vgrnd57/feiwang/software/codeblocks-10.05-release/src/plugins/astyle/resources/astyle.zip manifest.xml *.xrc
zip: No match.

That's the result.

All I have done above is in the company's linux server. Last nightI tried to build codeblocks in my home machine with unbuntu installed in VM in the some way. I got dependecies error while running "./configure". So I installed GTK. After that, codeblocks can be compiled successfully. So it that to say GTK library is also needed by codeblocks???

Navigation

[0] Message Index

[#] Next page

Go to full version