Skip to content
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

Native win32 build #36

Open
IngwiePhoenix opened this issue Feb 16, 2021 · 1 comment
Open

Native win32 build #36

IngwiePhoenix opened this issue Feb 16, 2021 · 1 comment

Comments

@IngwiePhoenix
Copy link

So, I was hoping to use this in conjunction with the V language (https://github.com/vlang/v) but had to learn quickly that just cl jsish.c /Fejsish.exe wouldn't work, because:

C:\Users\ingwi\work\jsish\src/jsi.h(42): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "dirent.h": No such file or directory

dirent.h is, from what I know, a POSIX only API and thus not available in Microsoft's libc. Do you see a possibility for a native build that does not use MinGW?

The idea to create an amalgam by just #includeing all the main source files is pretty smart and this would be a great way to use jsish within V; however, the build would, right now, fail on Windows via MSVC due to the absense of dirent.h

Will this eventually be worked on?

Kind regards,
Ingwie

@pcmacdon
Copy link
Owner

pcmacdon commented Feb 16, 2021

Well at the moment there is no plan to support using Microsoft tools to compile Jsi.
I suppose there is a reason you can't just compile V with mingw, eg. the graphics library.

I tried running tetris (after installing libxi-dev / libxcursor-dev) but got this on ubuntu 20.04:

/examples/tetris/tetris
gg error: GLX: failed to create GL context
7f76c230218b : at ???: RUNTIME ERROR: abort() called
/home/pmacdona/tmp/v-master/thirdparty/sokol/sokol_app.h:8642: by _sapp_glx_create_context
/home/pmacdona/tmp/v-master/thirdparty/sokol/sokol_app.h:9357: by _sapp_linux_run
/home/pmacdona/tmp/v-master/thirdparty/sokol/sokol_app.h:9418: by sapp_run
/tmp/v/tetris.4080710481993985506.tmp.c:15365: by sokol__sapp__run
/tmp/v/tetris.4080710481993985506.tmp.c:16417: by gg__Context_run
/tmp/v/tetris.4080710481993985506.tmp.c:17477: by main__main
/tmp/v/tetris.4080710481993985506.tmp.c:17994: by main

I can run glxgears at 60fps.

Ah, I see it is a known problem:
#vlang/v#6171

This was referenced Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants