Views: 274,682 Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 10-21-18 07:10 AM
Guest:

0 users reading Compiling MelonDS for macOS ?? | 1 bot

Main - General - Compiling MelonDS for macOS ?? New reply


azoreseuropa
Posted on 04-25-17 01:08 PM Link | #113
Anybody who have a macOS and knowledge of compiled MelonDS for macOS.. Please drop a line here. The developer told me to ask anybody here since he doesn't have a macOS. So it is only for linux and Windows.

I compile like this:

git clone https://github.com/StapleButter/melonDS.git

It's downloading and complete

I type next one:

cd melonDS
mkdir build
cd build
make

But something is incomplete above because I got the error:

make: *** No targets specified and no makefile found. Stop.


azoreseuropa
Posted on 04-27-17 07:44 AM Link | #120
Nobody know or have a Mac ?? :(

shibboleet
Posted on 04-27-17 10:47 AM Link | #121
...well don't you think it's not able to find a Makefile?

naknow
Posted on 04-27-17 09:41 PM Link | #124
Posted by azoreseuropa
Nobody know or have a Mac ?? :(


No, I don't have a Mac. Sorry.

Posted by shibbboleet
...well don't you think it's not able to find a Makefile?


Actually, I do believe macOS can both find and use Makefile files. Now, obviously, I have no way of trying this out, but from what I've seen...

...you'll need to install either Xcode or Make.
At which point you'll simply put in to terminal:

make [targetfile]

If that doesn't work, then I'm afraid I have no further way to help you. Sorry.

azoreseuropa
Posted on 04-29-17 07:09 AM Link | #129
Posted by naknow
No, I don't have a Mac. Sorry.


Actually, I do believe macOS can both find and use Makefile files. Now, obviously, I have no way of trying this out, but from what I've seen...

...you'll need to install either Xcode or Make.
At which point you'll simply put in to terminal:

make [targetfile]

If that doesn't work, then I'm afraid I have no further way to help you. Sorry.


I already know about it. I have everything such as Xcode and Make. That's why I copy and I got an error here as you already seen.

So nobody here have a Mac to try ? :(


Penguini
Posted on 03-01-18 08:26 PM Link | #547
If you have a mac, like I do, try using winebottler to install it. It can take windows programs and run it on os software. I haven't downloaded it but it would probably work.

Nadia
Posted on 03-01-18 08:46 PM (rev. 3 of 03-09-18 09:21 PM) Link | #549
You can actually build melonDS for the Mac, it should work if you do this:

- Make sure you have the C/C++ build tools installed, you can do that by running clang in the terminal, it'll ask if you want to install them if you don't have them already
- Install homebrew
- Run brew install cmake gtk+3 sdl2 gettext
- Clone the melonDS repository: git clone https://github.com/StapleButter/melonDS.git
- cd to the melonDS directory, create a build directory in it and cd into it
- Run LDFLAGS=-L/usr/local/opt/gettext/lib CFLAGS=-I/usr/local/opt/gettext/include cmake .. -DCMAKE_BUILD_TYPE=Release
- Then make -j5

If it succeeds you should end up with a 'melonDS' binary in the build directory that should work. It'll be using the GTK+ toolkit so system integration is basically not a thing, but it should be functional and let you emulate your games :)

extherian
Posted on 03-09-18 10:16 AM Link | #557
Nadia, I was unable to compile melonDS by following these instctions.

Attempting to run "LDFLAGS=/usr/local/opt/gettext/lib CFLAGS=-I/usr/local/opt/gettext/include cmake .. -DCMAKE_BUILD_TYPE=Release
- Then make -j5" results in the following error message:

'The C compiler "/Library/Developer/CommandLineTools/usr/bin/cc" is not able to compile a simple test program.'

Examining the error log reveals the following error message:

'ld: can't map file, errno=22 file '/usr/local/opt/gettext/lib' for architecture x86_64'

I am not familiar with C and do not know which changes need to be made to the source code to fix this issue.

Nadia
Posted on 03-09-18 09:20 PM Link | #558
Whoops, made a mistake in that command... It should be LDFLAGS=-L/usr/local/opt/gettext/lib

extherian
Posted on 03-11-18 01:55 PM Link | #561
OK, I sucessfully compiled melonDS with the following command: LDFLAGS=-L/usr/local/opt/gettext/lib LDFLAGS=-L/usr/local/opt/gettext/lib cmake .. -DCMAKE_BUILD_TYPE=Release

However, now it's claiming I don't have any BIOS files. I already dumped the BIOS and firmware, they run just fine on the Windows version of melonDS, yet the Mac version refuses to recognise them. They are named correctly (bios7.bin, bios9.bin and firmware.bin) so I don't know why melonDS can't detect them. They are in the same directory that I compiled melonDS in.

Well, it was worth a try.

Nadia
Posted on 03-11-18 02:24 PM Link | #562
Are you starting melonDS from Finder? It seems like it doesn't run programs from the current directory, so melonDS won't look in the correct place for them.

cd to the directory in the terminal and run it from there, then it should work.

extherian
Posted on 03-12-18 04:52 AM Link | #563
I am running it from Finder because I don't know the command prompt syntax to open ROMs. I'll Google it and see what I can find.

Nadia
Posted on 03-12-18 11:58 AM (rev. 2 of 03-12-18 11:58 AM) Link | #564
While in the build directory, ./melonDS /path/to/rom/file

You can also just omit the ROM path and load it from the file menu in the emulator.


Main - General - Compiling MelonDS for macOS ?? New reply

Page rendered in 0.016 seconds. (2048KB of memory used)
MySQL - queries: 26, rows: 89/89, time: 0.010 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.