Thanks for the quick reply.
I built and linked the wxWidgets by myself, but being sure I did not make a
mistake, I also built it by standard means (configure, make). I will try to
use otool or nm to locate the symbol, thanks for suggestion.
In the meantime I tried to play with compiler settings, configure settings
and macro definitions. Now when I run
HelloWorldApp I simply get some info into command line:
"
Page Faults: 3732, Page Ins: 1538, COW Faults: 530 Ports: 39
Res NonSpec: 0 B Res Spec: 0 B Dirty: 0 B Copied: 0 B
Swapped: 0 B
Wired: 0 B, KMEM: 244 kB
Malloc data unavailable
User CPU Time: 0.073627 sec, System CPU Time: 0.039926 over 4 threads
"
and application then terminates.
Being unsuccessful with building wxWidgets using command-line tools, I
tried to use xcode projects that come with the wxWidgets distribution. I
followed this guideline:
http://wiki.wxwidgets.org/Creating_Xcode_projects_for_wxWidgets_applications
wxWidgets compiled without problem, minimal_cocoa application as well. Then
when I run it, I get the following error:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libstdc++.6.dylib 0x00007fff95fd608a
std::basic_string<wchar_t, std::char_traits<wchar_t>,
std::allocator<wchar_t> >::_Rep::_M_grab(std::allocator<wchar_t> const&,
std::allocator<wchar_t> const&) + 4
1 libstdc++.6.dylib 0x00007fff95fd68a1
std::basic_string<wchar_t, std::char_traits<wchar_t>,
std::allocator<wchar_t> >::assign(std::basic_string<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) + 39
2 libwx_osx_cocoa.dylib 0x00000001095a58ff
wxString::operator=(wxString const&) + 47 (string.h:1883)
3 libwx_osx_cocoa.dylib 0x000000010973709f
wxWindowBase::SetName(wxString const&) + 47 (window.h:208)
4 libwx_osx_cocoa.dylib 0x00000001097382e6
wxNonOwnedWindow::Create(wxWindow*, int, wxPoint const&, wxSize const&,
long, wxString const&) + 118 (nonownedwnd_osx.cpp:115)
5 libwx_osx_cocoa.dylib 0x000000010973ec78
wxTopLevelWindowMac::Create(wxWindow*, int, wxString const&, wxPoint
const&, wxSize const&, long, wxString const&) + 104 (toplevel_osx.cpp:75)
6 libwx_osx_cocoa.dylib 0x00000001097c3b67
wxFrame::Create(wxWindow*, int, wxString const&, wxPoint const&, wxSize
const&, long, wxString const&) + 103 (frame.cpp:52)
7 org.wxwidgets.samples.final 0x000000010958182c
wxFrame::wxFrame(wxWindow*, int, wxString const&, wxPoint const&, wxSize
const&, long, wxString const&) + 140 (frame.h:35)
8 org.wxwidgets.samples.final 0x0000000109580ecf
MyFrame::MyFrame(wxString const&) + 127 (minimal.cpp:147)
9 org.wxwidgets.samples.final 0x0000000109580e3d
MyFrame::MyFrame(wxString const&) + 29 (minimal.cpp:175)
10 org.wxwidgets.samples.final 0x0000000109580d84 MyApp::OnInit() +
100 (minimal.cpp:128)
11 libwx_osx_cocoa.dylib 0x000000010972ff1f
wxApp::CallOnInit() + 95 (utils.mm:336)
12 libwx_osx_cocoa.dylib 0x000000010963d01d wxEntry(int&,
wchar_t**) + 205 (init.cpp:479)
13 libwx_osx_cocoa.dylib 0x000000010963d1ff wxEntry(int&,
char**) + 63 (init.cpp:507)
14 org.wxwidgets.samples.final 0x0000000109580c96 main + 38
(minimal.cpp:109)
15 libdyld.dylib 0x00007fff943075fd start + 1
I am out of luck with getting wxWidgets running. Is any of the errors above
familiar to you?
Thanks in advance for any help.
Post by Vadim Zeitlins> when I try to run Hello World
s> (http://docs.wxwidgets.org/trunk/overview_helloworld.html) application with
s> wxWidgets-3.0.0 under MAC OS X 10.9 (Cocoa port), I get the following
s>
s> dyld: Symbol not found: _dataroot
s> Referenced from: myHelloWorldApp
s> Expected in: flat namespace
I've never seen this before neither. How did you compile the library and
your application exactly? Also, can you use nm (or otool?) to check where
is this symbol referenced from exactly?
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users