Can i run C programs on my Desire HD ? If so, how?
I wanted to run a program that i write that manipulate text files.
Thanks..
If I remember school... C is just a language but you need to compile it for a specific platform no?
So you need a compiler for Android, search this way maybe.
May I Help u
danirodrigz said:
Can i run C programs on my Desire HD ? If so, how?
I wanted to run a program that i write that manipulate text files.
Thanks..
Click to expand...
Click to collapse
try C4DROID app available in the Playstore.
Bcoz i am currently running,compiling c programs on my GALAXY MINI CM7.2.0 official.
Do you really want to do that? C is normally used to write programs for a specific CPU. It's translated to machine code by the compiler.
You could do so down at shell level, I guess (adb shell).
But in Android there's some kind of abstraction layer called Dalvik Virtual Machine. This makes you independent of the CPU you are using and allows your program to run on any hardware that runs Android.
It's similar to a Java virtual machine and programs are written in Java which are then compiled and converted to Android programs. This means that they now run on the virtual machine.
A C program would probably only run on your phone.
In addition to that, you will not have access to all the framework stuff like buttons, menus, and so on.
There's a way to call native functions (written in C) from your application: this is the NDK.
Maybe this is what you want?
Sent from my Desire HD using xda app-developers app
danirodrigz said:
Can i run C programs on my Desire HD ? If so, how?
I wanted to run a program that i write that manipulate text files.
Thanks..
Click to expand...
Click to collapse
http://developer.android.com/tools/sdk/ndk/index.html
Sent from my Desire HD using xda app-developers app
Related
I work in software packaging... and I use VMWare a lot for different builds etc.
I was wondering if there was such an application for mobile phones. like VMWARE that I could test ROMs on etc. before putting onto my phone?
Apologies if posted in the wrong spot etc.
Regards.
That WOULD be a useful tool, such as an emulator??
Dont the windows mobile 6 sdk tools come with this sort of thing ? But I dont know if u can load a rom from here into it. But I know it comes with a base rom to use for testing, if your developing with Visual Studio or something.
twist said:
Dont the windows mobile 6 sdk tools come with this sort of thing ? But I dont know if u can load a rom from here into it. But I know it comes with a base rom to use for testing, if your developing with Visual Studio or something.
Click to expand...
Click to collapse
Correct, the emulator bundled with the SDK is only for testing programs which will run on it.
What we want is a virtual device which will act just like the hermes hardware, that way we can test unbricking techiques etc...
Something like this would indeed be a huge step for developers and cooks.
VM for WM
All you need are the environmental configuration details, ie the parameters that for the sys config and build out the vmx file.
There's no way you'd get assistance from VMware on this, ut if you think about it there are what ... 12 pre-set environments in VM-WK6?
I reckon if you debug one of these, hack away at the profile, RAM, cpu requirements (cycles, Hz, etc, etc) then you are most of the way there.
There is only a finite amount of environmental configurations, it's about controlling those.
Have a look at the VMware site, go to virtual appliances, and see how people have built the base out on some of the simpler appliances
http://mobiledevdesign.com/software_design/open-kernel-labs-okl4-software-0521/
garyjmobey said:
http://mobiledevdesign.com/software_design/open-kernel-labs-okl4-software-0521/
Click to expand...
Click to collapse
That's not quite with the topic here. From what I got out of that is they are working on running 2 operating systems on 1 phone. Not something like a hermes emulator.
I really want to port a small tool to be able to run my magic jack on my HD2. There is a really small and simple tool called MJMD5 that allows you to use your magicjack with any SIP client.
I have the source code for linux, possibly it can be compiled using cygwin for the HD2?
ftp://ftp.bauer-power.net/misc/magicjack/mjproxy.c.tgz
Also, there is a tool that works with windows, but there is a incompatibility with the GUI that isnt allowing it to run on my HD2, a small tweak should fix it.
ftp://ftp.bauer-power.net/misc/magicjack/MJMD5.zip
I am completely new to mobile software development so I hope someone could help me get this working!
Thanks
Is nobody willing to even put me in the right direction?
The source code is for a linux console app; you can't port that easily to WM GUI. You'd need the source code of the Windows exe. To my knowledge, there is no Cygwin version for WinCE yet, or were you referring to cegcc?! It could probably be ported as a console app anyway, but I assume that you want the GUI.
And using a console on the HD2 is somewhat problematic, as the OS has console debug output. I would not recommend that for user programs.
Yeah, I am referring to cegcc. I am not too concerned about the GUI, I just need the functionality, and this program doesnt really need a console, but just needs to be run with certain parameters which is possible with WinCE. So, does anyone know how to compile it for windows mobile?
I appreciate any help.
kkroo said:
Yeah, I am referring to cegcc..
Click to expand...
Click to collapse
OK; I'm reasonably sure that it can be ported with either cegcc or celib. I'd probably do it with celib. I have adapted celib to work with PocketConsole. I just tested my port of perl 5.8.8 on the HD2, and socket/internet functionality seems OK.
kkroo said:
I am not too concerned about the GUI, I just need the functionality, and this program doesnt really need a console, but just needs to be run with certain parameters which is possible with WinCE. So, does anyone know how to compile it for windows mobile?.
Click to expand...
Click to collapse
About the Windows exe, it appears to be a .NET assembly. But it may not run on Windows Mobile because it is for the desktop Framework, and not the Compact Framework. .NET assemblies can be decompiled, however. Maybe that can help you too.
I don't have this MagicJack, but from what I read about it on the internet, I doubt that it can be used with Windows CE at all if you want to plug it into the HD2 directly, and the USB connector may be different as well. I don't know if that's what you want. Depending on how it communicates with its host, you may even need a driver for it. I think that the HD2 has USB OTG, but it may still not work without a driver. I would find that out first.
In terms of recompiling it, I am pretty sure it will work. Sorry but I am a bit of a novice at this, but how would I do either compiling option?
Thanks
I would use Dis# for decompiling; I just tried to decompile the exe, and that seemed to succeed. No guarantees though; not at all tested. You can have Dis# put the source files and project files in a subdirectory. Then I'd use VS2008 for compiling.
A quick test showed that the IniFile class of this program imports unmanaged functions from kernel32, which is not present on WM. The functions are GetPrivateProfileString and WritePrivateProfileString. I don't think that coredll has them, so porting would probably not be easy. This is a known porting issue; not very severe, but it's only the start. I think that ini files are regarded as legacy by Microsoft. The registry is used for settings.
The most logical thing would seem to me to contact the developer to write a CE version if the device works with generic CE USB drivers. And then you'd still have the connector problem, and possibly even an incompatible interface; I don't know how HTC implemented the USB port. This is assuming that you want to plug it into the HD2 directly. You are not clear about that, so I can't be more specific either.
http://netdecompiler.com/download.html
Since I started looking into this, I have found out that the microsoft WM 6 SDK will only work with a store bought visual studio, not the free express versions. So other than Mort Script, what are my free software development options. I don't need a fancy IDE, a simple cross compiler (gcc?) would do. Any suggestions?
http://wiki.sharpdevelop.net/default.aspx/SharpDevelop.CompactFramework2Development
seems interesting
Visual studio is nice... but QtCreator is better.
Hey I assume you are using express studio because you need a free option. I suggest using QtCreator2.0. You can develop on windows or linux with it. And then compile to windows mobile without visual studio. At first it will seem like you have to use Qt, but you don't. You can program with just c++ and the wm6SDK.
Tpimp420 said:
Hey I assume you are using express studio because you need a free option. I suggest using QtCreator2.0. You can develop on windows or linux with it. And then compile to windows mobile without visual studio. At first it will seem like you have to use Qt, but you don't. You can program with just c++ and the wm6SDK.
Click to expand...
Click to collapse
Thanks for the info, nice to know off some alternatives to VS.
Tpimp420 said:
Hey I assume you are using express studio because you need a free option. I suggest using QtCreator2.0. You can develop on windows or linux with it. And then compile to windows mobile without visual studio. At first it will seem like you have to use Qt, but you don't. You can program with just c++ and the wm6SDK.
Click to expand...
Click to collapse
you mean you use the QT or gcc with microsoft's wm6SDK??? how does that work?
Hey everyone, I hope this is the right place to ask.
I have to develop a app for windows mobile 6.5, but I have never made anything for mobiles. What is the best language for developing for windows mobile?
I know java and C# so what would be better or some other language?
karq said:
I know java and C# so what would be better or some other language?
Click to expand...
Click to collapse
Depends what you want to develop. You can use c# with the compact framework. You'll need C/C++ if you want to write SIPs, Today plugins etc.
pmprog said:
Depends what you want to develop. You can use c# with the compact framework. You'll need C/C++ if you want to write SIPs, Today plugins etc.
Click to expand...
Click to collapse
I just want to make a app that will send text to a server.
karq said:
I just want to make a app that will send text to a server.
Click to expand...
Click to collapse
Then C# with the Compact Framework will be your obvious choice.
How to access picture files in Mobile gallery
Hi,
i want to write an application in windows mobile 6 that can have access to picture files from the gallery (on phone device memory). What APIs should I use and how I can get connected to that specific folder?
Tnx
Android Compiler VM 3.0 x64
This is the third reincarnation of the Kernel Compiler VM, with the modification needed to support Gingerbread development (64-bit machine + Java 6)
The installation is simple.
1. Download the file (around 800MB!)
2. Extract using 7-zip
3. IMPORT the VM into VirtualBox (you have to import it, or else the HDD will be read only!)
4. Enjoy
I made some modifications to the default config, that will now allow one to use putty or any other SSH client (including WinSCP for file transfer) to connect to the VM without too much hassle. This was done by using two virtual LAN cards, from which one can connect to the internet, and the host computer can connect to the VM using the other one. Usually the IP changes, but it seems if you only have one VM it is: 192.168.56.101. Username/password is still kernel/kernel
Changes from 2.0:
debian squeeze_amd64 instead of lenny_x86
Codesourcery upgraded to 2010.09 (the directory name is still 2010q1 however)
Java 6 instead of Java 5
Important!
This is for Gingerbread! Froyo and earlier versions needed Java 5 (6 was not good), while Gingerbread needs Java 6 (and Java 5 is not good). For Froyo and Eclair the old, 32-bit version of Android Compiler is still avialable
This is a 64-bit machine! To run this inside VirtualBox (or any other VM that supports 64-bit guests) you need both a processor and motherboard with hardware virtualization support (simply having a 64-bit processor and a 64-bit OS is NOT enough). You don't need your host os to be 64-bit however (so a 32-bit windows xp is still good).
Hardware virtualization is present in:
Most multi-core AMD machines
Most Core 2 non-notebook Intel machines (there are some core 2 notebooks with intel-vt, but usually this feature is missing from them. Celeron, Core Solo, Atom and other budget Intel processors do not have this feature either)
All Core i3/i5/i7 machines
Having a VT-x/AMD-v capable processor is not enough, your BIOS needs to support it too. This is usually the case, but there are some Sony Vaio notebooks, with processors that support VT, but this functionality is disabled by the BIOS (Yeah, Sony did manage to *** this up too, besides X10 of course). Sometimes you have to enable this functionality in the BIOS by hand.
Download link: http://android.sztupy.hu/dl/AndroidCompilerVM-3.0_x64.7z (mirror if you can)
Mirror: http://www.multiupload.com/3US8BF7VO1
looks good
sztupy as always very innovative!
excellent work! took a minute to import but works excellent.
Mirror link : http://www.multiupload.com/3US8BF7VO1
Hope this become available to the vibrant.
sent using the WWW.psxforums.com app
thanks for ur work
As user of the 2.0 version, thanks for this upgrade !
@Stzupy,
good to see you back.
Thank you!
Sent from my GT-I9000 using XDA Premium App
Sine. said:
Mirror link : http://www.multiupload.com/3US8BF7VO1
Click to expand...
Click to collapse
Thank you!
rhonal89 said:
Hope this become available to the vibrant.
Click to expand...
Click to collapse
This is device independent.
But, where is the Gingerbread Kernel Source?!.. I thought Samsung has not yet released it.
hacksome said:
But, where is the Gingerbread Kernel Source?!.. I thought Samsung has not yet released it.
Click to expand...
Click to collapse
Nowhere. Nexus S source works a bit however.
Nice to see you back sztupy!
Sent from my GT-I9000 using XDA Premium App
jaju123 said:
Nice to see you back sztupy!
Sent from my GT-I9000 using XDA Premium App
Click to expand...
Click to collapse
I agree. And I do hope very much that sztupy is going to use this kitchen by himself and didn't just ceate it for other devs
*Waiting eagerly*
Sorry but I think I missed something, it asks me a login and a password.
AnonymeLex said:
Sorry but I think I missed something, it asks me a login and a password.
Click to expand...
Click to collapse
kernel/kernel
read the first post m8
hensk said:
kernel/kernel
read the first post m8
Click to expand...
Click to collapse
O I didn't saw it !
Thanks