Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 982  / 3 Years ago, fri, may 14, 2021, 2:58:09

I have rebuilt a deb package with a custom patch for my computer which is a 64bit machine. I did it using:



sudo apt-get -b source [package name]


Now my question is, how to do that in a similar manner to cross-compile the same package for 32bit machines?



Thanks,
Nicolay


More From » apt

 Answers
1

It is mostly not possible to cross-compile a 32bit package from a 64bit deb package if the package contains any source files or libraries.



You'll need to repackage using the 32bit libraries and recompile the source code.



My suggestion would be to split your compile and packaging - do your 32bit work in a separate 32bit Virtual Machine.



Perhaps better, would be to set up a LaunchPad PPA and let Launchpad do the compiling for both 64bit and 32bit architectures automatically.


[#44064] Saturday, May 15, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
algicuade

Total Points: 317
Total Questions: 89
Total Answers: 106

Location: Saint Pierre and Miquelon
Member since Fri, Jan 28, 2022
2 Years ago
;