Views: 6,697,278 Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 03-28-24 03:01 PM
Guest:

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

Main - General - Compiling MelonDS for macOS ?? Hide post layouts | New reply


azoreseuropa
Posted on 04-25-17 05: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 11:44 AM Link | #120
Nobody know or have a Mac ?? :(

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

naknow
Posted on 04-28-17 01:41 AM 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 11: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-02-18 01:26 AM 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-02-18 01:46 AM (rev. 3 of 03-10-18 02:21 AM) 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 03:16 PM 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-10-18 02:20 AM 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 05: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 06: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 08: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 03:58 PM (rev. 2 of 03-12-18 03:58 PM) 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.

azoreseuropa
(post deleted) #881

azoreseuropa
(post deleted) #883

azoreseuropa
Posted on 06-01-19 04:34 PM Link | #1066
Posted by Nadia
Whoops, made a mistake in that command... It should be LDFLAGS=-L/usr/local/opt/gettext/lib


Newer melonDS version is out. I still have a problem with latest macOS version:

I compiled it for the macOS.. almost successfully. It stopped at 69 percent. Error:


/Users/blank/melonDS/src/libui_sdl/libui/darwin/window.m:237:1: warning:
'NSWindow' may not respond to 'contentHuggingPriorityForOrientation:'
uiDarwinControlDefaultHuggingPriority(uiWindow, window)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/blank/melonDS/src/libui_sdl/libui/darwin/../ui_darwin.h:138:32: note:
expanded from macro 'uiDarwinControlDefaultHuggingPriority'
return [type(c)->handlefield contentHuggingPriorityForOr...
~~~~~~~~~~~~~~~~~~~~ ^
/Users/blank/melonDS/src/libui_sdl/libui/darwin/window.m:238:1: warning:
'NSWindow' may not respond to 'setContentHuggingPriority:forOrientation:'
uiDarwinControlDefaultSetHuggingPriority(uiWindow, window)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/blank/melonDS/src/libui_sdl/libui/darwin/../ui_darwin.h:143:25: note:
expanded from macro 'uiDarwinControlDefaultSetHuggingPriority'
[type(c)->handlefield setContentHuggingPriority:priorit...
~~~~~~~~~~~~~~~~~~~~ ^
/Users/blank/melonDS/src/libui_sdl/libui/darwin/window.m:370:11: error:
conflicting types for 'uiNewWindow'
uiWindow *uiNewWindow(const char *title, int width, int height, int hasMenubar)
^
/Users/blank/melonDS/src/libui_sdl/libui/darwin/../ui.h:127:22: note:
previous declaration is here
_UI_EXTERN uiWindow *uiNewWindow(const char *title, int width, int heigh...
^
2 warnings and 1 error generated.
make[2]: *** [src/libui_sdl/libui/CMakeFiles/libui-temporary.dir/darwin/window.m.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/libui_sdl/libui/CMakeFiles/libui-temporary.dir/all] Error 2
make: *** [all] Error 2


Help ?

azoreseuropa
Posted on 06-02-19 01:18 PM Link | #1069
Anybody ?

Arisotura
Posted on 06-02-19 01:24 PM Link | #1070
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
Posted on 06-02-19 02:18 PM Link | #1071
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
Posted on 06-02-19 02:21 PM Link | #1072
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.042 seconds. (2048KB of memory used)
MySQL - queries: 29, rows: 116/116, time: 0.019 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.