Would be cool to see a video of this in action! :)
espen
excellent :)
espen
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
It works perfectly for me on Asus Transformer. Thanks a lot JMSaez!
Br,
Phi
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
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 »
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 »
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 »
How did you got this lib working? O.O
On 24 nov, 15:30, Giorgio Cardarelli <giorgio.cardare...@gmail.com>
wrote:
> ...
>
> mais »
On 24 nov, 15:30, Giorgio Cardarelli <giorgio.cardare...@gmail.com>
wrote:
> ...
>
> mais »
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 »
4.6.2? Interesting! Have people been trying this out much? It's not something I've tested very much yet.
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 »
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 »
I'll try that monday again... Thanks!
On 25 nov, 11:36, Giorgio Cardarelli <giorgio.cardare...@gmail.com>
wrote:
> ...
>
> mais »
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.metaData.getInt("android.app.bundled_libs_resource_id"))));
> ...
>
> read more »
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 »
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 »
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 »
--
Marco Bernasocchi
www.opengis.ch
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 »
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
Thanks
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
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
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
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>
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>
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
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>
Someone know how to run it at windows?
Bests,
Endy
You can run those commands in the .sh file one by one. They are just some normal adb commands.
Br
Phi
Msys.
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.
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.
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.
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.
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.