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
125 stars 2 forks source link

Multiple definiton of main() when running make #27

Closed dozadoesit closed 1 year ago

dozadoesit commented 1 year ago

Running Make I get the following error

src//USBConnection.o: in function main': USBConnection.cc:(.text+0x0): multiple definition ofmain'; src//TrackHMD.o:TrackHMD.cc:(.text+0x0): first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:47: oll] Error 1

I fixed they by changing the call in TrackHMD.cc to int main2() instead of int main() and this allowed me to make the project. No clue if this is the right way to fix it but it allowed me to get past the error.

MilkJug1 commented 1 year ago

Yea this is an issue in the main branch of this project, these issues have been fixed in the cpp branch, just they haven't been committed to the main branch yet. If I remember correctly, the reason for this issue was I was testing out the Makefile, and I should make a comment on the Install.md file that references that this project can't be built at the current moment. I may push the cpp upstream to main for the moment but yea.