a patch for using MultimediaKit

430 views
Skip to first unread message

JMSáez

unread,
Jul 1, 2011, 7:13:19 AM7/1/11
to android-qt
Hello to all:

As you can see, in the new version of Necessitas (aplpha 2 update 1)
the multimediakit module of Mobility was included (both in the local
libraries and in the Ministro unstable repository). Unfortunately, it
does not work because it is unmaintained yet. If you compile a program
including this module, your app will crash. Anyway, I have found a way
to use it with a few changes in the .java files and in the installed
libraries. Here I resume the changes:

- Include the libffmpeg.so library which must be loaded before
multimediakit (I have copy it to /data/local/qt_aux). You can find
libffmpeg.so in the mobility sources.
- Change the QtApplication.java in order to load the last library
manually (I don't know the proper location of this library, then I
have load it manually including a instruction in the loadQtLibraries
method).
- Change the QtCamera.java in order to fix some bugs (the method
getSupportedModes creates 0 lenght vectors and then access to them).

I have prepared a linux script that makes the last changes:

http://dl.dropbox.com/u/5646191/patchMultimediaKit.zip

Just unzip the file and run patchMultimediaKit.sh

Some considerations:

- Install the latest necessitas (alpha 2 update 1) and select unstable
repository with the Ministro configuration tool. Then, run the patch.
- The patch only works with armeabi-v7 qt framework. You can modify
the sh in order to patch armeabi v5 too.
- Mobility does not work under /data/local directory. If you want to
use your local libraries, run a project with "deploy local libs"
option and use the script localLibToMinistro.sh that I include in the
zip in order to move them to /data/data/eu.licentia.../files/qt
directory. In this directory, libraries works fine (you must root your
device in order to run this script).
- In order to use multimedia kit dont forget: check multimediakit in
the modules, add the module in the .pro file, add the proper
permissions (the camera need an special permission, for example).
- Note that this patch is unofficial. I hope this changes will be
applied in the next release through a better way.
- I have tested only the camera (that works fine) and some video
objects under a Samsung Galaxy S2 device. Be free of test all objects
and report your feedback!

Hope it helps.
Best regards
JMSáez



Espen Riskedal

unread,
Aug 9, 2011, 11:55:39 AM8/9/11
to andro...@googlegroups.com
> - I have tested only the camera (that works fine) and some video
> objects under a Samsung Galaxy S2 device. Be free of test all objects
> and report your feedback!

Would be cool to see a video of this in action! :)

espen

Juan Manuel Sáez

unread,
Aug 9, 2011, 12:22:55 PM8/9/11
to andro...@googlegroups.com
Hello Espen:

I am finishing some modifications of the libraries in order to process video proprerly. Now, i am obtaining 320x240 video frames at 25 fps, but these frames are obtained by an asyncronous way and it is not very good. But, on the other hand, the image processing is really powerfull with Necessitas. I am running the KLT (Kanade-Lucas-Tomasi) tracker at 6 fps, for example (I think that it is a really good ratio in a mobile phone).

I hope that in a couple of weeks I will finish a first demo with syncronized video. Then, I will prepare a video with that.

Best regards
JMSaez

2011/8/9 Espen Riskedal <es...@cutehacks.com>



--
______________________________________________________

Dr. Juan Manuel Sáez Martínez
Profesor Titular de Universidad
Departamento de Ciencia de la Computación e Inteligencia Artificial
Escuela Politécnica Superior. Universidad de Alicante
Teléfono: 965903900 ext 2752 Fax: 965903902
______________________________________________________

Espen Riskedal

unread,
Aug 9, 2011, 2:03:29 PM8/9/11
to andro...@googlegroups.com
> I hope that in a couple of weeks I will finish a first demo with syncronized
> video. Then, I will prepare a video with that.

excellent :)

espen

Juan Manuel Sáez

unread,
Sep 12, 2011, 1:13:33 PM9/12/11
to andro...@googlegroups.com
Hello Espen (and the rest of Necessitas comunity):

Finally, I have compiled a video demo that you can see at:

http://www.youtube.com/watch?v=DOK0kTAkJtY

I show the powerfull of Necessitas processing online video from camera with a resolution of 320x240 (when the video is up to this resolution is simply scaled). The real framerate is higher than in the video, because I have captured it through an screen capturer app running in the phone at the same time, that is very heavy. For example, raw video is captured at 25 fps while in the demo appears arround 15 fps.

I show the results of four different algorithms of the vision comunity:
- Sobel operator: gradient comutation over R, G and B with a 3x3 mask.
- KLT tracker: Is the Kanade-Lucas-Tomasi feature tracker. Blue dots represent matched features and red ones represent the new feats.
- SURF: SpeedUp Robust Features. Similar to SIFT feats. In the video I show the match between the last two frames with and without filtering (I have implemented an own filter step based on the angles of the features).
- Superpixels: SLIC superpixels computed over the last frame. In this case, I show the results with a 320x240 resolution (1.5 fps) and with the half (5-6 fps).

I simply adapted standar c++ libs for KLT, SURF and Superpixels computation. As you can see, theese three algorithms are really heavy and thanks to Necessitas they can run in a phone :-)

Many thanks to Necessitas developers and to the people of the forum.

Hope you enjoy with the video
JMSáez

2011/8/9 Espen Riskedal <es...@cutehacks.com>

EndSiv

unread,
Nov 7, 2011, 1:39:37 PM11/7/11
to android-qt
Hey Juan Manuel Sáez,

I'm trying to use your patch to use audioOutput, but I don't get
sucess on copying the .so file on /data/local/qt_aux (I don't find it
D: )

I'm working at windows and got a Virtual Machine Fedora... Can you
help me?

Thanks,

End

Juan Manuel Sáez

unread,
Nov 7, 2011, 1:51:00 PM11/7/11
to andro...@googlegroups.com
Hello Endy:

The patch that I wrote was for Necessitas R2. With the new version of necessitas (R3) the patch does not work. I'm working on that...

You can obtain the libffmpeg.so file from the sources of necessitas. Run the installer and select "mobility sources" for download. Then, you will find the file under the sources tree.

Best regards
JMSáez.

2011/11/7 EndSiv <endy.s...@traceback.com.br>

EndSiv

unread,
Nov 8, 2011, 10:18:36 AM11/8/11
to android-qt
Hello Juan,

I got the Necessitas R2 and R3 in my PC, but even in R2 i don't find
the directory of /data/local/qt_aux...

Do you know how can I put the files at there?

Thanks,

Endy

