Fedora Linux Support Community & Resources Center
  #1  
Old 15th February 2012, 05:41 AM
leonard Offline
Registered User
 
Join Date: Sep 2005
Posts: 115
linuxfirefox
Compile 64bit application on a 32bit machine

My application is built on a 32bit Redhat 5.3 machine, but fails to run on a 64bit Redhat 5.2 server. The error message indicate that some dynamic libraries (e.g. libg2c.so) could not be found. These libraries are already installed on /usr/lib64 on 64bit server, and on /usr/lib on 32bit machine. So which compiler options should I specify when I build 64bit application on a 32bit machine? or do I have to build 64bit application on a 64bit machine?
Reply With Quote
  #2  
Old 15th February 2012, 08:57 PM
Alberth5674764 Offline
Registered User
 
Join Date: Nov 2011
Posts: 35
linuxfirefox
Re: Compile 64bit application on a 32bit machine

for a 32bit application, you also need 32bit libraries, which I would not expect to live in /usr/lib64
(that is, you'd need to install libg2c for 64 bit (for the other apps at the machine) and 32 bit (for your app))
Reply With Quote
  #3  
Old 15th February 2012, 09:53 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,150
linuxfedorafirefox
Re: Compile 64bit application on a 32bit machine

And if you try building 64 bit applications on a 32 bit system (can be done) you have to include the 64 bit libraries, and the cross compiler target for 64 bit systems.

It is usually much more work than it is worth - just recompile on the 64 bit system.
Reply With Quote
  #4  
Old 16th February 2012, 12:38 AM
leonard Offline
Registered User
 
Join Date: Sep 2005
Posts: 115
windows_xp_2003ie
Re: Compile 64bit application on a 32bit machine

Thank you all.
Reply With Quote
Reply

Tags
32bit, 64bit, application, compile, machine

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't compile in 64bit F14 what compiled in 32bit F14 gizenshu Using Fedora 2 4th August 2011 09:15 PM
32bit Application Not working in 64bit Fedora 12 Xavior Using Fedora 8 12th November 2010 04:50 AM
How to tell if I have 64bit or 32bit machine? FlyingTriangle Using Fedora 19 23rd October 2010 09:47 PM
32bit compilation of application on 64bit machine ica1107 Using Fedora 0 10th October 2005 06:02 PM


Current GMT-time: 18:24 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat