![]() | ||
Views: 24,217,209 | Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search | 02-10-25 12:19 AM |
Guest: |
0 users reading Compiling MelonDS for macOS ?? | 1 bot |
Main - General - Compiling MelonDS for macOS ?? | Hide post layouts | New reply |
azoreseuropa |
| ||
Member Normal user Level: 9 Posts: 1/13 EXP: 2501 Next: 661 Since: 04-25-17 Last post: 1902 days ago Last view: 1902 days ago |
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 |
| ||
Member Normal user Level: 9 Posts: 4/13 EXP: 2501 Next: 661 Since: 04-25-17 Last post: 1902 days ago Last view: 1902 days ago |
Nobody know or have a Mac ?? ![]() |
shibboleet |
| ||
Newcomer Inactive Level: 5 Posts: 2/4 EXP: 428 Next: 101 Since: 03-30-17 Last post: 2256 days ago Last view: 2235 days ago |
...well don't you think it's not able to find a Makefile? |
naknow |
| ||
Member Normal user Level: 13 ![]() Posts: 20/29 EXP: 8370 Next: 1897 Since: 03-31-17 From: United States Last post: 1618 days ago Last view: 1618 days ago |
Posted by azoreseuropa No, I don't have a Mac. Sorry. Posted by shibbboleet 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 |
| ||
Member Normal user Level: 9 Posts: 5/13 EXP: 2501 Next: 661 Since: 04-25-17 Last post: 1902 days ago Last view: 1902 days ago |
Posted by naknow 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 |
| ||
Newcomer Inactive Level: 4 Posts: 1/3 EXP: 261 Next: 18 Since: 03-02-18 Last post: 2535 days ago Last view: 2531 days ago |
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 |
| ||
Pile of fazils Level: 24 Posts: 17/128 EXP: 77636 Next: 489 Since: 03-29-17 From: Denmark Last post: 21 days ago Last view: 5 days ago |
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 |
| ||
Member Normal user Level: 8 Posts: 1/12 EXP: 2166 Next: 21 Since: 09-02-17 Last post: 1428 days ago Last view: 1712 days ago |
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 |
| ||
Pile of fazils Level: 24 Posts: 19/128 EXP: 77636 Next: 489 Since: 03-29-17 From: Denmark Last post: 21 days ago Last view: 5 days ago |
Whoops, made a mistake in that command... It should be LDFLAGS=-L/usr/local/opt/gettext/lib |
extherian |
| ||
Member Normal user Level: 8 Posts: 2/12 EXP: 2166 Next: 21 Since: 09-02-17 Last post: 1428 days ago Last view: 1712 days ago |
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 |
| ||
Pile of fazils Level: 24 Posts: 21/128 EXP: 77636 Next: 489 Since: 03-29-17 From: Denmark Last post: 21 days ago Last view: 5 days ago |
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 |
| ||
Member Normal user Level: 8 Posts: 3/12 EXP: 2166 Next: 21 Since: 09-02-17 Last post: 1428 days ago Last view: 1712 days ago |
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 |
| ||
Pile of fazils Level: 24 Posts: 22/128 EXP: 77636 Next: 489 Since: 03-29-17 From: Denmark Last post: 21 days ago Last view: 5 days ago |
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. |
azoreseuropa |
|
azoreseuropa |
|
azoreseuropa |
| ||
Member Normal user Level: 9 Posts: 8/13 EXP: 2501 Next: 661 Since: 04-25-17 Last post: 1902 days ago Last view: 1902 days ago |
Posted by Nadia Newer melonDS version is out. I still have a problem with latest macOS version:
Help ? |
azoreseuropa |
| ||
Member Normal user Level: 9 Posts: 9/13 EXP: 2501 Next: 661 Since: 04-25-17 Last post: 1902 days ago Last view: 1902 days ago |
Anybody ? |
Arisotura |
| ||
![]() Big fire melon magical melon girl Level: 59 ![]() Posts: 335/968 EXP: 1615103 Next: 58025 Since: 03-28-17 From: France Last post: 9 days ago Last view: 1 day ago |
well, I'll take care of making a proper Mac build eventually
the libui source for Mac needs to be updated to support all the shit I added ____________________ Kuribo64 |
azoreseuropa |
| ||
Member Normal user Level: 9 Posts: 10/13 EXP: 2501 Next: 661 Since: 04-25-17 Last post: 1902 days ago Last view: 1902 days ago |
That's good to know but I would love to know how to compile this one for the future. Is that possible ?
I always compiled other emulators and I enjoyed compiling them. This one is the problem that I struggle with. |
Arisotura |
| ||
![]() Big fire melon magical melon girl Level: 59 ![]() Posts: 336/968 EXP: 1615103 Next: 58025 Since: 03-28-17 From: France Last post: 9 days ago Last view: 1 day ago |
if there's a Mac build, it will build with Cmake or whatever, without trouble
you're having trouble because there's no real Mac version for now. people have built and used the GTK version with varying degrees of success, but that's about it. ____________________ Kuribo64 |
Main - General - Compiling MelonDS for macOS ?? | Hide post layouts | New reply |
Page rendered in 0.053 seconds. (2048KB of memory used) MySQL - queries: 30, rows: 118/118, time: 0.034 seconds. ![]() © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |