Raptor Computing Systems Community Forums (BETA)

Software => Applications and Porting => Topic started by: Borley on September 12, 2020, 11:51:39 am

Title: Building software, a bit of a newb question
Post by: Borley on September 12, 2020, 11:51:39 am
When compiling programs on Power ISA, does make need to be directed explicitly to build for Power? Does the compiler default to its host architecture?

I am trying to build and run programs which are not available in the ppc64le Debian repos;


Can anyone offer some insight?
Title: Re: Building software, a bit of a newb question
Post by: pocock on September 12, 2020, 12:09:29 pm

make doesn't really care so much about the architecture, it depends more on the project and autotools, if the project uses autotools

By default, make will use the default compiler, which is usually a compiler for the host you are using.

The Makefile for a project might be fussy though, it might have things hardcoded for some other platform

Looking in Debian, there does appear to be an OBS package available:

https://buildd.debian.org/status/package.php?p=obs-studio&suite=buster

Can you please clarify the problem you had installing the OBS package from there?
Title: Re: Building software, a bit of a newb question
Post by: Borley on September 12, 2020, 01:39:40 pm
OBS was a few months back but, I basically followed their build instructions from git (https://github.com/obsproject/obs-studio/wiki/install-instructions#debian-based-build-directions). The damage happened after running the install, which needed to setup things outside of /home/ such as desktop shortcuts, binaries, hardlinks etc so it needed to be run as root. I have since reinstalled Debian on my Blackbird system, and unfortunately haven't toyed with compiling software ever since.

apt search obs-studio
Sorting... Done
Full Text Search... Done
     yields no results, with only amd64 listed at https://packages.debian.org/buster/obs-studio

I am actually considering getting another Blackbird just so that I can continue learning software compilation without having to worry about blowing away my primary system again.

EDIT: Remembering now, I tried to install it into the /opt directory.
Title: Re: Building software, a bit of a newb question
Post by: pocock on September 12, 2020, 02:18:28 pm

OK, it looks like they only distribute the package for amd64

Something like this will help you build a local package on your architecture:

Code: [Select]
sudo apt build-dep obs-studio
git clone https://salsa.debian.org/multimedia-team/obs-studio.git
cd obs-studio
sed -i -e 's/any-amd64/any/g' debian/control
dpkg-buildpackage -rfakeroot -i.git -b

Something like that will create *.deb package files for you in ../

You can try asking in #debian-devel on IRC for any issues

I will eventually get around to running OBS myself, sometime this month and then I will share more details if the above is not sufficient.
Title: Re: Building software, a bit of a newb question
Post by: MPC7500 on September 12, 2020, 03:51:54 pm
OBS-Studio should be available on sid and Bullseye (https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=obs-studio). Can't you just activate the repository for this package only?

I am actually considering getting another Blackbird just so that I can continue learning software compilation without having to worry about blowing away my primary system again.

You can install multiple distributions on one disk. Or just buy a second hard disk.

Edit: OBS is also available on VoidLinux PPC64le (https://repo.voidlinux-ppc.org/stats.html)
Title: Re: Building software, a bit of a newb question
Post by: Borley on September 12, 2020, 05:51:50 pm
Quote
Or just buy a second hard disk.

This didn't even cross my mind, for some reason. Maybe I could even clone my main drive as a sort of snapshot to work on.
Title: Re: Building software, a bit of a newb question
Post by: pocock on September 18, 2020, 07:23:57 am

I built the backport of obs-studio from Debian bullseye so it runs on Debian buster.  I'll test it a little and then publish the package and dependencies for anybody who wants to use it
Title: Re: Building software, a bit of a newb question
Post by: pocock on December 29, 2020, 08:22:05 am
The packages are now available, please see the details in this thread (https://forums.raptorcs.com/index.php/topic,244.0.html) and feel free to provide feedback or ask questions.