bsnes-plus icon indicating copy to clipboard operation
bsnes-plus copied to clipboard

what about macOS users

Open spotanjo3 opened this issue 5 years ago • 11 comments

Can we have release bsnes-plus v04 for macOS ?

I know how to compiled but your instruction isn't enough to show how to building it for macOS. Can you give me CORRECT instruction for macOS building ?

spotanjo3 avatar Mar 10 '19 15:03 spotanjo3

Hey, I got this working on macOS and I remember it being a real pain, so I totally understand your frustration. I'd try to get you some more detailed instructions but I'm a bit busy at the moment and my memory is a bit hazy.

One thing I definitely remember is pr #122 was incredibly helpful in getting things working, although I'm not sure if that was for v04 or a previous version.

Hopefully I'll be able to find some time to help out with this in the coming days, if not good luck!

nickgirardo avatar Mar 11 '19 19:03 nickgirardo

Hey, I got this working on macOS and I remember it being a real pain, so I totally understand your frustration. I'd try to get you some more detailed instructions but I'm a bit busy at the moment and my memory is a bit hazy.

One thing I definitely remember is pr #122 was incredibly helpful in getting things working, although I'm not sure if that was for v04 or a previous version.

Hopefully I'll be able to find some time to help out with this in the coming days, if not good luck!

Hey. Thanks. I will wait since there is no instruction on how to compile it.

spotanjo3 avatar Mar 12 '19 23:03 spotanjo3

Anybody ? ;)

spotanjo3 avatar Mar 15 '19 19:03 spotanjo3

Hey, I got this working on macOS and I remember it being a real pain, so I totally understand your frustration. I'd try to get you some more detailed instructions but I'm a bit busy at the moment and my memory is a bit hazy.

One thing I definitely remember is pr #122 was incredibly helpful in getting things working, although I'm not sure if that was for v04 or a previous version.

Hopefully I'll be able to find some time to help out with this in the coming days, if not good luck!

Can you help ? I compiled and I got an error. The instruction here is wrong. Something's missing. Please help ?

spotanjo3 avatar Apr 09 '19 20:04 spotanjo3

You may currently have better luck building Optiroc's macOS fork, which has better Mac-specific support (and build instructions) as well as various other enhancements that I'm also currently working on merging into my own master branch.

I'm planning to improve the build process on both Windows and macOS after I'm finished transitioning the project from Qt 4 to Qt 5, but for now, that branch should be much easier to build on macOS.

devinacker avatar Apr 26 '19 20:04 devinacker

You may currently have better luck building Optiroc's macOS fork, which has better Mac-specific support (and build instructions) as well as various other enhancements that I'm also currently working on merging into my own master branch.

I'm planning to improve the build process on both Windows and macOS after I'm finished transitioning the project from Qt 4 to Qt 5, but for now, that branch should be much easier to build on macOS.

I compiled many emulators without a problem so I am not noobs. This is the problem I got. Here is what I got:

After I type CD and drag and drop bsnes folder and press Return and type make and I got this error:

rcc ui-qt/resource/resource.qrc -o obj/resource.rcc make: rcc: No such file or directory make: *** [obj/resource.rcc] Error 1

spotanjo3 avatar Apr 26 '19 20:04 spotanjo3

rcc is part of the qt toolchain, so it seems you haven’t added qt to $PATH before building.

As a side note I began porting over a minimum of my changes on top of the newdebugger branch today.

Optiroc avatar Apr 26 '19 22:04 Optiroc

As a side note I began porting over a minimum of my changes on top of the newdebugger branch today.

:+1:

I'm hoping to work on that branch some more soon (finally). Feel free to PR whenever you like.

devinacker avatar Apr 27 '19 02:04 devinacker

rcc is part of the qt toolchain, so it seems you haven’t added qt to $PATH before building.

As a side note I began porting over a minimum of my changes on top of the newdebugger branch today.

How do I do that ? I never added qt to $PATH and have no idea how to do that. Help?

spotanjo3 avatar May 01 '19 12:05 spotanjo3

@azoreseuropa Depending on if you installed qt via brew or the installer from qt.io the path to add will be different. I use the installer since I find it easier to pick a specific version and packages with it, and then the binaries end up in ${HOME}/Qt/version/clang_64/bin by default. I usually add a qtpath variable as well, I don't remember off the top of my head if that is needed by the bsnes+ build script, though.

Anyway, the environment variables are added like so:

export qtpath=${HOME}/Qt/5.11.3/clang_64
export PATH=${PATH}:$qtpath/bin

You can add this to your .bash_profile if you will only use this one installation of Qt on your system.

(As a side note, 5.11.3 is the latest version that doesn't exhibit some nasty bugs with bsnes+ at the moment.)

Optiroc avatar May 02 '19 21:05 Optiroc

In 2021, successful macos build steps are as follows:

brew install qt@5
export qtpath=/usr/local/opt/qt@5
export PATH="/usr/local/opt/qt@5/bin:$PATH"
cd bsnes
make
cd ..
open ./bsnes+.app

DO NOT use the Qt Creator installer as it does not have compatible lib/ or include/ folders that bsnes-plus can build against. Even if you do hack up the include/ folder to look as bsnes-plus expects it to, and successfully compile the bsnes+.app bundle, it will fail to launch complaining about all the missing Qt libraries.

JamesDunne avatar Jul 02 '21 15:07 JamesDunne