[LIB] OpenGLES 2.0 header and libs - Windows Mobile Software Development

Attached are the headers and libs needed to utilise the hardware in the HD2.
Theses are from the AMD SDK, so include some of the extensions available on the AMD z430 present on the HD2.
I may write a demo program, but for now, this is all you get
Enjoy.

Hi, i'm currently trying to develop an OpenGL ES 2.0 program on an HTC HD2 in c++. I can't get the program to link correctly. Link error LNK2019 for every function i try to use. The lib files are of couse included. The lib files seem to be the same sas in the AMD OpenGL ES Emulator. I thought the dlls on the mobile phone needed differnt libs, since the emulator uses win32 dlls. Am i doing something wrong or missunderstanding something?

Related

built ffmpeg dlls for windows mobile are available

In the past, I get many helps from here.
I met lots of troubles while building ffmpeg for winCE. But I'm lucky to build them out finaly. I know some ones prefer to get the dlls directly rather than build it by themselves. So I upload them here: http://www.mediafire.com/?jc4w8mex9mw
Just feel free to get them if you need it.
ok, it may sound a silly question, but what app is suposed to take benefit of that ?
RTSP
Great job! Thanks
Did you build it with rtsp support? I can 't manage opening an rtsp stream: "File not found error"
rtsp.h files are present
In your begin method, in the name you preceed sample.avi with some strange char's what are they for?
Kind regards
Wim
I have also been trying to compile this for the ARM4 platform, would it be possible for you to build for this platform (ARM4i is only for WM5/6 and Im also developing for WM2003/CE.NET 4.2)
Thanks
sorry, rstp seems not supported defaultly.
the strange chars is diretory name. You could change them to "\\Storage Card\\sample.avi" or any others you like.
wimpos said:
Great job! Thanks
Did you build it with rtsp support? I can 't manage opening an rtsp stream: "File not found error"
rtsp.h files are present
In your begin method, in the name you preceed sample.avi with some strange char's what are they for?
Kind regards
Wim
Click to expand...
Click to collapse
I haven't tried it in WM2003. Maybe it works too. please try it and tell me result.
coolsva said:
I have also been trying to compile this for the ARM4 platform, would it be possible for you to build for this platform (ARM4i is only for WM5/6 and Im also developing for WM2003/CE.NET 4.2)
Thanks
Click to expand...
Click to collapse
I am trying to use your bin ffmpeg on windows mobile 6.
when I try to call :
avcodec_find_encoder((enum CodecID)CODEC_ID_FLV1);
it's fail
those my init call:
avcodec_init();
avcodec_register_all();
av_register_all();
av_log_set_callback( ffmpeg_avcodec_log );
any idea ?
wright_hz said:
In the past, I get many helps from here.
I met lots of troubles while building ffmpeg for winCE. But I'm lucky to build them out finaly. I know some ones prefer to get the dlls directly rather than build it by themselves. So I upload them here: http://www.mediafire.com/?jc4w8mex9mw
Just feel free to get them if you need it.
Click to expand...
Click to collapse
Hi,
Been trying to use your FFMPEG.DLL but I need the network capability of FFMPEG, could you recompile with --disable-network removed from your configure?
I have built FFMPEG myself but I keep getting a green screen on any video output, sound works okay. Did you get this? If I switch to your DLL I it works but I can only open local files.
To get libavformat to build I had to change a line in configure (amongst other things) to:
network_extralibs="-lws2"
from:
network_extralibs="-lws2_32"
Thanks!
Hy,
can anybody build ffmpeg with support stream video files from network?
Thanks a lot.
Greatz
mccoffein
Hy,
is anybody out there?
I think the original Youtube app uses ffmpeg - just go to youtube from your mobile, download the cab, install and you'll find ffmpeg.dll in /program files/youtube so you can try use this one...
Hy,
thanks for your answer. I tried this. But ffplay don't work with this dll well.
If have linked in the project below but i dosent work.
I tried to link avcodec, avutil and avformat ... But there is no coming out.
Since you know that it works now i will update this thread.
I have done it. You can see it here: http://forum.xda-developers.com/showthread.php?p=3819157#post3819157
ffmpeg WinCE is now Open Source!
For more informations look at our homepage http://www.ffmpeg-wince.org ...
See you!
Error :"Not a valid Pocket PC application"
hi
I have download the file from here: http://www.mediafire.com/?jc4w8mex9mw extract it and copy the bin, ffmpeg and Sdl directory to my project for wm 6.0
and successfully build the cab file. My cab file has exe and ffmpeg.dll, SDL.dll, swscale.dll files. After installation to my htc device 6.1 device whenever I try to run
file it gives me error message "Not a valid Pocket PC application".
Do have any idea why it is giving such error message.
Thank you.
Hello, I have also downloaded the files and am building testmain.exe using visual studio 2005. The exe is building and is running within the emulator. However on a windows mobile 6.1 classic PDA I am getting the error "testmain" is not a valid Pocket PC application.
Could anyone help me discover what the problem is?
I ran dumpbin /headers on the DLLs and the exe and saw that the header values are different and am wondering could this be causing the problems I have?
Dump of file ffmpeg.dll
----------------------
FILE HEADER VALUES
1C0 machine (ARM)
4.00 operating system version
1.00 image version
3.00 subsystem version
0 Win32 version
Dump of file SDL.dll
----------------------
FILE HEADER VALUES
1C2 machine (Thumb)
4.00 operating system version
0.00 image version
4.10 subsystem version
0 Win32 version
Dump of file swscale.dll
----------------------
FILE HEADER VALUES
1C0 machine (ARM)
4.00 operating system version
1.00 image version
3.00 subsystem version
0 Win32 version
Dump of file testmain.exe
----------------------
FILE HEADER VALUES
1C2 machine (Thumb)
5.01 operating system version
0.00 image version
5.01 subsystem version
0 Win32 version
Thanks,
Menelaos

