When I svn co llvm-3.3,clang-3.3,compiler -rt, build passes but build didn't create clang exe in build/Debug+Asserts. When I put only clang for svn co build didn't pass but he creates clang exe. I'm Linux user on Ubuntu.
make[4]: Leaving directory `/home/rtrk/llvm/test/branches_release/release_33-build/tools/clang/runtime/compiler-rt'
make[3]: *** [compiler-rt/.makeall] Error 2
make[3]: Leaving directory `/home/rtrk/llvm/test/branches_release/release_33-build/tools/clang/runtime'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/home/rtrk/llvm/test/branches_release/release_33-build/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/home/rtrk/llvm/test/branches_release/release_33-build/tools'
export JN
export JN='-j 8'
rm -rf llvm34
svn co http://llvm.org/svn/llvm-project/llvm/branches/release_34/ llvm34
cd llvm34
cd tools
svn co http://llvm.org/svn/llvm-project/cfe/branches/release_34/ clang
cd ..
./configure --enable-optimized --disable-doxygen --prefix=/opt/llvm34
make $JN
make install
Related
I'm trying to compile the OpenCV version 4.1.0 whith OpenVX enabled on yocto but It is raising an "undefined referece" error. I already try to include the the "lm" library as a dependency, but I think that It is not available to Yocto. I also noticed that the VX/vx.h file was not present on the OpenCV or OpenVX sources. Does someone have some idea of how I can resolve this error?
CMakeFiles/example_openvx_no_wrappers.dir/no_wrappers.cpp.o: undefined reference to symbol 'vxCannyEdgeDetectorNode'
~/imx-yocto-bsp/build/tmp/sysroots/apalis-imx8/usr/lib/libOpenVX.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [bin/example_openvx_no_wrappers] Error 1
make[2]: Leaving directory `~/imx-yocto-bsp/build/tmp/work/aarch64-mx8qm-poky-linux/opencv/4.1.0+gitAUTOINC+371bba8f54_2c32791a9c_32e315a5b1_34e4206aef_fccf7cd6a4-r0/build'
make[1]: ***[samples/openvx/CMakeFiles/example_openvx_no_wrappers.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In my opencv_4.1.0.bbappend I put the following PACKAGECONFIG:
PACKAGECONFIG[openvx] = " \
-DWITH_OPENVX=ON -DOPENVX_ROOT=${STAGING_LIBDIR} -DOPENVX_LIB_CANDIDATES='OpenVX;OpenVXU', \
-DWITH_OPENVX=OFF, \
virtual/libopenvx, \
\
"
My previously working Docker build started throwing this error, using a clone of the sources obtained yesterday:
make[2]: Entering directory `/opt/nodemcu-firmware/tools/spiffsimg'
gcc -g -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -I. -I../../app/
spiffs -I../../app/include -DNODEMCU_SPIFFS_NO_INCLUDE --include spiffs_typedefs
.h main.c ../../app/spiffs/spiffs_cache.c ../../app/spiffs/spiffs_check.c ../../
app/spiffs/spiffs_gc.c ../../app/spiffs/spiffs_hydrogen.c ../../app/spiffs/spiff
s_nucleus.c -o spiffsimg
make[2]: gcc: Command not found
make[2]: *** [spiffsimg] Error 127
make[2]: Leaving directory `/opt/nodemcu-firmware/tools/spiffsimg'
make[1]: *** [spiffsimg/spiffsimg] Error 2
make[1]: Leaving directory `/opt/nodemcu-firmware/tools'
make: *** [spiffs-image-remove] Error 2
Older clones of the source still build without errors.
It does build 0x00000.bin and 0x10000.bin using the latest sources, but doesn't build nodemcu_float_master_########-####.bin nor nodemcu_integer_master_########-####.bin.
Has anyone else ran into this?
You're using an older version of the Docker image. gcc was added to it two months ago. So, run
docker pull marcelstoer/nodemcu-build
to pull the latest version from Docker Hub. Docker doesn't automatically ensure you have the latest version if you downloaded the image before.
I'm Trying to install OpenCV on Ubuntu 14.10 but i'm facing this error again and again :(
/usr/bin/ld: /usr/local/lib/libavcodec.a(avpacket.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavcodec.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
modules/highgui/CMakeFiles/opencv_highgui.dir/build.make:654: recipe for target 'lib/libopencv_highgui.so.2.4.9' failed
make[2]: *** [lib/libopencv_highgui.so.2.4.9] Error 1
CMakeFiles/Makefile2:1767: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
Makefile:133: recipe for target 'all' failed
make: *** [all] Error 2
Please provide the command history before you have encountered the error.
If calling make was the last thing before the error occured, you can try to call make CFLAGS="-fPIC" instead.
Late to the party, but the issue is that FFMPEG is not compiled with position-independent code. Go to your FFMPEG directory and do
./configure --enable-nonfree --enable-pic --enable-shared
then redo the make, make install steps, and re-do the build of opencv.
I know OpenCV 3.0 is not a release version, yet. I'm trying to evaluate a few features in the 3.0 version for a prototype system we are building. I cloned the latest source code from the git repository and I use the following cmake to build the libraries:
cmake -D BUILD_SHARED_LIBS=ON -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
However, I encounter this issue when it builds the libraries when i do a make:
/usr/bin/ld: /usr/local/lib/libavcodec.a(avpacket.o): relocation R_X86_64_32S against `av_destruct_packet' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavcodec.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libopencv_highgui.so.3.0.0] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
I'm not quite sure where to set the -fPIC flag in the CMakeLists.txt. Just a point to note, I have OpenCV 2.4.8 libraries already built and running on my machine. Thanks for taking time to help me out!
Thanks for the answer. I managed to install OpenCV 3.0.0-dev version by removing my existing OpenCV installation. Although this was not required, I removed my previous 2.4.8 library files and managed to compile it. CCMake helped make the decision for the installation much simpler. Use that to decide which libraries you'd like to compile before running make.
I'm having a problem when trying to compile ROS Hydro from the source on Odroid-U3. This is the related error:
Built target pch_Generate_opencv_superres
[ 31%] Built target opencv_core
[ 32%] Built target opencv_flann
[ 35%] Built target opencv_ml
[ 42%] Built target opencv_imgproc
[ 42%] Built target opencv_photo
[ 45%] Built target opencv_video
Linking CXX shared library ../../lib/libopencv_highgui.so
/usr/local/lib/libavcodec.a(videodsp_armv5te.o): In function `ff_prefetch_arm':
/home/odroid/odroid-sources/sources/ffmpeg/libavcodec/arm/videodsp_armv5te.S:29:(.text+0x8): relocation truncated to fit: R_ARM_THM_JUMP19 against symbol `ff_prefetch_arm' defined in .text section in /usr/local/lib/libavcodec.a(videodsp_armv5te.o)
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libopencv_highgui.so.2.4.6] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2
<== Failed to process package 'opencv2':
Command '/home/odroid/ros_catkin_ws/install_isolated/env.sh make -j4 -l4' returned non-zero exit status 2
Reproduce this error by running:
==> cd /home/odroid/ros_catkin_ws/build_isolated/opencv2 && /home/odroid/ros_catkin_ws/install_isolated/env.sh make -j4 -l4
Command failed, exiting.
Already tried to install those libraries by sudo apt-get install but no difference. Any help would be awesome. Thanks!