Bitcoin Forum
June 15, 2024, 04:42:02 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: compilation on ubuntu 14.04  (Read 1174 times)
Leveilleur (OP)
Full Member
***
Offline Offline

Activity: 120
Merit: 100


View Profile
April 08, 2015, 05:09:43 PM
 #1

Hello everyone, I want a reliable procedure to compile wallets crypto-currencies on Ubuntu X64  14.04 Smiley

- I want to know the procedure for installing a clean system
- What dependencies it has need (exactly)
- In what order to install? (addictions)
- is it better to use qt4 or qt5 for compilation ?

I found a lot of respect on the net that speaks compiling wallets but I still have a concern, or an error messenger during the procedure.

Thank you in advance for your constructive answers!

hushus
fast2fix
Legendary
*
Offline Offline

Activity: 1612
Merit: 1001


View Profile
April 08, 2015, 05:32:04 PM
 #2

follow this guide..  https://bitcointalk.org/index.php?topic=460178.0
if you get any error when installing any dependency/compiling  google it there will be an answer.  Wink
Leveilleur (OP)
Full Member
***
Offline Offline

Activity: 120
Merit: 100


View Profile
April 08, 2015, 05:40:50 PM
 #3

if you get any error when installing any dependency/compiling  google it there will be an answer.  Wink

I'm not unix developper, i'm not bitcoin crypto currency developper, google is useless when you must debug the install script  Undecided

Just need a valid procedure : February 11, 2014, 04:15:38 PM, It is no longer relevant


hushus
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
April 08, 2015, 06:26:51 PM
 #4


One starting point:

https://litecointalk.org/index.php?topic=43.0

Most alts can be built following the procedure.

Study the readme.md in the github repository to
see if something extra is needed, if you need Qt5 etc


“God does not play dice"
billotronic
Legendary
*
Offline Offline

Activity: 1610
Merit: 1000


Crackpot Idealist


View Profile
April 08, 2015, 07:49:15 PM
 #5

if you get any error when installing any dependency/compiling  google it there will be an answer.  Wink

I'm not unix developper, i'm not bitcoin crypto currency developper, google is useless when you must debug the install script  Undecided

Just need a valid procedure : February 11, 2014, 04:15:38 PM, It is no longer relevant



thats just it though, not all coins install the same way... either different build systems (qmake vs autotools) or different deps

This post sums up why all this bullshit is a scam
Read It. Hate It. Change the facts that it represents.
https://bitcointalk.org/index.php?topic=1606638.msg16139644#msg16139644
Leveilleur (OP)
Full Member
***
Offline Offline

Activity: 120
Merit: 100


View Profile
April 09, 2015, 11:55:50 AM
 #6

ubuntu 14.04

