-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCamlSDL2 fails to build and install (opam) on Windows, cygwin #31
Comments
(You can set the English language with LANG=en) Have you check what is the path for the headers? |
In the command line that produced the error the path for headers is Header files in the C programming language are files with In both C with gcc and OCaml this path is provided by |
SDL headers are present in #include <SDL2/SDL.h>
int
main(int argc, char *argv[])
{
SDL_Init(SDL_INIT_VIDEO);
SDL_Window *win = SDL_CreateWindow("foobar",
SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED,
200, 200,
SDL_WINDOW_SHOWN);
SDL_Delay(500);
SDL_Quit();
} compiles and runs fine with Interestingly, the I also noticed that the command that errors out uses the i686 gcc instead of the x86_64. I tried to "extract" a c compiler command from the Also, I think it's worth to mention that this is a windows's error message, not a cygwin/posix one. |
In the logs you provided, the command line was: If this one works: You could try: (If you want to share a mini-game on the internet (for example on Itch.io), there are still people using old 32bit computers. If you compile for 64bit they will not be able to run your game. If you compile for 32bit, people with 64bit computers will be able to run your game fine.) |
Hi again, I just see on your page that you know some assembly, you may be interested to have a look at the assembly created by ocamlopt with
|
I feel kinda dumb now. I forgot that the The only change that has to be made to build successfully on windows is removing the BTW thanks for all of this info, it surely will help me later :) |
Building on windows fails with "The system cannot find the path specified." (check the log.txt file. I translated the error message here in the issue as the original one in the logfile is in polish).
As the result, opam's CI system automatically prohibited this package from installing on win32:
opam install ocamlsdl2
results with
[ERROR] ocamlsdl2 unmet availability conditions, e.g. os != "win32"
Details:
ocamlc --version
: 4.11.0sdl2-config --version
: 2.0.22winver
: Windows Server 1809This is the only spare virt machine on which I could test it on. I'd be glad if anyone would test this on other windows versions.
The text was updated successfully, but these errors were encountered: