Giter VIP home page Giter VIP logo

Comments (15)

trzy avatar trzy commented on August 20, 2024

from supermodel.

RavenMacDaddy avatar RavenMacDaddy commented on August 20, 2024

Good, that gives us a more informed starting point - cheers.

from supermodel.

BlackPowerade avatar BlackPowerade commented on August 20, 2024

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:
image
Yet I know gcc can find the includes, it looks in them earlier:
image
SDL's include folder is properly populated:
image
And SDL files are present under libs:
image

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.

trzy avatar trzy commented on August 20, 2024

from supermodel.

BlackPowerade avatar BlackPowerade commented on August 20, 2024

D:\msys64\mingw64\include\SDL2
D:\msys64\mingw64\lib

from supermodel.

trzy avatar trzy commented on August 20, 2024

from supermodel.

BlackPowerade avatar BlackPowerade commented on August 20, 2024

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.

BlackPowerade avatar BlackPowerade commented on August 20, 2024

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:
image
I'll keep going at it.

from supermodel.

ToBul avatar ToBul commented on August 20, 2024

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.

BlackPowerade avatar BlackPowerade commented on August 20, 2024

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.
image
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...
image
Also thanks @ToBul, I've never used C, I would have never figured out the header stuff.

from supermodel.

ToBul avatar ToBul commented on August 20, 2024

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.

RavenMacDaddy avatar RavenMacDaddy commented on August 20, 2024

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.

ToBul avatar ToBul commented on August 20, 2024

Edit.
Just need to change makefiles if using brew install. No big deal after all.

from supermodel.

trzy avatar trzy commented on August 20, 2024

from supermodel.

BlackPowerade avatar BlackPowerade commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.