Fail during the compilation, (https://github.com/worldcoinproject/worldcoin-v0.8)


Quote
which qmake
/usr/bin/qmake



 installed before compile :

Quote
sudo apt-get install build-essential libssl-dev libdb5.1-dev libdb5.1++-dev libboost-all-dev git qt-sdk

Quote
:~/worldcoin-v0.8$ qmake "USE_UPNP=-"

or

Quote
:~/worldcoin-v0.8$ qmake USE_UPNP=-


src/qt/worldcoingui.cpp:75:18: fatal error: QSound: Aucun fichier ou dossier de ce type
 #include <QSound>
                  ^
compilation terminated.
make: *** [build/worldcoingui.o] Erreur 1


thanks for your help  Huh

hushus
billotronic
Legendary
*
Offline Offline

Activity: 1610
Merit: 1000


Crackpot Idealist


View Profile
April 09, 2015, 12:00:32 PM
 #7

no qt?

Code:
sudo apt-get install qt5-qmake libqt5gui5 libqt5core5 libqt5dbus5 qttools5-dev-tools

This post sums up why all this bullshit is a scam
Read It. Hate It. Change the facts that it represents.
https://bitcointalk.org/index.php?topic=1606638.msg16139644#msg16139644
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
April 09, 2015, 12:03:37 PM
 #8


Quote

src/qt/worldcoingui.cpp:75:18: fatal error: QSound: Aucun fichier ou dossier de ce type
 #include <QSound>
                  ^
compilation terminated.
make: *** [build/worldcoingui.o] Erreur 1


thanks for your help  Huh

So they have sounds in the wallet. That's cute.
You can either comment out the lines where the sound is used
(worldcoingui.cpp: 851ff)
or google a bit. I came up with this, hope it helps:

https://whelanshane.wordpress.com/2013/04/03/qsound-no-such-file-or-directory-how-to-include-qsound-in-qt-creator-2-6-2-qt-5-0/

“God does not play dice"
Leveilleur (OP)
Full Member
***
Offline Offline

Activity: 120
Merit: 100


View Profile
April 09, 2015, 12:12:00 PM
 #9

Try to apply this, return

Quote
Worldcoin-Qt: Qt4 GUI for Worldcoin

Build instructions


for Ubuntu >= 12.04

apt-get install qt4-qmake libqt4-dev build-essential libboost-dev libboost-system-dev \
    libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev \
    libssl-dev libdb++-dev libminiupnpc-dev


For Qt 5 you need the following, otherwise you get an error with lrelease when running qmake:

apt-get install qt5-qmake libqt5gui5 libqt5core5 libqt5dbus5 qttools5-dev-tools
then execute the following:

qmake
make


Quote
qmake
Project MESSAGE: Building with UPNP support
sh: 1: /usr/lib/x86_64-linux-gnu/qt5/bin/lrelease: not found
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_af_ZA.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_ar.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_bg.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_ca_ES.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_cs.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_da.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_de.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_el_GR.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_en.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_es.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_es_CL.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_et.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_eu_ES.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_fa.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_fa_IR.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_fi.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_fr.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_fr_CA.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_he.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_hr.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_hu.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_it.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_lt.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_nb.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_nl.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_pl.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_pt_BR.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_pt_PT.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_ro_RO.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_ru.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_sk.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_sr.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_sv.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_tr.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_uk.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_zh_CN.qm'
RCC: Error in 'src/qt/worldcoin.qrc': Cannot find file 'locale/worldcoin_zh_TW.qm'

Quote

make
cd /home/miner/worldcoin-v0.8/src/leveldb && CC=gcc CXX=g++ make OPT="-m64 -pipe -fstack-protector-all -D_FORTIFY_SOURCE=2 -O2" libleveldb.a libmemenv.a
make[1]: entrant dans le répertoire « /home/miner/worldcoin-v0.8/src/leveldb »
make[1]: « libleveldb.a » est à jour.
make[1]: « libmemenv.a » est à jour.
make[1]: quittant le répertoire « /home/miner/worldcoin-v0.8/src/leveldb »
cd /home/miner/worldcoin-v0.8; /bin/sh share/genbuild.sh /home/minerlocal/worldcoin-v0.8/build/build.h
g++ -c -m64 -pipe -fstack-protector-all -D_FORTIFY_SOURCE=2 -O2 -D_REENTRANT -fdiagnostics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector -fPIE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DHAVE_BUILD_INFO -DLINUX -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -Isrc -Isrc/json -Isrc/qt -I/usr/include/miniupnpc -Isrc/leveldb/include -Isrc/leveldb/helpers -I/usr/include/qt5 -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -Ibuild -o build/worldcoingui.o src/qt/worldcoingui.cpp
In file included from src/qt/worldcoingui.cpp:8:0:
src/qt/worldcoingui.h:4:23: fatal error: QMainWindow: Aucun fichier ou dossier de ce type
 #include <QMainWindow>
                       ^
compilation terminated.
make: *** [build/worldcoingui.o] Erreur 1



hushus
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
April 09, 2015, 12:42:33 PM
 #10


For Qt 5 you need the following, otherwise you get an error with lrelease when running qmake:



Quote

sh: 1: /usr/lib/x86_64-linux-gnu/qt5/bin/lrelease: not found


Are you using QT Creator? Anyway make sure you really are compiling with Qt5

“God does not play dice"
Leveilleur (OP)
Full Member
***
Offline Offline

Activity: 120
Merit: 100


View Profile
April 09, 2015, 01:57:07 PM
 #11

With Qt-Creator  with : https://github.com/industrialcoinmagic/crave

Quote
/home/miner/crave/src/key.cpp:17: erreur : secp256k1.h: No such file or directory
 #include <secp256k1.h>
                       ^

in key.ccp line : 17

Quote

16#ifdef USE_SECP256K1
17#include <secp256k1.h>
18#endif


hushus
Leveilleur (OP)
Full Member
***
Offline Offline

Activity: 120
Merit: 100


View Profile
April 11, 2015, 05:03:39 PM
Last edit: April 11, 2015, 05:32:54 PM by Leveilleur
 #12

Quote


Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(Cool manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 include/secp256k1.h '/usr/local/include'
 /bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 libsecp256k1.pc '/usr/local/lib/pkgconfig'
make[1]: quittant le répertoire « /home/userlocal/secp256k1 »




Can anyone give me the contents of his /etc/ld.so.conf?  Wink

And, I do not know what to insert for "$INSTALL_PREFIX" ?   Huh

Quote

 git clone https://github.com/libbitcoin/secp256k1 -b version2
 cd secp256k1
 ./autogen.sh
 ./configure --prefix $INSTALL_PREFIX
 make
 make install
 ldconfig


hushus
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
April 11, 2015, 05:46:37 PM
 #13


Can anyone give me the contents of his /etc/ld.so.conf?  Wink

Is there any compelling reason why you would like use that
option (other ones are provided in the instructions)?

Quote
And, I do not know what to insert for "$INSTALL_PREFIX" ?   Huh

The directory where you want to install to.

Libbitcoin eh? You've come a long way in a short time  Wink


“God does not play dice"
Leveilleur (OP)
Full Member
***
Offline Offline

Activity: 120
Merit: 100


View Profile
April 11, 2015, 05:58:39 PM
 #14

Is there any compelling reason why you would like use that
option (other ones are provided in the instructions)?
I want to ensure it is installed ! "Error include secp256k1.h" during qt compilation  Huh

Quote
The directory where you want to install to.

What is the default location?(Ubuntu 14.02)

Quote
Libbitcoin eh? You've come a long way in a short time  Wink
what is "Libbitcoin" ?  Huh  Wink

hushus
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
April 11, 2015, 08:10:11 PM
 #15

Ok, I went through your posts, and maybe I
understand now what you're trying to do.

You want to build a coin named Crave
and it hangs because it does not find secp256k1.h - right?

What does the readme.md say?

Quote
CRAVE is dependent upon libsecp256k1 by sipa, the sources for which can be found here: https://github.com/bitcoin/secp256k1

To build Crave, you clone the libsecp256k1 repository that is linked
above, and build it first, according to the instructions, again in that repo's readme.
Then you have the missing library and can try building
Crave again. Good luck!

“God does not play dice"
Leveilleur (OP)
Full Member
***
Offline Offline

Activity: 120
Merit: 100


View Profile
April 11, 2015, 11:35:13 PM
 #16

Ok, I went through your posts, and maybe I
understand now what you're trying to do.

You want to build a coin named Crave
and it hangs because it does not find secp256k1.h - right?

What does the readme.md say?

Quote
CRAVE is dependent upon libsecp256k1 by sipa, the sources for which can be found here: https://github.com/bitcoin/secp256k1

To build Crave, you clone the libsecp256k1 repository that is linked
above, and build it first, according to the instructions, again in that repo's readme.
Then you have the missing library and can try building
Crave again. Good luck!


when you say " clone the libsecp256k1 repository that is linked ", i do not know what the location or paste the folder  Huh


hushus
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!