Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Can't get it working #35

Open
Mikepicker opened this issue May 9, 2014 · 1 comment
Open

Can't get it working #35

Mikepicker opened this issue May 9, 2014 · 1 comment

Comments

@Mikepicker
Copy link

Hello,
I'm trying to port my SFML application using this tool but there is something I don't manage to understand. Everything compiles but a bunch of warnings and errors make me think there should be something wrong. I manage to get the .js file, but when I include it inside a .html file nothing happens.

This is my compilation log:

1>------ Inizio compilazione: Progetto: MikEngine, Configurazione: Debug Emscripten ------
1>Compilazione avviata 09/05/2014 14:40:37.
1>InitializeBuildStatus:
1> Creazione di "Emscripten\Debug\MikEngine.unsuccessfulbuild". È stato specificato "AlwaysCreate".
1>ClCompile:
1> Tutti gli output sono aggiornati.
1>GCCLINK : warning root: -I or -L of an absolute path "-LC:/SFML-2.1/lib" encountered. If this is to a local system header/library, it may cause problems (local system files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
1> C:/Program Files/Emscripten/clang/e1.16.0_64bit\llvm-ar: error loading 'c:/users/mike/appdata/local/temp/tmp54umq7/sfml-graphics-s-d_23.lib': missing name terminator in string table!
1> C:/Program Files/Emscripten/clang/e1.16.0_64bit\llvm-ar: error loading 'c:/users/mike/appdata/local/temp/tmp54umq7/sfml-window-s-d_24.lib': missing name terminator in string table!
1> C:/Program Files/Emscripten/clang/e1.16.0_64bit\llvm-ar: error loading 'c:/users/mike/appdata/local/temp/tmp54umq7/sfml-system-s-d_25.lib': missing name terminator in string table!
1> C:/Program Files/Emscripten/clang/e1.16.0_64bit\llvm-ar: error loading 'c:/users/mike/appdata/local/temp/tmp54umq7/sfml-audio-s-d_26.lib': missing name terminator in string table!
1> C:/Program Files/Emscripten/clang/e1.16.0_64bit\llvm-nm: c:\users\mike\appdata\local\temp\emscripten_temp_kwfnvk\ar_output_6532_4\KERNEL32.dll: unrecognizable file type
1> C:/Program Files/Emscripten/clang/e1.16.0_64bit\llvm-nm: c:\users\mike\appdata\local\temp\emscripten_temp_kwfnvk\ar_output_6532_5\USER32.dll: unrecognizable file type
1> C:/Program Files/Emscripten/clang/e1.16.0_64bit\llvm-nm: c:\users\mike\appdata\local\temp\emscripten_temp_kwfnvk\ar_output_6532_6\GDI32.dll: unrecognizable file type
1> C:/Program Files/Emscripten/clang/e1.16.0_64bit\llvm-nm: c:\users\mike\appdata\local\temp\emscripten_temp_kwfnvk\ar_output_6532_7\WINSPOOL.DRV: unrecognizable file type
1> C:/Program Files/Emscripten/clang/e1.16.0_64bit\llvm-nm: c:\users\mike\appdata\local\temp\emscripten_temp_kwfnvk\ar_output_6532_8\COMDLG32.dll: unrecognizable file type
1> C:/Program Files/Emscripten/clang/e1.16.0_64bit\llvm-nm: c:\users\mike\appdata\local\temp\emscripten_temp_kwfnvk\ar_output_6532_9\ADVAPI32.dll: unrecognizable file type
1> C:/Program Files/Emscripten/clang/e1.16.0_64bit\llvm-ar: error loading 'c:/users/mike/appdata/local/temp/tmp54umq7/shell32_33.lib': missing name terminator in string table!
1> C:/Program Files/Emscripten/clang/e1.16.0_64bit\llvm-nm: c:\users\mike\appdata\local\temp\emscripten_temp_kwfnvk\ar_output_6532_11\ole32.dll: unrecognizable file type
1> C:/Program Files/Emscripten/clang/e1.16.0_64bit\llvm-nm: c:\users\mike\appdata\local\temp\emscripten_temp_kwfnvk\ar_output_6532_12\OLEAUT32.dll: unrecognizable file type
1> C:/Program Files/Emscripten/clang/e1.16.0_64bit\llvm-ar: error loading 'c:/users/mike/appdata/local/temp/tmp54umq7/Uuid_36.lib': missing name terminator in string table!
1> C:/Program Files/Emscripten/clang/e1.16.0_64bit\llvm-nm: c:\users\mike\appdata\local\temp\emscripten_temp_kwfnvk\ar_output_6532_14\ODBC32.dll: unrecognizable file type
1> C:/Program Files/Emscripten/clang/e1.16.0_64bit\llvm-ar: error loading 'c:/users/mike/appdata/local/temp/tmp54umq7/odbccp32_38.lib': missing name terminator in string table!
1>GCCLINK : warning : unresolved symbol: _ZN2sf6Window11setPositionERKNS_7Vector2IiEE
1>GCCLINK : warning : unresolved symbol: _ZN2sf6Sprite10setTextureERKNS_7TextureEb
1>GCCLINK : warning : unresolved symbol: _ZN2sf5ColorC1Ehhhh
1>GCCLINK : warning : unresolved symbol: _ZN2sf11SoundBufferC1Ev
1>GCCLINK : warning : unresolved symbol: _ZN2sf6Window5closeEv
1>GCCLINK : warning : unresolved symbol: _ZN2sf4Text7setFontERKNS_4FontE
1>GCCLINK : warning : unresolved symbol: _ZN2sf7Texture12loadFromFileERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS_4RectIiEE
1>GCCLINK : warning : unresolved symbol: _ZNK2sf4Text14getLocalBoundsEv
1>GCCLINK : warning : unresolved symbol: _ZNK2sf6Window11getPositionEv
1>GCCLINK : warning : unresolved symbol: _ZN2sf11SoundSource8setPitchEf
1>GCCLINK : warning : unresolved symbol: _ZN2sf5ClockC1Ev
1>GCCLINK : warning : unresolved symbol: _ZN2sf11SoundBuffer12loadFromFileERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE
1>GCCLINK : warning : unresolved symbol: _ZN2sf4Text8setColorERKNS_5ColorE
1>GCCLINK : warning : unresolved symbol: _ZNK2sf4Text15getGlobalBoundsEv
1>GCCLINK : warning : unresolved symbol: _ZN2sf5Mouse11getPositionERKNS_6WindowE
1>GCCLINK : warning : unresolved symbol: _ZN2sf4FontC1Ev
1>GCCLINK : warning : unresolved symbol: _ZN2sf5Mouse15isButtonPressedENS0_6ButtonE
1>GCCLINK : warning : unresolved symbol: _ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE
1>GCCLINK : warning : unresolved symbol: _ZN2sf7TextureC1Ev
1>GCCLINK : warning : unresolved symbol: _ZN2sf8Keyboard12isKeyPressedENS0_3KeyE
1>GCCLINK : warning : unresolved symbol: _ZN2sf4TextC1Ev
1>GCCLINK : warning : unresolved symbol: _ZN2sf12RenderWindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE
1>GCCLINK : warning : unresolved symbol: _ZN2sf4Text9setStringERKNS_6StringE
1>GCCLINK : warning : unresolved symbol: _ZN2sf5Sound4playEv
1>GCCLINK : warning : unresolved symbol: _ZN2sf5Clock7restartEv
1>GCCLINK : warning : unresolved symbol: _ZN2sf13Transformable11setPositionEff
1>GCCLINK : warning : unresolved symbol: _ZN2sf6Window9pollEventERNS_5EventE
1>GCCLINK : warning : unresolved symbol: _ZN2sf5Sound9setBufferERKNS_11SoundBufferE
1>GCCLINK : warning : unresolved symbol: _ZN2sf6SpriteC1Ev
1>GCCLINK : warning : unresolved symbol: _ZNK2sf7Texture7getSizeEv
1>GCCLINK : warning : unresolved symbol: _ZN2sf11SoundSource9setVolumeEf
1>GCCLINK : warning : unresolved symbol: _ZN2sf6StringC1EPKcRKNSt3__16localeE
1>GCCLINK : warning : unresolved symbol: _ZNK2sf4Time9asSecondsEv
1>GCCLINK : warning : unresolved symbol: _ZN2sf4Text16setCharacterSizeEj
1>GCCLINK : warning : unresolved symbol: _ZN2sf6StringC1ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS1_6localeE
1>GCCLINK : warning : unresolved symbol: _ZNK2sf6Sprite10getTextureEv
1>GCCLINK : warning : unresolved symbol: _ZN2sf6Window7displayEv
1>GCCLINK : warning : unresolved symbol: _ZN2sf5SoundC1Ev
1>GCCLINK : warning : unresolved symbol: _ZN2sf12RenderTarget5clearERKNS_5ColorE
1>GCCLINK : warning : unresolved symbol: _ZN2sf4Font12loadFromFileERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE
1>GCCLINK : warning : unresolved symbol: _ZN2sf9VideoModeC1Ejjj
1>GCCLINK : warning : unresolved symbol: _ZN2sf12RenderStates7DefaultE
1> MikEngine.vcxproj -> C:\Users\Mike\Documents\Visual Studio 2010\Projects\MikEngine\Emscripten\Debug\MikEngine.js
1>FinalizeBuildStatus:
1> Eliminazione del file "Emscripten\Debug\MikEngine.unsuccessfulbuild" in corso.
1> Aggiornamento timestamp di "Emscripten\Debug\MikEngine.lastbuildstate".
1>
1>Compilazione completata.
1>
1>Tempo trascorso 00:00:09.08
========== Compilazione: 1 completate, 0 non riuscite, 0 aggiornate, 0 ignorate ==========

Thank you in advance.

@juj
Copy link
Owner

juj commented Jul 7, 2014

Sorry, I missed this one when it was reported.

There seems to be an issue in your project that migrating from the native Win32 project, the configuration carried over link directives to native .dll files. Try double-checking through the property pages to remove those link directives. It looks like the build was not complete and did not include all the files. Check where those symbols should be implemented in the project, and try to see if they even get built in the project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants