Error when compiling sphinxbase in cygwin - cmusphinx

I tried to install sphinxbase on my Windows 7 using Cygwin for running pocketsphinx android demo.
But I got the following error after executing make:
gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin-1.7.11-i686-2.6/sphinxbase.o -L../src/libsphinxbase/.libs -L/usr/lib/python2.6/config -lsphinxbase -liconv -lpython2.6 -o build/lib.cygwin-1.7.11-i686-2.6/sphinxbase.dll
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: cannot find -liconv
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
Makefile:471: recipe for target `pymod-build-stamp' failed
make[1]: *** [pymod-build-stamp] Error 1
make[1]: Leaving directory `/cygdrive/c/psph/sphinxbase/python'
Makefile:330: recipe for target `all-recursive' failed
make: *** [all-recursive] Error 1.
I visited the link http://www.cs.columbia.edu/~ecooper/CS4706/ps-cygwin.html and followed the steps, but to the same result.
I have used pocketsphinx-0.7 and sphinxbase-0.7 in above situation.

The error:
ld: cannot find -liconv
means, that you don't have iconv installed. Look for the package with the name libiconv-dev or similar in your package manager.

Related

run into error "/usr/bin/ld: cannot find -lgfortran" while I do have libgfortran.so installed

When I was doing catkin_make in my ROS workspace, following error occurred.
[100%] Linking CXX executable /home/georgehan/catkin_fasttracker/devel/lib/plan_manage/tracking_fsm_node
/usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status
Fast-tracker/src/plan_manage/CMakeFiles/tracking_fsm_node.dir/build.make:832: recipe for target '/home/georgehan/catkin_fasttracker/devel/lib/plan_manage/tracking_fsm_node' failed
make[2]: *** [/home/georgehan/catkin_fasttracker/devel/lib/plan_manage/tracking_fsm_node] Error 1
And by doing locate libgfortran.so, it turns out that there were already libgfortran.so files in my system:
~$ locate libgfortran.so
/usr/lib/gcc/x86_64-linux-gnu/7/libgfortran.so
/usr/lib/x86_64-linux-gnu/libgfortran.so.4
/usr/lib/x86_64-linux-gnu/libgfortran.so.4.0.0
I read about making some symlink to fix my problem, but I do not know the which .so file to link to.
Please help me with specific command line !

undefined reference to `crypt' : apache2 manually install error on imx8mqevk

