saharan / OimoPhysics

A cross-platform 3D physics engine
MIT License
863 stars 68 forks source link

Type not found : oimo.common.Mat4 when attempting to build demo's #16

Closed nickmcmillan closed 5 years ago

nickmcmillan commented 6 years ago

I'm attempting to build the demos as per the instructions in the project Readme.

I've installed Haxe Compiler 4.0.0-preview and from the demos folder I've run haxe -cp src -main demo.js.DemoJS -js index.js. It returns the following error:

src/demo/common/DemoBase.hx:4: characters 8-24 : Type not found : oimo.common.Mat4

I'm new to Haxe so might be missing something obvious. Any help would be appreciated!

saharan commented 6 years ago

Hello,

Have you added the main source folder (not demo/src/) to the class path? The demo's source folder is isolated (because it's not necessarily needed) from the main one, so you have to "merge" them somehow. It's accomplished by adding the main source folder to the class path, or merging the two folders directly.

nickmcmillan commented 5 years ago

That did the trick. Thanks @saharan.