Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] opencv with glibc
@ 2012-02-15 15:35 Ozgun
  2012-02-15 15:52 ` Thomas Petazzoni
  2012-02-15 16:58 ` Ozgun
  0 siblings, 2 replies; 11+ messages in thread
From: Ozgun @ 2012-02-15 15:35 UTC (permalink / raw)
  To: buildroot

I'm using ct-ng toolchain and glibc library. when compiling opencv gives
the following uclibc error;



>>> opencv 2.3.1a Patching package//opencv
>>> opencv 2.3.1a Configuring
(cd /usr/src/br/buildroot/output/build/opencv-2.3.1a/ && rm -f
CMakeCache.txt &&  /usr/src/br/buildroot/output/host/usr/bin/cmake
/usr/src/br/buildroot/output/build/opencv-2.3.1a/
-DCMAKE_TOOLCHAIN_FILE="/usr/src/br/buildroot/output/toolchainfile.cmake"
-DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE=Release -DBUILD_DOCS=OFF
-DBUILD_EXAMPLES=OFF -DBUILD_PACKAGE=OFF -DBUILD_TESTS=OFF
-DBUILD_SHARED_LIBS=ON -DINSTALL_C_EXAMPLES=OFF
-DINSTALL_PYTHON_EXAMPLES=OFF -DOPENCV_BUILD_3RDPARTY_LIBS=OFF
-DENABLE_PROFILING=OFF -DCMAKE_SKIP_RPATH=OFF -DUSE_FAST_MATH=ON
-DUSE_OMIT_FRAME_POINTER=ON -DUSE_PRECOMPILED_HEADERS=OFF -DWITH_1394=OFF
-DWITH_CUDA=OFF -DWITH_EIGEN=OFF -DWITH_IPP=OFF -DWITH_JASPER=OFF
-DWITH_OPENEXR=OFF -DWITH_OPENNI=OFF -DWITH_PVAPI=OFF -DWITH_TBB=OFF
-DWITH_UNICAP=OFF -DWITH_XINE=OFF -DBUILD_NEW_PYTHON_SUPPORT=OFF
-DWITH_FFMPEG=OFF -DWITH_GSTREAMER=OFF -DWITH_GTK=OFF -DWITH_JPEG=OFF
-DWITH_PNG=OFF -DWITH_QT=ON -DWITH_QT_OPENGL=OFF -DWITH_TIFF=OFF
-DWITH_V4L=ON )
Re-run cmake no build system arguments
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler:
/usr/src/br/buildroot/output/host/usr/bin/i686-unknown-linux-uclibc-gcc
CMake Error: your C compiler:
"/usr/src/br/buildroot/output/host/usr/bin/i686-unknown-linux-uclibc-gcc"
was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or
name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working C compiler:
/usr/src/br/buildroot/output/host/usr/bin/i686-unknown-linux-uclibc-gcc --
broken
CMake Error at
/usr/src/br/buildroot/output/host/usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52
(MESSAGE):
  The C compiler
  "/usr/src/br/buildroot/output/host/usr/bin/i686-unknown-linux-uclibc-gcc"
  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:40 (project)


CMake Error: your C compiler:
"/usr/src/br/buildroot/output/host/usr/bin/i686-unknown-linux-uclibc-gcc"
was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or
name.
CMake Error: your CXX compiler:
"/usr/src/br/buildroot/output/host/usr/bin/i686-unknown-linux-uclibc-g++"
was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or
name.
-- Configuring incomplete, errors occurred!
make: ***
[/usr/src/br/buildroot/output/build/opencv-2.3.1a/.stamp_configured] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120215/ed828bd0/attachment.html>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] opencv with glibc
  2012-02-15 15:35 [Buildroot] opencv with glibc Ozgun
@ 2012-02-15 15:52 ` Thomas Petazzoni
  2012-02-15 16:58 ` Ozgun
  1 sibling, 0 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2012-02-15 15:52 UTC (permalink / raw)
  To: buildroot

