Skip to content

Make Issue #3

@nznobody

Description

@nznobody

I am having issues making in my environment. I have built and installed libusbx and yet when i use make to build libEasyPTP i get the following:

g++ -fPIC -Wall  -I./include/ -lusb-1.0 -c -o lib/PTPUSB.o lib/PTPUSB.cpp
lib/PTPUSB.cpp: In constructor ‘EasyPTP::PTPUSB::PTPUSB()’:
lib/PTPUSB.cpp:31:20: error: type ‘EasyPTP::PTPUSB’ is not a direct base of ‘EasyPTP::PTPUSB’
lib/PTPUSB.cpp: In static member function ‘static libusb_device* EasyPTP::PTPUSB::find_first_camera()’:
lib/PTPUSB.cpp:85:9: warning: unused variable ‘err’ [-Wunused-variable]
lib/PTPUSB.cpp: In member function ‘bool EasyPTP::PTPUSB::open(libusb_device*)’:
lib/PTPUSB.cpp:173:70: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
make: *** [lib/PTPUSB.o] Error 1

I am unsure how to properly remedy this error but for now simply commenting out said line (31 in PTPUSB.cpp) has allowed me to still build the library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions