I've installed CodeBlocks in /usr/local/test_cb but CodeBlocks search icons in /usr/local/share instead of /usr/local/test_cb/share
This happens on other platforms too, it's under a little refactoring at the moment...
BTW; How do you recognize Solaris with the preprocessor ? We have a little patch
to do for binreloc support (using getexecname), but don't have the defs to look for ?
I've seen this mentioned somewhere:
#if defined (__SVR4) && defined (__sun)
I've tried to compile CodeBlocks with Sun Studio
There is a problem because when linking executable, bad flag are used, any tips ?
use of -fPIC instead of -KPIC ?
This is a bug with the Code::Blocks configure.in, it hardcodes those flags:
CXXFLAGS="$CXXFLAGS $PCH_FLAGS -fPIC -DPIC"
Try taking those out from there, and let me know if it works for you then...
* You have to remove thoses two lines from bootstrap :
export WANT_AUTOMAKE='1.7'
export WANT_AUTOCONF='2.5'
Why do you need to remove those two ? (I believe they were added for Gentoo)
Do they conflict with some Sun magic ? (not a problem to wrap in "if Linux", but)
the script abort with this error :
./bootstrap: WANT_AUTOMAKE=1.7: is not an identifier
Maybe due to difference between sun sh and gnu/linux sh ?
It seems that sh don't like export VAR=VALUE, with
WANT_AUTOMAKE=1.7
export WANT_AUTOMAKE
it works
For one file, you'll have an error for compiling ( strlen undefined) due to missing #include <string.h>,
Which file was this ? Seems like a harmless fix, so report it as a bug/patch.
FYI: wxAUI/wxGTK LDFLAGS and wxHIDE_READONLY will be fixed, eventually...
I'll report later :)
The file src/sdk/scripting/sqplus/SquirrelVM.cpp require to add #include <string.h> for strlen function.
On other side with Sun Studio, I have to remove -fPIC and -DPIC from configure.in and -ffast-math from aclocal.m4
After, compile stop with this error :
"scriptbindings.cpp", line 563: Error: Could not find a match for
SqPlus::SQClassDef<CompilerFactory>::staticFunc<SqPlus::SQClassDef<CompilerFactory>::Func>(bool(*)(const wxString&,const wxString&), const char[21]) needed in ScriptBindings::RegisterBindings()
Hi,
I've updated wiki with the new svn, ( --enable-compact24 )
the bootstrap is ok now, thanks
for src/sdk/scripting/sqplus/SquirrelVM.cpp, I've added
#ifdef __sun
#include <strings.h>
#endif
now, I can't use codeblocks, it's the backtrace of gdb :
#0 0xd05712c5 in _lwp_kill () from /lib/libc.so.1
#1 0xd056e19a in thr_kill () from /lib/libc.so.1
#2 0xd051cfa3 in raise () from /lib/libc.so.1
#3 0xd067a667 in wxTrap () at ./src/common/appbase.cpp:599
#4 0xd067aa31 in ShowAssertDialog (szFile=0xd0b689c4, nLine=1229, szCond=0xd0b68984, szMsg=0xd0b68db4, traits=0x8210f98)
at ./src/common/appbase.cpp:823
#5 0xd067a3c1 in wxAppConsole::OnAssert (this=0x813e8c0, file=0xd0b689c4, line=1229, cond=0xd0b68984, msg=0xd0b68db4)
at ./src/common/appbase.cpp:457
#6 0xd091b821 in wxApp::OnAssert (this=0x813e8c0, file=0xd0b689c4, line=1229, cond=0xd0b68984, msg=0xd0b68db4)
at ./src/gtk/app.cpp:728
#7 0xd067a71e in wxOnAssert (szFile=0xd0b689c4, nLine=1229, szCond=0xd0b68984, szMsg=0xd0b68db4)
at ./src/common/appbase.cpp:645
#8 0xd067a69a in wxAssert (cond=0, szFile=0xd0b689c4, nLine=1229, szCond=0xd0b68984, szMsg=0xd0b68db4)
at ./src/common/appbase.cpp:612
#9 0xd0a60da3 in wxGenericTreeCtrl::GetLastChild (this=0x8573c00, item=@0xce1ddee8) at ./src/generic/treectlg.cpp:1229
#10 0xce623989 in ClassBrowserBuilderThread::RemoveInvalidNodes (this=0x82c8460, tree=0x8573c00, parent={m_pItem = 0x0})
at classbrowserbuilderthread.cpp:177
#11 0xce623baa in ClassBrowserBuilderThread::BuildTree (this=0x82c8460) at treectlg.h:203
#12 0xce623e0a in ClassBrowserBuilderThread::Entry (this=0x82c8460) at classbrowserbuilderthread.cpp:97
#13 0xd06fec21 in wxThreadInternal::PthreadStart (thread=0x82c8460) at ./src/unix/threadpsx.cpp:763
#14 0xd06feab8 in wxPthreadStart (ptr=0x82c8460) at ./src/unix/threadpsx.cpp:715
#15 0xd056f9be in _thr_setup () from /lib/libc.so.1
#16 0xd056fca0 in L3_doit () from /lib/libc.so.1
#17 0xcea41000 in ?? ()
#18 0x00000000 in ?? ()
#19 0x00000000 in ?? ()
With last build (3362), for the crash on startup, I've done a little search and in src/plugins/codecompletion/classbrowserbuilderthread.cpp :
I've added at line 177, in void ClassBrowserBuilderThread::RemoveInvalidNodes(wxTreeCtrl* tree, wxTreeItemId parent)
if ( !parent.IsOk() )
return;
before
wxTreeItemId existing = tree->GetLastChild(parent);
Otherwise, I've a lot of warning about
./src/common/menucmn.cpp(994): assert"wxAssertFailure" failed: attempt to enable an item which doesn't exist
and lot of about different size of picture in imagelist. (not very important ?)
EDIT:
I've created a little project and added a minimal hello world example, when I try to run, I've this message :
xterm: can't execvp LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH /usr/local/test_cb/bin/cb_console_runner "/home/murlock/mytest/bin/Debug/mytest"