/Users/nikolai/projects/keyhotee/miner/server.cpp: In member function 'void server::send_work(const connection_data&, const bitcoin::work&)':
/Users/nikolai/projects/keyhotee/miner/server.cpp:352:5: internal compiler error: in calc_dfs_tree, at dominance.c:401
}
^
/Users/nikolai/projects/keyhotee/miner/server.cpp:352:5: internal compiler error: Abort trap: 6
c++: internal compiler error: Abort trap: 6 (program cc1plus)
What the fuck?Code: [Select]/Users/nikolai/projects/keyhotee/miner/server.cpp: In member function 'void server::send_work(const connection_data&, const bitcoin::work&)':
/Users/nikolai/projects/keyhotee/miner/server.cpp:352:5: internal compiler error: in calc_dfs_tree, at dominance.c:401
}
^
/Users/nikolai/projects/keyhotee/miner/server.cpp:352:5: internal compiler error: Abort trap: 6
c++: internal compiler error: Abort trap: 6 (program cc1plus)
(side note: found a better dmg making script here https://github.com/remko/fancy-dmg/)
In file included from /Users/xhb/GitHub/keyhotee/BitShares/include/bts/network/channel_id.hpp:76:
In file included from /Users/xhb/GitHub/keyhotee/BitShares/fc/include/fc/reflect/reflect.hpp:9:
In file included from /Users/xhb/GitHub/keyhotee/BitShares/fc/include/fc/utility.hpp:3:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/new:56:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/exception:81:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/type_traits:770:38: error:
implicit instantiation of undefined template 'std::__1::hash<fc::ip::endpoint>'
: public integral_constant<bool, __is_empty(_Tp)> {};
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/unordered_map:327:54: note:
in instantiation of template class 'std::__1::is_empty<std::__1::hash<fc::ip::endpoint> >' requested here
template <class _Key, class _Tp, class _Hash, bool = is_empty<_Hash>::value
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/unordered_map:678:13: note:
in instantiation of default argument for '__unordered_map_hasher<fc::ip::endpoint,
std::__1::shared_ptr<bts::network::connection>, std::__1::hash<fc::ip::endpoint> >' required here
typedef __unordered_map_hasher<key_type, mapped_type, hasher> __hasher;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/xhb/GitHub/keyhotee/BitShares/src/network/server.cpp:63:71: note: in instantiation of template class
'std::__1::unordered_map<fc::ip::endpoint, std::__1::shared_ptr<bts::network::connection>, std::__1::hash<fc::ip::endpoint>,
std::__1::equal_to<fc::ip::endpoint>, std::__1::allocator<std::__1::pair<const fc::ip::endpoint,
std::__1::shared_ptr<bts::network::connection> > > >' requested here
std::unordered_map<fc::ip::endpoint,connection_ptr> connections;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:3081:29: note:
template is declared here
template <class _Tp> struct hash;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:2147:15: error: no
matching constructor for initialization of 'bts::network::connection'
__second_(_VSTD::forward<_Args2>(get<_I2>(__second_args))...)
make errors...
g++ versions:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posixCode: [Select]In file included from /Users/xhb/GitHub/keyhotee/BitShares/include/bts/network/channel_id.hpp:76:
In file included from /Users/xhb/GitHub/keyhotee/BitShares/fc/include/fc/reflect/reflect.hpp:9:
In file included from /Users/xhb/GitHub/keyhotee/BitShares/fc/include/fc/utility.hpp:3:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/new:56:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/exception:81:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/type_traits:770:38: error:
implicit instantiation of undefined template 'std::__1::hash<fc::ip::endpoint>'
: public integral_constant<bool, __is_empty(_Tp)> {};
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/unordered_map:327:54: note:
in instantiation of template class 'std::__1::is_empty<std::__1::hash<fc::ip::endpoint> >' requested here
template <class _Key, class _Tp, class _Hash, bool = is_empty<_Hash>::value
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/unordered_map:678:13: note:
in instantiation of default argument for '__unordered_map_hasher<fc::ip::endpoint,
std::__1::shared_ptr<bts::network::connection>, std::__1::hash<fc::ip::endpoint> >' required here
typedef __unordered_map_hasher<key_type, mapped_type, hasher> __hasher;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/xhb/GitHub/keyhotee/BitShares/src/network/server.cpp:63:71: note: in instantiation of template class
'std::__1::unordered_map<fc::ip::endpoint, std::__1::shared_ptr<bts::network::connection>, std::__1::hash<fc::ip::endpoint>,
std::__1::equal_to<fc::ip::endpoint>, std::__1::allocator<std::__1::pair<const fc::ip::endpoint,
std::__1::shared_ptr<bts::network::connection> > > >' requested here
std::unordered_map<fc::ip::endpoint,connection_ptr> connections;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:3081:29: note:
template is declared here
template <class _Tp> struct hash;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:2147:15: error: no
matching constructor for initialization of 'bts::network::connection'
__second_(_VSTD::forward<_Args2>(get<_I2>(__second_args))...)
Linking CXX executable bin/Keyhotee.app/Contents/MacOS/Keyhotee
Undefined symbols for architecture x86_64:
"fc::time_point::from_iso_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
bts::bitname::create_genesis_block() in libbshare.a(bitname_block.cpp.o)
"fc::to_variant(std::vector<char, std::allocator<char> > const&, fc::variant&)", referenced from:
void fc::to_variant<bts::addressbook::contact_property>(std::vector<bts::addressbook::contact_property, std::allocator<bts::addressbook::contact_property> > const&, fc::variant&) in Contact.cpp.o
void fc::reflector<bts::addressbook::wallet_contact>::visit<fc::to_variant_visitor<bts::addressbook::wallet_contact> >(fc::to_variant_visitor<bts::addressbook::wallet_contact> const&) in Contact.cpp.o
void fc::to_variant<bts::addressbook::contact_property>(std::vector<bts::addressbook::contact_property, std::allocator<bts::addressbook::contact_property> > const&, fc::variant&) in KeyhoteeMainWindow.cpp.o
void fc::to_variant<bts::addressbook::wallet_identity>(std::vector<bts::addressbook::wallet_identity, std::allocator<bts::addressbook::wallet_identity> > const&, fc::variant&) in KeyhoteeMainWindow.cpp.o
fc::mutable_variant_object& fc::mutable_variant_object::operator()<std::vector<char, std::allocator<char> > const&>(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<char, std::allocator<char> > const&) in libbshare.a(addressbook.cpp.o)
void fc::to_variant<bts::addressbook::contact_property>(std::vector<bts::addressbook::contact_property, std::allocator<bts::addressbook::contact_property> > const&, fc::variant&) in libbshare.a(addressbook.cpp.o)
void fc::reflector<bts::addressbook::wallet_contact>::visit<fc::to_variant_visitor<bts::addressbook::wallet_contact> >(fc::to_variant_visitor<bts::addressbook::wallet_contact> const&) in libbshare.a(addressbook.cpp.o)
...
"fc::aes_decrypt(fc::sha512 const&, std::vector<char, std::allocator<char> > const&)", referenced from:
bts::addressbook::addressbook::open(fc::path const&, fc::sha512 const&) in libbshare.a(addressbook.cpp.o)
bts::bitchat::encrypted_message::decrypt(fc::ecc::private_key const&, bts::bitchat::decrypted_message&) const in libbshare.a(bitchat_private_message.cpp.o)
"fc::aes_encrypt(fc::sha512 const&, std::vector<char, std::allocator<char> > const&)", referenced from:
bts::addressbook::addressbook::store_contact(bts::addressbook::wallet_contact const&) in libbshare.a(addressbook.cpp.o)
bts::bitchat::decrypted_message::encrypt(fc::ecc::public_key const&) const in libbshare.a(bitchat_private_message.cpp.o)
brew uninstall qt5
brew install libpng
brew install qt5 --without-x11
Aha! Compilation successful, make install successful & keyhotee running after tackling the libpng issues.
bytemaster, tryCode: [Select]brew uninstall qt5
brew install libpng
brew install qt5 --without-x11
then delete CMakeCache/CMakeFiles and redo everything
This should link in homebrew's libpng and remove the dependency on x11
What exactly should this script do? The fix appears to be to rebuild your local qt installation with a particular flag.
edit: do you mean the script to put the app into a nice .dmg?
I can package up my local .app and we can test if it's portable
# cd keyhotee/bin
## copy libstdc++.6.dylib and libgcc_s.1.dylib from gcc folder from brew installation
# cp /usr/local/Cellar/gcc48/4.8.2/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2/libstdc++.6.dylib Keyhotee.app/Contents/Frameworks/libstdc++.6.dylib
# cp /usr/local/Cellar/gcc48/4.8.2/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2/libgcc_s.1.dylib Keyhotee.app/Contents/Frameworks/libgcc_s.1.dylib
## change references in offending library
# install_name_tool -change /usr/local/lib/gcc/x86_64-apple-darwin13.0.0/lib/libstdc++.6.dylib @executable_path/../Frameworks/libstdc++.6.dylib Keyhotee.app/Contents/PlugIns/sqldrivers/libqsqlite.dylib
# install_name_tool -change /usr/local/lib/gcc/x86_64-apple-darwin13.0.0/lib/libgcc_s.1.dylib @executable_path/../Frameworks/libgcc_s.1.dylib Keyhotee.app/Contents/PlugIns/sqldrivers/libqsqlite.dylib
## wtf, but this worked
# cp -r /usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2/ /usr/local/lib/gcc/x86_64-apple-darwin13.0.0/lib
## finally
# sudo /usr/local/Cellar/qt5/5.2.0/bin/macdeployqt Keyhotee.app/ -dmg
## wtf, but this worked
# cp -r /usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2/ /usr/local/lib/gcc/x86_64-apple-darwin13.0.0/lib
Process: Keyhotee [96701]
Path: /Users/USER/Desktop/Keyhotee.app/Contents/MacOS/Keyhotee
Identifier: com.invictus-innovations.Keyhotee
Version: ???
Code Type: X86-64 (Native)
Parent Process: launchd [325]
Responsible: Keyhotee [96701]
User ID: 502
Date/Time: 2014-01-07 11:22:08.719 +0800
OS Version: Mac OS X 10.9.1 (13B42)
Report Version: 11
Anonymous UUID: 34E4D3B8-32EB-4101-C151-E00FF791C271
Sleep/Wake UUID: 449CA051-C2E8-4E65-A794-89684178D6A1
Crashed Thread: 0
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
Symbol not found: __ZNSt12bad_weak_ptrD1Ev
Referenced from: /Users/USER/Desktop/Keyhotee.app/Contents/MacOS/Keyhotee
Expected in: /usr/lib/libstdc++.6.dylib
in /Users/USER/Desktop/Keyhotee.app/Contents/MacOS/Keyhotee
Binary Images:
0x103069000 - 0x103519ff7 +QtWidgets (5.2) <90678B22-5BFC-336C-9013-C8AD403562AA> /Users/USER/Desktop/Keyhotee.app/Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets
0x103641000 - 0x10366afff +QtPrintSupport (5.2) <6FF469E4-221E-3778-B7F3-38BE34501CFB> /Users/USER/Desktop/Keyhotee.app/Contents/Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport
0x103688000 - 0x104e45fff +QtWebKit (5.2) <D6CD80EC-39FB-337F-91B4-ED65F038468A> /Users/USER/Desktop/Keyhotee.app/Contents/Frameworks/QtWebKit.framework/Versions/5/QtWebKit
0x1050c7000 - 0x105447fff +QtGui (5.2) <9EE7FD9C-121D-3D0B-8CC7-1D46745BB2E9> /Users/USER/Desktop/Keyhotee.app/Contents/Frameworks/QtGui.framework/Versions/5/QtGui
0x105512000 - 0x105614ff7 +QtNetwork (5.2) <0E387C83-7429-3900-8113-63CCBC7DBD91> /Users/USER/Desktop/Keyhotee.app/Contents/Frameworks/QtNetwork.framework/Versions/5/QtNetwork
0x10564a000 - 0x105b2aff7 +QtCore (5.2) <13F4E3F1-E1B0-3DA9-AF41-D189CEA9F30E> /Users/USER/Desktop/Keyhotee.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore
0x105bb3000 - 0x105bb7fff com.apple.agl (3.2.3 - AGL-3.2.3) <1B85306F-D2BF-3FE3-9915-165237B491EB> /System/Library/Frameworks/AGL.framework/Versions/A/AGL
0x105bbf000 - 0x105e60fff +QtQuick (5.2) <C6FE3B79-4F6D-3E59-AB61-C4729D4E96D3> /Users/USER/Desktop/Keyhotee.app/Contents/Frameworks/QtQuick.framework/Versions/5/QtQuick
0x105efe000 - 0x10622fff7 +QtQml (5.2) <3C186F3B-725B-318A-A8B3-42CD18EC101A> /Users/USER/Desktop/Keyhotee.app/Contents/Frameworks/QtQml.framework/Versions/5/QtQml
0x1062af000 - 0x1062e5fff +QtPositioning (5.2) <CAB66797-BF4D-3AC7-B3F7-A3D56B090AFE> /Users/USER/Desktop/Keyhotee.app/Contents/Frameworks/QtPositioning.framework/Versions/5/QtPositioning
0x1062fa000 - 0x106387ff7 +QtMultimedia (5.2) <17628B38-FB07-36C5-8B2B-12DDC26222B0> /Users/USER/Desktop/Keyhotee.app/Contents/Frameworks/QtMultimedia.framework/Versions/5/QtMultimedia
0x1063c8000 - 0x1063f1fff +QtSql (5.2) <A2D12DF9-665E-30D2-99EF-FDCA8D393A58> /Users/USER/Desktop/Keyhotee.app/Contents/Frameworks/QtSql.framework/Versions/5/QtSql
0x106409000 - 0x106429ff7 +QtSensors (5.2) <305A3896-E85C-36E1-890A-4F895DF65BCC> /Users/USER/Desktop/Keyhotee.app/Contents/Frameworks/QtSensors.framework/Versions/5/QtSensors
0x7fff6cd18000 - 0x7fff6cd4b817 dyld (239.3) <D1DFCF3F-0B0C-332A-BCC0-87A851B570FF> /usr/lib/dyld
0x7fff8b5c0000 - 0x7fff8b60eff9 libstdc++.6.dylib (60) <0241E6A4-1368-33BE-950B-D0A175C41F54> /usr/lib/libstdc++.6.dylib
0x7fff8b60f000 - 0x7fff8b61bff7 com.apple.OpenDirectory (10.9 - 173.1.1) <6B78BD7B-5622-38E6-8FC6-86A117E3ACCA> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x7fff8b61c000 - 0x7fff8b61dff7 libSystem.B.dylib (1197.1.1) <BFC0DC97-46C6-3BE0-9983-54A98734897A> /usr/lib/libSystem.B.dylib
0x7fff8b755000 - 0x7fff8c07105f com.apple.CoreGraphics (1.600.0 - 599.7) <7D0FD5A7-A061-39BA-8E00-723825D2C4DD> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x7fff8c0af000 - 0x7fff8c0b5ff7 libsystem_platform.dylib (24.1.4) <331BA4A5-55CE-3B95-99EB-44E0C89D7FB8> /usr/lib/system/libsystem_platform.dylib
0x7fff8c106000 - 0x7fff8c116fff libbsm.0.dylib (33) <2CAC00A2-1352-302A-88FA-C567D4D69179> /usr/lib/libbsm.0.dylib
.....
DACer do you have Xcode or the command-line tools?
Is it normal for macs to ship without a compiled libstdc++? o.O
I think the new plan of action is to make a script to:
use otool -L to get a list of dependencies for each binary
copy the dependencies into Keyhotee.app/Contents/Framework
use install_name_tool to update the dependency location
recurse for each dependency
does that sound right?
cp -rf /opt/local/lib/libminiupnpc.8.dylib ./ProtoShares-Qt.app/Contents/MacOS/
cp -rf /opt/local/lib/libssl.1.0.0.dylib ./ProtoShares-Qt.app/Contents/MacOS/
cp -rf /opt/local/lib/libcrypto.1.0.0.dylib ./ProtoShares-Qt.app/Contents/MacOS/
cp -rf /opt/local/lib/libz.1.dylib ./ProtoShares-Qt.app/Contents/MacOS/
cp -rf /opt/local/lib/db48/libdb_cxx-4.8.dylib ./ProtoShares-Qt.app/Contents/MacOS/
cp -rf /opt/local/lib/libboost_system-mt.dylib ./ProtoShares-Qt.app/Contents/MacOS/
cp -rf /opt/local/lib/libboost_filesystem-mt.dylib ./ProtoShares-Qt.app/Contents/MacOS/
cp -rf /opt/local/lib/libboost_program_options-mt.dylib ./ProtoShares-Qt.app/Contents/MacOS/
cp -rf /opt/local/lib/libboost_thread-mt.dylib ./ProtoShares-Qt.app/Contents/MacOS/
cp -rf /opt/local/lib/libboost_chrono-mt.dylib ./ProtoShares-Qt.app/Contents/MacOS/
cp -r /Users/dlarimer/Qt5.1.1/5.1.1/clang_64/lib/QtWidgets.framework/Versions/5/QtWidgets ./ProtoShares-Qt.app/Contents/MacOS/
cp -r /Users/dlarimer/Qt5.1.1/5.1.1/clang_64/lib/QtGui.framework/Versions/5/QtGui ./ProtoShares-Qt.app/Contents/MacOS/
cp -r /Users/dlarimer/Qt5.1.1/5.1.1/clang_64/lib/QtCore.framework/Versions/5/QtCore ./ProtoShares-Qt.app/Contents/MacOS/
cp -r /Users/dlarimer/Qt5.1.1/5.1.1/clang_64/lib/QtNetwork.framework/Versions/5/QtNetwork ./ProtoShares-Qt.app/Contents/MacOS/
exit
install_name_tool -change /opt/local/lib/libminiupnpc.8.dylib @executable_path/libminiupnpc.8.dylib ./ProtoShares-Qt.app/Contents/MacOS/ProtoShares-Qt
install_name_tool -change /opt/local/lib/libssl.1.0.0.dylib @executable_path/libssl.1.0.0.dylib ./ProtoShares-Qt.app/Contents/MacOS/ProtoShares-Qt
install_name_tool -change /opt/local/lib/libcrypto.1.0.0.dylib @executable_path/libcrypto.1.0.0.dylib ./ProtoShares-Qt.app/Contents/MacOS/libssl.1.0.0.dylib
install_name_tool -change /opt/local/lib/libz.1.dylib @executable_path/libz.1.dylib ./ProtoShares-Qt.app/Contents/MacOS/libssl.1.0.0.dylib
install_name_tool -change /opt/local/lib/db48/libdb_cxx-4.8.dylib @executable_path/libdb_cxx-4.8.dylib ./ProtoShares-Qt.app/Contents/MacOS/ProtoShares-Qt
install_name_tool -change /opt/local/lib/libboost_system-mt.dylib @executable_path/libboost_system-mt.dylib ./ProtoShares-Qt.app/Contents/MacOS/ProtoShares-Qt
install_name_tool -change /opt/local/lib/libboost_filesystem-mt.dylib @executable_path/libboost_filesystem-mt.dylib ./ProtoShares-Qt.app/Contents/MacOS/ProtoShares-Qt
install_name_tool -change /opt/local/lib/libboost_program_options-mt.dylib @executable_path/libboost_program_options-mt.dylib ./ProtoShares-Qt.app/Contents/MacOS/ProtoShares-Qt
install_name_tool -change /opt/local/lib/libboost_thread-mt.dylib @executable_path/libboost_thread-mt.dylib ./ProtoShares-Qt.app/Contents/MacOS/ProtoShares-Qt
install_name_tool -change /opt/local/lib/libboost_chrono-mt.dylib @executable_path/libboost_chrono-mt.dylib ./ProtoShares-Qt.app/Contents/MacOS/ProtoShares-Qt
install_name_tool -change /Users/dlarimer/Qt5.1.1/5.1.1/clang_64/lib/QtWidgets.framework/Versions/5/QtWidgets @executable_path/QtWidgets ./ProtoShares-Qt.app/Contents/MacOS/ProtoShares-Qt
install_name_tool -change /Users/dlarimer/Qt5.1.1/5.1.1/clang_64/lib/QtGui.framework/Versions/5/QtGui @executable_path/QtGui ./ProtoShares-Qt.app/Contents/MacOS/ProtoShares-Qt
install_name_tool -change /Users/dlarimer/Qt5.1.1/5.1.1/clang_64/lib/QtCore.framework/Versions/5/QtCore @executable_path/QtCore ./ProtoShares-Qt.app/Contents/MacOS/ProtoShares-Qt
install_name_tool -change /Users/dlarimer/Qt5.1.1/5.1.1/clang_64/lib/QtNetwork.framework/Versions/5/QtNetwork @executable_path/QtNetwork ./ProtoShares-Qt.app/Contents/MacOS/ProtoShares-Qt
install_name_tool -change /opt/local/lib/libboost_system-mt.dylib @executable_path/libboost_system-mt.dylib ./ProtoShares-Qt.app/Contents/MacOS/libboost_thread-mt.dylib
install_name_tool -change /opt/local/lib/libboost_system-mt.dylib @executable_path/libboost_system-mt.dylib ./ProtoShares-Qt.app/Contents/MacOS/libboost_filesystem-mt.dylib
install_name_tool -change /opt/local/lib/libboost_system-mt.dylib @executable_path/libboost_system-mt.dylib ./ProtoShares-Qt.app/Contents/MacOS/libboost_chrono-mt.dylib
install_name_tool -change /opt/local/lib/libboost_system-mt.dylib @executable_path/libboost_system-mt.dylib ./ProtoShares-Qt.app/Contents/MacOS/libboost_program_options-mt.dylib
install_name_tool -change /Users/dlarimer/Qt5.1.1/5.1.1/clang_64/lib/QtGui.framework/Versions/5/QtGui @executable_path/QtGui ./ProtoShares-Qt.app/Contents/MacOS/QtWidgets
install_name_tool -change /Users/dlarimer/Qt5.1.1/5.1.1/clang_64/lib/QtCore.framework/Versions/5/QtCore @executable_path/QtCore ./ProtoShares-Qt.app/Contents/MacOS/QtWidgets
install_name_tool -change /Users/dlarimer/Qt5.1.1/5.1.1/clang_64/lib/QtCore.framework/Versions/5/QtCore @executable_path/QtCore ./ProtoShares-Qt.app/Contents/MacOS/QtNetwork
install_name_tool -change /Users/dlarimer/Qt5.1.1/5.1.1/clang_64/lib/QtCore.framework/Versions/5/QtCore @executable_path/QtCore ./ProtoShares-Qt.app/Contents/MacOS/QtGui
DACer do you have Xcode or the command-line tools?Yes I do have Xcode 5.02 and commandline-tool installed. Unfortunately I have no input for your other questions.
Due to the recent fall in the PTS value I am increasing this bounty to 200 PTS.
Due to the recent fall in the PTS value I am increasing this bounty to 200 PTS.
will this apply across the board
git clone https://github.com/InvictusInnovations/keyhotee
cd keyhotee
git clone https://github.com/InvictusInnovations/BitShares
cd BitShares
git clone https://github.com/InvictusInnovations/fc
cd ../
cmake -DBOOST_ROOT=/usr/local/Cellar/boost/1.55.0 ./CMakeLists.txt
-- Could NOT find ICU (missing: ICU_ROOT_DIR ICU_INCLUDE_DIR)
CMake Warning at CMakeLists.txt:31 (find_package):
By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Core", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5Core" with any
of the following names:
Qt5CoreConfig.cmake
qt5core-config.cmake
Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
"Qt5Core_DIR" to a directory containing one of the above files. If
"Qt5Core" provides a separate development package or SDK, be sure it has
been installed.
CMake Warning at CMakeLists.txt:32 (find_package):
By not providing "FindQt5LinguistTools.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Qt5LinguistTools", but CMake did not find one.
Could not find a package configuration file provided by "Qt5LinguistTools"
with any of the following names:
Qt5LinguistToolsConfig.cmake
qt5linguisttools-config.cmake
Add the installation prefix of "Qt5LinguistTools" to CMAKE_PREFIX_PATH or
set "Qt5LinguistTools_DIR" to a directory containing one of the above
files. If "Qt5LinguistTools" provides a separate development package or
SDK, be sure it has been installed.
CMake Warning at CMakeLists.txt:33 (find_package):
By not providing "FindQt5PrintSupport.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Qt5PrintSupport", but CMake did not find one.
Could not find a package configuration file provided by "Qt5PrintSupport"
with any of the following names:
Qt5PrintSupportConfig.cmake
qt5printsupport-config.cmake
Add the installation prefix of "Qt5PrintSupport" to CMAKE_PREFIX_PATH or
set "Qt5PrintSupport_DIR" to a directory containing one of the above files.
If "Qt5PrintSupport" provides a separate development package or SDK, be
sure it has been installed.
/Users/0day/Downloads/keyhotee/BitShares
Using invictus root: ./
statusCompiling on UNIX
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- thread
-- date_time
-- system
-- filesystem
-- program_options
-- signals
-- serialization
-- chrono
-- unit_test_framework
-- context
-- coroutine
statusCompiling on UNIX
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- thread
-- date_time
-- system
-- filesystem
-- program_options
-- signals
-- serialization
-- chrono
-- unit_test_framework
-- context
-- coroutine
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- thread
-- date_time
-- system
-- filesystem
-- program_options
-- signals
-- serialization
-- chrono
-- unit_test_framework
-- context
CMake Error at CMakeLists.txt:123 (qt5_wrap_ui):
Unknown CMake command "qt5_wrap_ui".
-- Configuring incomplete, errors occurred!
See also "/Users/0day/Downloads/keyhotee/CMakeFiles/CMakeOutput.log".
This seems to work for me, but I have macports installed.
I will have a few other mac users verify that this works then I will test out your script. If it works for my use then you will have won this bounty! Good work!
Hey, running the OSX client. This may be a stupid question but how do I know my public key? and I can create multiple identities within keyhotee?
Hey, running the OSX client. This may be a stupid question but how do I know my public key? and I can create multiple identities within keyhotee?
You can create multiple identities. New Identity menu.
If they are for different people, then you will want multiple profiles rather than 2 identities for one person.
Hey, running the OSX client. This may be a stupid question but how do I know my public key? and I can create multiple identities within keyhotee?
You can create multiple identities. New Identity menu.
If they are for different people, then you will want multiple profiles rather than 2 identities for one person.
So after running keyhotee I need to create my first identity, which will be my founders address. how do I generate a public key? If I hit new identity is asks me for a public key and a founders code.... I have neither.
apparently it does crash a lot when linking libstdc++ and libgcc_s statically (not too sure why...) so I updated the script to link dynamically and resolve the links properly.
Here's an updated .dmg: https://www.dropbox.com/s/ngq8c9hsbypxsvv/Keyhotee.dmg
Got it!
so the crashes were most certainly due to mixing libc++ and libstdc++ in the same binary (which was only possible in the first place because libc++ uses an inline namespace on std), especially when passing std::string as arg to functions as std::strings are not binary compatible between both c++ libs, one uses refcounting and the other uses the small string optimization (see http://stackoverflow.com/questions/8454329/why-cant-clang-with-libc-in-c0x-mode-link-this-boostprogram-options-examp)
From here, there were only 2 solutions possible:
- compile everything with clang
- compile everything with gcc (Qt5 included, which is not in macports...)
So I went with the first solution (which is also the cleanest solution in the long term, as we use the platform's native compiler) and decided to fix compilation with clang. The resulting pull requests are here:
https://github.com/InvictusInnovations/fc/pull/3
https://github.com/InvictusInnovations/BitShares/pull/16
with this done, it is now possible to build a portable .dmg using the same instructions as in linux, ie:
git clone https://github.com/InvictusInnovations/keyhotee
cd keyhotee
git clone https://github.com/InvictusInnovations/BitShares
cd BitShares
git clone https://github.com/InvictusInnovations/fc
cd ..
export QTDIR=/usr/local/Cellar/qt5/5.2.0
cmake . && make
cd bin && $QTDIR/bin/macdeployqt Keyhotee.app -dmg
no need to fiddle anymore with compiler flags, etc. (note: this still assumes you have brew installed and installed the deps with it, ie: qt5, boost, icu)
I think this one should work everywhere now,
Updated .dmg: https://www.dropbox.com/s/ngq8c9hsbypxsvv/Keyhotee.dmg
Got it!
so the crashes were most certainly due to mixing libc++ and libstdc++ in the same binary (which was only possible in the first place because libc++ uses an inline namespace on std), especially when passing std::string as arg to functions as std::strings are not binary compatible between both c++ libs, one uses refcounting and the other uses the small string optimization (see http://stackoverflow.com/questions/8454329/why-cant-clang-with-libc-in-c0x-mode-link-this-boostprogram-options-examp)
From here, there were only 2 solutions possible:
- compile everything with clang
- compile everything with gcc (Qt5 included, which is not in macports...)
So I went with the first solution (which is also the cleanest solution in the long term, as we use the platform's native compiler) and decided to fix compilation with clang. The resulting pull requests are here:
https://github.com/InvictusInnovations/fc/pull/3
https://github.com/InvictusInnovations/BitShares/pull/16
with this done, it is now possible to build a portable .dmg using the same instructions as in linux, ie:
git clone https://github.com/InvictusInnovations/keyhotee
cd keyhotee
git clone https://github.com/InvictusInnovations/BitShares
cd BitShares
git clone https://github.com/InvictusInnovations/fc
cd ..
export QTDIR=/usr/local/Cellar/qt5/5.2.0
cmake . && make
cd bin && $QTDIR/bin/macdeployqt Keyhotee.app -dmg
no need to fiddle anymore with compiler flags, etc. (note: this still assumes you have brew installed and installed the deps with it, ie: qt5, boost, icu)
I think this one should work everywhere now,
Updated .dmg: https://www.dropbox.com/s/ngq8c9hsbypxsvv/Keyhotee.dmg
Fantastic work wackou! Please provide a PTS address you have earned it.
er·u·dite
ˈer(y)əˌdīt/Submit
adjective
1. having or showing great knowledge or learning.
synonyms: learned, scholarly, educated, knowledgeable, well-read, well-informed, intellectual;
Unfortunately still keeps crashing for me as soon as I open it. Do somebody want my crash reports?
# prerequisite: a fresh mavericks install (in a vm, most likely)
#
# note: this script cannot be run as is, sometimes it will require manual
# intervention. You should follow the instructions in the lines
# starting with "#!!! ".
## install xcode and command line tools
#!!! download xcode from the mac app store
xcode-select --install
#!!! install command line tools
sudo xcodebuild -license
#!!! agree to the license terms
## install brew and keyhotee dependencies
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew install cmake boost qt5
export QTDIR=/usr/local/Cellar/qt5/5.2.0
## git clone kehotee and compile it
git clone https://github.com/InvictusInnovations/keyhotee
cd keyhotee
git clone https://github.com/InvictusInnovations/BitShares
cd BitShares
git clone https://github.com/InvictusInnovations/fc
cd ..
cmake . && make
cd bin
$QTDIR/bin/macdeployqt Keyhotee.app -dmg
cmake -G Xcode .
open keyhotee.xcodeproj
Guys,
can i uninstall and clean up my account? Where do the software keeps its datas?
Thanks,
Mike
Guys,
can i uninstall and clean up my account? Where do the software keeps its datas?
Thanks,
Mike
Hi bytemaster.
Thanks for help. As i expected on that path coz most of apps data is there. Im wondering why on my end is not there.
Thanks,
Mike
~/Library/Application Support/Keyhotee
Guys,
can i uninstall and clean up my account? Where do the software keeps its datas?
Thanks,
Mike
Hi bytemaster.
Thanks for help. As i expected on that path coz most of apps data is there. Im wondering why on my end is not there.
Thanks,
Mike
~/Library/Application Support/Keyhotee