Comments (15)
from supermodel.
Good, that gives us a more informed starting point - cheers.
from supermodel.
I already have the supporting libraries installed with mingw, including SDL. It even starts compiling.
The problem I am running into is getting GCC to include SDL. No matter what I set for
SDL_INCLUDE_DIR
and SDL_LIB_DIR
in https://github.com/trzy/Supermodel/blob/master/Makefiles/Makefile.Win32#L52,L53
It fails to find SDL.h
.
It throws this error everytime:
Yet I know gcc can find the includes, it looks in them earlier:
SDL's include folder is properly populated:
And SDL files are present under libs:
It's possible to have supermodel be automatically built, I just need to figure out what the makefile wants. In the meantime, I'll see if I can get linux and MacOS builds going.
from supermodel.
from supermodel.
D:\msys64\mingw64\include\SDL2
D:\msys64\mingw64\lib
from supermodel.
from supermodel.
Found the issue. For some reason
https://github.com/trzy/Supermodel/blob/master/Makefiles/Makefile.Win32#L96 $(addprefix -I,$(sort $(PLATFORM_INCLUDE_DIR)))
Wasn't adding the paths to the compiler. I have them hard coded (for now) and now it has an issue with linking, but I think I can fix it. Will update later.
from supermodel.
Running into issue with unicode and minGW's lack of some kind of support.
This https://stackoverflow.com/questions/58324230/undefined-reference-to-winmain-c-mingw says you only need to add -municode
to the compiler options, but in doing so it now produces different errors about converting char* to LPCWSTR:
I'll keep going at it.
from supermodel.
FWIW, I tried this a while ago and also found the GitHub VM file paths way too funky. There, but not there???
Edit.
Just need to change makefiles if using brew install. No big deal after all.
from supermodel.
More news.
It took me some time before I finally remembered paths were case sensitive on *nix, but when I did Supermodel pretty much built without any problems. It throws some errors about format overflows, but still compiles and links. I'll take that as a win.
MacOS is a different story, without -Wno-error=implicit-function-declaration
it fails in m68kcpu and m86kopnz.
With it, it fails in linking; complaining about not finding SDL, but that doesn't really make sense when it was able to find SDL.h...
Also thanks @ToBul, I've never used C, I would have never figured out the header stuff.
from supermodel.
It throws some errors about format overflows
I had another go at this.
What looks like overflow errors is when you build with netboard but forget to amend SDL net #includes.
Once you do that it builds Win and Ubuntu cleanly and you can leave the Warning settings alone.
Hopefully this will go some way to helping OSX build too. ??
from supermodel.
Hey @ToBul, give yourself some credit.
I only know a bit about making manifests and barely see any logic in programming – that's why I wanted to put the right people in contact. :)
from supermodel.
Edit.
Just need to change makefiles if using brew install. No big deal after all.
from supermodel.
from supermodel.
Yes, MSYS2 is being used. We can get supermodel to build on windows and linux in actions.
I've given up on getting MacOS builds for now though. I don't have a Mac to test it on, and I can't really replicate actions environment with docker.
from supermodel.
Related Issues (20)
- Request: GroovyMISTER output path HOT 5
- Daytona 2 PE Scene transitions HOT 2
- Black/Blue Flashes HOT 10
- Supermodel crashes on startup when using wayland HOT 6
- validate roms HOT 3
- "make" system not robust for different Windows and MacOS Compilation HOT 5
- Cannot run any roms on 0.3a, [Error] Could not open '<rom>.zip'. No issue with 0.2a. HOT 5
- GAMES.XML HOT 4
- [vf3tb] Dural stage BGM disappears in the middle of the game
- Legacy renderer segfault on macOS HOT 1
- An old ancient mistake HOT 8
- Request: Appimage binary HOT 1
- Increase configurability for `~/.config` and `~/.local` paths
- Enable scuddxo commit has broken some 1.5 step games? HOT 1
- scuddxo glitches HOT 1
- [Linux][lamachin] Black screen when launching L.A. Machineguns HOT 10
- [Linux] Graphical problem choosing fullscreen option HOT 2
- [Linux][lostwsga] Aiming problem HOT 2
- Racing games are unplayable HOT 10
- [eca] 4-Speed Gear Lever Inputs Not Mapped Correctly HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supermodel.