On 7 nov, 16:51, Juan Manuel Sáez <jms...@dccia.ua.es> wrote:
> Hello Endy:
>
> The patch that I wrote was for Necessitas R2. With the new version of
> necessitas (R3) the patch does not work. I'm working on that...
>
> You can obtain the libffmpeg.so file from the sources of necessitas. Run
> the installer and select "mobility sources" for download. Then, you will
> find the file under the sources tree.
>
> Best regards
> JMSáez.
>
> 2011/11/7 EndSiv <endy.silve...@traceback.com.br>

Juan Manuel Sáez

unread,
Nov 8, 2011, 11:30:04 AM11/8/11
to andro...@googlegroups.com
Hello Endy:

Sorry, I have not explained it very well. You must create a directory in your DEVICE named /data/local/qt_aux and copy (using adb push for example) the file libffmpeg.so into it. Then, in the java part you must load manually this file before ministro, through the instruction:

        System.load("/data/local/qt_aux/libffmpeg.so");

This instruction must be:

If you are using R3: At the begining of the method loadApplication, of the file QtActivity.java of your project (this file is added to your project by necessitas).

If you are using R2: At the begining of the method loadQtLibraries, of the file  QtApplication.java of your project (is added by necessitas like the other situation).

here

http://dl.dropbox.com/u/5646191/patchMultimediaKit.zip

you can find a patch for the R2 version (I'm preparing a patch for the R3 one) that copy the libffmpeg.so to the device and modifies some java files of necessitas (you must regenerate your project after you run the patch). This patch modifies the QtCamera.java also file in order to use the camera without any chrash.

Hope it helps
JMSaez



2011/11/8 EndSiv <endy.s...@traceback.com.br>

EndSiv

unread,
Nov 9, 2011, 1:48:19 PM11/9/11
to android-qt
Hello Juan,

That explain a lot hehe but my device is an Coby Kyros 7016 and I got
some problems with the adb... 'Cause I'm in windows OS, I starte the
cmd.exe, cd to android-sdk-windows\platform-tools and when I try adb
devices I got nothin \o/

auhauhauha But I'm working on it... Thanks a lot in advance ;D

On 8 nov, 14:30, Juan Manuel Sáez <jms...@dccia.ua.es> wrote:
> Hello Endy:
>
> Sorry, I have not explained it very well. You must create a directory in
> your DEVICE named /data/local/qt_aux and copy (using adb push for example)
> the file libffmpeg.so into it. Then, in the java part you must load
> manually this file before ministro, through the instruction:
>
>         System.load("/data/local/qt_aux/libffmpeg.so");
>
> This instruction must be:
>
> If you are using R3: At the begining of the method loadApplication, of the
> file QtActivity.java of your project (this file is added to your project by
> necessitas).
>
> If you are using R2: At the begining of the method loadQtLibraries, of the
> file  QtApplication.java of your project (is added by necessitas like the
> other situation).
>
> here
>
> http://dl.dropbox.com/u/5646191/patchMultimediaKit.zip<http://www.google.com/url?sa=D&q=http://dl.dropbox.com/u/5646191/patc...>
>
> you can find a patch for the R2 version (I'm preparing a patch for the R3
> one) that copy the libffmpeg.so to the device and modifies some java files
> of necessitas (you must regenerate your project after you run the patch).
> This patch modifies the QtCamera.java also file in order to use the camera
> without any chrash.
>
> Hope it helps
> JMSaez
>
> 2011/11/8 EndSiv <endy.silve...@traceback.com.br>

Juan Manuel Sáez

unread,
Nov 9, 2011, 3:46:20 PM11/9/11
to andro...@googlegroups.com

Hello
You can also copy the file downloading it directly with the device from the link that i sent you (its into the zip) and using a filemanger to locate it on any public folder.
sorry but I have never used adb from windows.
Bests
Jmsaez

Phi Van Ngoc

unread,
Nov 10, 2011, 4:47:43 AM11/10/11
to andro...@googlegroups.com
Hi,

It works perfectly for me on Asus Transformer. Thanks a lot JMSaez!

Br,
Phi

EndSiv

unread,
Nov 10, 2011, 10:15:43 AM11/10/11
to android-qt
Hi,

I tryed to locate the files inside your .zip to the /data/local/
qt_aux, but there's a simple problem, i'm not having succes on rooting
my tablet, so i can't get acess to that folder D:

I'll keep trying o/ have faith that will run ok... (I saw that you
used video with that patch... Audio is included too, right? hehehe)

Thaanks,

Endy

On 10 nov, 07:47, Phi Van Ngoc <ngocke...@gmail.com> wrote:
> Hi,
>
> It works perfectly for me on Asus Transformer. Thanks a lot JMSaez!
>
> Br,
> Phi
>
>
>
>
>
>
>
> On Wed, 2011-11-09 at 21:46 +0100, Juan Manuel Sáez wrote:
> > Hello
> > You can also copy the file downloading it directly with the device
> > from the link that i sent you (its into the zip) and using a
> > filemanger to locate it on any public folder.
> > sorry but I have never used adb from windows.
> > Bests
> > Jmsaez
>
> > El 09/11/2011 19:48, "EndSiv" <endy.silve...@traceback.com.br>

Juan Manuel Sáez

unread,
Nov 10, 2011, 11:06:01 AM11/10/11
to andro...@googlegroups.com

Hello:
You can copy the file to any other public dir, but change also the path in the system.load instruction of the java part.
Nevertheless, i recomend you to root your device if you want to use multimediakit because you will need to path other files... (this module is unmaintained yet and some elements are very unstable).
in my apps i process the preview of the camera only. Then, im not using the audio. I dont know if it works but if you test it, please report your results.

Best regards
Jmsaez

EndSiv

unread,
Nov 11, 2011, 10:19:58 AM11/11/11
to android-qt
Hello Juan,

Don't get sucess D: Changed the dir of the file for the /sdcard/data/
local/qt_aux and when i started the app it crashes D:
I'll keep making some tests to check out if the problem and if get
sucess I'll report here...

Thanks for you help,

Endy

On 10 nov, 14:06, Juan Manuel Sáez <jms...@dccia.ua.es> wrote:
> Hello:
> You can copy the file to any other public dir, but change also the path in
> the system.load instruction of the java part.
> Nevertheless, i recomend you to root your device if you want to use
> multimediakit because you will need to path other files... (this module is
> unmaintained yet and some elements are very unstable).
> in my apps i process the preview of the camera only. Then, im not using the
> audio. I dont know if it works but if you test it, please report your
> results.
>
> Best regards
> Jmsaez
> ...
>
> mais »

Giorgio Cardarelli

