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

How do you use this ? #1

Closed
hugoam opened this issue Jan 25, 2017 · 4 comments
Closed

How do you use this ? #1

hugoam opened this issue Jan 25, 2017 · 4 comments

Comments

@hugoam
Copy link

hugoam commented Jan 25, 2017

I'm very interested in using this, however I can't figure it out. Could you write a very short walkthrough ?
When I try to add Emscripten platform to an existing project it just fails at various points.
I would be interested to know what the project file should contain to have a correct solution with Emscripten as a target platform.

@crosire
Copy link
Owner

crosire commented Jan 25, 2017

Should work now. Just copy the files as specified in the readme, create a new console project in Visual Studio, open the Configuration Manager, add the Emscripten platform to your project (make sure you select the "<Empty>" option for "Copy settings from") and set the Configuration Type to "HTML + JavaScript (.html)" in your project properties.

@hugoam
Copy link
Author

hugoam commented Jan 25, 2017

I somehow managed to write a bare minimum project file that worked in the mean time.
Thanks for the fix !
I have another small issue : it seems when compiling that __EMSCRIPTEN__ is not defined which causes some compilation errors in emscripten std library. I suppose that should be handled by the compiler itself so I'm wondering what's wrong ?

@crosire
Copy link
Owner

crosire commented Jan 25, 2017

__EMSCRIPTEN__ should be defined (see https://github.com/crosire/vs-toolsets/blob/master/Platforms/Emscripten/Platform.Common.props#L67). You can try setting it in the project properties manually though,

@hugoam
Copy link
Author

hugoam commented Jan 25, 2017

My issue was again, somewhere else than what I thought. Thanks :)

@hugoam hugoam closed this as completed Jan 25, 2017
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