netcoinproject / netcoin

MIT License
6 stars 8 forks source link

Fails to build on Linux #2

Open hammackj opened 10 years ago

hammackj commented 10 years ago

hammackj@wallet:~$ cd netcoin/ hammackj@wallet:~/netcoin$ qmake USE_UPNP=- Project MESSAGE: Building without UPNP support WARNING: /home/hammackj/netcoin/netcoin-qt.pro:354: Unescaped backslashes are deprecated. Project MESSAGE: Building with UPNP supportRemoved plural forms as the target language has less forms. If this sounds wrong, possibly the target language is not set or recognized. hammackj@wallet:~/netcoin$ make cd /home/hammackj/netcoin; /bin/sh share/genbuild.sh /home/hammackj/netcoin/build/build.h /usr/local/bin/rcc -name bitcoin src/qt/bitcoin.qrc -o qrc_bitcoin.cpp g++ -c -pipe -fstack-protector -O2 -fdiagnostics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -D__NO_SYSTEM_INCLUDES -D_REENTRANT -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6 -DHAVE_BUILD_INFO -DLINUX -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/mkspecs/default -I/usr/local/include/QtCore -I/usr/local/include/QtGui -I/usr/local/include -Isrc -Isrc/json -Isrc/qt -Ibuild -Ibuild -o build/qrc_bitcoin.o qrc_bitcoin.cpp g++ -fstack-protector -Wl,-O1 -Wl,-rpath,/usr/local/lib -o netcoin-qt 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/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/json_spirit_writer.o build/json_spirit_value.o build/json_spirit_reader.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/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/scrypt.o build/miningpage.o build/noui.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_notificator.o build/moc_miningpage.o build/moc_rpcconsole.o build/qrc_bitcoin.o -L/usr/local//lib -lrt -lssl -lcrypto -ldb_cxx -loleaut32 E:\MinGW\lib\libws2_32.a E:\MinGW\lib\liboleaut32.a -lboost_system -lboost_filesystem -lboost_program_options -lboost_thread -lQtGui -L/usr/local//lib -L/usr/X11R6/lib -lQtCore -lpthread g++: error: E:MinGWliblibws2_32.a: No such file or directory g++: error: E:MinGWlibliboleaut32.a: No such file or directory make: *\ [netcoin-qt] Error 1 hammackj@wallet:~/netcoin$

mbirtwistle commented 10 years ago

The problem is because of some Microsoft libs that are incorrectly included in every build, regardless of platform by qmake.

The build steps workaround is:

git clone https://github.com/netcoinproject/netcoin qmake

now open makefile, find the LIBS line and delete the following three references:

-loleaut32 E:\MinGW\lib\libws2_32 E:\MinGW\lib\liboleaut32.a

save the file.

make

netcoin-qt should now build.

The actual problem originates in netcoin.pro lines 351, 354 and 355. The above mentioned libraries need windows: conditional qualifier, and it certainly shouldn't be mentioning the E: drive anywhere so it looks like two more files might need to be included in the distribution?