Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed #22

Closed
shintiger opened this issue Mar 29, 2019 · 3 comments
Closed

Build failed #22

shintiger opened this issue Mar 29, 2019 · 3 comments
Labels

Comments

@shintiger
Copy link

Simply create a World instance with latest version and haxe 4.0.0-rc.1, tried target cpp, python and js.

package com.test.oimo;
import oimo.dynamics.World;
class TestOimo {
	var world:World;
	static function main(){
		world = new World();
	}
}
src/oimo/m/B.hx:181: lines 181-187 : error: { type : haxe.macro.ComplexType, name : String, expr : Null<haxe.macro.Expr> } has no field isFinal
src/oimo/m/B.hx:181: lines 181-187 :  have: Array<{ type, name, expr }>
src/oimo/m/B.hx:181: lines 181-187 :  want: Array<haxe.macro.Var>
src/oimo/m/B.hx:181: lines 181-187 : For function argument 'a'
src/oimo/collision/geometry/Geometry.hx:12: characters 1-8 : Build failure
@shviller
Copy link

shviller commented May 1, 2019

Try this fork, it seems to work with Haxe4: https://github.com/armory3d/OimoPhysics

@saharan saharan added the bug label Feb 19, 2020
@mrEuler
Copy link
Contributor

mrEuler commented Feb 21, 2020

@saharan I will push this fix also in PullRequest

@saharan
Copy link
Owner

saharan commented Feb 22, 2020

@OleksiiMaksymovVBT Thanks, that fix is also included in this part of Haxe4 migration.

OimoPhysics/src/oimo/m/B.hx

Lines 181 to 188 in b5c4da9

newVars = newVars.concat(names.map(function(name) {
return {
name: name,
type: macro:Float,
expr: null,
isFinal: false
};
}));

There might be some conflicts as I changed files a lot, but don't worry about it; I'll fix them all.

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

No branches or pull requests

4 participants