LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Creating binaries for a different platform (https://www.linuxquestions.org/questions/linux-general-1/creating-binaries-for-a-different-platform-4175553523/)

adolfoe 09-14-2015 11:15 PM

Creating binaries for a different platform
 
Hello

I have been able to test different intel graphic branches by following the instructions on this page:

https://01.org/linuxgraphics/documen.../build-guide-0

But I would like to know if it is possible to create binaries of this so they can be installed on a different platform.

If it is possible, what changes should be made to do it.

Possible targets would be Kubuntu 15.04 and Fedora 22.

Best Regards.

_n00b 09-16-2015 08:45 AM

Quote:

Originally Posted by adolfoe (Post 5420479)
But I would like to know if it is possible to create binaries of this so they can be installed on a different platform.

I guess you have to cross compile it to make it work on another platform. Inform yourselve about cross compilation, but i warn you, it can be VERY difficult.

smallpond 09-16-2015 08:55 AM

If you are compiling for a different architecture, like compiling ARM code on X86_64, then you need a cross compiler.

If you are compiling on Intel just for a different distro, then the only problem you run into is different library versions. Most upstream packages provide source and sommething like autoconf. Then each distro can build in its local environment. If you are running Redhat and want to build for Kubuntu, the simplest way would be to do it in a Kubuntu VM.

rtmistler 09-16-2015 09:15 AM

I was going to cover cross compiling; however they didn't say that, they said Kubuntu 15.04 and Fedora 22 and I was wondering, besides just writing code that is portable from system to system, if there were any gotchas that the OP would be needing to look into to create an application, or an installable package which would work on various distributions.

I myself would just recompile on the various systems. But I am wondering about general deployment if I were to make an application or library that needed to be run on a variety of systems. Like you'd have to have it check for required minimum support levels of libraries and capabilities.

I think instead this is what the OP was asking.

adolfoe 09-17-2015 05:18 PM

Thanks for your comments,

To clarify:
I was talking about same architecture (X86_64) but different distributions of linux.
But seeing that this are drivers for Intel architecture, I was wondering if special precautions should be necessary.
For example if I created binaries on Atom, would they work the same on 4th Gen Core platform?

Best Regards,


All times are GMT -5. The time now is 05:40 PM.