unread,
Nov 24, 2011, 9:04:28 AM11/24/11
to android-qt
Hello,

thanks very much for this patch/howto. I succeded. The only problem I
had to face is that Necessitas QtCreator doesn't add android's
permissions to app's manifest when I select them in the project's run
settings.

I had to add <uses-permission android:name="android.permission.CAMERA"/
> to AndroidManifest.xml manually to use the camera.

HTH,

Giorgio

> > > > >         > the filelibffmpeg.sointo it. Then, in the java part you


> > > > >         must load
> > > > >         > manually this file before ministro, through the instruction:
>
> > > > >         >         System.load("/data/local/qt_aux/libffmpeg.so");
>
> > > > >         > This instruction must be:
>
> > > > >         > If you are using R3: At the begining of the method
> > > > >         loadApplication, of the
> > > > >         > file QtActivity.java of your project (this file is added to
> > > > >         your project by
> > > > >         > necessitas).
>
> > > > >         > If you are using R2: At the begining of the method
> > > > >         loadQtLibraries, of the
> > > > >         > file  QtApplication.java of your project (is added by
> > > > >         necessitas like the
> > > > >         > other situation).
>
> > > > >         > here
>
> > > > >        http://dl.dropbox.com/u/5646191/patchMultimediaKit.zip<
> > >http://www.google.com/url?sa=D&q=http://dl.dropbox.com/u/5646191/patc...>
>
> > > > >         > you can find a patch for the R2 version (I'm preparing a
> > > > >         patch for the R3

> > > > >         > one) that copy thelibffmpeg.soto the device and modifies


> > > > >         some java files
> > > > >         > of necessitas (you must regenerate your project after you
> > > > >         run the patch).
> > > > >         > This patch modifies the QtCamera.java also file in order to
> > > > >         use the camera
> > > > >         > without any chrash.
>
> > > > >         > Hope it helps
> > > > >         > JMSaez
>
> > > > >         > 2011/11/8 EndSiv <endy.silve...@traceback.com.br>
>
> > > > >         > > Hello Juan,
>
> > > > >         > > I got the Necessitas R2 and R3 in my PC, but even in R2 i
> > > > >         don't find
> > > > >         > > the directory of /data/local/qt_aux...
>
> > > > >         > > Do you know how can I put the files at there?
>
> > > > >         > > Thanks,
>
> > > > >         > > Endy
>
> > > > >         > > On 7 nov, 16:51, Juan Manuel Sáez <jms...@dccia.ua.es>
> > > > >         wrote:
> > > > >         > > > Hello Endy:
>
> > > > >         > > > The patch that I wrote was for Necessitas R2. With the
> > > > >         new version of
> > > > >         > > > necessitas (R3) the patch does not work. I'm working on
> > > > >         that...
>

> > > > >         > > > You can obtain thelibffmpeg.sofile from the sources of

> ...
>
> read more »

EndSiv

unread,
Nov 24, 2011, 12:21:18 PM11/24/11
to android-qt
No sucess...

The problem is the audioOutput and I don't think that will be able for
some time D:

On 24 nov, 12:04, Giorgio Cardarelli <giorgio.cardare...@gmail.com>
wrote:

> ...
>
> mais »

Giorgio Cardarelli

unread,
Nov 24, 2011, 12:30:34 PM11/24/11
to android-qt
I don't know if I've understood what you have to do, but I'll try
anyway ;-)

