testing compilation of OSX wallet on mavericks 10.9 with Xcode 5.0.2, Xcode, command line tools, brew, macports etc installed.
Using source
https://github.com/grumpycoin/grumpycoinand QT Creator 3.0.0, both Desktop QT 5.2.0 clang kit and Qt 4.8.5 causes error.
.../grumpycoin/src/qt/macdockiconhandler.mm:50: error: assigning to 'objc_object *' from incompatible type 'DockIconClickEventHandler *'
this->m_dockIconClickEventHandler = [[DockIconClickEventHandler alloc] initWithDockIconHandler:this];
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
using make -f makefile.osx
causes this error
.../grumpycoin/src/serialize.h:824:10: error:
class member cannot be redeclared
void insert(iterator it, std::vector<char>::const_iterator first, st...
^
.../grumpycoin/src/serialize.h:811:10: note:
previous declaration is here
void insert(iterator it, const_iterator first, const_iterator last)
^
.../grumpycoin/src/serialize.h:824:10: error:
redefinition of 'insert'
void insert(iterator it, std::vector<char>::const_iterator first, st...
^
.../grumpycoin/src/serialize.h:811:10: note:
previous definition is here
void insert(iterator it, const_iterator first, const_iterator last)
adding
#if !defined(MAC_OSX) in src/serialize.h
line 811
new error:
net.d -o obj/net.o net.cpp
net.cpp:52:1: error: unknown type name 'array'
array<int, THREAD_MAX> vnThreadsRunning;
^
net.cpp:52:6: error: expected unqualified-id
array<int, THREAD_MAX> vnThreadsRunning;
adding in src/makefile.osx
# osx 10.9 has changed the stdlib default to libc++. To prevent some link error, you may need to use libstdc++
CFLAGS += -stdlib=libstdc++
now I get lots of text, last text is this with error:
AppInit2() in init.o
std::__1::basic_ostringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_ostringstream() in init.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can anybody provide some help? If I try with litecoin project and QT Creator I also get architecture x86_64 error.
PS. the wallet new link causes virus alert and is not a new wallet according to
https://github.com/grumpycoin/grumpycoin/commit/d500adb6246f0beadbedb19b0166f42f026938cf but I guess everything not finished yet.
Yes, there are compile errors. I eventually worked through them. Here is a working version of the Mac wallet. Tested on 10.7, 10.8, & 10.9. I will recompile when source code changes are implemented. For now: