Code::Blocks Forums

User forums => Help => Topic started by: neonomicus on June 26, 2006, 11:12:34 pm

Title: Code::Blocks 1.0 installation issue: corrupted resources.zip
Post by: neonomicus on June 26, 2006, 11:12:34 pm
Hey :)
I tried to install codeblocks on my Debian testing today, but unfortunately I did not manage to install all plugins shiped in the contrib directory.

This is what I did:
dos2unix bootstrap acinclude.m4 codeblocks.pc.in configure.in Makefile.am
./configure --enable-contrib
make
su
make install

Ok, no errors so far.

But when I try to start codeblocks, I get an error that some PNG file could not be loaded.
The problem:
 /usr/local/share/codeblocks/resources.zip is corrupted. unzip'in that file neither worked.
 
Starting ./configure without "--enable-contrib" and following the other steps builds codeblocks
correctly - but without xwSmith, which is the object of my desire :)

Does anybody have any idea what I must do to make it work with --enable-contrib? :(

wxwidgets: 2.6.3
Code::Blocks: 1.0RC2

If you want the error report codeblocks produces tell me.

Thanks in advance :)
Title: Re: Code::Blocks 1.0 installation issue: corrupted resources.zip
Post by: thomas on June 26, 2006, 11:15:46 pm
Your life will be a much happier one if you use more recent sources.

Do svn checkout svn://svn.berlios.de/codeblocks/trunk and try again.
Title: Re: Code::Blocks 1.0 installation issue: corrupted resources.zip
Post by: neonomicus on June 27, 2006, 12:58:32 am
Hm, if might be easier. But make failed :( :

Code
g++ -O2 -ffast-math -g -O2 -I/usr/local/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/local/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -o .libs/codeblocks app.o appglobals.o compilersettingsdlg.o crashhandler.o dlgabout.o dlgaboutplugin.o environmentsettingsdlg.o main.o prefix.o printdlg.o splashscreen.o startherepage.o -pthread -pthread  -L/home/neonomicus/inst/codeblocks/trunk/src/src/wxAUI /home/neonomicus/inst/codeblocks/trunk/src/src/wxAUI/.libs/libwxaui.a -L/usr/local/lib -L/home/neonomicus/inst/codeblocks/trunk/src/sdk /home/neonomicus/inst/codeblocks/trunk/src/sdk/.libs/libcodeblocks.so -lpthread -ldl -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6 -Wl,--rpath -Wl,/usr/local/lib
/home/neonomicus/inst/codeblocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxScintilla::FindText(int, int, wxString const&, int, int*)'
collect2: ld returned 1 exit status
make[3]: *** [codeblocks] Fehler 1
make[3]: Leaving directory `/home/neonomicus/inst/codeblocks/trunk/src/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/neonomicus/inst/codeblocks/trunk/src/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/neonomicus/inst/codeblocks/trunk/src'
make: *** [all-recursive] Fehler 1
neonomicus@matrix:~/inst/codeblocks/trunk$
Title: Re: Code::Blocks 1.0 installation issue: corrupted resources.zip
Post by: thomas on June 27, 2006, 08:11:40 am
Hmm... it normally works fine. Several of us use it on Ubuntu regularly, so it should really work with Debian too. But I see you did not run bootstrap (at least your first post does not show it).

Can you verify exactly what build commands you typed?

It should more or less be something like this:
Code
mkdir cb && cd cb
svn checkout svn://svn.berlios.de/codeblocks/trunk
cd src
./bootstrap
./configure --enable-contrib
make
sudo make install
(actually you can copy and paste this)
Title: Re: Code::Blocks 1.0 installation issue: corrupted resources.zip
Post by: mandrav on June 27, 2006, 08:16:36 am
Also make sure you uninstall any previous C::B version. It probably is trying to link with libraries from RC2...
Title: Re: Code::Blocks 1.0 installation issue: corrupted resources.zip
Post by: neonomicus on June 27, 2006, 09:34:45 am
Ok, did what you told me, but same error again :(
I checked if wxScintilla::FindText exists in the mentioned libcodeblocks.so and it does :/
Title: Re: Code::Blocks 1.0 installation issue: corrupted resources.zip
Post by: thomas on June 27, 2006, 09:41:09 am
Then it must be what Yiannis said, you must have an old Scintilla library lying around somewhere.
Title: Re: Code::Blocks 1.0 installation issue: corrupted resources.zip
Post by: neonomicus on June 27, 2006, 09:44:10 am
/home/neonomicus/inst/codeblocks/trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `wxScintilla::FindText(int, int, wxString const&, int, int*)'

But this is the shared library gcc wants to include. Thats the file freshly compiled from svn :(
Title: Re: Code::Blocks 1.0 installation issue: corrupted resources.zip
Post by: neonomicus on June 27, 2006, 09:48:46 am
Yeah, I deleted /usr/local/lib/libwxscintilla.* and it continues compiling :D lets hope for the best X)

EDIT:
Worked. Finished. Installed :D
Thank you :)