Since old times I have this self-made building script. It's terribly wrong and inefficient, but it worked every time.
#!/bin/bash
mkdir trunk
cd trunk
echo "Uninstalling..."
sudo make uninstall
cd ..
echo "Removing trash..."
rm -rf trunk
echo "Relinking..."
sudo ldconfig
echo "Checking out..."
if [ $# -eq 0 ]
then
svn co svn://svn.code.sf.net/p/codeblocks/code/trunk
else
svn co svn://svn.code.sf.net/p/codeblocks/code/trunk -r $1
fi
cd trunk
echo "Bootstraping..."
./bootstrap
echo "Configuring..."
./configure --with-contrib-plugins=all
echo "Making..."
rv=1
while [ $rv -ne 0 ];
do
make
rv=$?
echo $rv
sleep 5
done
echo "Installing..."
sudo make install
echo "Relinking..."
sudo ldconfig
(New repo link already inserted)
Sadly, I'm unable to finish the building process with the new repo.
.libs/asstreamiterator.o: In function `ASStreamIterator::readLine()':
asstreamiterator.cpp:(.text+0x193): undefined reference to `wxStringBase::npos'
...
.libs/astyleconfigdlg.o: In function `AstyleConfigDlg::OnPreview(wxCommandEvent&)':
astyleconfigdlg.cpp:(.text+0x7d): undefined reference to `wxXmlResource::GetXRCID(wchar_t const*, int)'
...
.libs/dlgformattersettings.o: In function `DlgFormatterSettings::ApplyTo(astyle::ASFormatter&)':
dlgformattersettings.cpp:(.text+0x6d): undefined reference to `wxXmlResource::GetXRCID(wchar_t const*, int)'
...
.libs/formattersettings.o: In function `FormatterSettings::ApplyTo(astyle::ASFormatter&)':
formattersettings.cpp:(.text+0x60): undefined reference to `wxStringBase::npos'
(Many similar lines left out)
Any major changes, that I've missed?
I double-checked on old backups of my system, taken on the 8900 build day. Still no success.
@thomas-denk: With the latest revision, your changes fail at:
filemanager.cpp: In function 'bool platform::move(const wxString&, const wxString&)':
filemanager.cpp:193:21: error: 'oldname' was not declared in this scope
filemanager.cpp:193:30: error: 'newname' was not declared in this scope
make[3]: *** [filemanager.lo] Error 1
make[3]: Leaving directory `/home/stefanos/svn_code/CodeBlocks/src/sdk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/stefanos/svn_code/CodeBlocks/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/stefanos/svn_code/CodeBlocks/src'
make: *** [all-recursive] Error 1
Latest revision compiles fine under Debian wheezy, 32-bit but the crashing issue with cleaning "Recent Projects > Clear History" still exists. I ran it via terminal and reports a Segmentation Fault.
Steps taken with gdb:
Loading toolbar...
Initializing plugins...
KeyBinder failed UpdateById on[3401][_Export]
KeyBinder failed UpdateById on[1019][Cu_t]
KeyBinder failed UpdateById on[1018][_Copy]
KeyBinder failed UpdateById on[1020][_Paste]
Program received signal SIGSEGV, Segmentation fault.
0x00000018 in ?? ()
(gdb) c
Continuing.
Program received signal SIGSEGV, Segmentation fault.
0xb657be48 in ?? () from /lib/i386-linux-gnu/libgcc_s.so.1
(gdb) c
Continuing.
[Thread 0xae05eb70 (LWP 9414) exited]
[Thread 0xb0321b70 (LWP 9379) exited]
[Thread 0xb0b22b70 (LWP 9378) exited]
[Thread 0xb1323b70 (LWP 9377) exited]
[Thread 0xb5fd5880 (LWP 9157) exited]
Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb)
I hope it helps a bit; I don't know how to use it properly, therefore show some respect :D
Update: This time decided to throw a window with report: http://pastebin.com/bLqUevvm (http://pastebin.com/bLqUevvm)
Under Debian wheezy, the latest revision throws the following errors:
startherepage.h: In member function 'void StartHerePage::SetProjectsFiles(const wxFileHistory*, const wxFileHistory*)':
startherepage.h:32:74: error: no match for 'operator=' in '((StartHerePage*)this)->StartHerePage::m_projects = projects'
startherepage.h:32:74: note: candidate is:
recentitemslist.h:10:7: note: RecentItemsList& RecentItemsList::operator=(const RecentItemsList&)
recentitemslist.h:10:7: note: no known conversion for argument 1 from 'const wxFileHistory*' to 'const RecentItemsList&'
startherepage.h:32:94: error: no match for 'operator=' in '((StartHerePage*)this)->StartHerePage::m_files = files'
startherepage.h:32:94: note: candidate is:
recentitemslist.h:10:7: note: RecentItemsList& RecentItemsList::operator=(const RecentItemsList&)
recentitemslist.h:10:7: note: no known conversion for argument 1 from 'const wxFileHistory*' to 'const RecentItemsList&'
main.cpp: In member function 'void MainFrame::InitializeRecentFilesHistory()':
main.cpp:2192:48: error: 'm_pProjectsHistory' was not declared in this scope
main.cpp:2192:68: error: 'm_pFilesHistory' was not declared in this scope
make[3]: *** [main.o] Error 1
make[3]: Leaving directory `/home/stefanos/svn_code/CodeBlocks/src/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/stefanos/svn_code/CodeBlocks/src/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/stefanos/svn_code/CodeBlocks/src'
make: *** [all-recursive] Error 1
Same script as in 1st post.
OS Ubuntu 13.04 x64, wx 2.8.12.
Works with rev9159. Fails on rev9160:
make[5]: Leaving directory `/trunk/src/plugins/contrib/wxSmith/wxwidgets'
Making all in plugin
make[5]: Entering directory `/trunk/src/plugins/contrib/wxSmith/plugin'
/bin/bash ../../../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../../src/include -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../../../../../src/include -I../../../../../src/sdk/wxscintilla/include -I../../../../../src/sdk/wxpropgrid/include -ansi -DTIXML_USE_STL -O2 -ffast-math -DCB_AUTOCONF -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT wxsmithpluginregistrants.lo -MD -MP -MF .deps/wxsmithpluginregistrants.Tpo -c -o wxsmithpluginregistrants.lo wxsmithpluginregistrants.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../../../src/include -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../../../../../src/include -I../../../../../src/sdk/wxscintilla/include -I../../../../../src/sdk/wxpropgrid/include -ansi -DTIXML_USE_STL -O2 -ffast-math -DCB_AUTOCONF -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT wxsmithpluginregistrants.lo -MD -MP -MF .deps/wxsmithpluginregistrants.Tpo -c wxsmithpluginregistrants.cpp -fPIC -DPIC -o .libs/wxsmithpluginregistrants.o
mv -f .deps/wxsmithpluginregistrants.Tpo .deps/wxsmithpluginregistrants.Plo
make[5]: *** No rule to make target `../libwxsmithlib.la', needed by `libwxsmith.la'. Stop.
Sorry for pushing it too much, but in 9311 I get:
codecompletion.cpp: In constructor 'CodeCompletion::CodeCompletion()':
codecompletion.cpp:579:13: error: 'idSystemHeadersThreadFinish' was not declared in this scope
codecompletion.cpp: In destructor 'virtual CodeCompletion::~CodeCompletion()':
codecompletion.cpp:599:16: error: 'idSystemHeadersThreadFinish' was not declared in this scope
make[4]: *** [codecompletion.lo] Error 1
Thank you!
UPD: So I'm at 9310 now, seems to compile that spot just fine...