cmauri / eviacam

webcam based mouse emulator
GNU General Public License v3.0
145 stars 38 forks source link

Cannot compile on Linux Mint 19: invalid conversion from ‘char**’ to ‘void**’ #20

Closed Cat5TV closed 5 years ago

Cat5TV commented 5 years ago

Well, I've gotten this far, but am stumped.

During the make process, it errors out with the following:

......

viacamcontroller.cpp: In member function ‘CCamera* CViacamController::SetUpCamera()’:
viacamcontroller.cpp:233:70: error: invalid conversion from ‘char**’ to ‘void**’ [-fpermissive]
     (char**)NULL, wxDEFAULT_DIALOG_STYLE | wxOK | wxCANCEL | wxCENTRE);
                                                                      ^
In file included from /usr/local/include/wx-3.1/wx/choicdlg.h:18:0,
                 from viacamcontroller.cpp:40:
/usr/local/include/wx-3.1/wx/generic/choicdgg.h:110:5: note:   initializing argument 5 of ‘wxSingleChoiceDialog::wxSingleChoiceDialog(wxWindow*, const wxString&, const wxString&, const wxArrayString&, void**, long int, const wxPoint&)’
     wxSingleChoiceDialog(wxWindow *parent,
     ^~~~~~~~~~~~~~~~~~~~
Makefile:865: recipe for target 'eviacam-viacamcontroller.o' failed
make[2]: *** [eviacam-viacamcontroller.o] Error 1
make[2]: Leaving directory '/tmp/eviacam/src'
Makefile:514: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/eviacam'
Makefile:423: recipe for target 'all' failed
make: *** [all] Error 2

Thoughts?

My arm is killing me... I'd really like to get eViacam working :)

Thanks!

Cat5TV commented 5 years ago

Got it working by installing the old version of wxWidgets (manually compiled 3.0). So it seems this issue occurs only on current versions of wxWidgets.

Cat5TV commented 5 years ago

Here is the installer script I wrote based on my findings: https://github.com/Cat5TV/eviacam

I will be featuring eViacam (on Linux Mint 19) on Episode 607 of Category5 Technology TV, if anyone would be interested in seeing the installation process and product demo.

cmauri commented 5 years ago

Thanks @Cat5TV. I've added a comment clarifying the situation and linking your script here: https://github.com/cmauri/eviacam/issues/14#issuecomment-491756387

xxxserxxx commented 3 months ago

Could we re-open this? It's not just a Mint issue; it also happens when compiling on Arch.

As it's an issue that is coming up with newer (but same major versions) of wxWidgets, a proper fix would be to address the issue in the code that's causing the compiler error. In any case, what's provided is a work-around, not a fix, and it would make more sense to leave this open until the root cause is addressed.