Le Wed, 15 Feb 2012 17:35:08 +0200,
Ozgun <ozgun.gunay@gmail.com> a ?crit :

> I'm using ct-ng toolchain and glibc library. when compiling opencv
> gives the following uclibc error;

Can you send your Buildroot .config file? According to your build log,
you are definitely not using a glibc toolchain, so there is probably a
problem in your Buildroot configuration.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] opencv with glibc
  2012-02-15 15:35 [Buildroot] opencv with glibc Ozgun
  2012-02-15 15:52 ` Thomas Petazzoni
@ 2012-02-15 16:58 ` Ozgun
  2012-02-15 17:20   ` Samuel Martin
  1 sibling, 1 reply; 11+ messages in thread
From: Ozgun @ 2012-02-15 16:58 UTC (permalink / raw)
  To: buildroot

see attached file



Date: Wed, 15 Feb 2012 16:52:42 +0100
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot at busybox.net
Subject: Re: [Buildroot] opencv with glibc
Message-ID: <20120215165242.6af85108@skate
>
Content-Type: text/plain; charset=UTF-8

Le Wed, 15 Feb 2012 17:35:08 +0200,
Ozgun <ozgun.gunay@gmail.com> a ?crit :

> I'm using ct-ng toolchain and glibc library. when compiling opencv
> gives the following uclibc error;

Can you send your Buildroot .config file? According to your build log,
you are definitely not using a glibc toolchain, so there is probably a
problem in your Buildroot configuration.

Best regards,

Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com




On Wed, Feb 15, 2012 at 5:35 PM, Ozgun <ozgun.gunay@gmail.com> wrote:

>
>
> I'm using ct-ng toolchain and glibc library. when compiling opencv gives
> the following uclibc error;
>
>
>
> >>> opencv 2.3.1a Patching package//opencv
> >>> opencv 2.3.1a Configuring
> (cd /usr/src/br/buildroot/output/build/opencv-2.3.1a/ && rm -f
> CMakeCache.txt &&  /usr/src/br/buildroot/output/host/usr/bin/cmake
> /usr/src/br/buildroot/output/build/opencv-2.3.1a/
> -DCMAKE_TOOLCHAIN_FILE="/usr/src/br/buildroot/output/toolchainfile.cmake"
> -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE=Release -DBUILD_DOCS=OFF
> -DBUILD_EXAMPLES=OFF -DBUILD_PACKAGE=OFF -DBUILD_TESTS=OFF
> -DBUILD_SHARED_LIBS=ON -DINSTALL_C_EXAMPLES=OFF
> -DINSTALL_PYTHON_EXAMPLES=OFF -DOPENCV_BUILD_3RDPARTY_LIBS=OFF
> -DENABLE_PROFILING=OFF -DCMAKE_SKIP_RPATH=OFF -DUSE_FAST_MATH=ON
> -DUSE_OMIT_FRAME_POINTER=ON -DUSE_PRECOMPILED_HEADERS=OFF -DWITH_1394=OFF
> -DWITH_CUDA=OFF -DWITH_EIGEN=OFF -DWITH_IPP=OFF -DWITH_JASPER=OFF
> -DWITH_OPENEXR=OFF -DWITH_OPENNI=OFF -DWITH_PVAPI=OFF -DWITH_TBB=OFF
> -DWITH_UNICAP=OFF -DWITH_XINE=OFF -DBUILD_NEW_PYTHON_SUPPORT=OFF
> -DWITH_FFMPEG=OFF -DWITH_GSTREAMER=OFF -DWITH_GTK=OFF -DWITH_JPEG=OFF
> -DWITH_PNG=OFF -DWITH_QT=ON -DWITH_QT_OPENGL=OFF -DWITH_TIFF=OFF
> -DWITH_V4L=ON )
> Re-run cmake no build system arguments
> -- The C compiler identification is unknown
> -- The CXX compiler identification is unknown
> -- Check for working C compiler:
> /usr/src/br/buildroot/output/host/usr/bin/i686-unknown-linux-uclibc-gcc
> CMake Error: your C compiler:
> "/usr/src/br/buildroot/output/host/usr/bin/i686-unknown-linux-uclibc-gcc"
> was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or
> name.
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> -- Check for working C compiler:
> /usr/src/br/buildroot/output/host/usr/bin/i686-unknown-linux-uclibc-gcc --
> broken
> CMake Error at
> /usr/src/br/buildroot/output/host/usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52
> (MESSAGE):
>   The C compiler
>   "/usr/src/br/buildroot/output/host/usr/bin/i686-unknown-linux-uclibc-gcc"
>   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:40 (project)
>
>
> CMake Error: your C compiler:
> "/usr/src/br/buildroot/output/host/usr/bin/i686-unknown-linux-uclibc-gcc"
> was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or
> name.
> CMake Error: your CXX compiler:
> "/usr/src/br/buildroot/output/host/usr/bin/i686-unknown-linux-uclibc-g++"
> was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or
> name.
> -- Configuring incomplete, errors occurred!
> make: ***
> [/usr/src/br/buildroot/output/build/opencv-2.3.1a/.stamp_configured] Error 1
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120215/ddd45dca/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: copy of .config
Type: application/octet-stream
Size: 35343 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120215/ddd45dca/attachment-0001.obj>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] opencv with glibc
  2012-02-15 16:58 ` Ozgun
