aerys / minko

3D framework for web, desktop and mobile devices.
http://minko.io
Other
904 stars 210 forks source link

HTML5 cannot find path #228

Closed ghost closed 8 years ago

ghost commented 8 years ago

I followed the exact instructions found at Compiling SDK for HTML5, but ran afoul the following error:

2015-10-23 20_18_12-c__windows_system32_cmd exe

ghost commented 8 years ago

I should mention, this is an entirely new application. I just copied the skeleton and renamed it.

warrenseine commented 8 years ago

The %MINKO_HOME% token should have been replaced by the actual path. Can you make sure you have defined the environment variable?

ghost commented 8 years ago

2015-10-24 10_20_01-environment variables

It's well defined, and I can compile Minko normally, so it seems to be working. I've rebooted several times, so the whole system should be seeing the variable, and a quick echo in command prompt shows it is indeed working.

warrenseine commented 8 years ago

Hum, maybe there's an issue on the master branch. Can you try dev?

ghost commented 8 years ago

Sure, let me pull it and do a recompile.

ghost commented 8 years ago

@warrenseine So, I pulled dev branch and tried to run build_html5.bat, and it didn't work.

However, I also noticed that the dev branch has no tool folder. Which build_html5.bat requires.

2015-10-24 14_08_34-aerys_minko at dev

So it couldn't work, even in theory.

ghost commented 8 years ago

@warrenseine If I force it to use premake5 by making the folder or pointing it to bin/windows32/, I can get HTML5 to at least compile, but it seems unable to link or find libraries:

2015-10-24 14_16_22-c__windows_system32_cmd exe

With several pages of complaints about unresolved symbols.

ghost commented 8 years ago

Even cut down to just SDL, it fails. Cutting out SDL, it still can't find the minko-framework. Not sure why.

warrenseine commented 8 years ago

I just tested and it runs fine on the dev branch when running solution_gmake_min.bat then build_html5_release.bat. What errors do you get?

ghost commented 8 years ago

I'm getting compiler errors during build_html5_release.bat:

2015-10-24 15_06_02-c__windows_system32_cmd exe

warrenseine commented 8 years ago

I've no idea what's going on (first time I see this error). Anyway, Emscripten 1.25 is quite old. We're compiling with Emscripten 1.29 at least. The most recent is 1.34.1 in the SDK. Can you upgrade?

ghost commented 8 years ago

@warrenseine Absolutely! The documentation said 1.25, so I tested on latest and that version, thus the outdated version. Should I upgrade to 1.34.1?

warrenseine commented 8 years ago

This documentation needs a major cleanup. Yes, you should.

ghost commented 8 years ago

Update: I can confirm that mainline, out of the box, with your instructions, is capable of working with 1.25. Dev channel does not work, going to try upgrading emscripten to newest.

ghost commented 8 years ago

After very carefully upgrading and a lot of retries, I can now use 1.29 to consistently build mainline.

Dev channel fails on SDL_Audio, and I can't seem to get past it:

2015-10-24 22_31_52-c__windows_system32_cmd exe

I'll repeat on higher versions of emscripten.

ghost commented 8 years ago

1.30 had clang/LLVM just straight up crash, 1.34 had SDL_Audio problems. Guess I'm stuck with 1.29 on mainline.

2015-10-24 23_08_29-glossary of numismatics - wikipedia the free encyclopedia - opera

warrenseine commented 8 years ago

I've just pushed a ton of changed to dev. It may worth it to try again.

ghost commented 8 years ago

@warrenseine Yeah! It compiles now on 1.29. However, skeleton/build_html5.bat does not, and cannot, work; it points to %MINKO_HOME%/tools, which no longer exists. I tried to point it towards %MINKO_HOME%/script/premake.bat, but I couldn't get it to work. Perhaps you could point it towards %MINKO_HOME%/bin/windows32/premake.exe?

ghost commented 8 years ago

@warrenseine Dev channel compiles but won't render anything.

JMLX42 commented 8 years ago

@renindustries open a new issue about that please