local/lib -o build/net.o src/net.cpp
src/net.cpp:60:1: error: unknown type name 'array'
arrayvnThreadsRunning;
^
src/net.cpp:60:6: error: expected unqualified-id
arrayvnThreadsRunning;
^
# osx 10.9 has changed the stdlib default to libc++. To prevent some link error, you may need to use libstdc++
CFLAGS += -stdlib=libstdc++
ok, i was trying that yesterday already, but it didn't workout. I looked at it a little closer today and found out, that of course this file won'T help as it is not called with qmake or make.
so i added this two lines in .pro file
QMAKE_CXXFLAGS += -msse2 -w -stdlib=libstdc++
QMAKE_CFLAGS += -msse2 -stdlib=libstdc++ -w
now it was really compiling a lot, but then...
next error.... kidding me?
/usr/bin/clang -c -pipe -msse2 -stdlib=libstdc++ -w -O2 -arch i386 -Wall -W -pthread -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DBOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN -D__NO_SYSTEM_INCLUDES -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DHAVE_BUILD_INFO -DMAC_OSX -DMSG_NOSIGNAL=0 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/local/share/qt4/mkspecs/macx-g++ -Ibuild -I/opt/local/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/opt/local/Library/Frameworks/QtGui.framework/Versions/4/Headers -Isrc -Isrc/json -Isrc/qt -IC:/deps/boost -I/opt/local/include/db48 -Ic:/deps/ssl/include -I/opt/local/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/opt/local/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/opt/local/include -Ibuild -F/opt/local/Library/Frameworks -F/opt/local/lib -o build/scrypt-x86.o src/scrypt-x86.S
src/scrypt-x86.S:348:9: error: invalid alignment value
.align 32
^
src/scrypt-x86.S:356:9: error: invalid alignment value
.align 32
^
src/scrypt-x86.S:632:9: error: invalid alignment value
.align 32
^
make: *** [build/scrypt-x86.o] Error 1
so i found this to solve the problem:
https://bitcointalksearch.org/topic/m.3933996
but still....
now i have the problem, that it doesn't find the boost libraries... its really a mess...
can anybody look at that maybe?
/usr/bin/clang++ -headerpad_max_install_names -fstack-protector-all --param ssp-buffer-size=1 -arch i386 -pthread -o Xop-Qt.app/Contents/MacOS/Xop-Qt build/macdockiconhandler.o build/bitcoin.o build/bitcoingui.o build/transactiontablemodel.o build/addresstablemodel.o build/optionsdialog.o build/sendcoinsdialog.o build/addressbookpage.o build/signverifymessagedialog.o build/aboutdialog.o build/editaddressdialog.o build/bitcoinaddressvalidator.o build/alert.o build/version.o build/sync.o build/util.o build/netbase.o build/key.o build/script.o build/main.o build/init.o build/net.o build/irc.o build/checkpoints.o build/addrman.o build/db.o build/walletdb.o build/clientmodel.o build/guiutil.o build/transactionrecord.o build/optionsmodel.o build/monitoreddatamapper.o build/transactiondesc.o build/transactiondescdialog.o build/bitcoinstrings.o build/bitcoinamountfield.o build/wallet.o build/keystore.o build/transactionfilterproxy.o build/transactionview.o build/walletmodel.o build/bitcoinrpc.o build/rpcdump.o build/rpcnet.o build/rpcmining.o build/rpcwallet.o build/rpcblockchain.o build/rpcrawtransaction.o build/overviewpage.o build/csvmodelwriter.o build/crypter.o build/sendcoinsentry.o build/qvalidatedlineedit.o build/bitcoinunits.o build/qvaluecombobox.o build/askpassphrasedialog.o build/protocol.o build/notificator.o build/qtipcserver.o build/rpcconsole.o build/coincontroldialog.o build/coincontroltreewidget.o build/noui.o build/kernel.o build/scrypt-x86.o build/scrypt-x86_64.o build/scrypt_mine.o build/pbkdf2.o build/moc_bitcoingui.o build/moc_transactiontablemodel.o build/moc_addresstablemodel.o build/moc_optionsdialog.o build/moc_sendcoinsdialog.o build/moc_addressbookpage.o build/moc_signverifymessagedialog.o build/moc_aboutdialog.o build/moc_editaddressdialog.o build/moc_bitcoinaddressvalidator.o build/moc_clientmodel.o build/moc_guiutil.o build/moc_optionsmodel.o build/moc_monitoreddatamapper.o build/moc_transactiondesc.o build/moc_transactiondescdialog.o build/moc_bitcoinamountfield.o build/moc_transactionfilterproxy.o build/moc_transactionview.o build/moc_walletmodel.o build/moc_overviewpage.o build/moc_csvmodelwriter.o build/moc_sendcoinsentry.o build/moc_qvalidatedlineedit.o build/moc_qvaluecombobox.o build/moc_askpassphrasedialog.o build/moc_coincontroldialog.o build/moc_coincontroltreewidget.o build/moc_notificator.o build/moc_rpcconsole.o build/moc_macdockiconhandler.o build/qrc_bitcoin.o -F/opt/local/Library/Frameworks -F/opt/local/lib -L/opt/local/include/db48 -L/opt/local/lib -L/opt/local/lib/db48 -Lc:/deps/ssl -ldb_cxx -lminiupnpc -framework Foundation -framework ApplicationServices -framework AppKit -lssl -lcrypto -ldb_cxx-4.8 -lboost_system-mgw46-mt-sd-1_55 -lboost_filesystem-mgw46-mt-sd-1_55 -lboost_program_options-mgw46-mt-sd-1_55 -lboost_thread-mgw46-mt-sd-1_55 -F/opt/local/Library/Frameworks -F/opt/local/lib -framework QtGui -framework QtCore
clang: warning: argument unused during compilation: '-pthread'
ld: warning: directory not found for option '-Lc:/deps/ssl'
ld: library not found for -lboost_system-mgw46-mt-sd-1_55
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Xop-Qt.app/Contents/MacOS/Xop-Qt] Error 1
This is an old issue, but I do have the error: unknown type name array
have you found a solution for that?
as for your ld: warning: directory not found for option '-Lc:/deps/ssl'
make sure to comment out the windows section at the top of the pro file to build on mac... notice the c:/ file structure on windows there ?
EDIT:
I managed to compile by changing
arrayvnThreadsRunning;
to
boost::arrayvnThreadsRunning;
in net.cpp
hope this helps someone