Views: 9,458,625 | Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search | 10-05-24 09:11 AM |
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 |
Hexagon12 |
| ||
Half-eaten melon Normal user Level: 8 Posts: 1/11 EXP: 1908 Next: 279 Since: 04-07-17 From: Lithuania Last post: 2478 days ago Last view: 2336 days ago |
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 |
| ||
Big fire melon magical melon girl Level: 58 Posts: 22/941 EXP: 1513263 Next: 64283 Since: 03-28-17 From: France Last post: 30 days ago Last view: 1 day ago |
Hexagon12 |
| ||
Half-eaten melon Normal user Level: 8 Posts: 2/11 EXP: 1908 Next: 279 Since: 04-07-17 From: Lithuania Last post: 2478 days ago Last view: 2336 days ago |
GCC compiler gives me these errors:
http://imgur.com/a/pYmIy |
Arisotura |
| ||
Big fire melon magical melon girl Level: 58 Posts: 23/941 EXP: 1513263 Next: 64283 Since: 03-28-17 From: France Last post: 30 days ago Last view: 1 day ago |
I see.
You should get msys2 and use its shell to install mingw64, wxWidgets and SDL2. ____________________ Kuribo64 |
Hexagon12 |
| ||
Half-eaten melon Normal user Level: 8 Posts: 3/11 EXP: 1908 Next: 279 Since: 04-07-17 From: Lithuania Last post: 2478 days ago Last view: 2336 days ago |
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 |
| ||
Member Normal user Level: 12 Posts: 3/27 EXP: 7351 Next: 570 Since: 03-30-17 Last post: 2561 days ago Last view: 2503 days ago |
You have to use mingw64 and set the compiler options to use x64. That's what I had to do at least. |
Hexagon12 |
| ||
Half-eaten melon Normal user Level: 8 Posts: 4/11 EXP: 1908 Next: 279 Since: 04-07-17 From: Lithuania Last post: 2478 days ago Last view: 2336 days ago |
Still errors? C'mon... I don't even know what to do now...
http://imgur.com/a/ojdcj |
MeaningOfLifeIs42 |
| ||
Member Normal user Level: 12 Posts: 4/27 EXP: 7351 Next: 570 Since: 03-30-17 Last post: 2561 days ago Last view: 2503 days ago |
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 |
| ||
Newcomer Inactive Level: 5 Posts: 1/4 EXP: 419 Next: 110 Since: 03-30-17 Last post: 2129 days ago Last view: 2107 days ago |
Posted by Hexagon12 huh, _memcpy() is a GCC function |
Nadia |
| ||
Pile of fazils Level: 24 Posts: 3/126 EXP: 74121 Next: 4004 Since: 03-29-17 From: Denmark Last post: 1 day ago Last view: 1 day ago |
* 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
Then you should hopefully have a working build of melonDS 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 |
Hexagon12 |
| ||
Half-eaten melon Normal user Level: 8 Posts: 5/11 EXP: 1908 Next: 279 Since: 04-07-17 From: Lithuania Last post: 2478 days ago Last view: 2336 days ago |
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 |
| ||
Big fire melon magical melon girl Level: 58 Posts: 24/941 EXP: 1513263 Next: 64283 Since: 03-28-17 From: France Last post: 30 days ago Last view: 1 day ago |
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 |
| ||
Half-eaten melon Normal user Level: 8 Posts: 6/11 EXP: 1908 Next: 279 Since: 04-07-17 From: Lithuania Last post: 2478 days ago Last view: 2336 days ago |
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?
|
Nadia |
| ||
Pile of fazils Level: 24 Posts: 4/126 EXP: 74121 Next: 4004 Since: 03-29-17 From: Denmark Last post: 1 day ago Last view: 1 day ago |
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 |
| ||
Half-eaten melon Normal user Level: 8 Posts: 7/11 EXP: 1908 Next: 279 Since: 04-07-17 From: Lithuania Last post: 2478 days ago Last view: 2336 days ago |
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 |
|
Anonymous |
| ||
Member Normal user Level: 8 Posts: 4/12 EXP: 2176 Next: 11 Since: 04-02-17 Last post: 714 days ago Last view: 714 days ago |
Posted by Nadia 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 |
| ||
Big fire melon magical melon girl Level: 58 Posts: 63/941 EXP: 1513263 Next: 64283 Since: 03-28-17 From: France Last post: 30 days ago Last view: 1 day ago |
Lurkon01 |
| ||
Newcomer Inactive Level: 7 Posts: 5/7 EXP: 959 Next: 489 Since: 05-28-17 Last post: 2647 days ago Last view: 2229 days ago |
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 |
| ||
Big fire melon magical melon girl Level: 58 Posts: 77/941 EXP: 1513263 Next: 64283 Since: 03-28-17 From: France Last post: 30 days ago Last view: 1 day ago |
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 |
Main - General - Building melonDS in Windows with Code:Blocks | Hide post layouts | New reply |
Page rendered in 0.051 seconds. (2048KB of memory used) MySQL - queries: 30, rows: 117/117, time: 0.030 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |