Views: 22,869,861 | Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search | 11-06-24 10:46 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: 1920 Next: 267 Since: 04-07-17 From: Lithuania Last post: 2510 days ago Last view: 2368 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/945 EXP: 1531780 Next: 45766 Since: 03-28-17 From: France Last post: 6 days ago Last view: 22 min. ago |
Hexagon12 |
| ||
Half-eaten melon Normal user Level: 8 Posts: 2/11 EXP: 1920 Next: 267 Since: 04-07-17 From: Lithuania Last post: 2510 days ago Last view: 2368 days ago |
GCC compiler gives me these errors:
http://imgur.com/a/pYmIy |
Arisotura |
| ||
Big fire melon magical melon girl Level: 58 Posts: 23/945 EXP: 1531780 Next: 45766 Since: 03-28-17 From: France Last post: 6 days ago Last view: 22 min. 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: 1920 Next: 267 Since: 04-07-17 From: Lithuania Last post: 2510 days ago Last view: 2368 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: 7394 Next: 527 Since: 03-30-17 Last post: 2593 days ago Last view: 2535 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: 1920 Next: 267 Since: 04-07-17 From: Lithuania Last post: 2510 days ago Last view: 2368 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: 7394 Next: 527 Since: 03-30-17 Last post: 2593 days ago Last view: 2535 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: 421 Next: 108 Since: 03-30-17 Last post: 2161 days ago Last view: 2139 days ago |
Posted by Hexagon12 huh, _memcpy() is a GCC function |
Nadia |
| ||
Pile of fazils Level: 24 Posts: 3/127 EXP: 75441 Next: 2684 Since: 03-29-17 From: Denmark Last post: 6 days 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: 1920 Next: 267 Since: 04-07-17 From: Lithuania Last post: 2510 days ago Last view: 2368 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/945 EXP: 1531780 Next: 45766 Since: 03-28-17 From: France Last post: 6 days ago Last view: 22 min. 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: 1920 Next: 267 Since: 04-07-17 From: Lithuania Last post: 2510 days ago Last view: 2368 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/127 EXP: 75441 Next: 2684 Since: 03-29-17 From: Denmark Last post: 6 days 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: 1920 Next: 267 Since: 04-07-17 From: Lithuania Last post: 2510 days ago Last view: 2368 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: 9 Posts: 4/12 EXP: 2189 Next: 973 Since: 04-02-17 Last post: 746 days ago Last view: 746 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/945 EXP: 1531780 Next: 45766 Since: 03-28-17 From: France Last post: 6 days ago Last view: 22 min. ago |
Lurkon01 |
| ||
Newcomer Inactive Level: 7 Posts: 5/7 EXP: 965 Next: 483 Since: 05-28-17 Last post: 2679 days ago Last view: 2261 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/945 EXP: 1531780 Next: 45766 Since: 03-28-17 From: France Last post: 6 days ago Last view: 22 min. 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.079 seconds. (2048KB of memory used) MySQL - queries: 30, rows: 117/117, time: 0.045 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |