Skip to content
vaskas edited this page Dec 29, 2019 · 2 revisions

Porting software to the BlackBerry QNX is fun, at least that's what we think.

Workflow

  1. Copy an existing port directory to a new one
cd ports
cp -R curl myport
cd myport
  1. Adjust and run ./build.sh
  2. Needs to patch an error out?
mkdir patches
cd ../../work/myport-1.2.3
cp offending.c offending.c.orig
diff -u offending.c.orig offending.c > ../../ports/myport/patches/offending.c.patch
  1. Go back to the port directory and re-run ./build.sh, et voila!

Tips

  1. Expect that the first build of your beloved POSIX-compatible program will fail
  • Embrace it, this is a cool opportunity to learn something new
  1. Use the source, Luke. See how the other Berrymuch ports work and the patches they bring.
  2. You can find a lot of cross-compilation wisdom in the Termux Packages repo. Despite being Android-specific it has a lot of useful nuggets you can apply for Berrymuch.
  3. Some good QNX-specific patches can be found in the RIM's pkgsrc repo