haxeui / hxWidgets

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

MacOS Building problems #85

Closed BushTrain460615 closed 1 year ago

BushTrain460615 commented 1 year ago

Error: ./src/hx/widgets/TaskBarIcon.cpp:86:36: error: no viable conversion from 'wxIcon' to incomplete type 'const wxBitmapBundle' HXDLIN( 27) ((_hx_tmp)).SetIcon(_hx_tmp1,_hx_tmp2); ^~~~ /opt/homebrew/include/wx-3.2/wx/taskbar.h:21:7: note: forward declaration of 'wxBitmapBundle' class wxBitmapBundle; ^ /opt/homebrew/include/wx-3.2/wx/osx/taskbarosx.h:33:40: note: passing argument to parameter 'icon' here bool SetIcon(const wxBitmapBundle& icon, const wxString& tooltip = wxEmptyString); ^ ./src/hx/widgets/TaskBarIcon.cpp:108:36: error: no viable conversion from 'wxIcon' to incomplete type 'const wxBitmapBundle' HXDLIN( 48) ((_hx_tmp)).SetIcon(_hx_tmp1,_hx_tmp2); ^~~~ /opt/homebrew/include/wx-3.2/wx/taskbar.h:21:7: note: forward declaration of 'wxBitmapBundle' class wxBitmapBundle; ^ /opt/homebrew/include/wx-3.2/wx/osx/taskbarosx.h:33:40: note: passing argument to parameter 'icon' here bool SetIcon(const wxBitmapBundle& icon, const wxString& tooltip = wxEmptyString);

When I try to build a crash reporter it just gives me this error

BushTrain460615 commented 1 year ago

Update It's when I build anything also I reinstalled the brew thing and it still won't work

ianharrigan commented 1 year ago

Are you using hxWidgets git version? What version of wxWidgets? There seems to be some inconsistencies between wx versions.

BushTrain460615 commented 1 year ago

im using the stable version of HxWidgets the newest stable version of wxWidgets

ianharrigan commented 1 year ago

Can you try the git version of hxwidgets?

BushTrain460615 commented 1 year ago

sure

BushTrain460615 commented 1 year ago

Error: ./src/hx/widgets/TaskBarIcon.cpp:86:36: error: no viable conversion from 'wxIcon' to incomplete type 'const wxBitmapBundle' HXDLIN( 27) ((_hx_tmp)).SetIcon(_hx_tmp1,_hx_tmp2); ^~~~ /opt/homebrew/include/wx-3.2/wx/taskbar.h:21:7: note: forward declaration of 'wxBitmapBundle' class wxBitmapBundle; ^ /opt/homebrew/include/wx-3.2/wx/osx/taskbarosx.h:33:40: note: passing argument to parameter 'icon' here bool SetIcon(const wxBitmapBundle& icon, const wxString& tooltip = wxEmptyString); ^ ./src/hx/widgets/TaskBarIcon.cpp:108:36: error: no viable conversion from 'wxIcon' to incomplete type 'const wxBitmapBundle' HXDLIN( 48) ((_hx_tmp)).SetIcon(_hx_tmp1,_hx_tmp2); ^~~~ /opt/homebrew/include/wx-3.2/wx/taskbar.h:21:7: note: forward declaration of 'wxBitmapBundle' class wxBitmapBundle; ^ /opt/homebrew/include/wx-3.2/wx/osx/taskbarosx.h:33:40: note: passing argument to parameter 'icon' here bool SetIcon(const wxBitmapBundle& icon, const wxString& tooltip = wxEmptyString); ^ 2 errors generated. Error: Build failed

I think I got the same error

BushTrain460615 commented 1 year ago
Screenshot 2022-09-03 at 10 33 21 AM
BushTrain460615 commented 1 year ago
Screenshot 2022-09-03 at 10 50 39 AM
BushTrain460615 commented 1 year ago
Screenshot 2022-09-03 at 10 58 23 AM

here are the errors I get if I remove haxeui-hxwidgets

ianharrigan commented 1 year ago

hmmm, what about using git everything? Including wxWidgets, so:

BushTrain460615 commented 1 year ago

ok I can try that

BushTrain460615 commented 1 year ago

I got 1 error

BushTrain460615 commented 1 year ago

../src/common/imagtiff.cpp:37:14: fatal error: 'tiff.h' file not found

include "tiff.h"

         ^~~~~~~~

1 error generated. make: *** [corelib_imagtiff.o] Error 1

BushTrain460615 commented 1 year ago

https://github.com/BushTrain460615/stupid-crash-reporter-errors/blob/main/errors.txt

Here is a whole list of errors I get after doing that

ianharrigan commented 1 year ago

You sure you built wx correctly from git? And verified the version with wx-config --version

Can you build / run the wx samples? (not haxe, not haxeui, c++)

BushTrain460615 commented 1 year ago

../src/common/imagtiff.cpp:37:14: fatal error: 'tiff.h' file not found

include "tiff.h"

^~~~ 1 error generated. make: *** [corelib_imagtiff.o] Error 1

This is what happens when I try to build wxWidgets

BushTrain460615 commented 1 year ago

I fixed it

BushTrain460615 commented 1 year ago

so what do I have to build and also how do I set it as the main wxWidgets

BushTrain460615 commented 1 year ago
Screenshot 2022-09-03 at 6 20 48 PM

when building with c++ it works

ianharrigan commented 1 year ago

Great... was the issue about the sub modules? Ie, when you cloned it via git you didnt init / clone the sub modules?

Anyways, now thats working you should be able to open a new command window and type ./wx-config --version and see the new version.

After that, try and build a hxWidgets / haxeui-hxwidgets application and see what happens, you want to try:

BushTrain460615 commented 1 year ago
Screenshot 2022-09-04 at 8 54 05 AM

I don't think this is supposed to happen

BushTrain460615 commented 1 year ago

https://user-images.githubusercontent.com/72326501/188336019-bb935420-4c16-41f7-a828-890ac4307187.mov

here is what happens when I try to build one of the samples

BushTrain460615 commented 1 year ago

so Is there nothing you can do to help

ianharrigan commented 1 year ago

OK, so just to understand, you are using git "everything", right? wx c++ samples compile and run fine, but haxeui-hxwidgets samples dont... that accurate?

Ill try later on my mac and see what i get.

Cheers, Ian

BushTrain460615 commented 1 year ago

I did git everything and the wx c++ samples do work idk what happened but I might try and test something later

ianharrigan commented 1 year ago

OK, so i just tested on my mac and i had no issues what so ever:

You might want to double check you are using git everything, a good idea would be to get rid of the haxelibs (you can just delete the folders in haxelib) and start again, another alternative is to use haxelib dev haxeui-core /path/to/haxeui-core and then manage that folder external to haxelib (sometimes haxelib git seems to do weird things).

Cheers, Ian

BushTrain460615 commented 1 year ago

i will try this when i get back to my laptop

BushTrain460615 commented 1 year ago
Screenshot 2022-09-14 at 6 49 07 PM
ianharrigan commented 1 year ago

im not sure what that error means what is "//this"... where is that?

BushTrain460615 commented 1 year ago

I figured it out

ianharrigan commented 1 year ago

What was the problem?

BushTrain460615 commented 1 year ago

ran make -j3 (wait for ages :) )

Screenshot 2022-09-21 at 12 36 49 PM
BushTrain460615 commented 1 year ago

also sorry it took me a bit too get back to you I had a lot of school stuff I had to do

BushTrain460615 commented 1 year ago

also I know yours builds without error so I wanted to know if you can see if it is the thing I am build that is the problem https://github.com/gedehari/IzzyEngine/tree/master/crash-dialog