@ 2012-02-15 17:20   ` Samuel Martin
  2012-02-15 17:50     ` Ozgun
  0 siblings, 1 reply; 11+ messages in thread
From: Samuel Martin @ 2012-02-15 17:20 UTC (permalink / raw)
  To: buildroot

hi,

Ozgun: you want to use a glibc toolchain, right?

your .config file say that, contrary to your logs:
>> CMake Error: your CXX compiler:
>> "/usr/src/br/buildroot/output/host/usr/bin/i686-unknown-linux-uclibc-g++"
>> was not found.?? Please set CMAKE_CXX_COMPILER to a valid compiler path or

before changing your configuration to build a ct-ng glibc toolchain,
did you run 'make clean', 'make distclean' ?
if yes, then there is a bug in BR that does not delete the
toolchainfile.cmake when calling clean/distclean target.

btw, removing the buildroot/output/toolchainfile.cmake  and running
make again should fix your issue.

regards,

Sam

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] opencv with glibc
  2012-02-15 17:20   ` Samuel Martin
@ 2012-02-15 17:50     ` Ozgun
  2012-02-15 18:15       ` Samuel Martin
  0 siblings, 1 reply; 11+ messages in thread
From: Ozgun @ 2012-02-15 17:50 UTC (permalink / raw)
  To: buildroot

I can compile with glibc library without any problem. But when I choose/add
opencv, buildroot installs CMAKE to TARGET just before opencv and then
CMAKE try to configure opencv, meanwhile CMAKE assumes uclibc.
I changed  CMAKETARGET  to AUTOTARGETS then buildroot give ./configure file
is not exist.
I understand that opencv has a special configuration management system via
CMAKE, and CMAKE has some problems with crosstool-ng toolchain.




On Wed, Feb 15, 2012 at 7:20 PM, Samuel Martin <s.martin49@gmail.com> wrote:

> hi,
>
> Ozgun: you want to use a glibc toolchain, right?
>
> your .config file say that, contrary to your logs:
> >> CMake Error: your CXX compiler:
> >>
> "/usr/src/br/buildroot/output/host/usr/bin/i686-unknown-linux-uclibc-g++"
> >> was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path
> or
>
> before changing your configuration to build a ct-ng glibc toolchain,
> did you run 'make clean', 'make distclean' ?
> if yes, then there is a bug in BR that does not delete the
> toolchainfile.cmake when calling clean/distclean target.
>
> btw, removing the buildroot/output/toolchainfile.cmake  and running
> make again should fix your issue.
>
> regards,
>
> Sam
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120215/c8342df9/attachment.html>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] opencv with glibc
  2012-02-15 17:50     ` Ozgun
