make error: /bin/sh: -C: command not found - cmake

Running the following:
~ % cd faust
faust % make
returns this:
if test -d .git; then git submodule update --init --recursive; fi
/Library/Developer/CommandLineTools/usr/bin/make -C build cmake BACKENDS=regular.cmake TARGETS=regular.cmake
cd faustdir && -C ../backends/regular.cmake -C ../targets/regular.cmake -DCMAKE_BUILD_TYPE=Release "-DWORKLET=off" -DLIBSDIR=lib -G 'Unix Makefiles' ..
/bin/sh: -C: command not found
make[1]: *** [cmake] Error 127
make: *** [compiler] Error 2
And I have no clue how to fix these errors... Nothing I tried worked. Any ideas?

Related

Apache httpd compile (make) error. How to fix it?

I get an error when compiling (configure) Apache httpd. Please tell me how to solve it.
Error message
$ git clone -b 2.2.3 --single-branch https://github.com/apache/httpd.git
$ cd httpd
$ autoconf
$ ./configure
configure: error: cannot find required auxiliary files: config.guess config.sub
My environment
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
$ autoconf -V
autoconf (GNU Autoconf) 2.71
Update 1
The "configure" problem has probably been solved. (I stopped using github). However, an error occurs during make.
"make" error message
$ wget https://archive.apache.org/dist/httpd/httpd-2.2.3.tar.gz
$ gzip -d httpd-2.2.3.tar.gz
$ tar xvf httpd-2.2.3.tar
$ cd httpd-2.2.3
$ ./configure --prefix /home/ubuntu/local
$ make
/usr/bin/ld: .libs/htpasswd.o: undefined reference to symbol 'crypt##XCRYPT_2.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libcrypt.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:39: htpasswd] Error 1
make[2]: Leaving directory '/home/ubuntu/httpd-2.2.3/support'
make[1]: *** [/home/ubuntu/httpd-2.2.3/build/rules.mk:72: all-recursive] Error 1
make[1]: Leaving directory '/home/ubuntu/httpd-2.2.3/support'
make: *** [/home/ubuntu/httpd-2.2.3/build/rules.mk:72: all-recursive] Error 1
Installed modules
sudo apt-get install libapr1-dev libaprutil1-dev
sudo apt-get install build-essential
sudo apt-get install libpcre3-dev
Try this:
wget http://archive.apache.org/dist/httpd/httpd-2.2.3.tar.gz
tar -xf httpd-2.2.3.tar.gz
sudo ./configure --prefix=/opt/httpd --with-included-apr --with-ssl=/opt/openssl-1.0.1i --enable-ssl-staticlib-deps --enable-mods-static=ssl
sudo make
sudo make install

configure: error: libopenvswitch.a was not found. Try --with-ovs-libpath

When i use this command:
./configure --with-ovs-srcdir=/home/mx/SDN/openvswitch-2.10.1 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
I had got the error result:
configure: error: libopenvswitch.a was not found. Try --with-ovs-libpath
But in my computer, i can find libopenvswitch.a file:
/lib/libopenvswitch.a
/usr/local/lib/libopenvswitch.a
/home/mx/SDN/openvswitch-2.10.1/lib/.libs/libopenvswitch.a
But i use the command:
./configure --with-ovs-srcdir=/home/mx/SDN/openvswitch-2.10.1 --with-ovs-libpath=/lib/ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
or command:
./configure --with-ovs-srcdir=/home/mx/SDN/openvswitch-2.10.1 --with-ovs-libpath=/usr/local/lib/ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
or command:
./configure --with-ovs-srcdir=/home/mx/SDN/openvswitch-2.10.1 --with-ovs-libpath=/home/mx/SDN/openvswitch-2.10.1/lib/.libs/ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
all get same error result:
configure: error: libopenvswitch.a was not found. Try --with-ovs-libpath
Please help me, thanks!
You need version 2.3.1 of Open vSwitch to build OF-CONFIG.
I can reproduce your issue if I try to install OF-CONFIG with the last version of Open vSwitch:
$ ./configure --with-ovs-srcdir=/ovs PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
...
configure: error: libopenvswitch.a was not found. Try --with-ovs-libpath
If I install Open vSwitch 2.3.1, however, everything works as expected:
$ wget http://openvswitch.org/releases/openvswitch-2.3.1.tar.gz
$ tar -xf openvswitch-2.3.1.tar.gz
$ cd openvswitch-2.3.1/
$ ./configure --prefix=/ --datarootdir=/usr/share
...
$ make -j && sudo make install -j
...
$ cd /of-config
$ ./configure --with-ovs-srcdir=/openvswitch-2.3.1 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
...
$ echo $?
0

fatal error: opencv2/gpu/gpu.hpp: No such file or directory opencv and GPU installation

