I have written a program in C using "graphics.h" file. Program running ok on ubuntu on the desktop ,but I want to run it on Mini2440 board. So suggest a arm cross compiler which can cross compile my program which includes "graphics.h".. thnx in Advance
Arm cross compiler for "graphics.h"
Google this file: InstallingtheARMGCCCompilerandCompilingProgramsfortheMicro2440.pdf Was on the andahammer.com site https://sites.google.com/a/asu.edu/cse423-glad/development-2/documents
i know that how to compile and install normal program on mini2440. But i want to compile the graphics program written in C for mini2440
What is a "normal" program? Ah, you have a graphics.c program and you want to link it with a graphics.h program. Learn to use makefiles or an IDE or a BSP like Pengutronix
Normal means I mean to its Text program.. Let me explain you.. For Example.. ---------------------------------------------------- #include "stdio.h" #include "graphics.h" int main() { int gd=DETECT, gm=VGAMAX; initgraph(&gd,&gm, 0); moveto(0, 0); setcolor(WHITE); rectangle(50,50,500,200); while(!kbhit()); closegraph(); return 0; } --------------------------------------------------- This program i want to run on Mini2440.. how Can i do it??
OK, that is a C program ... while it will be after you compile it. In your case, cross-compile if for ARM (specifically, the version of ARM for the mini2440). Where is your graphics.h file? And then your compiler will have to find stdio.h Makefiles tell the compiler where to find these files on your system. CU later
I cant understand will u please explain it?? Which cross compiler i can use?? its really essential for my project..
I tried code blocks but it dont have graphics library its shows error "No such file or directory" I cross compiled it using ARM GNU GCC Compiler
That is what you will get when don't include all the files required to successfully compile your project. "graphics library"? Is that more than a single graphics.h file? Show us your grahpics.h file. I am away on a trip for the next 5 days so sorry I won't be able to help until then.