Build2419 for MaOS X, where is wxWidgets?

CodeLite installation/troubleshooting forum
habe36
CodeLite Curious
Posts: 5
Joined: Thu Nov 20, 2008 4:37 am
Contact:

Build2419 for MaOS X, where is wxWidgets?

Post by habe36 »

Hi,
I am quite a beginner for your CodeLite. I knew the software by some discussion on wxWidgets mailing list. I'm very impressed.
I usually work on MacOS X (Tiger mainly), so downloaded the latest CodeLite for intel mac (Leopard).
I watched some tutorial video making wxWidgets software, and I saw a wxWidgets icon on the menu of CodeLite to generate a wxwidgets-templated project. I expected the icon on the Mac CodeLite, but I can't find it. The older version 2059 has the wxWidgets icon at top-left in menu.

Is this spec. change or miss something?

HABE
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build2419 for MaOS X, where is wxWidgets?

Post by eranif »

In the latest release for Mac (2419) I modified codelite to have look-n-feel like any MacOS application (notice the changes in the toolbar).
To get access to the 'wxWidgets' icon, you can:
- Enable the multi-toolbar look from settings -> editors settings -> misc -> and untick 'use single toolbar'
you will need to restart codelite. Once restarted, you will need to enable that toolbar from view -> toolbars (it is under 'Gizmos' toolbar)

- OR, you can use the menu to do this: from the menu: Plugins -> Gizmos -> new wxWidets project ...

Eran
Make sure you have read the HOW TO POST thread
habe36
CodeLite Curious
Posts: 5
Joined: Thu Nov 20, 2008 4:37 am
Contact:

Re: Build2419 for MaOS X, where is wxWidgets?

Post by habe36 »

Thank you, Eran. I got what I wanted to see.

BTW, I want to have PPC-Tiger version, so I downloaded the latest SVN and tried to make.
The make-ing process was finished but the binary always failed while launch.

It's almost achieved but... too bad.

HABE
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build2419 for MaOS X, where is wxWidgets?

Post by eranif »

habe36 wrote:BTW, I want to have PPC-Tiger version, so I downloaded the latest SVN and tried to make.
The make-ing process was finished but the binary always failed while launch.
I have a packager who is building for PPC however, for the latest release, we were not able to communicate (time zone issues)

Can u specify what failed?

Eran
Make sure you have read the HOW TO POST thread
habe36
CodeLite Curious
Posts: 5
Joined: Thu Nov 20, 2008 4:37 am
Contact:

Re: Build2419 for MaOS X, where is wxWidgets?

Post by habe36 »

I built CodeLite 2442, with --debug. wxWidgets 2.8.8 is built with --enable-unicode --enable-debug

After double clicking the CodeLite.app to see a "wxWidgets Debug Alert" dialog, it says,

../src/common/object.cpp(244): assert "sm_classTable->Get(m_className) == NULL" failed in Register(): Class "wxObject" already in RTTI table - have you used IMPLEMENT_DYNAMIC_CLASS() multiple times or linked some object file twice)?

in gdb,

CGContextRestoreGState: invalid context
CGContextRestoreGState: invalid context
../src/mac/carbon/thread.cpp(1528): assert "This() == this" failed in TestDestroy(): wxThread::TestDestroy() can only be called in the context of the same thread [in child thread]

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00a4a8fc in wxStringToColourHashMap_wxImplementation_HashTable::end (this=0x166d0f90) at ../include/wx/gdicmn.h:544
544 WX_DECLARE_STRING_HASH_MAP(wxColour*, wxStringToColourHashMap);
(gdb) where
#0 0x00a4a8fc in wxStringToColourHashMap_wxImplementation_HashTable::end (this=0x166d0f90) at ../include/wx/gdicmn.h:544
#1 0x0043afcc in wxColourDatabase::Find (this=0x1644de60, colour=@0xbfffe5f8) at ../src/common/gdicmn.cpp:418
#2 0x0043e270 in wxColourBase::FromString (this=0x2bff0434, str=0x891b94) at ../src/common/colourcmn.cpp:72
#3 0x009565a0 in wxColourBase::Set (this=0x2bff0434, str=0x891b94) at /Users/hiroshi//include/wx-2.8/wx/colour.h:78
#4 0x00956610 in wxColour::wxColour (this=0x2bff0434, colourName=0x891b94) at /Users/hiroshi//include/wx-2.8/wx/mac/carbon/colour.h:27
#5 0x001f3fac in OptionsConfig::OptionsConfig (this=0x2bff03e0, node=0x166060e0) at Plugin/optionsconfig.cpp:54
#6 0x001e08a0 in EditorConfig::GetOptions (this=0x16605050) at Plugin/editor_config.cpp:245
#7 0x001343b4 in PluginManager::GetToolbarIconSize (this=0xe2d0c8) at LiteEditor/pluginmanager.cpp:341
#8 0x471e5cc8 in Cscope::CreateToolBar (this=0x2bfe4f60, parent=0x178a9c00) at cscope.cpp:88
#9 0x001359a8 in PluginManager::Load (this=0xe2d0c8) at LiteEditor/pluginmanager.cpp:193
#10 0x000c3b94 in Frame::LoadPlugins (this=0x178a9c00) at LiteEditor/frame.cpp:2808
#11 0x000da780 in Frame::Initialize (loadLastSession=true) at LiteEditor/frame.cpp:539
#12 0x00017068 in App::OnInit (this=0x1643bdd0) at LiteEditor/app.cpp:388
#13 0x00960a4c in wxAppConsole::CallOnInit (this=0x1643bdd0) at /Users/hiroshi//include/wx-2.8/wx/app.h:76
#14 0x004a7714 in wxEntry (argc=@0xe562a0, argv=0x1643a7e0) at ../src/common/init.cpp:444
#15 0x004a7888 in wxEntry (argc=@0xbffff258, argv=0xbffff310) at ../src/common/init.cpp:472
#16 0x00014810 in main (argc=1, argv=0xbffff310) at LiteEditor/app.cpp:121

