* [Buildroot] OpenCV compilation Error
@ 2014-04-22 8:30 Parsa Panahi
2014-04-22 8:41 ` Baruch Siach
2014-04-22 8:49 ` Samuel Martin
0 siblings, 2 replies; 4+ messages in thread
From: Parsa Panahi @ 2014-04-22 8:30 UTC (permalink / raw)
To: buildroot
Hi
I checked opencv to be included in my kernel but When I make the
buildroot it gives the following error for the opencv package.
It seems it didn't find the gcc/cmake cannot compile the package. what's
wrong and what should I do ?
>>> opencv 2.4.2 Configuring
(cd
/home/parsa/Software/buildroot/buildroot-2014.02/output/build/opencv-2.4.2/
&& rm -f CMakeCache.txt &&
/home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/bin/cmake
/home/parsa/Software/buildroot/buildroot-2014.02/output/build/opencv-2.4.2/
-DCMAKE_TOOLCHAIN_FILE="/home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/share/buildroot/toolchainfile.cmake"
-DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_COLOR_MAKEFILE=OFF
-DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug
-DBUILD_WITH_STATIC_CRT=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLES=OFF
-DBUILD_PACKAGE=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=ON
-DBUILD_WITH_DEBUG_INFO=OFF -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF
-DCMAKE_SKIP_RPATH=OFF -DCMAKE_USE_RELATIVE_PATHS=OFF
-DENABLE_FAST_MATH=ON -DENABLE_NOISY_WARNINGS=OFF
-DENABLE_OMIT_FRAME_POINTER=ON -DENABLE_PRECOMPILED_HEADERS=OFF
-DENABLE_PROFILING=OFF -DENABLE_SOLUTION_FOLDERS=OFF
-DOPENCV_CAN_BREAK_BINARY_COMPATIBILITY=ON
-DBUILD_opencv_androidcamera=OFF -DBUILD_opencv_calib3d=ON
-DBUILD_opencv_contrib=ON -DBUILD_opencv_core=ON
-DBUILD_opencv_features2d=ON -DBUILD_opencv_flann=ON
-DBUILD_opencv_gpu=OFF -DBUILD_opencv_highgui=ON
-DBUILD_opencv_imgproc=ON -DBUILD_opencv_java=OFF
-DBUILD_opencv_legacy=ON -DBUILD_opencv_ml=ON -DBUILD_opencv_nonfree=OFF
-DBUILD_opencv_objdetect=ON -DBUILD_opencv_photo=ON
-DBUILD_opencv_python=OFF -DBUILD_opencv_stitching=ON
-DBUILD_opencv_ts=ON -DBUILD_opencv_video=ON -DBUILD_opencv_videostab=ON
-DBUILD_opencv_world=OFF -DENABLE_POWERPC=OFF -DENABLE_SSE=OFF
-DENABLE_SSE2=OFF -DENABLE_SSE3=OFF -DENABLE_SSSE3=OFF
-DBUILD_JASPER=OFF -DBUILD_JPEG=OFF -DBUILD_PNG=OFF -DBUILD_TIFF=OFF
-DBUILD_ZLIB=OFF -DBUILD_ANDROID_CAMERA_WRAPPER=OFF
-DBUILD_ANDROID_EXAMPLES=OFF -DBUILD_FAT_JAVA_LIB=OFF
-DBUILD_JAVA_SUPPORT=OFF -DBUILD_NEW_PYTHON_SUPPORT=OFF
-DINSTALL_ANDROID_EXAMPLES=OFF -DINSTALL_C_EXAMPLES=OFF
-DINSTALL_PYTHON_EXAMPLES=OFF -DINSTALL_TO_MANGLED_PATHS=OFF
-DWITH_1394=OFF -DWITH_ANDROID_CAMERA=OFF -DWITH_AVFOUNDATION=OFF
-DWITH_CARBON=OFF -DWITH_CUBLAS=OFF -DWITH_CUDA=OFF -DWITH_CUFFT=OFF
-DWITH_EIGEN=OFF -DWITH_IMAGEIO=OFF -DWITH_IPP=OFF -DWITH_JASPER=OFF
-DWITH_OPENEXR=OFF -DWITH_OPENGL=OFF -DWITH_OPENNI=OFF -DWITH_PVAPI=OFF
-DWITH_QUICKTIME=OFF -DWITH_TBB=OFF -DWITH_UNICAP=OFF
-DWITH_VIDEOINPUT=OFF -DWITH_XIMEA=OFF -DWITH_XINE=OFF -DWITH_FFMPEG=ON
-DWITH_GSTREAMER=OFF -DWITH_GTK=OFF -DWITH_JPEG=ON -DWITH_PNG=ON
-DWITH_QT=ON -DWITH_TIFF=ON -DWITH_V4L=OFF )
Re-run cmake no build system arguments
-- The CXX compiler identification is unknown
-- The C compiler identification is unknown
-- Check for working CXX compiler:
/home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/bin/-g++
CMake Error: your CXX compiler:
"/home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/bin/-g++"
was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or
name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working CXX compiler:
/home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/bin/-g++
-- broken
CMake Error at
/home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:54
(message):
The C++ compiler
"/home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/bin/-g++"
is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:61 (project)
CMake Error: your CXX compiler:
"/home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/bin/-g++"
was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or
name.
CMake Error: your C compiler:
"/home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/bin/-gcc"
was not found. Please set CMAKE_C_COMPILER to a valid compiler path or
name.
-- Configuring incomplete, errors occurred!
See also
"/home/parsa/Software/buildroot/buildroot-2014.02/output/build/opencv-2.4.2/CMakeFiles/CMakeOutput.log".
See also
"/home/parsa/Software/buildroot/buildroot-2014.02/output/build/opencv-2.4.2/CMakeFiles/CMakeError.log".
make: ***
[/home/parsa/Software/buildroot/buildroot-2014.02/output/build/opencv-2.4.2/.stamp_configured]
Error 1
--
Parsa Panahi
D?partement de g?nie ?lectrique
?tudiant de l'?lectronique num?rique
Sharif Universit? de Technologie - T?h?ran - Iran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140422/8d25cbea/attachment.html>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] OpenCV compilation Error
2014-04-22 8:30 [Buildroot] OpenCV compilation Error Parsa Panahi
@ 2014-04-22 8:41 ` Baruch Siach
2014-04-22 8:49 ` Samuel Martin
1 sibling, 0 replies; 4+ messages in thread
From: Baruch Siach @ 2014-04-22 8:41 UTC (permalink / raw)
To: buildroot
Hi Parsa,
On Tue, Apr 22, 2014 at 01:00:17PM +0430, Parsa Panahi wrote:
> I checked opencv to be included in my kernel but When I make the
> buildroot it gives the following error for the opencv package.
>
> It seems it didn't find the gcc/cmake cannot compile the package. what's
> wrong and what should I do ?
>
> >>> opencv 2.4.2 Configuring
[...]
> Re-run cmake no build system arguments
> -- The CXX compiler identification is unknown
> -- The C compiler identification is unknown
> -- Check for working CXX compiler:
> /home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/bin/-g++
This is a strange name for the g++ compiler. Can you share your .config file?
baruch
> CMake Error: your CXX compiler:
> "/home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/bin/-g++"
> was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or
> name.
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> -- Check for working CXX compiler:
> /home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/bin/-g++
> -- broken
> CMake Error at
> /home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:54
> (message):
> The C++ compiler
>
> "/home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/bin/-g++"
> is not able to compile a simple test program.
>
> It fails with the following output:
>
> CMake will not be able to correctly generate this project.
> Call Stack (most recent call first):
> CMakeLists.txt:61 (project)
>
> CMake Error: your CXX compiler:
> "/home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/bin/-g++"
> was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or
> name.
> CMake Error: your C compiler:
> "/home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/bin/-gcc"
> was not found. Please set CMAKE_C_COMPILER to a valid compiler path or
> name.
> -- Configuring incomplete, errors occurred!
> See also
> "/home/parsa/Software/buildroot/buildroot-2014.02/output/build/opencv-2.4.2/CMakeFiles/CMakeOutput.log".
> See also
> "/home/parsa/Software/buildroot/buildroot-2014.02/output/build/opencv-2.4.2/CMakeFiles/CMakeError.log".
> make: ***
> [/home/parsa/Software/buildroot/buildroot-2014.02/output/build/opencv-2.4.2/.stamp_configured]
> Error 1
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] OpenCV compilation Error
2014-04-22 8:30 [Buildroot] OpenCV compilation Error Parsa Panahi
2014-04-22 8:41 ` Baruch Siach
@ 2014-04-22 8:49 ` Samuel Martin
2014-04-22 8:59 ` Parsa Panahi
1 sibling, 1 reply; 4+ messages in thread
From: Samuel Martin @ 2014-04-22 8:49 UTC (permalink / raw)
To: buildroot
Hi,
On Tue, Apr 22, 2014 at 10:30 AM, Parsa Panahi
<panahi.parsa@paravisioner.com> wrote:
> Hi
>
> I checked opencv to be included in my kernel but When I make the buildroot
> it gives the following error for the opencv package.
>
>
>
> It seems it didn't find the gcc/cmake cannot compile the package. what's
> wrong and what should I do ?
>
It seems the toolchainfile.cmake is wrongly generated.
Could you share your .config file?
Also could you tell us more about the step you've done to setup your
configuration (e.g.: "make blabla_defconfig", then: "make menuconfig"
and change this and that toolchain options)?
As a quick fix, you can try the following:
rm /home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/share/buildroot/toolchainfile.cmake
then, rerun the build
Regards,
--
Samuel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] OpenCV compilation Error
2014-04-22 8:49 ` Samuel Martin
@ 2014-04-22 8:59 ` Parsa Panahi
0 siblings, 0 replies; 4+ messages in thread
From: Parsa Panahi @ 2014-04-22 8:59 UTC (permalink / raw)
To: buildroot
Hi Samuel
On 2014-04-22 13:19, Samuel Martin wrote:
> Hi,
>
> On Tue, Apr 22, 2014 at 10:30 AM, Parsa Panahi
> <panahi.parsa@paravisioner.com> wrote:
>
>> Hi I checked opencv to be included in my kernel but When I make the buildroot it gives the following error for the opencv package. It seems it didn't find the gcc/cmake cannot compile the package. what's wrong and what should I do ?
>
> It seems the toolchainfile.cmake is wrongly generated.
> Could you share your .config file?
>
> Also could you tell us more about the step you've done to setup your
> configuration (e.g.: "make blabla_defconfig", then: "make menuconfig"
> and change this and that toolchain options)?
>
> As a quick fix, you can try the following:
> rm /home/parsa/Software/buildroot/buildroot-2014.02/output/host/usr/share/buildroot/toolchainfile.cmake
> then, rerun the build
>
> Regards,
>
> --
> Samuel
All right, I've attached my config file.
--
Parsa Panahi
D?partement de g?nie ?lectrique
?tudiant de l'?lectronique num?rique
Sharif Universit? de Technologie - T?h?ran - Iran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140422/990cbe34/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Myconfig
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140422/990cbe34/attachment.ksh>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-04-22 8:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-22 8:30 [Buildroot] OpenCV compilation Error Parsa Panahi
2014-04-22 8:41 ` Baruch Siach
2014-04-22 8:49 ` Samuel Martin
2014-04-22 8:59 ` Parsa Panahi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.