Installation of Kaldi, error on compiling gst-kaldi-nnet2-online on ubuntu 16.04 - linux

What i try to do is to install silvius-backend on my ubuntu 16.04 virtual machine, but unfortunately it is not working without the proper compile of both of kaldi and gst-kaldi-nnet2-online .
I have compiled kaldi successfully but I am experiencing a error when i try to compile gst-kaldi-nnet2-online.
I follow these instructions.
Here is what i do:
I am using Ubuntu 16.04.
I have compiled kaldi successfully with the following commands:
in kaldi/tools --> sudo make CXX=g++-5
in kaldi/src --> sudo CXX=g++-5 ./configure --shared, sudo make clean CXX=g++-5 ,sudo make depend CXX=g++-5 ,sudo make CXX=g++-5
I tried to do sudo make depend from ~/gst-kaldi-nnet2-online/src and i got an error like this:
Makefile:6: * Cannot find Kaldi's makefile /home/tanel/tools/kaldi- trunk/src/kaldi.mk. Specify Kaldi's root directory using KALDI_ROOT when issuing make, e.g.: KALDI_ROOT=/home/tanel/tools/kaldi-trunk make . Stop.
So In this path i have changed the path to: "KALDI_ROOT=~/kaldi"
And now i am getting an error like this :
g++-5 -M -std=c++11 -I.. -I/home/silvius/kaldi/tools/openfst/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_ATLAS -I/home/silvius/kaldi/tools/ATLAS_headers/include -msse -msse2 -pthread -g -fPIC -I~/kaldi/src *.cc > .depend.mk
In file included from gst-audio-source.cc:22:0:
./gst-audio-source.h:23:33: fatal error: matrix/kaldi-vector.h: No such file or directory
compilation terminated.
In file included from ./gstkaldinnet2onlinedecoder.h:26:0,
from gstkaldinnet2onlinedecoder.cc:49:
././simple-options-gst.h:25:33: fatal error: util/simple-options.h: No such file or directory
compilation terminated.
In file included from simple-options-gst.cc:20:0:
./simple-options-gst.h:25:33: fatal error: util/simple-options.h: No such file or directory
compilation terminated.
Makefile:76: recipe for target 'depend' failed
make: [depend] Error 1 (ignored)
You can see the error on a picture aswell on this link
PS: the path to my Folders is that ones:
`~/kaldi` for kaldi's folder , and
`~/gst-kaldi-nnet2-online` for the gst-kaldi-nnet2-online.
(i cloned them from github inside `~/` in separated folders)
I dont know what to do next or what is the problem. I've been looking for a solution since days on the internet but i found nothing. Can someone help me?

Related

nvm: install fails on BSD while building from source

System Info: FreeBSD 11.3-RELEASE-p3, amd64
I have tried using nvm to install node v12.16.2, v10.20.1, and v10.15.3, however it fails building from source (no binary available for pull on BSD) with the same error on all three:
/usr/bin/ld:/usr/home/ifiht/.nvm/.cache/src/node-v12.16.2/files/out/Release/obj.target/tools/v8_gypfiles/libv8_libbase.a: file format not recognized; treating as linker script
/usr/bin/ld:/usr/home/ifiht/.nvm/.cache/src/node-v12.16.2/files/out/Release/obj.target/tools/v8_gypfiles/libv8_libbase.a:1: syntax error
Configure completes successfully:
$>./configure --prefix=/home/ifiht/.nvm/versions/node/v12.16.2 <
INFO: configure completed successfully
gmake -C out BUILDTYPE=Release V=0
and the last command before failure is:
/usr/bin/clang++ -o /usr/home/ifiht/.nvm/.cache/src/node-v12.16.2/files/out/Release/bytecode_builtins_list_generator -pthread -rdynamic -m64 -Wl,--export-dynamic -Wl,--start-group /usr/home/ifiht/.nvm/.cache/src/node-v12.16.2/files/out/Release/obj.target/bytecode_builtins_list_generator/deps/v8/src/builtins/generate-bytecodes-builtins-list.o /usr/home/ifiht/.nvm/.cache/src/node-v12.16.2/files/out/Release/obj.target/bytecode_builtins_list_generator/deps/v8/src/interpreter/bytecode-operands.o /usr/home/ifiht/.nvm/.cache/src/node-v12.16.2/files/out/Release/obj.target/bytecode_builtins_list_generator/deps/v8/src/interpreter/bytecodes.o /usr/home/ifiht/.nvm/.cache/src/node-v12.16.2/files/out/Release/obj.target/tools/v8_gypfiles/libv8_libbase.a -L/usr/local/lib -lexecinfo -Wl,--end-group
I'm out of troubleshooting ideas, if anyone knows how to enable nvm install verbosity that would also help, not sure why the linker is trying to read random .a (assembly?) files??

