Ok...so if I want to compile I have to change my wxWidgets installation :(
When do you think Code::Blocks is going to support Unicode mode?
PS2 : what do you think about adding SCons (http://www.scons.org) support via a plug-in?
did you install wx2.5.3 with apt-get?Yes, I did.
Because I have yet to see a binary wx package supporting gtk2 (C::B only supports gtk2)...Under Ubuntu, the wx-2.4 package only supports GTK1 and is compiled in ANSI mode while the wx-2.5 package uses Unicode and GTK2.
PS: I use Ubuntu 5.04 too and I 'm *thinking* of releasing a .deb for it.
There isn't any "--disable-unicode" option in wxGTK2.6's ./configure !I don't use any unicode switch in the configure line and it compiles as ansi.
If I want to compile it under Linux it seems that I have to use the old wxGTK 2.4...
funto@home:~/Desktop/codeblocks-1.0-RC1/src $ make -f Makefile.unix clean
Cleaning target tinyXML...
Cleaning target sdk...
Cleaning target src...
Cleaning target plugin_Astyle...
Cleaning target plugin_CompilerGCC...
Cleaning target plugin_DebuggerGDB...
Cleaning target plugin_CodeCompletion...
Cleaning target plugin_ClassWizard...
Cleaning target plugin_DefMimeHandler...
Cleaning target plugin_PluginsWizard...
Cleaning target plugin_ToDo...
Cleaning target plugin_XPManifest...
Cleaning target console_runner...
funto@home:~/Desktop/codeblocks-1.0-RC1/src $ make -f Makefile.unix
Compiling sdk/tinyxml/tinystr.cpp...
Compiling sdk/tinyxml/tinyxml.cpp...
Compiling sdk/tinyxml/tinyxmlerror.cpp...
Compiling sdk/tinyxml/tinyxmlparser.cpp...
Linking static library sdk/tinyxml/libtxml.a...
ar: création de sdk/tinyxml/libtxml.a
ranlib sdk/tinyxml/libtxml.a
Compiling sdk/Managers/Managers.cpp...
Compiling sdk/Managers/StdAfx.cpp...
Compiling sdk/autodetectcompilers.cpp...
Compiling sdk/cbeditor.cpp...
Compiling sdk/cbeditorprintout.cpp...
Compiling sdk/cbplugin.cpp...
Compiling sdk/cbproject.cpp...
Compiling sdk/cbworkspace.cpp...
Compiling sdk/compileoptionsbase.cpp...
Compiling sdk/compiler.cpp...
Compiling sdk/compilerfactory.cpp...
Compiling sdk/compileroptions.cpp...
Compiling sdk/compiletargetbase.cpp...
Compiling sdk/configmanager.cpp...
Compiling sdk/configuretoolsdlg.cpp...
Compiling sdk/confirmreplacedlg.cpp...
Compiling sdk/devcpploader.cpp...
Compiling sdk/editarrayfiledlg.cpp...
Compiling sdk/editarrayorderdlg.cpp...
Compiling sdk/editarraystringdlg.cpp...
Compiling sdk/editorbase.cpp...
Compiling sdk/editorcolorset.cpp...
Compiling sdk/editorconfigurationdlg.cpp...
sdk/editorconfigurationdlg.cpp:522:10: attention : #warning "wxComboBox::SetString() doesn't work under non-win32 platforms"
Compiling sdk/editorlexerloader.cpp...
Compiling sdk/editormanager.cpp...
sdk/editormanager.cpp: Dans member function « void
EditorManager::ActivateNext() »:
sdk/editormanager.cpp:448: attention : comparison between signed and unsigned
integer expressions
sdk/editormanager.cpp: Dans member function « int
EditorManager::FindPageFromEditor(EditorBase*) »:
sdk/editormanager.cpp:648: attention : comparison between signed and unsigned
integer expressions
Compiling sdk/editpathdlg.cpp...
Compiling sdk/edittooldlg.cpp...
Compiling sdk/filegroupsandmasks.cpp...
Compiling sdk/finddlg.cpp...
Compiling sdk/globals.cpp...
Compiling sdk/importers_globals.cpp...
Compiling sdk/incrementalselectlistdlg.cpp...
Compiling sdk/macrosmanager.cpp...
Compiling sdk/managedthread.cpp...
Compiling sdk/manager.cpp...
Compiling sdk/menuitemsmanager.cpp...
Compiling sdk/messagelog.cpp...
Compiling sdk/messagemanager.cpp...
Compiling sdk/msvc7loader.cpp...
Compiling sdk/msvc7workspaceloader.cpp...
Compiling sdk/msvcloader.cpp...
Compiling sdk/msvcworkspaceloader.cpp...
Compiling sdk/multiselectdlg.cpp...
Compiling sdk/newfromtemplatedlg.cpp...
Compiling sdk/personalitymanager.cpp...
Compiling sdk/pipedprocess.cpp...
Compiling sdk/pluginmanager.cpp...
Compiling sdk/pluginsconfigurationdlg.cpp...
Compiling sdk/printing_types.cpp...
Compiling sdk/projectbuildtarget.cpp...
Compiling sdk/projectfileoptionsdlg.cpp...
Compiling sdk/projectlayoutloader.cpp...
Compiling sdk/projectloader.cpp...
Compiling sdk/projectmanager.cpp...
Compiling sdk/projectoptionsdlg.cpp...
Compiling sdk/projectsfilemasksdlg.cpp...
Compiling sdk/projecttemplateloader.cpp...
Compiling sdk/replacedlg.cpp...
Compiling sdk/sdk_events.cpp...
Compiling sdk/searchresultslog.cpp...
Compiling sdk/selecttargetdlg.cpp...
Compiling sdk/simplelistlog.cpp...
Compiling sdk/simpletextlog.cpp...
Compiling sdk/templatemanager.cpp...
Compiling sdk/toolsmanager.cpp...
Compiling sdk/workspaceloader.cpp...
Compiling sdk/xtra_classes.cpp...
Compiling sdk/xtra_res.cpp...
Linking shared library devel/libcodeblocks.so...
Compiling src/app.cpp...
src/resources/icons/app.xpm:2: attention : `char*app[44]' defined but not used
Compiling src/dlgabout.cpp...
Compiling src/dlgaboutplugin.cpp...
Compiling src/environmentsettingsdlg.cpp...
Compiling src/impexpconfig.cpp...
Compiling src/main.cpp...
Compiling src/prefix.c...
Compiling src/printdlg.cpp...
Compiling src/startherepage.cpp...
Linking executable devel/codeblocks.exe...
devel/libcodeblocks.so: undefined reference to `CustomVars::~CustomVars [in-charge]()'
devel/libcodeblocks.so: undefined reference to `CustomVars::Load(wxString const&)'
devel/libcodeblocks.so: undefined reference to `VarsArray::operator=(VarsArray const&)'
devel/libcodeblocks.so: undefined reference to `VarsArray::VarsArray[in-charge](VarsArray const&)'
devel/libcodeblocks.so: undefined reference to `CustomVars::Add(wxString const&, wxString const&)'
devel/libcodeblocks.so: undefined reference to `CustomVars::CustomVars[in-charge]()'
devel/libcodeblocks.so: undefined reference to `ExternalDepsDlg::~ExternalDepsDlg [in-charge]()'
devel/libcodeblocks.so: undefined reference to `ExternalDepsDlg::ExternalDepsDlg[in-charge](wxWindow*, cbProject*, ProjectBuildTarget*)'
devel/libcodeblocks.so: undefined reference to `CustomVars::Save(wxString const&)'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [devel/codeblocks.exe] Erreur 1
Are you sure you obtained the VERSION_1_0 branch from CVS? This is the one used to compile version 1.0.
CVS HEAD needs wxwidgets 2.6.
Linking executable devel/codeblocks.exe...
devel/libcodeblocks.so: undefined reference to `CustomVars::~CustomVars [in-charge]()'
devel/libcodeblocks.so: undefined reference to `CustomVars::Load(wxString const&)'
devel/libcodeblocks.so: undefined reference to `VarsArray::operator=(VarsArray const&)'
devel/libcodeblocks.so: undefined reference to `VarsArray::VarsArray[in-charge](VarsArray const&)'
devel/libcodeblocks.so: undefined reference to `CustomVars::Add(wxString const&, wxString const&)'
devel/libcodeblocks.so: undefined reference to `CustomVars::CustomVars[in-charge]()'
devel/libcodeblocks.so: undefined reference to `ExternalDepsDlg::~ExternalDepsDlg [in-charge]()'
devel/libcodeblocks.so: undefined reference to `ExternalDepsDlg::ExternalDepsDlg[in-charge](wxWindow*, cbProject*, ProjectBuildTarget*)'
devel/libcodeblocks.so: undefined reference to `CustomVars::Save(wxString const&)'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [devel/codeblocks.exe] Erreur 1
I've just downloaded the source package and get these errors when doing make -f Makefile.unix :QuoteLinking executable devel/codeblocks.exe...
devel/libcodeblocks.so: undefined reference to `CustomVars::~CustomVars [in-charge]()'
devel/libcodeblocks.so: undefined reference to `CustomVars::Load(wxString const&)'
devel/libcodeblocks.so: undefined reference to `VarsArray::operator=(VarsArray const&)'
devel/libcodeblocks.so: undefined reference to `VarsArray::VarsArray[in-charge](VarsArray const&)'
devel/libcodeblocks.so: undefined reference to `CustomVars::Add(wxString const&, wxString const&)'
devel/libcodeblocks.so: undefined reference to `CustomVars::CustomVars[in-charge]()'
devel/libcodeblocks.so: undefined reference to `ExternalDepsDlg::~ExternalDepsDlg [in-charge]()'
devel/libcodeblocks.so: undefined reference to `ExternalDepsDlg::ExternalDepsDlg[in-charge](wxWindow*, cbProject*, ProjectBuildTarget*)'
devel/libcodeblocks.so: undefined reference to `CustomVars::Save(wxString const&)'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [devel/codeblocks.exe] Erreur 1
wxdockit isn't present in version 1.0. It seems you need to delete your codeblocks sources (and devel and output) directory and restart from scratch.But I had already started from scratch...
That's the point: the stable branch, VERSION_1_0, does not use wxDockit. This is only in HEAD...Quotewxdockit isn't present in version 1.0. It seems you need to delete your codeblocks sources (and devel and output) directory and restart from scratch.
And I don't understand how it would be able to compile, since, there is no wxDockit provided and since the Makefile.unix never talks about wxDockit...
That's the point: the stable branch, VERSION_1_0, does not use wxDockit. This is only in HEAD...Ok, this explains why I couldn't find any wxDockit ^^
It seems you have mixed various versions (CVS-HEAD, CVS-VERSION_1_0, source package).But I didn't...I promise you that I've downloaded the source package and run make -f Makefile.unix, and I get these errors. Am I the only one who gets these errors???
The Makefile.unix.wx2.6 does not work neither
Have you anupdated version?
Yiannis: Please updload the Makefile.unix.2.6 to the /downloads page on the website. When you're done, tell me so I can update the website.No need Rick. We 'll release soon an update with all these minor issues solved.
funto@home:~/installations/codeblocks-1.0-RC1/src/devel $ ./codeblocks.exe
(codeblocks.exe:15411): Gtk-CRITICAL **: gtk_widget_ref: assertion `GTK_IS_WIDGET (widget)' failed
(codeblocks.exe:15411): Gtk-CRITICAL **: gtk_widget_unrealize: assertion `GTK_IS_WIDGET (widget)' failed
(codeblocks.exe:15411): Gtk-CRITICAL **: gtk_widget_unparent: assertion `GTK_IS_WIDGET (widget)' failed
Erreur de segmentation
I know somebody else who is trying to compile with Mandriva/wxGTK 2.4 ANSi and he gets the same errors ^^
This confirms that the Makefile.unix is not up to date in my opinion ^^
Linking executable devel/codeblocks.exe...
/usr/local/lib/libwx_gtk2-2.4.so: undefined reference to `_gtk_accel_group_detach'
/usr/local/lib/libwx_gtk2-2.4.so: undefined reference to `_gtk_accel_group_attach'
/usr/local/lib/libwx_gtk2-2.4.so: undefined reference to `_gtk_rc_context_get_default_font_name'
collect2: ld returned 1 exit status
make: *** [devel/codeblocks.exe] Erreur 1
Patching wxGTK
Most newer distros provide gtk2.4.x. Although wxGTK will compile using this gtk version, applications using this wxGTK will not compile succesfully.
0x4034d85b in wxWindowBase::AdjustForParentClientOrigin ()
from /usr/local/lib/libwx_gtk2-2.6.so.0
(gdb) bt
#0 0x4034d85b in wxWindowBase::AdjustForParentClientOrigin ()
from /usr/local/lib/libwx_gtk2-2.6.so.0
#1 0x40267114 in wxWindow::DoSetSize ()
from /usr/local/lib/libwx_gtk2-2.6.so.0
#2 0x08075967 in wxWindowBase::SetSize (this=0x81e04e0, x=-20, y=-8,
width=17, height=16, sizeFlags=3) at window.h:220
#3 0x0807e441 in wxPaneBase::UpdateLayout (this=0x81df540, cxWidth=0,
cyHeight=0) at src/wxDockit/src/generic/pane.cpp:222
#4 0x0807ddd5 in wxPaneBase::UpdateSize (this=0x81df540)
at src/wxDockit/src/generic/pane.cpp:131
#5 0x0807dcab in wxPaneBase::ShowHeader (this=0x81df540, state=false)
at src/wxDockit/src/generic/pane.cpp:92
#6 0x0806503b in MainFrame::CreateIDE (this=0x81fb398) at src/main.cpp:426
#7 0x08064078 in MainFrame (this=0x81fb398, parent=0x0) at src/main.cpp:362
#8 0x0805ca6d in CodeBlocksApp::InitFrame (this=0x80b6698) at src/app.cpp:175
#9 0x0805cee5 in CodeBlocksApp::OnInit (this=0x80b6698) at src/app.cpp:248
#10 0x0805f41a in wxAppConsole::CallOnInit (this=0x80b6698) at app.h:87
#11 0x401bc957 in wxEntry () from /usr/local/lib/libwx_gtk2-2.6.so.0
#12 0x0805c167 in main (argc=1, argv=0xbffffc94) at src/app.cpp:297
I thinked since RC1 wxDockIt hasn't been used anymore...
an emulated Linux-> wouldn't it be better to install a real distrib? ;)
wouldn't it be better to install a real distrib?
Ceniza, why don't you install CoLinux?
Hello I too am using Ubuntu and have compiled codeblocks successfully however, after compiling I try and run update: ./update but I get this: bad interpreter: No such file or directory
If I go to the devel directory and try to execute codeblocks I get: ./codeblocks.exe: error while loading shared libraries: libwx_gtk2-2.4.so: cannot open shared object file: No such file or directory
libwx_gtk2-2.4.so: cannot open shared object file: No such file or directoryWhen you installed wxWidgets, did it install itself in the /usr/local/lib directory? (it's the default setting, to override this you should add the --prefix=/your/directory).
Quotelibwx_gtk2-2.4.so: cannot open shared object file: No such file or directoryWhen you installed wxWidgets, did it install itself in the /usr/local/lib directory? (it's the default setting, to override this you should add the --prefix=/your/directory).
If this is the case, you should edit /etc/ld.so.conf and add /usr/local/lib to this file, so that the .so will be found :)