Can't compile this.
Need help
~/zoin$ make -f Makefile.test
cd /home/r/zoin/src/leveldb && CC=gcc CXX=g++ make OPT=-m64 -pipe -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O2 libleveldb.a libmemenv.a
make: invalid option -- 'U'
make: invalid option -- '_'
make: invalid option -- 'F'
make: invalid option -- 'D'
make: invalid option -- '_'
make: invalid option -- 'F'
Usage: make [options] [target] ...
Options:
-b, -m Ignored for compatibility.
-B, --always-make Unconditionally make all targets.
-C DIRECTORY, --directory=DIRECTORY
Change to DIRECTORY before doing anything.
-d Print lots of debugging information.
--debug[=FLAGS] Print various types of debugging information.
-e, --environment-overrides
Environment variables override makefiles.
--eval=STRING Evaluate STRING as a makefile statement.
-f FILE, --file=FILE, --makefile=FILE
Read FILE as a makefile.
-h, --help Print this message and exit.
-i, --ignore-errors Ignore errors from recipes.
-I DIRECTORY, --include-dir=DIRECTORY
Search DIRECTORY for included makefiles.
-j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.
-k, --keep-going Keep going when some targets can't be made.
-l [N], --load-average[=N], --max-load[=N]
Don't start multiple jobs unless load is below N.
-L, --check-symlink-times Use the latest mtime between symlinks and target.
-n, --just-print, --dry-run, --recon
Don't actually run any recipe; just print them.
-o FILE, --old-file=FILE, --assume-old=FILE
Consider FILE to be very old and don't remake it.
-O[TYPE], --output-sync[=TYPE]
Synchronize output of parallel jobs by TYPE.
-p, --print-data-base Print make's internal database.
-q, --question Run no recipe; exit status says if up to date.
-r, --no-builtin-rules Disable the built-in implicit rules.
-R, --no-builtin-variables Disable the built-in variable settings.
-s, --silent, --quiet Don't echo recipes.
-S, --no-keep-going, --stop
Turns off -k.
-t, --touch Touch targets instead of remaking them.
--trace Print tracing information.
-v, --version Print the version number of make and exit.
-w, --print-directory Print the current directory.
--no-print-directory Turn off -w, even if it was turned on implicitly.
-W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
Consider FILE to be infinitely new.
--warn-undefined-variables Warn when an undefined variable is referenced.
This program built for x86_64-pc-linux-gnu
Report bugs to
# GNU Make 4.1
# Built for x86_64-pc-linux-gnu
# Copyright (C) 1988-2014 Free Software Foundation, Inc.
# License GPLv3+: GNU GPL version 3 or later
# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law.
# Make data base, printed on Sun Jun 18 19:28:05 2017
# Variables
# environment
DESKTOP_SESSION = ubuntu
# default
.SHELLFLAGS := -c
# environment
XDG_SESSION_TYPE = x11
# environment
XAUTHORITY = /home/r/.Xauthority
# environment
GDMSESSION = ubuntu
# environment
XMODIFIERS = @im=ibus
# environment
SHELL = /bin/bash
# environment
GDM_LANG = en_US
# environment
VTE_VERSION = 4402
# environment
JOURNAL_STREAM = 8:26634
# environment
XDG_CONFIG_DIRS = /etc/xdg/xdg-ubuntu:/etc/xdg
# environment
IM_CONFIG_PHASE = 1
# environment
GNUMAKEFLAGS :=
# environment
XDG_DATA_DIRS = /usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
# environment
DBUS_SESSION_BUS_ADDRESS = unix:path=/run/user/1000/bus,guid=189572b28e09ab04a737b25a59469f5e
# environment
_ = /usr/bin/make
# environment
MANAGERPID = 1161
# environment
CLUTTER_IM_MODULE = xim
# environment
LESSOPEN = | /usr/bin/lesspipe %s
# environment
XDG_SESSION_PATH = /org/freedesktop/DisplayManager/Session0
# environment
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
# environment
SESSION_MANAGER = local/r-System-Product-Name:@/tmp/.ICE-unix/1473,unix/r-System-Product-Name:/tmp/.ICE-unix/1473
# environment
XDG_RUNTIME_DIR = /run/user/1000
# environment
SSH_AGENT_LAUNCHER = gnome-keyring
# environment
WINDOWID = 58720970
# environment
XDG_MENU_PREFIX = gnome-
# environment
INVOCATION_ID = dbc2a559788e4958aa9e8224b0e2ab9f
# default
.FEATURES := target-specific order-only second-expansion else-if shortest-stem undefine oneshell archives jobserver output-sync check-symlink load
# environment
XDG_GREETER_DATA_DIR = /var/lib/lightdm-data/r
# environment
LS_COLORS = rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
# environment
XDG_SESSION_DESKTOP = ubuntu
# environment
SSH_AUTH_SOCK = /run/user/1000/keyring/ssh
# environment
DISPLAY = :0
# command line
OPT = -m64
# environment
GTK_IM_MODULE = ibus
# environment
GNOME_SESSION_XDG_SESSION_PATH = /org/freedesktop/DisplayManager/Session0
# environment
PWD = /home/r/zoin/src/leveldb
# environment
GTK_MODULES = gail:atk-bridge:unity-gtk-module
# environment
HOME = /home/r
# environment
LESSCLOSE = /usr/bin/lesspipe %s %s
# environment
LOGNAME = r
# environment
QT_LINUX_ACCESSIBILITY_ALWAYS_ON = 1
# environment
SYSTEMD_NSS_BYPASS_BUS = 1
# environment
GNOME_DESKTOP_SESSION_ID = this-is-deprecated
# environment
MAKELEVEL = 1
# environment
COLORTERM = truecolor
# default
MAKECMDGOALS := libleveldb.a libmemenv.a
# environment
QT_IM_MODULE = ibus
# environment
SHLVL = 2
# environment
CC = gcc
# environment
COMPIZ_CONFIG_PROFILE = ubuntu
# environment
USER = r
# environment
XDG_CURRENT_DESKTOP = Unity:Unity7
# environment
OLDPWD = /home/r/zoin
# default
.VARIABLES :=
# environment
LANGUAGE = en_US
# environment
XDG_SEAT_PATH = /org/freedesktop/DisplayManager/Seat0
# environment
MAKEFLAGS =
# environment
MFLAGS =
# environment
MAKE_TERMOUT = /dev/pts/2
# environment
GTK2_MODULES = overlay-scrollbar
# environment
QT_ACCESSIBILITY = 1
# environment
CXX = g++
# environment
DBUS_STARTER_BUS_TYPE = session
# environment
QT4_IM_MODULE = xim
# default
.RECIPEPREFIX :=
# environment
MAKE_TERMERR = /dev/pts/2
# environment
LANG = en_US.UTF-8
# environment
TERM = xterm-256color
# environment
DBUS_STARTER_ADDRESS = unix:path=/run/user/1000/bus,guid=189572b28e09ab04a737b25a59469f5e
# variable set hash-table stats:
# Load=70/1024=7%, Rehash=0, Collisions=3/75=4%
# Pattern-specific Variable Values
# No pattern-specific variable values.
# Directories
# No files, no impossibilities in 0 directories.
# Implicit Rules
# No implicit rules.
# Files
# Not a target:
libleveldb.a:
# Command line target.
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# Not a target:
libmemenv.a:
# Command line target.
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# files hash-table stats:
# Load=2/1024=0%, Rehash=0, Collisions=0/2=0%
# VPATH Search Paths
# No 'vpath' search paths.
# No general ('VPATH' variable) search path.
# strcache buffers: 1 (0) / strings = 3 / storage = 45 B / avg = 15 B
# current buf: size = 8162 B / used = 45 B / count = 3 / avg = 15 B
# strcache performance: lookups = 5 / hit rate = 40%
# hash-table stats:
# Load=3/8192=0%, Rehash=0, Collisions=0/5=0%
# Finished Make data base on Sun Jun 18 19:28:05 2017
Makefile.test:427: recipe for target '/home/r/zoin/src/leveldb/libleveldb.a' failed
make: *** [/home/r/zoin/src/leveldb/libleveldb.a] Error 2
-------------------------------------------------------------------------------------------
for Ubuntu >= 12.04 (please read the 'Berkely DB version warning' below):
::
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
------------------------------------------------------------------------------------
after this I got result in code section
Ubuntu 17.04