I am using an iMX8MQ EVK board with Linux. I want to install the apache2 server and MySQL database from the source. Started installing apache2 using this
Here is the Linux version:
root#imx8mqevk:~# cat /etc/os-release
ID=fsl-imx-wayland
NAME="NXP i.MX Release Distro"
VERSION="5.10-hardknott (hardknott)"
VERSION_ID=5.10-hardknott
PRETTY_NAME="NXP i.MX Release Distro 5.10-hardknott (hardknott)"
Here is the output of configure
Facing issue with make as crypto is not found. I am not able to resolve the issue.
I have tried installing glibc but the issue is not resolved.
make error
Making all in support
make[1]: Entering directory '/home/root/httpd-2.4.53/support'
make[2]: Entering directory '/home/root/httpd-2.4.53/support'
/usr/local/apr/build-1/libtool --silent --mode=link gcc -g -O2 -pthread -o htpasswd htpasswd.lo passwd_common.lo /usr/local/apr/lib/libaprutil-1.la -lexpat /usr/local/apr/lib/libapr-1.la -lrt -lpthread -ldl
/usr/lib/gcc/aarch64-poky-linux/10.2.0/../../../../aarch64-poky-linux/bin/ld: passwd_common.o: in function `mkhash':
/home/root/httpd-2.4.53/support/passwd_common.c:228: undefined reference to `crypt'
/usr/lib/gcc/aarch64-poky-linux/10.2.0/../../../../aarch64-poky-linux/bin/ld: /home/root/httpd-2.4.53/support/passwd_common.c:240: undefined reference to `crypt'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:48: htpasswd] Error 1
make[2]: Leaving directory '/home/root/httpd-2.4.53/support'
make[1]: *** [/home/root/httpd-2.4.53/build/rules.mk:75: all-recursive] Error 1
make[1]: Leaving directory '/home/root/httpd-2.4.53/support'
make: *** [/home/root/httpd-2.4.53/build/rules.mk:75: all-recursive] Error 1

IBM gpfs 4.2.1 compile error

I encountered the following error while I was compiling gpfs.
OS:RHEL7.4
GPFS:4.2.1
1.# cd /usr/lpp/mmfs/src/
2.# make LINUX_DISTRIBUTION=REDHAT_AS_LINUX Autoconfig
3.# make World
When the third step occurs, the following error occurs。
DVERBOSETRACE -DLROC -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR()" -fno-stack-protector -Wformat=0 -Wno-format-security -I/usr/lpp/mmfs/src/gpl-linux -c kdump.c
cc kdump.o kdump-kern.o kdump-kern-dwarfs.o -o kdump -lpthread
kdump-kern.o: In function `GetOffset':
kdump-kern.c:(.text+0x9): undefined reference to `page_offset_base'
kdump-kern.o: In function `KernInit':
kdump-kern.c:(.text+0x58): undefined reference to `page_offset_base'
collect2: error: ld returned 1 exit status
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/lpp/mmfs/src/gpl-linux'
make: *** [Modules] Error 1
add unsigned long page_offset_base; on top of the file /usr/lpp/mmfs/src/gpl-linux/kdump.c
i see the same problem compiling with the kernel (3.10.0-693.1.1.el7.x86_64). (rhel7.3 updated + GPFS 4.2.3-1)
I resolved it using a previous kernel: kernel-3.10.0-514.el7.x86_64
I hope this help.
Regards

Building VTK Examples on Ubuntu

After Building vtk with Qt on Ubuntu 16.04 I tried to make a few examples.
Here is one of them:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/SideBySideRenderWindowsQt#CMakeLists.txt
After running CMake with no errors on configure or generation I try to make but it blows up with this:
[100%] Linking CXX executable SideBySideRenderWindowsQt
/usr/bin/ld: cannot find -lvtkLocalExample
collect2: error: ld returned 1 exit status
CMakeFiles/SideBySideRenderWindowsQt.dir/build.make:278: recipe for target 'SideBySideRenderWindowsQt' failed
make[2]: * [SideBySideRenderWindowsQt] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/SideBySideRenderWindowsQt.dir/all' failed
make[1]: * [CMakeFiles/SideBySideRenderWindowsQt.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
What should I do?

Compiling AR Drone SDK fails with DSO missing from command line

I am attempting to build the AR Drone SDK on Ubuntu. When compiling the libraries I get the error:
//lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
I dont understand what the problem is. I am following this tutorial and the problem occurs when I run make. I have run ARDroneLib/Soft/Build/check_dependencies.sh and it outputs ok.
Any ideas what the problem is? Below is the full output from running make.
soribo#soribo-vm:~/Projects/ARDrone/ARDrone_SDK_2_0_1/Examples/Linux$ make
make[1]: Entering directory `/home/soribo/Projects/ARDrone/ARDrone_SDK_2_0_1/ARDroneLib/Soft/Build'
Libs already extracted
Building target static
Architecture x86_64 is already built
Creating universal static lib file from architectures x86_64
Build done.
Checking required Ubuntu packages ...
ok.
Building ARDroneTool/Lib
Building ARDroneTool/Lib
make[1]: Leaving directory `/home/soribo/Projects/ARDrone/ARDrone_SDK_2_0_1/ARDroneLib/Soft/Build'
make[1]: Entering directory `/home/soribo/Projects/ARDrone/ARDrone_SDK_2_0_1/Examples/Linux/Navigation/Build'
-- Building ardrone_navigation --
Libs already extracted
Building target static
Architecture x86_64 is already built
Creating universal static lib file from architectures x86_64
Build done.
Checking required Ubuntu packages ...
ok.
Building ARDroneTool/Lib
Building ARDroneTool/Lib
-- Linking ardrone_navigation --
ld common/mobile_main
/usr/bin/ld: ../../Soft/Build/targets_versions/ffmpeg_static_PROD_MODE_Linux_3.19.0-25-generic_GNU_Linux_usrbingcc_4.8.4/libavutil.a(eval.o): undefined reference to symbol 'fabs##GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[4]: *** [/home/soribo/Projects/ARDrone/ARDrone_SDK_2_0_1/Examples/Linux/Navigation/Build/../../Build/Release/common/mobile_main] Error 1
make[3]: *** [all] Error 2
make[2]: *** [build_app] Error 2
make[1]: *** [ardrone_navigation] Error 2
make[1]: Leaving directory `/home/soribo/Projects/ARDrone/ARDrone_SDK_2_0_1/Examples/Linux/Navigation/Build'
make: *** [all] Error 2
I had the same problem. I found the solution here:
http://jderobot.org/Varribas-tfm/ARDrone:starting_up#Building_Examples
Looking for undefined reference to symbol 'fabs##GLIBC_2.2.5', I reached to [2], that confirms an unmeet dependency problem [1].
What happened here?
libavutil.a(eval.o): undefined reference to symbol 'fabs##GLIBC_2.2.5'
libm.so.6: error adding symbols: DSO missing from command line
First line say us that libavutil is using fabs. It is declared into libm library, but -lm is missed in command line (Makefile).
ARDrone_SDK_2_0_1/Examples/Linux/Navigation/Build/Makefile:131
GENERIC_LIBS+=-liw -lpc_ardrone -lgthread-2.0 -lgtk-x11-2.0 -lrt -lxml2 -ludev -lswscale -lSDL -lm
Then, Navigation will compile successfully.

Resources