@ 2012-02-15 18:15       ` Samuel Martin
  2012-02-15 19:35         ` Ozgun
  0 siblings, 1 reply; 11+ messages in thread
From: Samuel Martin @ 2012-02-15 18:15 UTC (permalink / raw)
  To: buildroot

2012/2/15 Ozgun <ozgun.gunay@gmail.com>:
>
> I can compile with glibc library without any problem. But when I choose/add
> opencv, buildroot installs CMAKE to TARGET just before opencv and then CMAKE
> try to configure opencv, meanwhile CMAKE assumes uclibc.
> I changed? CMAKETARGET? to AUTOTARGETS then buildroot give ./configure file
> is not exist.
> I understand that opencv has a special configuration management system via
> CMAKE, and CMAKE has some problems with crosstool-ng toolchain.
>

Actually opencv is a cmake target, you cannot (easily) change that !
Cmake is the alternative to the autotools used by opencv.

The problem is that BR generate the output/toolchainfile.cmake that
describe the toolchain you're currently using,
But unfortunately, this file is wrong, it does not match your current
toolchain; it cerlainly one of your previous configuration.

So, removing output/toolchainfile.cmake will make BR regenerate it
according to the current configuration during the next build.
Then, when cmake will be called to configure opencv, the
toolchainfile.cmake passed as argument will be correct.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] opencv with glibc
  2012-02-15 18:15       ` Samuel Martin
@ 2012-02-15 19:35         ` Ozgun
  2012-02-15 21:26           ` Thomas Petazzoni
  0 siblings, 1 reply; 11+ messages in thread
From: Ozgun @ 2012-02-15 19:35 UTC (permalink / raw)
  To: buildroot

My br doesn't have output/toolchainfile.cmake file

15 ?ub 2012 20:15 tarihinde "Samuel Martin" <s.martin49@gmail.com> yazd?:
>
> 2012/2/15 Ozgun <ozgun.gunay@gmail.com>:
> >
> > I can compile with glibc library without any problem. But when I
choose/add
> > opencv, buildroot installs CMAKE to TARGET just before opencv and then
CMAKE
> > try to configure opencv, meanwhile CMAKE assumes uclibc.
> > I changed  CMAKETARGET  to AUTOTARGETS then buildroot give ./configure
file
> > is not exist.
> > I understand that opencv has a special configuration management system
via
> > CMAKE, and CMAKE has some problems with crosstool-ng toolchain.
> >
>
> Actually opencv is a cmake target, you cannot (easily) change that !
> Cmake is the alternative to the autotools used by opencv.
>
> The problem is that BR generate the output/toolchainfile.cmake that
> describe the toolchain you're currently using,
> But unfortunately, this file is wrong, it does not match your current
> toolchain; it cerlainly one of your previous configuration.
>
> So, removing output/toolchainfile.cmake will make BR regenerate it
> according to the current configuration during the next build.
> Then, when cmake will be called to configure opencv, the
> toolchainfile.cmake passed as argument will be correct.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120215/5e8bae8d/attachment.html>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] opencv with glibc
  2012-02-15 19:35         ` Ozgun
@ 2012-02-15 21:26           ` Thomas Petazzoni
  0 siblings, 0 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2012-02-15 21:26 UTC (permalink / raw)
  To: buildroot

Le Wed, 15 Feb 2012 21:35:25 +0200,
Ozgun <ozgun.gunay@gmail.com> a ?crit :

> My br doesn't have output/toolchainfile.cmake file

Which version of Buildroot are you using? Are you doing out-of-tree
build (if so, then the toolchainfile.cmake file is in the output
directory you selected with O=, not in output/).

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] opencv with glibc
@ 2012-02-16  6:46 Ozgun
  2012-02-20  9:11 ` Yegor Yefremov
  0 siblings, 1 reply; 11+ messages in thread