Linker error in Codelite with MinGW-w64

I'm trying to use MinGW-W64 instead of MinGW in Codelite. When I compile simple "hello, world" project it's all right. But when I try to link some libraries, I get a strange linker error. Project with exactly same settings compiles by MinGW with any problems. There are build output for both variants:
MinGW GCC 4.8.1
`C:\Windows\system32\cmd.exe /C D:/apps/mingw/bin/mingw32-make.exe -j8 SHELL=cmd.exe -e -f Makefile
"----------Building project:[ code - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'D:/Projects/codelite/code'
codelite-cc D:/apps/mingw/bin/g++.exe -c "D:/Projects/codelite/code/src/main.cpp" -Wfatal-errors -g -O0 -pedantic -W -std=c++11 -Wall -o ./Debug/src_main.cpp.o -I./inc/
D:/apps/mingw/bin/g++.exe -o bin/code #"code.txt" -L./lib/ -lopengl32
mingw32-make.exe[1]: Leaving directory 'D:/Projects/codelite/code'
====0 errors, 0 warnings====`
MinGW-W64 GCC 5.2.0
`C:\Windows\system32\cmd.exe /C D:/apps/mingw-w64/mingw32/bin/mingw32-make.exe -j8 SHELL=cmd.exe -e -f Makefile
"----------Building project:[ code - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'D:/Projects/codelite/code'
codelite-cc D:/apps/mingw-w64/mingw32/bin/g++.exe -c "D:/Projects/codelite/code/src/main.cpp" -Wfatal-errors -g -O0 -pedantic -W -std=c++11 -Wall -o ./Debug/src_main.cpp.o -I./inc/
D:/apps/mingw-w64/mingw32/bin/g++.exe -o bin/code #"code.txt" -L./lib/ -lopengl32
g++.exe: error: #code.txt -L./lib/: No such file or directory
mingw32-make.exe[1]: *** [bin/code] Error 1
code.mk:78: recipe for target 'bin/code' failed
mingw32-make.exe[1]: Leaving directory 'D:/Projects/codelite/code'
mingw32-make.exe: *** [All] Error 2
Makefile:4: recipe for target 'All' failed
====1 errors, 0 warnings====`
This looks like a bug in your toolchain and not in CodeLite.
There is a space between the "#code.text" and -L./lib and for some reason g++ does not see it...
I put my money on the mingw32-make tool. You can tell CodeLite to use the mingw32-make.exe from the 4.8.1 version (which worked): settings->build settings->compilers->[YOUR COMPILER NAME]->Make
Another option is to disable the option that tells CodeLite to generate Makefile that passes the object list via file to the compiler:
Settings->Build Settings->compilers->[YOUR COMPILER NAME]->Advanced tab and uncheck the option: pass object list to the linker via file
Lately i too have found the similar problem. Later i was able to figure out the issue. We just to need to go to the project settings under change makefile generator default to codelite makefile generator i think that will work.

ssocr #my_libs#: No such file or directory

I recently downloaded ssocr, and also install all dependencies. But when I want to run make I get the following error:
cc: error: #my_libs#: No such file or directory
make: * [ssocr] Error 1
I have no idea what is the problem and also can't find any solution for it.
The os i have tryed to intall the ssocr is Ubuntu 14.04 LTS (Trusty Tahr)
UPDATE (whole output)
cc ssocr.o imgproc.o help.o -L/usr/local/lib -lImlib2 #my_libs# -o ssoc
cc: error: #my_libs#: No such file or directory
make: * [ssocr] Error 1
the link-command comes from
imlib2-config --libs
Try to repair the imlib2-config output. Second, I had also to add -lm. The commandline looks for me like
cc ssocr.o imgproc.o help.o -L/usr/lib64 -lImlib2 -L/lib64 -lX11 -lm -o ssocr

