Thanks for your reply! So im able to generate and build MakeFiles with the Emscripten toolchain and VS solutions. I then can create a .js file by running 'mingw32-make'. However in VS,when i try and build the solution file with the included Emscripten files (or when i just simply include the "emscripten.h"), I am unable to build and debug as there are errors within the header file. Although building just the .cpp to .js from the cmd does seem to accept the Emscripten header file and work as expected, Is there anyway around this or would i have to just edit code within VS then build via the cmd?
In other words, i want to be able to build and debug in VS within the Emscripten header(which is what i cant do) then convert to .js via the cmd (which is the thing i can do). Would also like to know the support of Web Audio within Emscripten! :) On Sunday, 4 December 2016 02:36:39 UTC+1, jj wrote: > > Hi Hixx, > > sorry to say, unfortunately the Visual Studio integration that Emscripten > has only worked with Visual Studio 2010, and even with that, there were > quite a few problems, and the development was ceased, because it ended up > not being as flexible as one would have hoped. > > What I currently recommend people to do if they want to use Visual Studio > with Emscripten is to start using CMake as their project build configurator > system. Emscripten has a strong well maintained support for CMake, and it > allows you to generate Visual Studio projects (which build natively to > Windows), as well as Emscripten build Makefiles to be built with e.g. MinGW > Make or NMake. This way you can utilize Visual Studio as an IDE, and build > with Emscripten on the command line at the same time. > > 2016-11-29 15:48 GMT+02:00 Hixx <[email protected] <javascript:>>: > >> Hi. >> >> >> So i have been trying to set up Emscripten for many years *cough* weeks >> and i keep getting the same issues, despite going from Visual Studio 2013 >> to 2010 then back and forth, aswell as reinstalling the SDK numerous of >> times. I use Windows and im currently using Visual Studio 2013. Ive set up >> the solution configuration and included the include files of Emscripten >> into the include directories. I hope that was all i needed to do? >> >> The first issue is that when i try and build the test file >> 'openal_buffers.c' within Visual Studio, i get 104 errors, most of which >> are syntax and IntelliSense errors which seem to be situated within >> 'emscripten.h'. Like.... >> >> Error 1 error C2143: syntax error : missing ')' before '(' C:\Program >> Files\Emscripten\emscripten\1.35.0\system\include\emscripten\emscripten.h >> 34 1 Test1 >> Error 2 error C2091: function returns function C:\Program Files\ >> Emscripten\emscripten\1.35.0\system\include\emscripten\emscripten.h 34 1 >> Test1 >> >> >> >> This is sometimes the case with some test files but some of them can >> compile. This one cant though. >> >> Another issue is that as it states in the great bible of Emscripten...... >> >> "First make sure that the Emscripten platform configuration is active, >> right-click on a project, and then choose Properties to open the Project >> properties dialog. >> The Project Properties should contain two tree nodes: Clang C/C++ and >> Emcc Linker. These allow you to specify the desired compilation options." >> >> >> I however cant see these nodes, even when the Emscripten configuration is >> active. >> >> Im a complete newb with Visual Studio and Emscripten so maybe there is >> something obvious that i missed out? Would i have to manually build >> Emscripten from source? >> >> >> Thanks for your help in advance. >> >> >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "emscripten-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
