Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: regis on August 17, 2011, 09:21:03 AM



Title: [dev] git master branch doesn't compile (linux, wx 2.9, gcc 4.4.5)
Post by: regis on August 17, 2011, 09:21:03 AM
I'm not sure if it's "newbie" but I cannot post to developers :P
I cloned git repo from github, but master doesnt compile (log below)
What's wrong with that? I have installed wxWidget 2.9,  ubuntu 10.10, gcc 4.4.5

seems that someone is using wx method which doesn't exists.. which version of wx are you using?

regis@lap:~/bit/bitcoin/src$ git fetch origin
regis@lap:~/bit/bitcoin/src$ git rebase origin/master
Current branch master is up to date.
regis@lap:~/bit/bitcoin/src$ make -j4 -f makefile.unix bitcoin
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -DNOPCH -DUSE_SSL -DUSE_UPNP=0 -I/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9 -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -D__WXDEBUG__ -D__WXGTK__ -pthread -DGUI -o obj/ui.o ui.cpp
ui.cpp: In function ‘bool GetWalletPassphrase()’:
ui.cpp:262: error: ‘class wxString’ has no member named ‘ToStdString’
ui.cpp: In member function ‘virtual void CMainFrame::OnIconize(wxIconizeEvent&)’:
ui.cpp:448: warning: ‘bool wxIconizeEvent::Iconized() const’ is deprecated (declared at /usr/local/include/wx-2.9/wx/event.h:1950)
ui.cpp:456: warning: ‘bool wxIconizeEvent::Iconized() const’ is deprecated (declared at /usr/local/include/wx-2.9/wx/event.h:1950)
ui.cpp: In member function ‘virtual void CMainFrame::OnMenuOptionsEncryptWallet(wxCommandEvent&)’:
ui.cpp:1183: error: ‘class wxString’ has no member named ‘ToStdString’
ui.cpp:1200: error: ‘class wxString’ has no member named ‘ToStdString’
ui.cpp: In member function ‘virtual void CMainFrame::OnMenuOptionsChangeWalletPassphrase(wxCommandEvent&)’:
ui.cpp:1248: error: ‘class wxString’ has no member named ‘ToStdString’
ui.cpp:1274: error: ‘class wxString’ has no member named ‘ToStdString’
ui.cpp:1294: error: ‘class wxString’ has no member named ‘ToStdString’
make: *** [obj/ui.o] Error 1
regis@lap:~/bit/bitcoin/src$


Title: Re: [dev] git master branch doesn't compile (linux, wx 2.9, gcc 4.4.5)
Post by: regis on August 18, 2011, 08:02:15 AM
SOLVED!  doc is wrong,   wxWidget 2.9.0 doesn't work. need 2.9.2