haxeui / hxWidgets

Haxe externs (and wrappers) for wxWidgets
MIT License
77 stars 22 forks source link

Compile error #22

Closed sumo961 closed 8 years ago

sumo961 commented 8 years ago

Hi,

I'm trying to compile on Mac (10.10.5). I installed wxwidgets 3.0.1 via macports, but I'm not sure that;s the issue. Compile starts, but then stops with an error:

Error: ./src/hx/widgets/StaticBox.cpp:59:14: error: no viable overloaded '=' this->_ref = boxRef;


/usr/lib/haxe/lib/hxcpp/3,2,205/include/cpp/Pointer.h:235:21: note: candidate function not viable: no known conversion from 'Reference<wxStaticBox>' to 'const Reference<wxWindow>' for 1st argument
   inline Reference operator=( const Reference &inRHS ) { return ptr = inRHS.ptr; }
                    ^
1 error generated.

Any idea why this happens?
ianharrigan commented 8 years ago

You need the git version of hxcpp currently.

sumo961 commented 8 years ago

Installed current github version of hxcpp. Now I'm getting this:

Error: ./src/hx/widgets/GLCanvas.cpp:47:24: error: invalid operands to binary expression ('Array' and 'null') bool tmp2 = (options != null()); HX_STACK_VAR(tmp2,"tmp2");

ianharrigan commented 8 years ago

Right, seems like a separate issue. What happens if you remove GLCanvas and any references? Also, what OS are you using?

Had a bit of a pain implementing GLCanvas a while back so probably related to that. Will check tomorrow on a VM when i get a moment.

Cheers, Ian

sumo961 commented 8 years ago

Will try removing GLCanvas later - I'm on OS X 10.10.5

Cheers,

H.

On Sat, Apr 2, 2016 at 8:09 PM, Ian Harrigan notifications@github.com wrote:

Right, seems like a separate issue. What happens if you remove GLCanvas and any references? Also, what OS are you using?

Had a bit of a pain implementing GLCanvas a while back so probably related to that. Will check tomorrow on a VM when i get a moment.

Cheers, Ian

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ianharrigan/hxWidgets/issues/22#issuecomment-204831860

sumo961 commented 8 years ago

I removed references to GLCanvas. Now I get:

./src/haxe/Resource.cpp:35:20: error: invalid operands to binary expression ('Array' and 'null') bool tmp = (array == null()); HX_STACK_VAR(tmp,"tmp");

ibilon commented 8 years ago

That's a hxcpp error, I've been investigating and there's a couple things with the latest hxcpp that don't work well with the codebase.

Thankfully haxe 3.3 rc1 will be out soon and that means a haxelib release of hxcpp (and so not having to be compatible with all commits of in progress dev).

ianharrigan commented 8 years ago

So hxWidgets isnt working with git hxcpp? :/

ibilon commented 8 years ago

More like latest hxcpp has some issues, but by extension yes.

(Note that I don't blame hxcpp, we are using a dev version after all)

ianharrigan commented 8 years ago

Right, fair enough, good to know. Are there open issues on hxcpp related to these? Presumably they arent hxWidgets issues only.

ibilon commented 8 years ago

I got two pull request merged,

and opened two issues: one for the array == null https://github.com/HaxeFoundation/hxcpp/issues/404 and another on casting https://github.com/HaxeFoundation/hxcpp/issues/406

sumo961 commented 8 years ago

So is there a specific hxcpp version that works?

ianharrigan commented 8 years ago

im on 3.2.205

ibilon commented 8 years ago

You can do git checkout 024c25f0690d99445f457cd5dfdf88035c61ee19 in hxcpp, that's the last commit that work for me.

sumo961 commented 8 years ago

Thanks, Valentin. With 024c25f I was able to compile on a Mac.

Observations:

On Sun, Apr 3, 2016 at 11:48 AM, Valentin Lemière notifications@github.com wrote:

You can do git checkout 024c25f0690d99445f457cd5dfdf88035c61ee19 in hxcpp, that's the last commit that work for me.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ianharrigan/hxWidgets/issues/22#issuecomment-205001282

ianharrigan commented 8 years ago

Is this still an issue? The structure has been changed quite heavily so it would be good to know if this is still and issue or if it should be closed.