QMediaPlayer * myMediaPlayer = new QMediaPlayer();
myMediaPlayer->setMedia( QUrl::fromLocalFile( QString("/mnt/sdcard/
sax.mp3") ) );
myMediaPlayer->setVolume(80);
myMediaPlayer->play();

It works to me. I'm trying to play a video right now.

G.

> ...
>
> read more »

EndSiv

unread,
Nov 24, 2011, 12:39:40 PM11/24/11
to android-qt
That worked at Symbian, but at the android the library QMediaPlayer
isn't avaiable...

How did you got this lib working? O.O

On 24 nov, 15:30, Giorgio Cardarelli <giorgio.cardare...@gmail.com>
wrote:

> ...
>
> mais »

Levi Ribeiro

unread,
Nov 24, 2011, 12:41:41 PM11/24/11
to android-qt
Hi Giorgio, can you explain what you did to get this app with
QMediaPlayer run?

On 24 nov, 15:30, Giorgio Cardarelli <giorgio.cardare...@gmail.com>
wrote:

> ...
>
> mais »

Giorgio Cardarelli

unread,
Nov 24, 2011, 12:58:15 PM11/24/11
to android-qt
Hi,

I'll try to recap everything, even if I suppose some things are
obvious:

1. pushed /opt/necessitas/Android/Qt/480/qtmobility-src/plugins/
multimedia/android/ffmpeglibs/libffmpeg.so to /data/local/qt_aux
2. added System.load("/data/local/qt_aux/libffmpeg.so"); on top of
loadApplication method in QtActivity.java
3. added CONFIG += mobility and MOBILITY += multimedia in my .pro
4. double-checked if the correct libraries where added by Necessitas
in Projects -> Run Settings -> Libraries
5. selected Android target SDK: android-10
6. toolchain GCC arm-4.6.2 and Qt version for armv7a
7. added these external files to my project: all .java from /opt/
necessitas/Android/Qt/480/qt-src/src/android/jar/src/org/kde/
necessitas/industrius/ and from /opt/necessitas/Android/Qt/480/qt-src/
src/android/jar/src/org/kde/necessitas/mobile/

Compiled and run.

G.

> ...
>
> read more »

mingw android

unread,
Nov 24, 2011, 1:00:58 PM11/24/11
to andro...@googlegroups.com

4.6.2? Interesting! Have people been trying this out much? It's not something I've tested very much yet.

EndSiv

unread,
Nov 25, 2011, 8:13:18 AM11/25/11
to android-qt
Are u sure that's at QtActivity not in QtApplication?

Thanks

On 24 nov, 16:00, mingw android <mingw.andr...@gmail.com> wrote:
> 4.6.2? Interesting! Have people been trying this out much? It's not
> something I've tested very much yet.

> On Nov 24, 2011 5:58 PM, "Giorgio Cardarelli" <giorgio.cardare...@gmail.com>

> ...
>
> mais »

Giorgio Cardarelli

unread,
Nov 25, 2011, 8:36:08 AM11/25/11
to android-qt
Yes, I've put it in QtActivity:

System.load("/data/local/qt_aux/libffmpeg.so"); // patch pro
multimediakit

// add all bundled libs to loader params
ArrayList<String> libs = new ArrayList<String>();
if
( m_activityInfo.metaData.containsKey("android.app.bundled_libs_resource_id") )

libs.addAll(Arrays.asList(getResources().getStringArray(m_activityInfo.metaData.getInt("android.app.bundled_libs_resource_id"))));

I don't know if that's the proper place, but it works to me.

G.

> ...
>
> read more »

EndSiv

unread,
Nov 25, 2011, 10:49:22 AM11/25/11
to android-qt
Could you paste here the lines before and after the QtActivity (or the
intire file hehe)?

I'll try that monday again... Thanks!

On 25 nov, 11:36, Giorgio Cardarelli <giorgio.cardare...@gmail.com>
wrote:

> ...
>
> mais »

Giorgio Cardarelli

unread,
Nov 25, 2011, 12:37:10 PM11/25/11
to android-qt
I've posted the lines after the "patch" in my last post. The method
is, as I've said, loadApplication in QtActivity.java

G.

On Nov 25, 4:49 pm, EndSiv <endy.silve...@traceback.com.br> wrote:
> Could you paste here the lines before and after the QtActivity (or the
> intire file hehe)?
>
> I'll try that monday again... Thanks!
>
> On 25 nov, 11:36, Giorgio Cardarelli <giorgio.cardare...@gmail.com>
> wrote:
>
>
>
> > Yes, I've put it in QtActivity:
>
> > System.load("/data/local/qt_aux/libffmpeg.so");  // patch pro
> > multimediakit
>
> > // add all bundled libs to loader params
> > ArrayList<String> libs = new ArrayList<String>();
> > if
> > ( m_activityInfo.metaData.containsKey("android.app.bundled_libs_resource_id") )
>

> > libs.addAll(Arrays.asList(getResources().getStringArray(m_activityInfo.meta­Data.getInt("android.app.bundled_libs_resource_id"))));

> ...
>
> read more »

Giorgio Cardarelli

unread,
Nov 25, 2011, 12:42:35 PM11/25/11
to android-qt
Hi,

I'm quite new to Necessitas (I've used it only in the last two weeks)
and I've always used 4.6.2: as far as I know, everything's ok, apart
from a couple of strange behaviours (i.e. segfaults) I cannot explain.
I'm not even sure it's 4.6.2 fault, since I've not cross-checked them
against 4.4.3

On a side note: I've managed to play video (.3gp) with QMediaPlayer
and QVideoWidget: the framerate is quite poor, but I suppose I have to
tune the video and my application a bit before I can blame
Necessitas! ;-)

Bye,
G.

On Nov 24, 7:00 pm, mingw android <mingw.andr...@gmail.com> wrote:
> 4.6.2? Interesting! Have people been trying this out much? It's not
> something I've tested very much yet.

> On Nov 24, 2011 5:58 PM, "Giorgio Cardarelli" <giorgio.cardare...@gmail.com>

> ...
>
> read more »

EndSiv

unread,
Nov 28, 2011, 1:31:25 PM11/28/11
to android-qt
This:

System.load("/data/local/qt_aux/libffmpeg.so");

Need to be at /data/local/qt_aux/... ? or could be /sdcard/
libffmpeg.so ?
I'm trying but no sucess till now D:

On 25 nov, 15:42, Giorgio Cardarelli <giorgio.cardare...@gmail.com>

> > > 3. added CONFIG += mobility and MOBILITY +=multimediain my .pro

> > > > > > > thanks very much for thispatch/howto. I succeded. The only

> > > > > > > > > > used video with thatpatch... Audio is included too, right?

> > > > > > > > > > > >         > you can find apatchfor the R2 version (I'm
> > > preparing a
> > > > > > > > > > > >        patchfor the R3


> > > > > > > > > > > >         > one) that copy thelibffmpeg.soto the device
> > > and modifies
> > > > > > > > > > > >         some java files
> > > > > > > > > > > >         > of necessitas (you must regenerate your
> > > project after you
> > > > > > > > > > > >         run thepatch).

> > > > > > > > > > > >         > Thispatchmodifies the QtCamera.java also


> > > file in order to
> > > > > > > > > > > >         use the camera
> > > > > > > > > > > >         > without any chrash.
>
> > > > > > > > > > > >         > Hope it helps
> > > > > > > > > > > >         > JMSaez
>
> > > > > > > > > > > >         > 2011/11/8 EndSiv <
> > > endy.silve...@traceback.com.br>
>
> > > > > > > > > > > >         > > Hello Juan,
>
> > > > > > > > > > > >         > > I got the Necessitas R2 and R3 in my PC, but
> > > even in R2 i
> > > > > > > > > > > >         don't find
> > > > > > > > > > > >         > > the directory of /data/local/qt_aux...
>
> > > > > > > > > > > >         > > Do you know how can I put the files at there?
>
> > > > > > > > > > > >         > > Thanks,
>
> > > > > > > > > > > >         > > Endy
>
> > > > > > > > > > > >         > > On 7 nov, 16:51, Juan Manuel Sáez <
> > > jms...@dccia.ua.es>
> > > > > > > > > > > >         wrote:
> > > > > > > > > > > >         > > > Hello Endy:
>

> > > > > > > > > > > >         > > > Thepatchthat I wrote was for Necessitas


> > > R2. With the
> > > > > > > > > > > >         new version of

> > > > > > > > > > > >         > > > necessitas (R3) thepatchdoes not work.


> > > I'm working on
> > > > > > > > > > > >         that...
>

> ...
>
> mais »

EndSiv

unread,
Nov 28, 2011, 1:55:53 PM11/28/11
to android-qt
Oh, now I realize that you're using Necessitas 3... The other part of
my app doesn't run at necessitas 3 (setPixmap at QLabel)...

Do you thing that I export the files at Android>480>mimimi and do the
others pass it could work?

I'm using the same codes of program to play the audio (using
QMediaPlayer)...

Thanks very much!

> ...
>
> mais »

Juan Manuel Sáez

unread,
Nov 28, 2011, 2:16:42 PM11/28/11
to andro...@googlegroups.com
Hello:

Yes, you can use any directory, but note that /sdcard is a link. Really, the directory is /mnt/sdcard. You can test it with adb:

adb shell
#cd sdcard
#pwd

you will see "/mnt/sdcard"

Then, the instruction must be

System.load("/mnt/sdcard/libffmpeg.so");

And of course, be sure that you pull the libffmpeg.so on that directory :-)

Hope it helps

JMSaez
2011/11/28 EndSiv <endy.s...@traceback.com.br>

Marco Bernasocchi

