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?
Related
Building llvm on ubuntu 18.04 virtual machine, faced an error while running make on the step 7 of the tutorial(Build LLVM and Clang). The stacktrace attached. Help please!
[ 49%] Building ASM object projects/compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_trampoline_x86_64.S.o
cc: error: unrecognized argument to -fno-sanitize= option: ‘safe-stack’
cc: error: unrecognized debug output level ‘line-tables-only’
projects/compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/build.make:206: recipe for target 'projects/compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_trampoline_x86_64.S.o' failed
make[2]: [projects/compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_trampoline_x86_64.S.o] Error 1
CMakeFiles/Makefile2:29096: recipe for target 'projects/compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/all' failed
make[1]: [projects/compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: * [all] Error 2**
I am trying to build iotivity-constrained Zephyr port on Linux for ESP32 but getting the following errors,
drivers/built-in.o: In function `esp32_uart_init':
/home/toolchains/zephyr/drivers/serial/uart_esp32.c:46:(.text.esp32_uart_init+0x3): dangerous relocation: call8: call target out of range: uartAttach
drivers/built-in.o: In function `esp32_uart_tx':
/home/toolchains/zephyr/drivers/serial/uart_esp32.c:19:(.text.esp32_uart_tx+0x9): dangerous relocation: call8: call target out of range: uart_tx_one_char
collect2: error: ld returned 1 exit status
/home/toolchains/zephyr/Makefile:878: recipe for target 'zephyr_prebuilt.elf' failed
make[2]: *** [zephyr_prebuilt.elf] Error 1
make[2]: Leaving directory '/home/projects/iotivity-constrained/port/zephyr/outdir/esp32'
Makefile:178: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/toolchains/zephyr'
/home/toolchains/zephyr/Makefile.inc:82: recipe for target 'all' failed
make: *** [all] Error 2
I can build Zephyr and ESP32 separately but not iotivity-constrained. I tried to add -mlongcalls but no success.
Any suggestions?
Add flag -mlongcalls in /zephyr/drivers/serial/Makefile.
References:
IOT-2650
I am compiling and installing OpenCV using the steps in http://docs.opencv.org/2.4/doc/tutorials/introduction/linux_install/linux_install.html
But during "making" it, it has error when it reaches 45%. The error message is
...
[ 43%] Built target pch_Generate_opencv_video
[ 44%] Built target opencv_video
[ 44%] Built target opencv_perf_video_pch_dephelp
[ 45%] Built target pch_Generate_opencv_perf_video
Linking CXX executable ../../bin/opencv_perf_video
../../lib/libopencv_videoio.so.3.1.0: undefined reference to `avcodec_alloc_frame'
../../lib/libopencv_videoio.so.3.1.0: undefined reference to `avcodec_encode_video'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/opencv_perf_video] Error 1
make[1]: *** [modules/video/CMakeFiles/opencv_perf_video.dir/all] Error 2
make: *** [all] Error 2
I downloaded and installed the latest version of ffmpeg from https://www.ffmpeg.org/.
Anyone knows how can I fix the errors?
Thank you.
I'm following the process https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-Amazon-Linux-2014.03.
At the time of compilation and installation:
[root#ip-172-31-19-191 hhvm]# make
[ 0%] Building CXX object hphp/third_party/folly/CMakeFiles/folly.dir/folly/Demangle.cpp.o
c++: error: unrecognized command line option ‘-fno-canonical-system-headers’
make[2]: *** [hphp/third_party/folly/CMakeFiles/folly.dir/folly/Demangle.cpp.o] Error 1
make[1]: *** [hphp/third_party/folly/CMakeFiles/folly.dir/all] Error 2
make: *** [all] Error 2
Anyone know why the compiler is not recognizing this command?
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.