Yup, vstools seems to be culprit, i need to use VS 2010 manually to build web, but building weblibs seems have some quirks, i think you cannot output with the same file name, you need to -o it into different file name and after finished rename back to EsenthelEngine.bc. Now i have batch script to manually build it :
Code:
emcc Engine\EsenthelEngine.bc ThirdPartyLibs\Bullet\Windows\Emscripten\Release\BulletCollision.bc ThirdPartyLibs\Bullet\Windows\Emscripten\Release\BulletDynamics.bc ThirdPartyLibs\Bullet\Windows\Emscripten\Release\LinearMath.bc ThirdPartyLibs\Jpeg\Windows\Emscripten\Release\Jpeg.bc ThirdPartyLibs\LZ4\Windows\Emscripten\Release\LZ4.bc ThirdPartyLibs\LZMA\Windows\Emscripten\Release\Lzma.bc ThirdPartyLibs\Mpg123\Windows\Emscripten\Release_Generic\mpg123.bc ThirdPartyLibs\Ogg\Windows\Emscripten\Release\Ogg.bc "ThirdPartyLibs\Png\Windows\Emscripten\LIB Release\Png.bc" ThirdPartyLibs\Recast\Windows\Emscripten\Release\Recast.bc ThirdPartyLibs\Snappy\Windows\Emscripten\Release\snappy.bc ThirdPartyLibs\SQLite\Windows\Emscripten\Release\SQLite.bc ThirdPartyLibs\Theora\Windows\Emscripten\Release\Theora.bc ThirdPartyLibs\Vorbis\Windows\Emscripten\Release\Vorbis.bc "ThirdPartyLibs\Vorbis\Windows\Emscripten\Release\Vorbis File.bc" ThirdPartyLibs\Webp\Windows\Emscripten\Release\WebP.bc ThirdPartyLibs\Zlib\Windows\Emscripten\Release\Zlib.bc -o Engine\EsenthelEngineFull.bc
del Engine\EsenthelEngine.bc
ren Engine\EsenthelEngineFull.bc Engine\EsenthelEngine.bc
I have seems cannot managed to build a working webjs built, always "Exception thrown, see JavaScript console"
From javascript console :
Code:
missing function: _Z7Preloadv
console.error(text);
1 - Bas...pp.html (line 1245)
-1
1 - Bas...pp.html (line 1233)
-1
console.error(text);
1 - Bas...pp.html (line 1245)
uncaught exception: abort() at jsStackTrace@file:///C:/Users/Prodigy/Documents/Esenthel/Projects/_Build_/1%20-%20Basic%20App/Emscripten/Release/1%20-%20Basic%20App.js:853:12 stackTrace@file:///C:/Users/Prodigy/Documents/Esenthel/Projects/_Build_/1%20-%20Basic%20App/Emscripten/Release/1%20-%20Basic%20App.js:867:21 abort@file:///C:/Users/Prodigy/Documents/Esenthel/Projects/_Build_/1%20-%20Basic%20App/Emscripten/Release/1%20-%20Basic%20App.js:300727:24 __Z7Preloadv [Preload()]@file:///C:/Users/Prodigy/Documents/Esenthel/Projects/_Build_/1%20-%20Basic%20App/Emscripten/Release/1%20-%20Basic%20App.js:7682:2 Pg@file:///C:/Users/Prodigy/Documents/Esenthel/Projects/_Build_/1%20-%20Basic%20App/Emscripten/Release/1%20-%20Basic%20App.js:258785:6 hva@file:///C:/Users/Prodigy/Documents/Esenthel/Projects/_Build_/1%20-%20Basic%20App/Emscripten/Release/1%20-%20Basic%20App.js:297983:2 Runtime.dynCall@file:///C:/Users/Prodigy/Documents/Esenthel/Projects/_Build_/1%20-%20Basic%20App/Emscripten/Release/1%20-%20Basic%20App.js:189:11 Browser_mainLoop_runner/<@file:///C:/Users/Prodigy/Documents/Esenthel/Projects/_Build_/1%20-%20Basic%20App/Emscripten/Release/1%20-%20Basic%20App.js:8411:5 Browser.mainLoop.runIter@file:///C:/Users/Prodigy/Documents/Esenthel/Projects/_Build_/1%20-%20Basic%20App/Emscripten/Release/1%20-%20Basic%20App.js:6503:5 Browser_mainLoop_runner@file:///C:/Users/Prodigy/Documents/Esenthel/Projects/_Build_/1%20-%20Basic%20App/Emscripten/Release/1%20-%20Basic%20App.js:8407:3 If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.
Compilation log :
Code:
0>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.Redirect.10.props(23,3): warning MSB4011: "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Emscripten\Microsoft.Cpp.Emscripten.default.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Default.props (113,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\Prodigy\Documents\Esenthel\Projects\_Build_\1 - Basic App\Project.vcxproj]
Build started 12/28/2014 2:47:00 PM.
1>Project "C:\Users\Prodigy\Documents\Esenthel\Projects\_Build_\1 - Basic App\Project.vcxproj" on node 2 (Build target(s)).
1>ClCompile:
C:\Program Files\Emscripten\emscripten\1.25.0\emcc.bat
stdafx.cpp
Auto.cpp
Main.cpp
Commands.cpp
Link:
C:\Program Files\Emscripten\emscripten\1.25.0\emcc.bat Emscripten/Release/stdafx.o Emscripten/Release/Auto.o Emscripten/Release/Main.o Emscripten/Release/Commands.o -o "C:/Users/Prodigy/Documents/Esenthel/Projects/_Build_/1 - Basic App/Emscripten/Release/1 - Basic App.html" -O2 C:/Users/Prodigy/Documents/Esenthel/Bin/EsenthelEngine.bc --memory-init-file 1 -s ALLOW_MEMORY_GROWTH=1 --closure 0 --minify 0
1>GCCLINK : warning root: Disabling asm.js validation for memory growth (memory can grow, but you lose some amount of speed)
1>GCCLINK : warning : unresolved symbol: _Z7Preloadv
1>GCCLINK : warning : unresolved symbol: pthread_create
1>GCCLINK : warning : Output contains some very large functions (8631 lines in kna), consider building source files with -Os or -Oz, and/or trying OUTLINING_LIMIT to break them up (see settings.js; note that the parameter there affects AST nodes, while we measure lines here, so the two may not match up)
Project.vcxproj -> C:\Users\Prodigy\Documents\Esenthel\Projects\_Build_\1 - Basic App\Emscripten\Release\1 - Basic App.html
1>Done Building Project "C:\Users\Prodigy\Documents\Esenthel\Projects\_Build_\1 - Basic App\Project.vcxproj" (Build target(s)).
Build succeeded.
Time Elapsed 00:00:54.14
Publish also resulting the same error, hmm.