unread,
Nov 28, 2011, 2:20:21 PM11/28/11
to andro...@googlegroups.com
I think using Environment.getExternalStorageDirectory() could be nice
for you.
ciao

On 11/28/2011 08:16 PM, Juan Manuel S�ez wrote:
> Hello:
>
> Yes, you can use any directory, but note that /sdcard is a link. Really,
> the directory is /mnt/sdcard. You can test it with adb:
>
> adb shell
> #cd sdcard
> #pwd
>
> you will see "/mnt/sdcard"
>
> Then, the instruction must be
>
> System.load("/mnt/sdcard/libffmpeg.so");
>
> And of course, be sure that you pull the libffmpeg.so on that directory :-)
>
> Hope it helps
>
> JMSaez
> 2011/11/28 EndSiv <endy.s...@traceback.com.br
> <mailto:endy.s...@traceback.com.br>>

>
> This:
>
> System.load("/data/local/qt_aux/libffmpeg.so");
>
> Need to be at /data/local/qt_aux/... ? or could be /sdcard/
> libffmpeg.so ?
> I'm trying but no sucess till now D:
>
> On 25 nov, 15:42, Giorgio Cardarelli <giorgio.cardare...@gmail.com
> <mailto:giorgio.cardare...@gmail.com>>

> wrote:
> > Hi,
> >
> > I'm quite new to Necessitas (I've used it only in the last two weeks)
> > and I've always used 4.6.2: as far as I know, everything's ok, apart
> > from a couple of strange behaviours (i.e. segfaults) I cannot
> explain.
> > I'm not even sure it's 4.6.2 fault, since I've not cross-checked them
> > against 4.4.3
> >
> > On a side note: I've managed to play video (.3gp) with QMediaPlayer
> > and QVideoWidget: the framerate is quite poor, but I suppose I
> have to
> > tune the video and my application a bit before I can blame
> > Necessitas! ;-)
> >
> > Bye,
> > G.
> >
> > On Nov 24, 7:00 pm, mingw android <mingw.andr...@gmail.com
> <mailto:mingw.andr...@gmail.com>> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > 4.6.2? Interesting! Have people been trying this out much? It's not
> > > something I've tested very much yet.
> > > On Nov 24, 2011 5:58 PM, "Giorgio Cardarelli"
> <giorgio.cardare...@gmail.com <mailto:giorgio.cardare...@gmail.com>>

> > > wrote:
> >
> > > > Hi,
> >
> > > > I'll try to recap everything, even if I suppose some things are
> > > > obvious:
> >
> > > > 1. pushed /opt/necessitas/Android/Qt/480/qtmobility-src/plugins/
> > > >multimedia/android/ffmpeglibs/libffmpeg.so to /data/local/qt_aux
> > > > 2. added System.load("/data/local/qt_aux/libffmpeg.so"); on
> top of
> > > > loadApplication method in QtActivity.java
> > > > 3. added CONFIG += mobility and MOBILITY +=multimediain my .pro
> > > > 4. double-checked if the correct libraries where added by
> Necessitas
> > > > in Projects -> Run Settings -> Libraries
> > > > 5. selected Android target SDK: android-10
> > > > 6. toolchain GCC arm-4.6.2 and Qt version for armv7a
> > > > 7. added these external files to my project: all .java from /opt/
> > > > necessitas/Android/Qt/480/qt-src/src/android/jar/src/org/kde/
> > > > necessitas/industrius/ and from
> /opt/necessitas/Android/Qt/480/qt-src/
> > > > src/android/jar/src/org/kde/necessitas/mobile/
> >
> > > > Compiled and run.
> >
> > > > G.
> >
> > > > On Nov 24, 6:41 pm, Levi Ribeiro <levigribe...@gmail.com
> <mailto:levigribe...@gmail.com>> wrote:
> > > > > Hi Giorgio, can you explain what you did to get this app with
> > > > > QMediaPlayer run?
> >
> > > > > On 24 nov, 15:30, Giorgio Cardarelli
> <giorgio.cardare...@gmail.com <mailto:giorgio.cardare...@gmail.com>>

