MilkJug1 / OculusLinkLinux

OLL(WIP) is a open-source project that aims to allow the Oculus Quest(both 1 & 2) work on Linux wired.
GNU General Public License v2.0
132 stars 2 forks source link

Error USBConnection.cc when trying to make #26

Closed dozadoesit closed 1 year ago

dozadoesit commented 1 year ago

When trying to make I get the following error:

src//TrackingControl.cc:6:1: warning: no return statement in function returning non-void [-Wreturn-type] 6 | } | ^ src//USBConnection.cc:7:29: error: expected ‘,’ or ‘...’ before ‘’ token 7 | int main(int argc, char argv) | ^ src//USBConnection.cc:7:5: warning: second argument of ‘int main(int, char)’ should be ‘char ’ [-Wmain] 7 | int main(int argc, char argv) | ^~~~ make: [: src//USBConnection.o] Error 1

I fixed this by doing the following:

Change main function to the following: int main(int argc, char* argv[])

MilkJug1 commented 1 year ago

Fixed in commit #28 so this build issue wouldn't happen on main branch now.