Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Dear frineds,
I am trying to compile a sample GUI (using GTK+) program for an PDA device.I am using Linux-arm-gcc cross compiler.For that PDA,I have an Makefile. When I tried to "make" it, I am getting error, "No rules to make target 'arm-linux-g++',need by "./scandemo" stop."
I cant solve this problem. Help me,to solve this problem.Whats wrong in my Makefile?.
I have mentioned my Makefile below.
I did a mistake in the line,
${TARGET} : $(OBJS) $(CXX) $(OBJS) -o ${TARGET} $(CFLAGS) $(LDFLAGS)
instead of
${TARGET} : $(OBJS)
$(CXX) $(OBJS) -o ${TARGET} $(CFLAGS) $(LDFLAGS)
But still I m getting error,
"/usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld: cannot find -lgtk-x11-2.0
collect2: ld returned 1 exit status".
I tried to find lgtk-x11-2.0. But i cant find it in my pc.
But i have already installed GTK+ 2.0.
How can solve this problem.
Thanks n adv.
I tried to find lgtk-x11-2.0. But i cant find it in my pc.
But i have already installed GTK+ 2.0.
Since you are cross compiling, don't you need the GTK+2.0 libraries for the arm processor? It doesn't matter if GTK+ 2.0 is installed because it needs to link in the arm libraries, not the ones for your Intel host system. Maybe if you are lucky, your target system has these libraries installed. It might be a matter of copying them under the /usr/local/arm/3.3.2/lib/ library directory tree. If not, you may need to cross compile the libraries as well.
---
As an aside,
Quote:
an PDA ... an Makefile ... getting error ... Makefile?.
The rule for whether you use "a" or "an" is the sound of the beginning of the next word. If the next word begins with a consonant sound, then use "a". If it begins with a vowel sound, use "an": a PDA; a Makefile; getting an error. In the last case you could use the definite article "the" since you are referring to the particular error. Also, please add two spaces after the period ending a sentence. With no spaces, it is hard to read.
Also, the question mark ends a sentence so "?." is redundant.
Also, capitalize the pronoun "I". "But I can't find it in my pc."
Since you are cross compiling, don't you need the GTK+2.0 libraries for the arm processor? It doesn't matter if GTK+ 2.0 is installed because it needs to link in the arm libraries, not the ones for your Intel host system. Maybe if you are lucky, your target system has these libraries installed. It might be a matter of copying them under the /usr/local/arm/3.3.2/lib/ library directory tree. If not, you may need to cross compile the libraries as well.
---
As an aside,
Thank you.
Quote:
The rule for whether you use "a" or "an" is the sound of the beginning of the next word. If the next word begins with a consonant sound, then use "a". If it begins with a vowel sound, use "an": a PDA; a Makefile; getting an error. In the last case you could use the definite article "the" since you are referring to the particular error. Also, please add two spaces after the period ending a sentence. With no spaces, it is hard to read.
Also, the question mark ends a sentence so "?." is redundant.
Also, capitalize the pronoun "I". "But I can't find it in my pc."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.