If you want some more, please let me know what to do next.

HABE
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build2419 for MaOS X, where is wxWidgets?

Post by eranif »

Try to disable the cscope plugin:

open the file ~/.codelite/config/plugns.xml and search for 'cscope', disable it OR simply delete the SO from the Plugins/ directoriny inside the bundle

Try it again
Eran
Make sure you have read the HOW TO POST thread
habe36
CodeLite Curious
Posts: 5
Joined: Thu Nov 20, 2008 4:37 am
Contact:

Re: Build2419 for MaOS X, where is wxWidgets?

Post by habe36 »

Okay.

I removed the lines of cscope between <SerializedObject></SerializeObject> and run, but the same alert appeared.

As further try, disable all plugins in the plugins.xml and saw what happend.
The same alart appeared and crushed. gdb said;

../src/mac/carbon/thread.cpp(1528): assert "This() == this" failed in TestDestroy(): wxThread::TestDestroy() can only be called in the context of the same thread [in child thread]

Program received signal SIGTRAP, Trace/breakpoint trap.
0x9330d9f4 in CRulersRanges::GetPendingRuler ()
(gdb) where
#0 0x9330d9f4 in CRulersRanges::GetPendingRuler ()
#1 0x933b6dac in CRulersRanges::GetReplaceExtraChars ()
#2 0x933b615c in CUnicodeTextension::UnicodeReplaceRange ()
#3 0x933b6070 in CUnicodeTextension::ReplaceRange ()
#4 0x933b6004 in CReplaceTextCommand::DoMainAction ()
#5 0x93313458 in CTextensionEditCommand::DoIt ()
#6 0x933133b4 in CTextensionCommand::Execute ()
#7 0x933132e8 in OpaqueTXNObject::ExecuteCurrCommand ()
#8 0x93312d14 in OpaqueTXNObject::NewCommand ()
#9 0x933b5f10 in DoSetDataCommand ()
#10 0x9331efe8 in TXNSetData ()
#11 0x0047eaa0 in wxMacMLTEControl::SetTXNData (this=0x2bd92b40, st=@0xbfffe7d8, start=4294967295, end=4294967295) at ../src/mac/carbon/textctrl.cpp:2255
#12 0x0047eb90 in wxMacMLTEControl::WriteText (this=0x2bd92b40, str=@0xbfffe908) at ../src/mac/carbon/textctrl.cpp:2094
#13 0x00483060 in wxTextCtrl::WriteText (this=0x17947a00, str=@0xbfffe908) at ../src/mac/carbon/textctrl.cpp:645
#14 0x00479088 in wxTextCtrl::AppendText (this=0x17947a00, text=@0xbfffe908) at ../src/mac/carbon/textctrl.cpp:651
#15 0x0057fcf4 in wxLogTextCtrl::DoLogString (this=0x2bd9a6d0, szString=0x2bfe9b7c) at ../src/generic/logg.cpp:1226
#16 0x004a5830 in wxLog::DoLog (this=0x2bd9a6d0, level=3, szString=0x2bfe9b7c, t=1227177306) at ../src/common/log.cpp:480
#17 0x004a454c in wxLog::OnLog (level=3, szString=0x2bfe9b7c, t=1227177306) at ../src/common/log.cpp:354
#18 0x004a4cdc in wxVLogMessage (szFormat=0x2bfe947c, argptr=0xbfffeafc "+???") at ../src/common/log.cpp:121
#19 0x004a4d64 in wxLogMessage (szFormat=0x2bfe947c) at ../src/common/log.cpp:121
#20 0x001358f8 in PluginManager::Load (this=0xe2d0c8) at LiteEditor/pluginmanager.cpp:189
#21 0x000c3b94 in Frame::LoadPlugins (this=0x178a9c00) at LiteEditor/frame.cpp:2808
#22 0x000da780 in Frame::Initialize (loadLastSession=true) at LiteEditor/frame.cpp:539
#23 0x00017068 in App::OnInit (this=0x1643be20) at LiteEditor/app.cpp:388
#24 0x00960a4c in wxAppConsole::CallOnInit (this=0x1643be20) at /Users/hiroshi//include/wx-2.8/wx/app.h:76
#25 0x004a7714 in wxEntry (argc=@0xe562a0, argv=0x1643a7e0) at ../src/common/init.cpp:444
#26 0x004a7888 in wxEntry (argc=@0xbffff258, argv=0xbffff308) at ../src/common/init.cpp:472
#27 0x00014810 in main (argc=1, argv=0xbffff308) at LiteEditor/app.cpp:121

