How to create linux QT for altcoin
Posted By : Chandan Kumar Singh | 31-Oct-2017
Creation of QT build for linux
Step 1:
Install all the required dependencies to create QT for Linux .
sudo apt-get update && upgrade -y
sudo apt-get install git build-essential g++ libssl-dev libboost-all-dev libqrencode-dev qt4-qmake libqt4-dev libminiupnpc-dev libdb5.1++-dev -y
Step 2:
After installing all the required dependencies successfully Run following command :-
qmake RELEASE=1 USE_UPNP=1 USE_DBUS=1 USE_QRCODE=1 -o Makefile funcoin-qt.pro
This will generate a Makefile, from Funcoin.pro with Unix pathnames .
after that run this command
make
After execution of make command following error occurs :-
-L/usr/lib/x86_64-linux-gnu -Wl,-Bstatic -lqrencode -lminiupnpc -lrt -lssl -lcrypto -ldb_cxx -lboost_system -lboost_filesystem -lboost_program_options -lboost_thread -Wl,-Bdynamic -lQtDBus -lQtGui -lQtCore -lpthread
/usr/bin/ld: cannot find -lqrencode
collect2: error: ld returned 1 exit status
make: *** [FCoin-qt] Error 1
Step 3:
To resolve the above error we have to perform these changes :-
-
Open ubuntu terminal type following command
wget ‘https://fukuchi.org/works/qrencode/qrencode-3.4.4.tar.bz2’
Then press enter .
b) After getting qrencode-3.4.4.tar.bz2 extract the same and on ubuntu terminal type
the following command .
i) cd qrencode-3.4.4
ii) ./configure --enable-static --disable-shared --without-tools --disable-dependency-tracking
c) After execution of above commands change the following line as shown below present in makefile.
LIBS = $(SUBLIBS) -L/usr/lib/x86_64-linux-gnu -Wl,-Bstatic -lqrencode -lminiupnpc -lrt -lssl -lcrypto -ldb_cxx -lboost_system -lboost_filesystem -lboost_program_options -lboost_thread -Wl,-Bdynamic -lQtDBus -lQtGui -lQtCore -lpthread
Replace the above line with this line as
LIBS = $(SUBLIBS) -L/usr/lib/x86_64-linux-gnu -Wl,-Bstatic -lqrencode -lminiupnpc -lrt -lssl -lcrypto -ldb_cxx -lboost_system -lboost_filesystem -lboost_program_options -lboost_thread -Wl,-Bdynamic -lQtDBus -lQtGui -lQtCore -lpthread
Step 4 :
After performing step 3 error arises during step 2 will be resolve .
Lastly execute make command on terminal as shown below .
make
After execution of make command you QT Of Funcoin appears in your corrent working directory of Funcoin source code.
Thanks
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Chandan Kumar Singh
Chandan is a bright Web Developer with expertise in Java and Spring framework and ORM tools Hibernate. He loves technologies like Blockchain and IoT.