LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,303

Rep: Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935
*
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
 
Old 05-24-2015, 01:37 PM   #6
debguy
Member
 
Registered: Oct 2014
Location: U.S.A.
Distribution: mixed, mostly debian slackare today
Posts: 62

Rep: Reputation: Disabled
you can use REAL motif (there are a few), rather than lesstif

http://sourceforge.net/projects/motif250/

(you can find motif-3.2.4 and cde - though 3.2.4 is not compat with motif 2.n apps and has no fvwm style desktop panner)

lesstiff has more bugs than motif , also it uses name libXm.so but is incompatible with the REAL libXm.so lesstiff causes problems with some expensive well know shelf products that need "motif". all (debian/ubantu/other) linux used lesstif, and those apps must be recompiled to use motif (or use LD_LIBRARY_PATH to avoid the libXm.so naming conflict)

i would not suggest lesstif now that "the real thing" is released publicly unless re-releasing something to work within those distros, licensing aside.
 
Old 05-25-2015, 07:39 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,303

Rep: Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935
@debguy :

Why are you answering 6 year old dead threads ?

The OS`s in question may not exist any more.
 
  


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 02:19 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration