Using Neon and OpenCV 1.1 library

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using Neon and OpenCV 1.1 library

1,492 Views
MarcoDiVivo87
Contributor I

Hi !

 

I'm trying to use Neon on OpenCV 1.1 (not 2.1) library...i added the flag:  ' -mfpu=neon ' but i get this error :

 

my_fobj.cpp:1: error: invalid floating point option: -mfpu=neon

 

I'm trying to accelerate the find_obj.cpp ...this is my incomplete command line(missing all other library used) :

 

arm-none-linux-gnueabi-g++ -ggdb  -ftree-vectorize -ffast-math -mfpu=neon  `pkg-config --cflags opencv` -o `basename $1 .cpp` $1 -L$prefix ...(all other libraries..)

 

Can anyone  help me ? Am I on a wrong way ??

 

Thanks to everybody!

Tags (1)
0 Kudos
3 Replies

893 Views
MarcoDiVivo87
Contributor I

i saw the  ./config --help  ...searching for some flag that enable the neon intrinsic... and this is the result :

 

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
              [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
              [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR           user executables [EPREFIX/bin]
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  --libexecdir=DIR       program executables [EPREFIX/libexec]
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --libdir=DIR           object code libraries [EPREFIX/lib]
  --includedir=DIR       C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR          info documentation [DATAROOTDIR/info]
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR           man documentation [DATAROOTDIR/man]
  --docdir=DIR           documentation root [DATAROOTDIR/doc/opencv]
  --htmldir=DIR          html documentation [DOCDIR]
  --dvidir=DIR           dvi documentation [DOCDIR]
  --pdfdir=DIR           pdf documentation [DOCDIR]
  --psdir=DIR            ps documentation [DOCDIR]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  --target=TARGET   configure for building compilers for TARGET [HOST]

Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-static[=PKGS]  build static libraries [default=no]
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --enable-debug          build debug version without optimization [no]
  --enable-apps           build demo applications [yes]
  --enable-sse2           enable SSE2 intrinsics [yes]
  --enable-openmp         enable OpenMP threading [automatic]

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-tags[=TAGS]      include additional configurations [automatic]
  --with-swig             use swig wrapper generator [no]
  --with-python           use python for wrapping [yes]
  --with-octave           use octave for wrapping [no]
  --with-xine             use xine libraries (see LICENSE) [no]
  --with-gstreamer        use gstreamer multimedia framework (see LICENSE)
                          [no]
  --with-ffmpeg           use ffmpeg libraries (see LICENSE) [automatic]
  --with-1394libs         use libraw1394/libdc1394 [automatic]
  --with-v4l              use video4linux [automatic]
  --with-unicap           use unicap (see LICENSE) [no]
  --with-imageio          use ImageIO libraries [automatic]
  --with-quicktime        use QuickTime libraries [automatic]
  --with-carbon           use Carbon windows [automatic]
  --with-gtk              use gtk+ 2.0 windows [automatic]
  --with-gthread          use gthread in addition to gtk+ [automatic]

Some influential environment variables:
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CC          C compiler command
  CFLAGS      C compiler flags
  CPP         C preprocessor
  CXXCPP      C++ preprocessor
  F77         Fortran 77 compiler command
  FFLAGS      Fortran 77 compiler flags
  PYTHON      Python Executable Path
  SWIG        Simplified Wrapper and Interface Generator, used for Python
              bindings

0 Kudos

894 Views
MarcoDiVivo87
Contributor I

no... i m using gcc 4.1.2...

 

/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi

0 Kudos

893 Views
udragon
Contributor I
Are you using GCC 4.4.4 ?
0 Kudos