[UPDATED 18.4.2010] OpenGL ES 2.0 wrapper for .NET Compact Framework

I've released it at http://oglesv2cf.codeplex.com/.
If you want to see the latest in development go to the site shown above.
Updates:
18.4.2010 - rough support for textures
--------------------------------------------------------------------------------------------
I've started working on creating a .NET CF wrapper library for using the OpenGL ES 2.0 on Snapdragon based WM 6.5 devices. (I'm doing the development on HTC HD 2 device).
----------------- original post---------------------------------------------------------------
Hi,
I'm interested in trying out making something simple using OpenGL ES 2.0. I own HD and HD 2 devices and I know that HD at least supports OpenGL ES 1.1.
Has anyone experimented with OpenGL ES 2.0 on HD 2? Snapdragon should support 2.0 but is the libGLESv2.dll present somewhere in the system? I have tried looking for it but didn't spot it right away.
Especially I would be interested in writing a wrapper for OpenGL ES 2.0 to work with .NET CF. I've seen this is possible with ES 1.1.
The onboard gpu that the msm720XX has dosnt support openg Gl ES 2.0 only 1.0/1.1, you would have to ether develope using 1.0/1.1 or buy a device supporting open gl ES 2.0, the acer s200 could be your best bet or a LG expo if you like HW keyboards, or the hd2 if you have spare legs and arms to give.
If it wasn't clear in the OP I do have a HTC HD 2 device which does have Snapdragon with OpenGL ES 2.0 support.
I did some digging and found few posts about OpenGL ES 2.0 on HD 2 but did not find any concrete samples which I could use to test if the performance is good enough.
The dll should be in /windows.
I wanted to start this but without such a device (or a software renderer) it's difficult...
Have a look at OpenGL ES Core API Specification, Headers, and Documentation ! The gl2.h file can serve as base for the managed wrapper file.
As a start check out my OpenGL Test application (link in signature)where I've released the source code of an early version. There you'll find a managed wrapper for OpenGLES 1.1.
Maybe we can setup something together?
Investigating the files
I have continued my reseach (Got some beer as most of my work is beer driven).
I have done some research on the DLL files included in the HTC HD 2 device.
So far this is the list of lib*.dll files under Windows on my device:
- libGLES_CL
- libEGL
- libEGL_org
- lib2d-z430
- libGLES_CM
- libGLESv1_CM
- libGLESv2
- libgsl
- libgsluser
- libkos
- libOpenVG
- libos
- libpanel
- libq3dtools
- libegltools
- libqgl2tools
- libqgtools
- librenderboy
I know that libEGL, libGLES* are the files I should concentrate on. Especially libGLESv2 which is the OpenGL ES 2.0 implementation. I also see that there is a OpenVG implementation on the device.
I know that I can get the header files for the OpenGL ES and OpenVG from Khronos site but is there a tool to view the dll export table of a WM mobile dll file? I know tools that can do that for a desktop windows dll file but haven't tested them on WM dll files yet.
lib2d-z430 got my interest also as z430 is the graphics chip part of the snapdragon.
Yep, eventually I would like to share my findings and code but for now I'm doing this mainly on my own. Ofcourse any help is welcome.
I've run into issues while trying to copy few of those files to my desktop PC. I'm getting access denied of resco explorer when trying to copy libGLESv2 file to storage card on my device.
saeros said:
I have continued my reseach (Got some beer as most of my work is beer driven).
I have done some research on the DLL files included in the HTC HD 2 device.
So far this is the list of lib*.dll files under Windows on my device:
- libGLES_CL
- libEGL
- libEGL_org
- lib2d-z430
- libGLES_CM
- libGLESv1_CM
- libGLESv2
- libgsl
- libgsluser
- libkos
- libOpenVG
- libos
- libpanel
- libq3dtools
- libegltools
- libqgl2tools
- libqgtools
- librenderboy
I know that libEGL, libGLES* are the files I should concentrate on. Especially libGLESv2 which is the OpenGL ES 2.0 implementation. I also see that there is a OpenVG implementation on the device.
I know that I can get the header files for the OpenGL ES and OpenVG from Khronos site but is there a tool to view the dll export table of a WM mobile dll file? I know tools that can do that for a desktop windows dll file but haven't tested them on WM dll files yet.
lib2d-z430 got my interest also as z430 is the graphics chip part of the snapdragon.
Yep, eventually I would like to share my findings and code but for now I'm doing this mainly on my own. Ofcourse any help is welcome.
Click to expand...
Click to collapse
Maybe after disabling Manila/Sense (from the Settings - Today - Items tab) will allow you to copy the files?
As you probably have seen I've also an OpenVG demo included in the lastest Test OpenGL version for which I've created an OpenVG managed wrapper. Does this test run on HD2? What's the starting time? (on HD it takes some seconds to build the textures because textures, paths and strokes are not hardware accelerated, well that's what I get when querying the driver).
Are you still in need of the drivers? I can upload them now?
I'm also going to make a lib file for linking C++ programs with GLES 2.0, based on the gl2.h file, and possibly some of the exported functions of libGLESv2.dll.
Hi,
I posted lib versions of the required files a few weeks ago. Just search on posts with my user name. I've done some porting of futuremark 3d mobile es2.0 and the performance is not good. I'm hoping to do some more debug this week to see why this device is not running as I would expect.
Jim
l3v5y: if you have the drivers at hand it would be great if you can share them.
heliosdev: I tried you are new test app and the OpenVG option is grayed out.
Have you tried it with the driver pack? http://forum.xda-developers.com/showthread.php?t=592663
dattrax said:
Hi,
I posted lib versions of the required files a few weeks ago. Just search on posts with my user name. I've done some porting of futuremark 3d mobile es2.0 and the performance is not good. I'm hoping to do some more debug this week to see why this device is not running as I would expect.
Jim
Click to expand...
Click to collapse
EGL
Okay I got the egl from libEGL.dll working. Well at least it's initializing and terminating without errors.
One thing I noticed is that the version it is reporting is 1.3. It should be 1.4 or at least that is the latest version published on the API site.
I'll do some querying to get the rest of the information about the cabilities of the device.
Translator needed
Okay I did a simple query to get the egl version string from the egl.
The result is probably a string with chinese, japanese or some other asian language I don't understand.
eglQueryString results
EGL_VERSION : "⸱″湉整湲污瘠牥楳湯ㄠ㐮ㄮ"
EGL_VENDOR : "摁慶据摥䴠捩潲䐠癥捩獥‬湉c"
EGL_CLIENTAPIS: "灏湥䱇䕟⁓灏湥䝖"
EGL_EXTENSIONS: "来䍬敲瑡健畢晦牥牆浯汃敩瑮畂晦牥䔠䱇兟䅕䍌䵏彍桳牡摥楟慭敧䔠䱇䭟剈楟慭敧"
Reminds me of early days when MS used to translate their VB programming enviroment inside Office applications.
Hope that the glGetString results are in English.
the reason you cant copy them is because they are modules..
Ideally you need to dump a stock rom and examine either the modules, or recmod them to convert them to files.
you also need diaglsm file, I think.
Still not certain what the DAL files in the oemxip do..
Use this code to get the strings:
byte[] buffer = new byte[2048];
Marshal.Copy(gl.GetString(gl.GL_VENDOR), buffer, 0, buffer.Length);
string result = Encoding.UTF7.GetString(buffer, 0, buffer.Length);
Click to expand...
Click to collapse
saeros said:
l3v5y: if you have the drivers at hand it would be great if you can share them.
heliosdev: I tried you are new test app and the OpenVG option is grayed out.
Click to expand...
Click to collapse
Updated the test app with OpenVG support on newer devices (different name of the OpenVG dll). Please try again!
Once I get that far. Currently I have the EGL part working against the libEGL.dll file. I know you probably already have this done but as this is a learning project for me I started from scratch.
heliosdev said:
Use this code to get the strings:
Click to expand...
Click to collapse
But use it in your current code to have the asian characters 'translated'!
Could you explain it a bit better. What do you mean 'translated'? I don't think the result changes to anything with UTF7. I'm already reading the pointer string returned using unicode character set and getting back a valid result. The only problem with the result is that who ever implemented the libEGL on the device decided to use some other language than english as the content of the strings.
heliosdev said:
But use it in your current code to have the asian characters 'translated'!
Click to expand...
Click to collapse
I used to get such characters before using the above way to read the string.