the package I am trying to install is in the below link
https://github.com/wanglimin/dense_flow
(cv) -group-1-3p16:~/dense_flow$ sudo make
Scanning dependencies of target denseFlow_gpu
[ 50%] Building CXX object CMakeFiles/denseFlow_gpu.dir/denseFlow_gpu.cpp.o
/home/vinsent_research/dense_flow/denseFlow_gpu.cpp:4:31: fatal error: opencv2/gpu/gpu.hpp: No such file or directory
compilation terminated.
CMakeFiles/denseFlow_gpu.dir/build.make:62: recipe for target 'CMakeFiles/denseFlow_gpu.dir/denseFlow_gpu.cpp.o' failed
make[2]: *** [CMakeFiles/denseFlow_gpu.dir/denseFlow_gpu.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/denseFlow_gpu.dir/all' failed
make[2]: *** [CMakeFiles/denseFlow_gpu.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Not sure how to resolve this issue, I have installed opencv 3.4.1 on ubuntu 18, the installation was successfull, followed these post
[https://github.com/VinACE/Install-TensorFlow-OpenCV-GPU-Ubuntu-17.10][2]
my cmake
sudo cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D INSTALL_C_EXAMPLES=OFF \
-DPYTHON2_EXECUTABLE=/usr/bin/python2 \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.4.1/modules \
-D PYTHON_EXECUTABLE=~/.virtualenvs/cv/bin/python \
-D WITH_CUDA=ON \
-D CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-5 \
-D CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-5 \
-D BUILD_EXAMPLES=ON ..
the ubuntu opencv 3.4.1 install what i have followed

RPI Native Build Qt 5.10.1: config test architecture failure

Hi I am trying to build QT 5.10.1 with this guide. I am getting this error;
Command line: -opengl es2 -device linux-rasp-pi3-vc4-g++ -device-option
CROSS_COMPILE=arm-linux-gnueabihf- -sysroot /opt/qt5pi/sysroot -prefix
/usr/local/qt5pi -opensource -confirm-license -skip qtwebengine -skip
qtscript -nomake examples -no-use-gold-linker -make libs -v
executing config test architecture
+ cd /home/pi/qt5build/config.tests/arch &&
/home/pi/qt5build/qtbase/bin/qmake "CONFIG -= qt debug_and_release
app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch"
"QMAKE_CFLAGS += --sysroot=/opt/qt5pi/sysroot" "QMAKE_CXXFLAGS += --
sysroot=/opt/qt5pi/sysroot" "QMAKE_LFLAGS += --sysroot=/opt/qt5pi/sysroot" -
early "CONFIG += cross_compile" /home/pi/qt-everywhere-src-
5.10.1/qtbase/config.tests/arch
+ cd /home/pi/qt5build/config.tests/arch && MAKEFLAGS= /usr/bin/make clean
&& MAKEFLAGS= /usr/bin/make
> rm -f arch.o
> rm -f *~ core *.core
> arm-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-
neon-
fp-armv8 -mfloat-abi=hard --sysroot=/opt/qt5pi/sysroot -O2 -w -fPIC -
I/home/pi/qt-everywhere-src-5.10.1/qtbase/config.tests/arch -I. -
I/home/pi/qt-everywhere-src-5.10.1/qtbase/mkspecs/devices/linux-rasp-
pi3-vc4-g++ -o arch.o /home/pi/qt-everywhere-src-
5.10.1/qtbase/config.tests/arch/arch.cpp
> /home/pi/qt-everywhere-src-5.10.1/qtbase/config.tests/arch/arch.cpp:43:19:
fatal error: stdio.h: No such file or directory
> #include <stdio.h>
> ^
> compilation terminated.
> Makefile:179: recipe for target 'arch.o' failed
> make: *** [arch.o] Error 1
I checked the include file in the /usr location it is there. If I add the file arch.cpp location then it needs another file. How can I fix this?
Thanks for help.
fatal error: stdio.h: No such file or directory
This suggests you are missing build dependencies on your host machine (the machine on which you are running configure), most likely libc
I'm not sure what package manager you have, but with apt you can install this with:
sudo apt install libc6-dev
Failing that, you also might like to try:
sudo apt install build-essential
which installs various compilation tools/libraries.

Error when compiling mono on windows: i686-pc-mingw32/bin/ld: cannot find -ldl

I am trying to compile mono on windows using cygwin, however when I run make it eventually stops with the following error
make[3]: Entering directory '/cygdrive/c/Projects/mono/mono/metadata'
CCLD pedump.exe
/usr/lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/bin/ld: cannot find -ldl
collect2: error: ld returned 1 exit status
Makefile:1303: recipe for target 'pedump.exe' failed
make[3]: *** [pedump.exe] Error 1
make[3]: Leaving directory '/cygdrive/c/Projects/mono/mono/metadata'
Makefile:434: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/cygdrive/c/Projects/mono/mono'
Makefile:518: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/cygdrive/c/Projects/mono'
Makefile:445: recipe for target 'all' failed
make: *** [all] Error 2
I can only assume I am missing something from my cygwin install but I can't determine what that could be other than it is probably a library called libdl.
I have been following this guide on codeproject and also using this yaml file as reference.
The code project article may not be complete, in the end I got the following to work
First I used (interpreted from mono/Appveyor.yml)
setup-x86.exe -qnNdO -R "C:\cygwin" -s "http://cygwin.mirror.constant.com"
-l "C:\cygwin\var\cache\setup" -P autoconf -P automake -P bison -P gcc-core
-P gcc-g++ -P mingw-runtime -P mingw-binutils -P mingw-gcc-core -P mingw-gcc-g++
-P mingw-pthreads -P mingw-w32api -P libtool -P make -P python -P gettext-devel
-P gettext -P intltool -P libiconv -P pkg-config -P git -P wget -P curl
Then from a cygwin prompt (combination of above and code project article "How-to-build-Mono-on-Windows")
NOCONFIGURE=1 ./autogen.sh --prefix="C:\monoinstall" --with-preview=yes
./configure --host=i686-pc-mingw32
make get-monolite-latest
make
mount "C:\monoinstall" /usr/local
make install
cd /cygdrive/c/monoinstall/bin
rm mono
cp /cygdrive/c/Program Files (x86)/Mono-3.2.3/bin/mono.exe /cygdrive/c/monoinstall/bin
rm mcs
cp /cygdrive/c/Program Files (x86)/Mono-3.2.3/bin/mcs.bat /cygdrive/c/monoinstall/bin