Ghost Posted May 28, 2018 Report Share Posted May 28, 2018 Run the following commands to compile Denarius properly without errors on Ubuntu 18.04+ (Ubuntu changed their sources list for the dep "libssl-dev", you will need to install an older version of OpenSSL to be able to compile Denarius) Â Make sure to remove the current libssl-dev: sudo apt-get remove libssl-dev Install an older version of OpenSSL, for this we use 1.0.1j wget http://www.openssl.org/source/openssl-1.0.1j.tar.gz tar xvfz openssl-1.0.1j.tar.gz cd openssl-1.0.1j cd openssl-1.0.1j ./config make -j(number of cores) That should get the older version installed. Also you may want to symlink openssl still: sudo mv /usr/bin/openssl /root/ sudo ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl openssl version (To check the openssl version installed) Also you will want to run these when you run qmake again qmake "USE_UPNP=1" "USE_QRCODE=1" OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib denarius-qt.pro Then you should be good for Ubuntu 18.04 Denarius compiling and it should compile with no errors , otherwise all other older Ubuntu versions you can just do the usual sudo apt-get install libssl-dev 1 Quote Founder of BlockForums.org - PM me for any help - Join our Discord Server: https://discord.gg/UPpQy3n Link to comment Share on other sites More sharing options...
buzzkillb Posted February 13, 2019 Report Share Posted February 13, 2019 Steps I used to get this working. sudo apt-get install make wget https://www.openssl.org/source/openssl-1.0.1j.tar.gz tar -xzvf openssl-1.0.1j.tar.gz cd openssl-1.0.1j sudo ./config sudo make install sudo ln -sf /usr/local/ssl/bin/openssl `which openssl` cd ~ openssl version -v qmake "USE_UPNP=1" "USE_QRCODE=1" OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib denarius-qt.pro make  Quote Link to comment Share on other sites More sharing options...
D_manosv Posted March 16, 2019 Report Share Posted March 16, 2019 Ok i succeded at compiling the qt wallet but i cant compile the daemon it throws this: manosv@ThinkPad:~/denarius/src$ make -f makefile.unix cc -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wno-format -Wno-unused-parameter -Wno-literal-suffix -std=c++11 -g -DBOOST_SPIRIT_THREADSAFE -I/home/manosv/denarius/src -I/home/manosv/denarius/src/obj -I/home/manosv/denarius/src/json -DIS_ARCH_64 -I/home/manosv/denarius/src/tor -DUSE_NATIVETOR=1 -DUSE_UPNP=1 -I/home/manosv/denarius/src/leveldb/include -DUSE_LEVELDB -I/home/manosv/denarius/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/addressmap.d -o obj/addressmap.o tor/addressmap.c cc1: warning: command line option ‘-Wno-literal-suffix’ is valid for C++/ObjC++ but not for C cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C In file included from tor/tortls.h:15:0,                 from tor/or.h:71,                 from tor/addressmap.c:18: tor/compat_openssl.h:10:10: fatal error: openssl/opensslv.h: No such file or directory  #include <openssl/opensslv.h>          ^~~~~~~~~~~~~~~~~~~~ compilation terminated. makefile.unix:433: recipe for target 'obj/addressmap.o' failed make: *** [obj/addressmap.o] Error 1  Quote Link to comment Share on other sites More sharing options...
buzzkillb Posted March 16, 2019 Report Share Posted March 16, 2019 Try this OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib make -f makefile.unix  Quote Link to comment Share on other sites More sharing options...
buzzkillb Posted March 17, 2019 Report Share Posted March 17, 2019 this is the 2 lines I used to compile QT on Ubuntu 18.10  qmake "USE_UPNP=1" "USE_QRCODE=1" LIBS=-lboost_chrono OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib denarius-qt.pro make  Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.