OpenGL ES port to Direct3D

My current project is about turning OpenGL into Direct3D.
I've already written a dll file which contains the right APIentries, e. g. eglInitialize and returns the value "true".
My problem now: "eglChooseConfig" - I've watched the documentation, but unfortenatly I didn't really understand it...
So, please, help me!
Here an example the First programm is D3D the second OpenGL....

OpenGLES ver 2.0 can?

I found some app for omnia2 and etc (acer F,M)
they told me "this app must supports graphic driver [OpenGLES 2.0 over]
so I found opengles2`s dll in google
libGLESv2.dll, libEGL.dll, and libGLESv1_CM.dll
like this
then copied my xperia`s windows folder inside
but that isnt work
xperia x1i dosent suppos openglesv2 ?
if isnt not can be make to use in xperia anyone?
my English isnt good
sorry
This lib file can?
I found some sdks .lib file for armv4I on wm
i know cpu in xperia number that called arm11? 9?
anyway is can be used this lib to x1?
mega : megaupload /?d=B4NBJKZR
(this sdk file - opengles1.0~1.1~2.0~D3DM)
ps.i dont know how to make lib file to dll file sorry

[Q] Loading JAR Files?

Hi I have searched the 8 pages of threads and didn't see my question which is how do I load JAR files onto my HD7?
Thanks in Advance
Windows Phone 7 doesn't support Java JAR files.
I have a HTC HD2 with JBlend, and I would like to run also a jar file. I think that this depends only by the Java runtime like JBlen or JavaFX. Is the operating system under der Java runtime indeed essential?
Unfortunately if I try to install my jar file within JBlend I get the message "Failure extracting a jad file". With another Java runtime the jar freezed after starting successfully. On the desktop PC the jar runs without problems. Why not under WM?
you won't be able to load any random jar on your hd2. Cell phones don't have a full jvm so you will need a java app designed specifically for the cell phone. Chances are if you didn't get a jad (Java Archie Descriptor) with the jar then it's not for a cell phone.
Thank you, so it's a pitty. Actually I expected that the advantage of Java is to clear the differences bewteen platforms, especially between mobile and "big". It should be only a question of the jvm implementation. Why doesn't existe a "full" jvm for mobiles? There are several jvms. You know e.g. Esmertec or Mysaifu?
On the other hand I may construct the jad afterwards. There are jad-gengerators on the market. I did so, and the jvm complains that there is a missing descriptor within the jad. So I think that I should only complete the jad. But how?
m i n e c r a f t
?

Categories

Resources