Compile a 64bit library
Hi,
Im trying to compile the murrine theme engine. So far I can only make 32bit versions. I need a 64bit version. I Downloaded the source here: https://github.com/GNOME/murrine And I tried compiling after running this command: export CFLAGS=-m64 But it only generates a 32bit binary. So how do I make a 64bit version? |
Hey abourke - not sure this is going to get the best attention in the Newbie forum. Maybe the Linux - Software or Linux - General forums ?
Sorry I can't be of any help to you. |
Are you running a 32 bit distro?
Had to tweak autogen.sh a little, but otherwise it compiled fine here: Code:
~$ uname -m |
Wow! Awesome, Can you show me how to do it?
|
Im running a 64bit distro (Solaris 11.3)
Problem I have is that Java apps require a 64bit theme engine. Rest of Solaris uses 32bit gtk2 theme engine. |
Please post the output of the following command on your machine:
Code:
uname -a |
uname -a gives me:
Quote:
https://github.com/GNOME/murrine Then I change directory to it. Then I export my path to include Quote:
Quote:
To compile Murrine: Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
Hi again abourke - I'll let others here more familiar with Solaris confirm, but it seems to me your uname -a output indicates that you are running a 32-bit version of Solaris. I would have expected to see something resembling "x86_64" somewhere instead of just i386.
See for example the output of the same command on my 64-bit Arch system: Code:
[rick@RickSP3 ~]$ uname -a Can someone confirm ? |
yes, it looks like a 32bit system and also the result lib is compiled for a 32bit system.
If I remember well you need to use a cross-compiler to be able to compile for a different target system. |
Quote:
And if I'm not mistaken, if your OS is 64-bit you can cross-compile for a 32-bit system but if the OS is 32-bit you cannot make 64-bit binaries by cross-compiling. So, you probably need a 64-bit OS. |
yes I think it must be 32bit. That explains my problem. I dont know how I missed that. I thought Oracle stopped distributing 32 bit Solaris.
|
Quote:
Be mindful, however, that a 32-bit CPU cannot run a 64-bit binary! (But a 64-bit CPU can run a 32-bit binary.) |
It looks like it is a 64bit OS after all:
Quote:
|
Quote:
|
Why do you need a 64bit lib? If you have a 64bit system try to compile this lib on that host.
|
All times are GMT -5. The time now is 04:58 PM. |