Views: 23,291,523 | Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search | 12-11-24 10:20 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: 1932 Next: 255 Since: 04-07-17 From: Lithuania Last post: 2545 days ago Last view: 2403 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: 1541387 Next: 36159 Since: 03-28-17 From: France Last post: 41 days ago Last view: 9 hours ago |
Hexagon12 |
| ||
Half-eaten melon Normal user Level: 8 Posts: 2/11 EXP: 1932 Next: 255 Since: 04-07-17 From: Lithuania Last post: 2545 days ago Last view: 2403 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: 1541387 Next: 36159 Since: 03-28-17 From: France Last post: 41 days ago Last view: 9 hours 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: 1932 Next: 255 Since: 04-07-17 From: Lithuania Last post: 2545 days ago Last view: 2403 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: 7440 Next: 481 Since: 03-30-17 Last post: 2628 days ago Last view: 2570 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: 1932 Next: 255 Since: 04-07-17 From: Lithuania Last post: 2545 days ago Last view: 2403 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: 7440 Next: 481 Since: 03-30-17 Last post: 2628 days ago Last view: 2570 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: 424 Next: 105 Since: 03-30-17 Last post: 2196 days ago Last view: 2174 days ago |
Posted by Hexagon12 huh, _memcpy() is a GCC function |
Nadia |
| ||
Pile of fazils Level: 24 Posts: 3/127 EXP: 75915 Next: 2210 Since: 03-29-17 From: Denmark Last post: 41 days ago Last view: 10 hours 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: 1932 Next: 255 Since: 04-07-17 From: Lithuania Last post: 2545 days ago Last view: 2403 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: 1541387 Next: 36159 Since: 03-28-17 From: France Last post: 41 days ago Last view: 9 hours 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: 1932 Next: 255 Since: 04-07-17 From: Lithuania Last post: 2545 days ago Last view: 2403 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: 75915 Next: 2210 Since: 03-29-17 From: Denmark Last post: 41 days ago Last view: 10 hours 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: 1932 Next: 255 Since: 04-07-17 From: Lithuania Last post: 2545 days ago Last view: 2403 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: 2203 Next: 959 Since: 04-02-17 Last post: 781 days ago Last view: 781 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: 1541387 Next: 36159 Since: 03-28-17 From: France Last post: 41 days ago Last view: 9 hours ago |
Lurkon01 |
| ||
Newcomer Inactive Level: 7 Posts: 5/7 EXP: 971 Next: 477 Since: 05-28-17 Last post: 2714 days ago Last view: 2296 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: 1541387 Next: 36159 Since: 03-28-17 From: France Last post: 41 days ago Last view: 9 hours 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.053 seconds. (2048KB of memory used) MySQL - queries: 30, rows: 118/118, time: 0.032 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |