News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Code::Blocks 1.0 installation issue: corrupted resources.zip

Started by neonomicus, June 26, 2006, 11:12:34 PM

Previous topic - Next topic

neonomicus

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 :)

thomas

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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

neonomicus

Hm, if might be easier. But make failed :( :


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$

thomas

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:
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)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

mandrav

Also make sure you uninstall any previous C::B version. It probably is trying to link with libraries from RC2...
Be patient!
This bug will be fixed soon...

neonomicus

Ok, did what you told me, but same error again :(
I checked if wxScintilla::FindText exists in the mentioned libcodeblocks.so and it does :/

thomas

Then it must be what Yiannis said, you must have an old Scintilla library lying around somewhere.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

neonomicus

/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 :(

neonomicus

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 :)