From: Ozgun @ 2012-02-16  6:46 UTC (permalink / raw)
  To: buildroot

I download my BR from standard tree.
My problem solved using "make distclean" instead of "make clean"

thanks




Date: Wed, 15 Feb 2012 22:26:03 +0100
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: Ozgun <ozgun.gunay@gmail.com>
Cc: buildroot at busybox.net
Subject: Re: [Buildroot] opencv with glibc
Message-ID: <20120215222603.6754b8e6@skate
>
Content-Type: text/plain; charset=UTF-8

Le Wed, 15 Feb 2012 21:35:25 +0200,
Ozgun <ozgun.gunay@gmail.com> a ?crit :

> My br doesn't have output/toolchainfile.cmake file

Which version of Buildroot are you using? Are you doing out-of-tree
build (if so, then the toolchainfile.cmake file is in the output
directory you selected with O=, not in output/).

Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120216/d7f30788/attachment-0001.html>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] opencv with glibc
  2012-02-16  6:46 Ozgun
@ 2012-02-20  9:11 ` Yegor Yefremov
  2012-02-20 16:56   ` Thomas Petazzoni
  0 siblings, 1 reply; 11+ messages in thread
From: Yegor Yefremov @ 2012-02-20  9:11 UTC (permalink / raw)
  To: buildroot

Peter, what do you think about removing CMake toolchain file be make clean?

Yegor

On Thu, Feb 16, 2012 at 7:46 AM, Ozgun <ozgun.gunay@gmail.com> wrote:
>
> I download my BR from standard tree.
> My problem solved using "make distclean" instead of "make clean"
>
> thanks
>
>
>
>
> Date: Wed, 15 Feb 2012 22:26:03 +0100
> From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> To: Ozgun <ozgun.gunay@gmail.com>
> Cc: buildroot at busybox.net
> Subject: Re: [Buildroot] opencv with glibc
> Message-ID: <20120215222603.6754b8e6@skate
>>
> Content-Type: text/plain; charset=UTF-8
>
> Le Wed, 15 Feb 2012 21:35:25 +0200,
> Ozgun <ozgun.gunay@gmail.com> a ?crit :
>
>> My br doesn't have output/toolchainfile.cmake file
>
> Which version of Buildroot are you using? Are you doing out-of-tree
> build (if so, then the toolchainfile.cmake file is in the output
> directory you selected with O=, not in output/).
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] opencv with glibc
  2012-02-20  9:11 ` Yegor Yefremov
@ 2012-02-20 16:56   ` Thomas Petazzoni
  0 siblings, 0 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2012-02-20 16:56 UTC (permalink / raw)
  To: buildroot

Le Mon, 20 Feb 2012 10:11:37 +0100,
Yegor Yefremov <yegorslists@googlemail.com> a ?crit :

> Peter, what do you think about removing CMake toolchain file be make
> clean?

I agree it should be removed on make clean.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-02-20 16:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-15 15:35 [Buildroot] opencv with glibc Ozgun
2012-02-15 15:52 ` Thomas Petazzoni
2012-02-15 16:58 ` Ozgun
2012-02-15 17:20   ` Samuel Martin
2012-02-15 17:50     ` Ozgun
2012-02-15 18:15       ` Samuel Martin
2012-02-15 19:35         ` Ozgun
2012-02-15 21:26           ` Thomas Petazzoni
  -- strict thread matches above, loose matches on Subject: below --
2012-02-16  6:46 Ozgun
2012-02-20  9:11 ` Yegor Yefremov
2012-02-20 16:56   ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox