LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 06-24-2009, 04:02 AM   #1
uditchandna
LQ Newbie
 
Registered: Jun 2009
Posts: 4

Rep: Reputation: 0
pls help, powerpclinux gcc problem for embedding motif


i am new to linux just 2 months and have been assigned to develop an application in motif(Xm) and then create its binary fil to be run on pwerpc.

i successfully implemented Xt and X11 code on (Embedded linux developmnt kit ELDK )using CROSSCOMPILER but the embedded linux gcc gives error on Xm code that

/bin/ld: cant find lXm

and if i provide link to the motif libraries it says incompatible version of libXm.so

anyone please suggest where i am wrong and what should i do how to give ppc-linux gcc's ld the Xm libraries

BY THE WAY I HAVE INSTALLED Lesstif 0.9.5.2 and want to design app for powerpc 74xx series

thanx for helping me in advance
 
Old 06-25-2009, 01:44 PM   #2
bannock
LQ Newbie
 
Registered: Jun 2009
Location: Toronto
Distribution: Ubuntu, Fedora
Posts: 24

Rep: Reputation: 18
Have you tried rebuilding lesstif from source?
 
Old 06-26-2009, 02:16 AM   #3
uditchandna
LQ Newbie
 
Registered: Jun 2009
Posts: 4

Original Poster
Rep: Reputation: 0
yes i tried recompiling
i also tried to remove lesstif and install openmotif
but tsill the same
if i provide the library paths using -L/path/ it gives error "skipping incompatible libXm.so" and the "/usr/bin/ld: cannot find -lXm"

please help me
 
Old 06-26-2009, 11:45 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,622

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
*
Cross compiling an application depending on
e.g. libXm : You will have to cross compile (all)
the dependency / dependencies before the application
and "export" the location, when cross compiling the
application.
.....

Last edited by knudfl; 06-26-2009 at 11:48 AM.
 
Old 06-27-2009, 07:31 AM   #5
uditchandna
LQ Newbie
 
Registered: Jun 2009
Posts: 4

Original Poster
Rep: Reputation: 0
thankyou "knudfl" for your reply but I am a newbie to linux and don't know how to cross compile the dependencies

it would be really helpful if you guide me the process of doing the same

i could tell you
i have lesstif in folder"/home/user1/"

after entering lesstif folder i just used "./configure ,make and then make install" for installling lesstif

to cross compile i have no idea

pls help

any other info needed would be sahred as soon as possible

thanks in advance
 
  


Reply

Tags
cross, motif, pc, xm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pls help, powerpclinux gcc problem uditchandna Linux - Hardware 1 06-24-2009 06:25 AM
[SOLVED] gcc-gnat depends on OLDER version - pls help! emmalg Linux - Software 5 06-16-2009 07:56 AM
QUAINT !!! is this a gcc bug ? pls check out this simple C program.() cryincold Programming 9 02-09-2008 02:43 AM
GCC First Pass throwing errors...pls help! chakkaradeepcc Linux From Scratch 2 04-11-2005 01:20 PM
pls pls pls help me ! i'm tired with httpd config on fedora apache 2.0.48 AngelOfTheDamn Fedora 0 01-24-2004 05:12 PM


All times are GMT -5. The time now is 10:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration