Author Topic: How to use BMK with MacOS terminal?  (Read 346 times)

Offline Yellownakji

  • Jr. Member
  • **
  • Posts: 98
  • The new logo looks like a butt plug
How to use BMK with MacOS terminal?
« on: November 28, 2018, 06:42:55 AM »
I'd like to use BMK's makemods operation, however i can't see to get it with MacOS?   In windows, i just go to my blitzmax/bin directory in CMD then go about calling bmk with the parameters i require;  I can seem to do so in OSX?   I'm pretty dumb in terms of how mac operates as i primarily use Windows/HaikuOS.

So in terminal, i do:

CD /Applications
cd blitzmax/bin
bmk

> command not found.

What am i doing wrong?  Can somebody point me in the right direction?  I need to use the -i flag.

Offline Brucey

  • Jr. Member
  • **
  • Posts: 56
Re: How to use BMK with MacOS terminal?
« Reply #1 on: November 28, 2018, 07:11:56 AM »
Hallo,

You need to prefix your command with dot-slash, because the bin folder is not on the PATH.
so...
Code: [Select]
./bmk makemods -a pub.. to rebuild Pub modules, for example.

Offline Yellownakji

  • Jr. Member
  • **
  • Posts: 98
  • The new logo looks like a butt plug
Re: How to use BMK with MacOS terminal?
« Reply #2 on: November 28, 2018, 07:20:50 AM »
Hallo,

You need to prefix your command with dot-slash, because the bin folder is not on the PATH.
so...
Code: [Select]
./bmk makemods -a pub.. to rebuild Pub modules, for example.


Hi, Brucey.  Thanks for getting back to me so quickly; I appreciate it.    I just want to check before hand:

I did add PPC BMK (and renamed it to BMK_PPC) in \bin.   Will -i still generate PPC editions? is that still supported?

I noticed in your cross compile notes, you wrote:


Code: [Select]
    This option enables Universal building on x86 Mac systems. Using this option will generate both PPC and x86 modules. When use with the makeapp option, it will create a Universal binary (note : you must have built modules using this option previously for this to work).

    You will need a copy of bcc from a PPC BlitzMax distribution. Rename it to bcc_ppc, and copy it into your BlitzMax/bin folder.