> > > > > wrote:
> >
> > > > > > I don't know if I've understood what you have to do, but
> I'll try
> > > > > > anyway ;-)
> >
> > > > > > QMediaPlayer * myMediaPlayer = new QMediaPlayer();
> > > > > > myMediaPlayer->setMedia( QUrl::fromLocalFile(
> QString("/mnt/sdcard/
> > > > > > sax.mp3") ) );
> > > > > > myMediaPlayer->setVolume(80);
> > > > > > myMediaPlayer->play();
> >
> > > > > > It works to me. I'm trying to play a video right now.
> >
> > > > > > G.
> >
> > > > > > On Nov 24, 6:21 pm, EndSiv
> <endy.silve...@traceback.com.br
> <mailto:endy.silve...@traceback.com.br>> wrote:
> >
> > > > > > > No sucess...
> >
> > > > > > > The problem is the audioOutput and I don't think that
> will be able
> > > > for
> > > > > > > some time D:
> >
> > > > > > > On 24 nov, 12:04, Giorgio Cardarelli
> <giorgio.cardare...@gmail.com <mailto:giorgio.cardare...@gmail.com>>

> > > > > > > wrote:
> >
> > > > > > > > Hello,
> >
> > > > > > > > thanks very much for thispatch/howto. I succeded. The
> only
> > > > problem I
> > > > > > > > had to face is that Necessitas QtCreator doesn't add
> android's
> > > > > > > > permissions to app's manifest when I select them in
> the project's
> > > > run
> > > > > > > > settings.
> >
> > > > > > > > I had to add <uses-permission
> > > > android:name="android.permission.CAMERA"/
> >
> > > > > > > > > to AndroidManifest.xml manually to use the camera.
> >
> > > > > > > > HTH,
> >
> > > > > > > > Giorgio
> >
> > > > > > > > On Nov 11, 4:19 pm, EndSiv
> <endy.silve...@traceback.com.br
> <mailto:endy.silve...@traceback.com.br>> wrote:
> >
> > > > > > > > > Hello Juan,
> >
> > > > > > > > > Don't get sucess D: Changed the dir of the file for the
> > > > /sdcard/data/
> > > > > > > > > local/qt_aux and when i started the app it crashes D:
> > > > > > > > > I'll keep making some tests to check out if the
> problem and if
> > > > get
> > > > > > > > > sucess I'll report here...
> >
> > > > > > > > > Thanks for you help,
> >
> > > > > > > > > Endy
> >
> > > > > > > > > On 10 nov, 14:06, Juan Manuel S�ez

> <jms...@dccia.ua.es <mailto:jms...@dccia.ua.es>> wrote:
> >
> > > > > > > > > > Hello:
> > > > > > > > > > You can copy the file to any other public dir,
> but change also
> > > > the path in
> > > > > > > > > > the system.load instruction of the java part.
> > > > > > > > > > Nevertheless, i recomend you to root your device
> if you want
> > > > to use
> > > > > > > > > > multimediakit because you will need to path other
> files...
> > > > (this module is
> > > > > > > > > > unmaintained yet and some elements are very
> unstable).
> > > > > > > > > > in my apps i process the preview of the camera
> only. Then, im
> > > > not using the
> > > > > > > > > > audio. I dont know if it works but if you test
> it, please
> > > > report your
> > > > > > > > > > results.
> >
> > > > > > > > > > Best regards
> > > > > > > > > > Jmsaez
> > > > > > > > > > El 10/11/2011 16:16, "EndSiv"
> <endy.silve...@traceback.com.br <mailto:endy.silve...@traceback.com.br>>
> > > > escribi�:

> >
> > > > > > > > > > > Hi,
> >
> > > > > > > > > > > I tryed to locate the files inside your .zip to the
> > > > /data/local/
> > > > > > > > > > > qt_aux, but there's a simple problem, i'm not
> having succes
> > > > on rooting
> > > > > > > > > > > my tablet, so i can't get acess to that folder D:
> >
> > > > > > > > > > > I'll keep trying o/ have faith that will run
> ok... (I saw
> > > > that you
> > > > > > > > > > > used video with thatpatch... Audio is included
> too, right?
> > > > hehehe)
> >
> > > > > > > > > > > Thaanks,
> >
> > > > > > > > > > > Endy
> >
> > > > > > > > > > > On 10 nov, 07:47, Phi Van Ngoc
> <ngocke...@gmail.com <mailto:ngocke...@gmail.com>> wrote:
> > > > > > > > > > > > Hi,
> >
> > > > > > > > > > > > It works perfectly for me on Asus
> Transformer. Thanks a
> > > > lot JMSaez!
> >
> > > > > > > > > > > > Br,
> > > > > > > > > > > > Phi
> >
> > > > > > > > > > > > On Wed, 2011-11-09 at 21:46 +0100, Juan
> Manuel S�ez wrote:
> > > > > > > > > > > > > Hello
> > > > > > > > > > > > > You can also copy the file downloading it
> directly with
> > > > the device
> > > > > > > > > > > > > from the link that i sent you (its into the
> zip) and
> > > > using a
> > > > > > > > > > > > > filemanger to locate it on any public folder.
> > > > > > > > > > > > > sorry but I have never used adb from windows.
> > > > > > > > > > > > > Bests
> > > > > > > > > > > > > Jmsaez
> >
> > > > > > > > > > > > > El 09/11/2011 19:48, "EndSiv" <
> > > > endy.silve...@traceback.com.br
> <mailto:endy.silve...@traceback.com.br>>
> > > > > > > > > > > > > escribi�:

> > > > > > > > > > > > > Hello Juan,
> >
> > > > > > > > > > > > > That explain a lot hehe but my
> device is an Coby
> > > > Kyros 7016
> > > > > > > > > > > > > and I got
> > > > > > > > > > > > > some problems with the adb...
> 'Cause I'm in
> > > > windows OS, I
> > > > > > > > > > > > > starte the
> > > > > > > > > > > > > cmd.exe, cd to
> > > > android-sdk-windows\platform-tools and when I
> > > > > > > > > > > > > try adb
> > > > > > > > > > > > > devices I got nothin \o/
> >
> > > > > > > > > > > > > auhauhauha But I'm working on it...
> Thanks a lot
> > > > in advance ;D
> >
> > > > > > > > > > > > > On 8 nov, 14:30, Juan Manuel S�ez <
> >http://www.google.com/url?sa=D&q=http://dl.dropbox.com/u/5646191/patc.. <http://www.google.com/url?sa=D&q=http://dl.dropbox.com/u/5646191/patc..>.>

> >
> > > > > > > > > > > > > > you can find apatchfor the R2 version (I'm
> > > > preparing a
> > > > > > > > > > > > > patchfor the R3
> > > > > > > > > > > > > > one) that copy thelibffmpeg.soto the device
> > > > and modifies
> > > > > > > > > > > > > some java files
> > > > > > > > > > > > > > of necessitas (you must regenerate your
> > > > project after you
> > > > > > > > > > > > > run thepatch).
> > > > > > > > > > > > > > Thispatchmodifies the QtCamera.java also
> > > > file in order to
> > > > > > > > > > > > > use the camera
> > > > > > > > > > > > > > without any chrash.
> >
> > > > > > > > > > > > > > Hope it helps
> > > > > > > > > > > > > > JMSaez
> >
> > > > > > > > > > > > > > 2011/11/8 EndSiv <
> > > > endy.silve...@traceback.com.br
> <mailto:endy.silve...@traceback.com.br>>

> >
> > > > > > > > > > > > > > > Hello Juan,
> >
> > > > > > > > > > > > > > > I got the Necessitas R2 and R3 in my
> PC, but
> > > > even in R2 i
> > > > > > > > > > > > > don't find
> > > > > > > > > > > > > > > the directory of /data/local/qt_aux...
> >
> > > > > > > > > > > > > > > Do you know how can I put the files at
> there?
> >
> > > > > > > > > > > > > > > Thanks,
> >
> > > > > > > > > > > > > > > Endy
> >
> > > > > > > > > > > > > > > On 7 nov, 16:51, Juan Manuel S�ez <
> > > > jms...@dccia.ua.es <mailto:jms...@dccia.ua.es>>

> > > > > > > > > > > > > wrote:
> > > > > > > > > > > > > > > > Hello Endy:
> >
> > > > > > > > > > > > > > > > Thepatchthat I wrote was for Necessitas
> > > > R2. With the
> > > > > > > > > > > > > new version of
> > > > > > > > > > > > > > > > necessitas (R3) thepatchdoes not work.
> > > > I'm working on
> > > > > > > > > > > > > that...
> >
> > ...
> >
> > mais �
>
>
>
>
> --
> ______________________________________________________
>
> Dr. Juan Manuel S�ez Mart�nez
> Profesor Titular de Universidad
> Departamento de Ciencia de la Computaci�n e Inteligencia Artificial
> Escuela Polit�cnica Superior. Universidad de Alicante
> Tel�fono: 965903900 ext 2752 Fax: 965903902
> ______________________________________________________


--
Marco Bernasocchi
www.opengis.ch

Levi Ribeiro

unread,
Dec 6, 2011, 12:10:44 PM12/6/11
to android-qt
Hi, I've done all the steps, push libffmpeg.so to my device,
added .java files to my app, but im having some issues:

Starting remote process ...
D/dalvikvm( 8422): GC_EXTERNAL_ALLOC freed 56K, 53% free 2569K/5379K,
external 1069K/1492K, paused 126ms
D/dalvikvm( 8422): GC_EXTERNAL_ALLOC freed 1K, 53% free 2568K/5379K,
external 2569K/3209K, paused 114ms
D/dalvikvm( 8422): Trying to load lib /mnt/sdcard/libffmpeg.so
0x40515768
D/AndroidRuntime( 8422): Shutting down VM
W/dalvikvm( 8422): threadid=1: thread exiting with uncaught exception
(group=0x40015560)
E/AndroidRuntime( 8422): FATAL EXCEPTION: main
E/AndroidRuntime( 8422): java.lang.UnsatisfiedLinkError: Cannot load
library: load_segments[928]: 757 failed to map segment from
'libffmpeg.so' @ 0x81000000 (0x00346420). p_vaddr=0x00000000
p_offset=0x00000000
E/AndroidRuntime( 8422): at java.lang.Runtime.load(Runtime.java:394)
E/AndroidRuntime( 8422): at java.lang.System.load(System.java:534)
E/AndroidRuntime( 8422): at
org.kde.necessitas.origo.QtActivity.loadApplication(QtActivity.java:
109)
E/AndroidRuntime( 8422): at org.kde.necessitas.origo.QtActivity.access
$200(QtActivity.java:77)
E/AndroidRuntime( 8422): at org.kde.necessitas.origo.QtActivity
$3$1$1.run(QtActivity.java:202)
E/AndroidRuntime( 8422): at
android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 8422): at
android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 8422): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 8422): at
android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime( 8422): at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 8422): at
java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 8422): at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 8422): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 8422): at dalvik.system.NativeStart.main(Native
Method)
I/Process ( 8422): Sending signal. PID: 8422 SIG: 9

