Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


Search this Thread
Old 06-24-2009, 04:02 AM   #1
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

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 and want to design app for powerpc 74xx series

thanx for helping me in advance
Old 06-25-2009, 01:44 PM   #2
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
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" and the "/usr/bin/ld: cannot find -lXm"

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

Rep: Reputation: 2922Reputation: 2922Reputation: 2922Reputation: 2922Reputation: 2922Reputation: 2922Reputation: 2922Reputation: 2922Reputation: 2922Reputation: 2922Reputation: 2922
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

Last edited by knudfl; 06-26-2009 at 11:48 AM.
Old 06-27-2009, 07:31 AM   #5
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


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 06:48 PM.

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