main.cpp in gui_src of cyusb_linux_1.0.5 fails to build on Ubuntu 2020.04, fix suggested

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
WaRa_4824346
Level 1
Level 1
10 questions asked 10 sign-ins 5 replies posted

Parameter "int errno" on line 74 of main.cpp conflicts with typical C++ usage resulting in compilation errors. 

Changing "errno" to "errnum" and adjusting the remainder of "libusb_error" to use "errnum" fixes the build problem.   After the suggested change, cyusb_linux build and runs.

Modified source code for "libusb_error" is attached.

0 Likes
1 Solution
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello,

Thank you for the suggestion. 

Please refer to  threads with similar fix Solved: EZ-USB-FX3 SDK for Linux fails to compile - Cypress Developer Community 

Solved: Error compiling cyusb_linux_1.0.5 on Ubuntu 18.04 ... - Cypress Developer Community

We will forward this to the respective team.

Regards,
Rashi

View solution in original post

0 Likes
1 Reply
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello,

Thank you for the suggestion. 

Please refer to  threads with similar fix Solved: EZ-USB-FX3 SDK for Linux fails to compile - Cypress Developer Community 

Solved: Error compiling cyusb_linux_1.0.5 on Ubuntu 18.04 ... - Cypress Developer Community

We will forward this to the respective team.

Regards,
Rashi
0 Likes