'org.kde.necessitas.example.mediatest1' died


here's my code:


#include "mainwindow.h"
#include "ui_mainwindow.h"

#include <QtCore/QCoreApplication>
#include <QMediaPlayer>

..
..
..

{


QMediaPlayer * myMediaPlayer = new QMediaPlayer();
myMediaPlayer->setMedia( QUrl::fromLocalFile( QString("/mnt/sdcard/

helloween.mp3") ) );
myMediaPlayer->setVolume(80);
myMediaPlayer->play();
}

On 28 nov, 17:20, Marco Bernasocchi <ma...@bernawebdesign.ch> wrote:
> I think using Environment.getExternalStorageDirectory() could be nice
> for you.
> ciao
> On 11/28/2011 08:16 PM, Juan Manuel S ez wrote:
>
>
>
>
>
>
>
> > Hello:
>
> > Yes, you can use any directory, but note that /sdcard is a link. Really,
> > the directory is /mnt/sdcard. You can test it with adb:
>
> > adb shell
> > #cd sdcard
> > #pwd
>
> > you will see "/mnt/sdcard"
>
> > Then, the instruction must be
>
> > System.load("/mnt/sdcard/libffmpeg.so");
>
> > And of course, be sure that you pull the libffmpeg.so on that directory :-)
>
> > Hope it helps
>
> > JMSaez

> > 2011/11/28 EndSiv <endy.silve...@traceback.com.br
> > <mailto:endy.silve...@traceback.com.br>>

> ...
>
> mais »

Juan Manuel Sáez

unread,
Dec 6, 2011, 3:51:44 PM12/6/11
to andro...@googlegroups.com

Hello.
Have you tested if libffmpeg.so is correctly copied to the device? You can verify if the length is the same, for example. Also you can test another public location because this path could be problematic.
Bests
Jmsaez

Ubuuntu

unread,
Dec 6, 2011, 7:48:01 PM12/6/11
to android-qt
Coming late to the party, but a crucial question - does this
implementation support QAudioOutput and QAudioInput?

Thanks

Juan Manuel Sáez

unread,
Dec 7, 2011, 2:09:16 AM12/7/11
to andro...@googlegroups.com

I have tested only the image from camera. Some thinks work and others must be patched. All my audio tests crashes and i dont know why. Sorry but i havent more info about it.
Bests

Levi Ribeiro

unread,
Dec 7, 2011, 12:12:00 PM12/7/11
to android-qt
Hey ubuntu, oficially, the audio is not suported yet, but this guy
made it work, so im trying to do it...

Why dont you try it? I think we could help each other and evaluate
this!

On 7 dez, 05:09, Juan Manuel Sáez <jms...@dccia.ua.es> wrote:
> I have tested only the image from camera. Some thinks work and others must
> be patched. All my audio tests crashes and i dont know why. Sorry but i
> havent more info about it.
> Bests

EndSiv

unread,
Dec 7, 2011, 1:50:26 PM12/7/11
to android-qt
Hello again...

I start to make some tests and I realize that the problem is when the
app is trying to load the libffmpeg.so... Can't have another way to do
this? Without this lib or something like this...

Thanks,

Endy

Juan Manuel Sáez

unread,
Dec 7, 2011, 2:09:11 PM12/7/11
to andro...@googlegroups.com
Hello Endy:

I can't understand why you can't load libffmpeg.so Everybody load it without problems. Please, could you send a simple test program (with all files) that crashes?

Best regards
JMSaez



2011/12/7 EndSiv <endy.s...@traceback.com.br>



--
______________________________________________________

Dr. Juan Manuel Sáez Martínez
Profesor Titular de Universidad

Departamento de Ciencia de la Computación e Inteligencia Artificial
Escuela Politécnica Superior. Universidad de Alicante
Teléfono: 965903900 ext 2752 Fax: 965903902
______________________________________________________

Levi Ribeiro

unread,
Dec 7, 2011, 2:28:00 PM12/7/11
to android-qt
Take a look at my example: http://www.4shared.com/file/Z3ShdteI/mediatest1.html

On 7 dez, 17:09, Juan Manuel Sáez <jms...@dccia.ua.es> wrote:
> Hello Endy:
>
> I can't understand why you can't load libffmpeg.so Everybody load it
> without problems. Please, could you send a simple test program (with all
> files) that crashes?
>
> Best regards
> JMSaez
>

> 2011/12/7 EndSiv <endy.silve...@traceback.com.br>

Juan Manuel Sáez

unread,
Dec 8, 2011, 7:38:34 AM12/8/11
to andro...@googlegroups.com
Hello:

It's a bit strange, because loading libffmpeg.so from the sdcard chrashes but reading from /data/local/qt_aux works. ¿¿??
Possibly, accessing to mounted devices while the device is connected is a bit problematic.
We need another path on the device's internal memory.
Why you can't put the file in the /data/local/qt_aux directory? I think that you can access to it whithout rooting the device.

Best regards
JMSaez

2011/12/7 Levi Ribeiro <levigr...@gmail.com>

Levi Ribeiro

unread,
Dec 8, 2011, 12:14:15 PM12/8/11
to android-qt
Yeah, its weird, I really dont understant why it crashes...
And I cant acess it without rooting, Im having issues with that.

I'll try to root it

On 8 dez, 10:38, Juan Manuel Sáez <jms...@dccia.ua.es> wrote:
> Hello:
>
> It's a bit strange, because loading libffmpeg.so from the sdcard chrashes
> but reading from /data/local/qt_aux works. ¿¿??
> Possibly, accessing to mounted devices while the device is connected is a
> bit problematic.
> We need another path on the device's internal memory.
> Why you can't put the file in the /data/local/qt_aux directory? I think
> that you can access to it whithout rooting the device.
>
> Best regards
> JMSaez
>

> 2011/12/7 Levi Ribeiro <levigribe...@gmail.com>

EndSiv

unread,
Dec 8, 2011, 3:29:26 PM12/8/11
to android-qt
Hey guys!

With the file at the /data/local/qt_aux, the QtActivity modified for
load this, in the libraries (projects>run) seted QtCore, QtGui and
QtMultimediakit, with the .pro file configured for mobility and
multimedia, an simple app where will start an audio (QAudioOutput) and
an button that will finish the program (exit(0)) that doesn't run...

It makes 6 erros of "cannot find symbol" and one error of packing...

The project is uploaded here:

http://www.4shared.com/file/EwCUn-Ru/audioteste.html

Please help me...

Bests,

Endy

Juan Manuel Sáez

unread,
Dec 8, 2011, 4:50:48 PM12/8/11
to andro...@googlegroups.com
Hello:

There are some modifications of your QtActivity.java that causes the missing symbols:

change the line:

import dalvik.system.DexClasser;

to

import dalvik.system.DexClassLoader;

uncomment the line:

    //private DexClassLoader m_classLoader = null; // loader object

(there are some references to this object that was not created)

comment the line:

        Log.e(QtTAG,"Loading libffmeg library");

(Log.e is not well used, an error param is needed)

And change the path of the libffmpeg:

        System.load("/mnt/sdcard/libffmpeg.so");

to

        System.load("/data/local/qt_aux/libffmpeg.so");

Best regards
JMSaez


2011/12/8 EndSiv <endy.s...@traceback.com.br>

EndSiv

unread,
Dec 9, 2011, 5:53:11 AM12/9/11
to android-qt
Well, now it compile and when I run it I got fatal error... The
libffmpeg.so was loaded and everything else... I changed the code for
only have the button for quit the app and nothing more, but using
mobility multimedia...

The files of industrius and mobile would be added at some special
folder?

Some idea why the "Your aplication found a fatal error and can't
continue"?

Bests,

Endy

On 8 dez, 19:50, Juan Manuel Sáez <jms...@dccia.ua.es> wrote:
> Hello:
>

> There are some modifications of your QtActivity.java that causes the
> missing symbols:
>
> change the line:
>
> import dalvik.system.DexClasser;
>
> to
>
> import dalvik.system.DexClassLoader;
>
> uncomment the line:
>
>     //private DexClassLoader m_classLoader = null; // loader object
>
> (there are some references to this object that was not created)
>
> comment the line:
>
>         Log.e(QtTAG,"Loading libffmeg library");
>
> (Log.e is not well used, an error param is needed)
>
> And change the path of the libffmpeg:
>
>         System.load("/mnt/sdcard/libffmpeg.so");
>
> to
>
>         System.load("/data/local/qt_aux/libffmpeg.so");
>
> Best regards
> JMSaez
>

> 2011/12/8 EndSiv <endy.silve...@traceback.com.br>

EndSiv

unread,
Dec 12, 2011, 12:08:43 PM12/12/11
to android-qt
Oopps! Now I realize that I didin't runned the .sh files of the
patch... And I didin't runned it 'cause I'm in windows...

Someone know how to run it at windows?

Bests,

Endy

Phi Van Ngoc

unread,
Dec 12, 2011, 12:15:26 PM12/12/11
to andro...@googlegroups.com

You can run those commands in the .sh file one by one. They are just some normal adb commands.

Br
Phi

mingw android

unread,
Dec 12, 2011, 12:17:01 PM12/12/11
to andro...@googlegroups.com

Msys.

Message has been deleted

mingw android

unread,
Dec 12, 2011, 1:00:50 PM12/12/11
to andro...@googlegroups.com

Msys translates any thing that looks like a path which makes it a bit of a pain when the paths refer to a completely different machine.

What I do to work around this is to use two /'s at the start of each remote path I pass into adb.

On Dec 12, 2011 5:56 PM, "EndSiv" <endy.s...@traceback.com.br> wrote:
Well I tryed and got no sucess... But reading that lines I saw that
it's for make push of the libffmpeg.so for the right directory and I
always made it...

But my app still crashes D:


On 12 dez, 15:17, mingw android <mingw.andr...@gmail.com> wrote:
> Msys.
Message has been deleted

mingw android

unread,
Dec 12, 2011, 1:55:27 PM12/12/11
to andro...@googlegroups.com

adb shell is your friend.

You say it pushed it to the right place, but did you add two /'s? Use adb shell to make sure the library got there.

On Dec 12, 2011 6:52 PM, "EndSiv" <endy.s...@traceback.com.br> wrote:
Well I tryed and got no sucess... But reading that lines I saw that
it's for make push of the libffmpeg.so for the right directory and I
always made it...

But my app still crashes... There's 'cause the .sh files?

Someidea why?


On 12 dez, 15:17, mingw android <mingw.andr...@gmail.com> wrote:
> Msys.

Levi Ribeiro

unread,
Dec 13, 2011, 11:27:45 AM12/13/11
to android-qt
Can someone post an example?


On 12 dez, 16:55, mingw android <mingw.andr...@gmail.com> wrote:
> adb shell is your friend.
>
> You say it pushed it to the right place, but did you add two /'s? Use adb
> shell to make sure the library got there.

Reply all
Reply to author
Forward
0 new messages