Comments (14)
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.
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.
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.
I upload it to the Baidu cloud, please try download:
link: http://pan.baidu.com/s/1qYxwcQK passcode: sqc8
from v4l2test.
Got it. Thanks
from v4l2test.
dose it compile success now ? or not ?
from v4l2test.
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.
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.
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.
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:
- cd android-source dir
- copy v4l2test to android-source dir
- source build/envsetup.sh
- lunch (select a device combo)
- make -j8 (this will make whole android source code )
- mmm v4l2test -B (this will build v4l2test project)
from v4l2test.
Thanks. I managed to build it.
from v4l2test.
great
from v4l2test.
you write a new makefile ?
could you please share you modification, this maybe helpful for other peoples.
thank you.
from v4l2test.
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)
- context-aware encoding
- Preview video is delayed and interlaced HOT 32
- native_window_dequeue_buffer_and_wait will block camdev_capture_thread_proc HOT 1
- av_interleaved_write_frame sometimes consumes too much time, will cause dropping frame HOT 1
- Release proposal HOT 3
- 支持双usb摄像头吗 HOT 6
- How to detect lost connection from Camera? HOT 2
- any plan to simplify the build steps? HOT 3
- ffmpeg问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from v4l2test.