how to set the gcc compiler version in my makefile when installing ns2?

while installing ns2 according to the steps mentioned here:
http://stanjuly.wordpress.com/2011/12/22/install-ns2-ns-allinone-2-35-on-ubuntu-11-04-for-beginners/
In Step 4, when i opened my make file, my make file looks like this:
CC= #CC#
CFLAGS= #CFLAGS#
RANLIB= #RANLIB#
INSTALL= #INSTALL#
#
# how to compile, link, and name shared libraries
#
SHLIB_LD= #SHLIB_LD#
SHLIB_CFLAGS= #SHLIB_CFLAGS#
SHLIB_SUFFIX= #SHLIB_SUFFIX#
SHLD_FLAGS= #DL_LD_FLAGS#
DL_LIBS= #DL_LIBS#
SHLIB_LD_LIBS = #SHLIB_LD_LIBS#
#
# where to install shells, libraries, and includes
#
INST_OTCLSH= #prefix#/bin
INST_OWISH= #prefix#/bin
INST_OLIB= #prefix#/lib
INST_OLIBSH= #INST_OLIBSH#
INST_OINC= #prefix#/include
#
# ------------ you shouldn't need to configure below here -----------------
#
the instructions say that i am supposed to change CC = #CC# to CC = #CC# -V 4.7.0 (4.7.0 because when i type gcc --version on my terminal it says):
gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3
But when instlaiing ns2 (step5): sudo ./install i get the following error:
config.status: creating Makefile
rm -f libotcl.a otcl.o
gcc -V 4.7 -c -g -O2 -DNDEBUG -DUSE_SHM -DHAVE_UNISTD_H=1 -I. -I/home/me/ns-
allinone-2.35/include -I/home/me/ns-allinone-2.35/include -I/home/me/ns-
allinone-2.35/include -I/include otcl.c
gcc: error: unrecognized command line option ā€˜-Vā€™
gcc: error: 4.7: No such file or directory
make: *** [libotcl.a] Error 1
otcl-1.14 make failed! Exiting ...
How am i supposed to modify makefile that i dont get this error? Do i have the gcc compiler installed? I dont understand. I dont know how to check if it is installed.
This means your compiler is not compatible and if you don't want to install
gcc 4.4 than change
CC = gcc-4.4
to
CC = #CC#
in makefile and makefile.in present in otcl folder and also change
SHLIB_LD="ld -shared"
to
SHLIB_LD="gcc -shared"
in configure file
You need to install an old version of gcc: (Newer versions dosent work)
apt-get install gcc-4.4 (4.4 is the older version that I found on my repository)
And change
CC= #CC#
for:
CC=gcc-4.4

skipfish - error in make

I'm trying to use skipfish on ubuntu latest version that I just downloaded. I'm following the instruction from this link http://digitivity.org/943/how-to-install-google-skipfish-on-ubuntu-linux
When I run "nice make" based on the article, I got this error below... Could anyone please help me to give some pointers to fix this issue? Thanks in advance.
michaelsync#ubuntu:~/Downloads/skipfish-2.09b$ nice make
cc -L/usr/lib/ssl/engines -L/usr/lib/ -L/usr/lib/ssl/ -L/usr/local/lib/ -L/opt/local/lib src/skipfish.c -o skipfish \
-O3 -Wno-format -Wall -funsigned-char -g -ggdb -I/usr/local/include/ -I/opt/local/include/ -I/usr/include/ -DVERSION=\"2.09b\" src/http_client.c src/database.c src/crawler.c src/analysis.c src/report.c src/checks.c src/signatures.c src/auth.c -lcrypto -lssl -lidn -lz -lpcre
In file included from src/skipfish.c:47:0:
src/signatures.h:24:18: fatal error: pcre.h: No such file or directory
compilation terminated.
src/http_client.c:40:18: fatal error: idna.h: No such file or directory
compilation terminated.
In file included from src/analysis.c:32:0:
src/signatures.h:24:18: fatal error: pcre.h: No such file or directory
compilation terminated.
src/signatures.c:27:18: fatal error: pcre.h: No such file or directory
compilation terminated.
make: *** [skipfish] Error 1
You are missing dev libraries. Run this command :
sudo apt-get install libpcre3-dev libidn11-dev

Resources