HABE
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build2419 for MaOS X, where is wxWidgets?

Post by eranif »

habe36 wrote:I removed the lines of cscope between <SerializedObject></SerializeObject> and run, but the same alert appeared.
This is not how you disable plugin. If it does not in that file but the SO still exist, codelite will load it.

To disable itL
change:

Code: Select all

<bool Value="1" Name="enabled"/>
to

Code: Select all

<bool Value="0" Name="enabled"/>
or physically delete the cscope.so file

Eran
Make sure you have read the HOW TO POST thread
habe36
CodeLite Curious
Posts: 5
Joined: Thu Nov 20, 2008 4:37 am
Contact:

Re: Build2419 for MaOS X, where is wxWidgets?

Post by habe36 »

Okay, I got it.
Disable cscore and run. Still the alart appeared and crashed as,

Code: Select all

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x657b3b14 in wxCriticalSection::Enter (this=0x0) at ../src/mac/carbon/thread.cpp:127
127         MPEnterCriticalRegion( (MPCriticalRegionID) m_critRegion, kDurationForever );
(gdb) where
#0  0x657b3b14 in wxCriticalSection::Enter (this=0x0) at ../src/mac/carbon/thread.cpp:127
#1  0x657c846c in wxEvtHandler::AddPendingEvent (this=0x2c1186f0, event=@0xbfffe318) at ../src/common/event.cpp:1149
#2  0x657d0024 in wxWindow::Create (this=0x2c1186f0, parent=0x2c117c30, id=-1, pos=@0x65e83ec0, size=@0x65e83ec8, style=-1069285376, name=@0xbfffe5b8) at ../src/mac/carbon/window.cpp:1190
#3  0x6580b298 in wxControl::Create (this=0x2c1186f0, parent=0x2c117c30, id=-1, pos=@0x65e83ec0, size=@0x65e83ec8, style=-1069285376, validator=@0x65e842f0, name=@0xbfffe5b8) at ../src/mac/carbon/control.cpp:52
#4  0x656d1f9c in wxScintilla::Create (this=0x2c1186f0, parent=0x2c117c30, id=-1, pos=@0x65e83ec0, size=@0x65e83ec8, style=-1073741824, name=@0xbfffe5b8) at sdk/wxscintilla/src/wxscintilla.cpp:164
#5  0x656d2154 in wxScintilla::wxScintilla (this=0x2c1186f0, parent=0x2c117c30, id=-1, pos=@0x65e83ec0, size=@0x65e83ec8, style=0, name=@0xbfffe5b8) at sdk/wxscintilla/src/wxscintilla.cpp:151
#6  0x655b2160 in SvnTab::Initialize (this=0x2c117c30) at svntab.cpp:43
#7  0x655b283c in SvnTab::SvnTab (this=0x2c117c30, parent=0x2bd1bec0) at svntab.cpp:31
#8  0x6558cb30 in SubversionPlugin::SubversionPlugin (this=0x2c1175a0, manager=0xe2d0c8) at subversion.cpp:134
#9  0x6558e760 in CreatePlugin (manager=0xe2d0c8) at subversion.cpp:94
#10 0x00135710 in PluginManager::Load (this=0xe2d0c8) at LiteEditor/pluginmanager.cpp:188
#11 0x000c3b94 in Frame::LoadPlugins (this=0x178a9e00) at LiteEditor/frame.cpp:2808
#12 0x000da780 in Frame::Initialize (loadLastSession=true) at LiteEditor/frame.cpp:539
#13 0x00017068 in App::OnInit (this=0x1643be20) at LiteEditor/app.cpp:388
#14 0x00960a4c in wxAppConsole::CallOnInit (this=0x1643be20) at /Users/hiroshi//include/wx-2.8/wx/app.h:76
#15 0x004a7714 in wxEntry (argc=@0xe562a0, argv=0x1643a7e0) at ../src/common/init.cpp:444
#16 0x004a7888 in wxEntry (argc=@0xbffff258, argv=0xbffff310) at ../src/common/init.cpp:472
#17 0x00014810 in main (argc=1, argv=0xbffff310) at LiteEditor/app.cpp:121
It seemed it happened something at SubversionPlugin so disabled it and run. The alart still appeared but it launched normally and quit normally. For confirmation, made cscope plugin enabled but it crushed as same.

HABE
Post Reply