Views: 22,871,275 Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 11-06-24 12:05 PM
Guest:

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

Main - General - Building melonDS in Windows with Code:Blocks Hide post layouts | New reply

Pages: 1 2
Hexagon12
Posted on 04-07-17 02:05 PM 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.)

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

____________________
Kuribo64

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

http://imgur.com/a/pYmIy

Arisotura
Posted on 04-07-17 02:15 PM Link | #67
I see.


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

____________________
Kuribo64

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

http://imgur.com/a/F5Wx8

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?)

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

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

http://imgur.com/a/ojdcj

MeaningOfLifeIs42
Posted on 04-07-17 04: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.

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

http://imgur.com/a/ojdcj

huh, _memcpy() is a GCC function

Nadia
Posted on 04-07-17 06: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 https://github.com/StapleButter/melonDS.git
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 :)

Hexagon12
Posted on 04-08-17 05: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:

http://imgur.com/a/whFsa

Arisotura
Posted on 04-08-17 01:02 PM 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.

____________________
Kuribo64

Hexagon12
Posted on 04-08-17 01:43 PM 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


Nadia
Posted on 04-08-17 05:31 PM (rev. 2 of 04-08-17 05: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.

Hexagon12
Posted on 04-08-17 06:22 PM Link | #82
YAY!!!

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.

MeaningOfLifeIs42
(post deleted) #98

Anonymous
Posted on 06-07-17 12:00 AM (rev. 2 of 06-07-17 12:01 AM) 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.

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

____________________
Kuribo64

Lurkon01
Posted on 06-20-17 10:18 AM (rev. 2 of 06-20-17 10: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

Arisotura
Posted on 06-20-17 10: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

____________________
Kuribo64
Pages: 1 2

Main - General - Building melonDS in Windows with Code:Blocks Hide post layouts | New reply

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