Git Product home page Git Product logo

Comments (14)

rockcarry avatar rockcarry commented on May 24, 2024

I checked you android.mk, I found it missing "\" ??

for example:

in yours
LOCAL_SRC_FILES :=
v4l2test.cpp
ffjpeg.cpp
camdev.cpp

but it shoud like this:
LOCAL_SRC_FILES :=
v4l2test.cpp \
ffjpeg.cpp \
camdev.cpp

maybe you are missing the "\". (or the github web display bug ?)

I built these codes under Allwinner A33 android 4.4 source code enviroment.
In theory it is possible using NDK, but I suggest you using NDK version which corresponding to the Android4.4.

good luck.

from v4l2test.

shakith avatar shakith commented on May 24, 2024

I checked and "" are in the mk file. It looks like a github web display bug. could you share your NDK toolchain mentioned in the readme (arm-linux-androideabi-4.7.1-full-linux-x86.tar.bz2)?

from v4l2test.

rockcarry avatar rockcarry commented on May 24, 2024

arm-linux-androideabi-4.7.1-full-linux-x86.tar.bz2
no problem, but how to give it to you ? about 39MB size.

from v4l2test.

rockcarry avatar rockcarry commented on May 24, 2024

I upload it to the Baidu cloud, please try download:
link: http://pan.baidu.com/s/1qYxwcQK passcode: sqc8

from v4l2test.

shakith avatar shakith commented on May 24, 2024

Got it. Thanks

from v4l2test.

rockcarry avatar rockcarry commented on May 24, 2024

dose it compile success now ? or not ?

from v4l2test.

shakith avatar shakith commented on May 24, 2024

Not yet. A seperate makefile is needed to build test programs using arm-linux-androideabi-4.7.1-full-linux-x86.tar.bz2 toolchain. Do you already have such a makefile?

from v4l2test.

rockcarry avatar rockcarry commented on May 24, 2024

sorry. I only use arm-linux-androideabi-4.7.1-full-linux-x86 toolchain to build ffmpeg library for v4l2test.
the source code of v4l2test need build using NDK or in android source code building enviroment.
the arm-linux-androideabi-4.7.1-full-linux-x86 toolchain is a standalone toolchain for android, it means you can use it to build c/c++ source without NDK.

from v4l2test.

shakith avatar shakith commented on May 24, 2024

Okay. I want to build v4l2test without using NDK. As I have build errors with NDK. How did you build v4l2test without using the NDK? Did you create a makefile to build c/c++ (e.g. v4l2test) using the arm-linux-androideabi-4.7.1-full-linux-x86 stnadalone toolchain?

from v4l2test.

rockcarry avatar rockcarry commented on May 24, 2024

some source code of v4l2test using android header files, example:

in camdev.h
#include <gui/Surface.h>
#include <gui/SurfaceComposerClient.h>
#include <gui/ISurfaceComposer.h>
#include <ui/DisplayInfo.h>
#include <ui/GraphicBufferMapper.h>

these header files are not included in the standalone toolchains.

so you need NDK and download related android source code or header files.

I sugguest you download the android 4.4 source code, and try to build it.

my build steps in android source code enviroment:

  1. cd android-source dir
  2. copy v4l2test to android-source dir
  3. source build/envsetup.sh
  4. lunch (select a device combo)
  5. make -j8 (this will make whole android source code )
  6. mmm v4l2test -B (this will build v4l2test project)

from v4l2test.

shakith avatar shakith commented on May 24, 2024

Thanks. I managed to build it.

from v4l2test.

rockcarry avatar rockcarry commented on May 24, 2024

great

from v4l2test.

rockcarry avatar rockcarry commented on May 24, 2024

you write a new makefile ?
could you please share you modification, this maybe helpful for other peoples.
thank you.

from v4l2test.

shakith avatar shakith commented on May 24, 2024

Sorry fro the late reply. I didnt make a new makefile. I just followed your steps build the project using mmm v4l2test -B

from v4l2test.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.