Views: 84,117 Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 09-25-17 04:01 AM

0 users reading Building melonDS in Windows with Code:Blocks | 1 bot

Main - General - Building melonDS in Windows with Code:Blocks New reply

Pages: 1 2
Posted on 04-07-17 10:05 AM Link | #64
Hi everyone,

So, I really like this emulator, even from the alpha stage. But the problem is: How does one build it from Code:Blocks in Windows? I already linked WxWidgets and SDL2. It's giving me 4 errors on GCC and 1 fatal error in VC++ 2015.

(If this post does not belong here, please move it somewhere.)

Posted on 04-07-17 10:07 AM Link | #65
Telling us more about those errors would be helpful.

Posted on 04-07-17 10:14 AM (rev. 2 of 04-07-17 10:14 AM) Link | #66
GCC compiler gives me these errors:

Posted on 04-07-17 10:15 AM Link | #67
I see.

You should get msys2 and use its shell to install mingw64, wxWidgets and SDL2.

Posted on 04-07-17 10:53 AM (rev. 2 of 04-07-17 11:54 AM) Link | #68
Okay, so after a long time (because I'm a noob in Linux), two more errors now.
Note: building in mingw32.

EDIT: It's building now! But even for advanced users like me, this building is still very hard. It should be easier with CMake instead. (You are doing this, right?)

Posted on 04-07-17 11:53 AM Link | #69
You have to use mingw64 and set the compiler options to use x64. That's what I had to do at least.

Posted on 04-07-17 11:58 AM Link | #70
Still errors? C'mon... I don't even know what to do now...

Posted on 04-07-17 12:33 PM Link | #71
I feel you on a very deep level right now, I'm stuck there too. I tried it with wxWidgets 3.1, and it compiled. It gave me an error running the exe though :/ I'm trying the latest WX 3.0 branch off of github, and I'll let you know if that helps.

Posted on 04-07-17 12:35 PM Link | #72
Posted by Hexagon12
Still errors? C'mon... I don't even know what to do now...

huh, _memcpy() is a GCC function

Posted on 04-07-17 02:25 PM Link | #73
* Download the 64-bit version of MSYS2 from here.
* Open "MSYS2 MSYS"
* Type pacman -Syu --noconfirm
* It'll probably tell you to close the terminal at some point, do that
* Now open "MSYS2 MinGW 64-bit"
* Type these commands
pacman -Su --noconfirm mingw-w64-x86_64-{toolchain,SDL2,wxWidgets} git
git clone
cd melonDS
g++ -O3 src/*.cpp src/wx/*.cpp -Isrc -Isrc/wx $(pkg-config --cflags --libs sdl2) $(wx-config --cflags --libs core,base) -I/mingw64/include/wx-3.0/ -I/mingw64/lib/wx/include/msw-unicode-3.0 -o melonDS.exe
Then you should hopefully have a working build of melonDS :)

Posted on 04-08-17 01:46 AM Link | #77
How many errors can I get?

Thanks Nadia, with these commands it finally built the .exe file. But then it asked for a lot of .dll files. I found them all in /mingw64/bin, but another error then happens:

Posted on 04-08-17 09:02 AM Link | #79
You'll need to place the appropriate .dll files along with it. Check the melonDS release for a list of the DLLs it requires.

Posted on 04-08-17 09:43 AM Link | #80
It asks for libgcc_s_seh-1.dll, then wxbase30u_gcc_custom.dll and finally wxmsw30u_core_gcc_custom.dll. Then it gives me the error. Doesn't it compile these .dlls after building?

I found them all in /mingw64/bin

Posted on 04-08-17 01:31 PM (rev. 2 of 04-08-17 01:33 PM) Link | #81
g++ -O3 src/*.cpp src/wx/*.cpp -static -static-libgcc -static-libstdc++ $(pkg-config --static --cflags --libs sdl2) $(wx-config-static --cflags --libs core,base) -Isrc -Isrc/wx -I/mingw64/include/wx-3.0 -I/mingw64/lib/wx/include/msw-unicode-3.0/ -o melonDS.exe

Try this.

Posted on 04-08-17 02:22 PM Link | #82

It's working now! Thank you Nadia!

But a suggestion from me is to start using CMake, I mean, that was very hard to build.

(post deleted) #98

Posted on 06-06-17 08:00 PM (rev. 2 of 06-06-17 08:01 PM) Link | #182
Posted by Nadia
g++ -O3 src/*.cpp src/wx/*.cpp -static -static-libgcc -static-libstdc++ $(pkg-config --static --cflags --libs sdl2) $(wx-config-static --cflags --libs core,base) -Isrc -Isrc/wx -I/mingw64/include/wx-3.0 -I/mingw64/lib/wx/include/msw-unicode-3.0/ -o melonDS.exe

Try this.

How can I get it to build with the command line logging window? The exe made by this just gives me the two main windows.

Posted on 06-06-17 08:03 PM Link | #183
Under Linux you'll have to run it from a terminal.

Posted on 06-20-17 06:18 AM (rev. 2 of 06-20-17 06:29 AM) Link | #212
When compiling in windows using msys2 i get the following error:

#warning Please include winsock2.h before windows.h [-Wcpp]

Seems to be related to src/wx/Platform.cpp

Posted on 06-20-17 06:30 AM Link | #213
it's not an error, you can ignore it

besides, when I tried following their recommendation, it was a shitshow, so I kept it this way because it works best
Pages: 1 2

Main - General - Building melonDS in Windows with Code:Blocks New reply

Page rendered in 0.051 seconds. (2048KB of memory used)
MySQL - queries: 27, rows: 112/112, time: 0.029 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2015-10-07)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.