Hello Dick, >Michael, > >Do these changes work for you? > > >if(NEED_USB) >find_package(LibUSB) >set(CONDITIONAL_LIBS ${CONDITIONAL_LIBS} ${LIBUSB_LIBRARIES}) >include_directories( ${LIBUSB_INCLUDE_DIR} ) >endif(NEED_USB) > > >if(BUILD_FT2232_FTD2XX) >#message("BUILD_FT2232_LIBFTDI=\"${BUILD_FT2232_LIBFTDI}\"") >if(BUILD_FT2232_LIBFTDI) >message( FATAL_ERROR "BUILD_FT2232_FTD2XX and BUILD_FT2232_LIBFTDI are >mutually exclusive, please enable only one") >endif(BUILD_FT2232_LIBFTDI) >find_package(LibFTD2XX) >set(CONDITIONAL_LIBS ${LIBFTD2XX_LIBRARIES} ${CONDITIONAL_LIBS}) >include_directories( ${LIBFTD2XX_INCLUDE_DIR} ) >endif(BUILD_FT2232_FTD2XX) > > >if(BUILD_FT2232_LIBFTDI) >if(BUILD_FT2232_FTD2XX) >message( FATAL_ERROR "BUILD_FT2232_FTD2XX and BUILD_FT2232_LIBFTDI are >mutually exclusive, please enable only one") >endif(BUILD_FT2232_FTD2XX) >find_package(LibFTDI) >set(CONDITIONAL_LIBS ${LIBFTDI_LIBRARIES} ${CONDITIONAL_LIBS}) >include_directories( ${LIBFTDI_INCLUDE_DIR} ) >endif(BUILD_FT2232_LIBFTDI) >
YES, this solved the include problem, but the LIB problem still exist. Therefore I take a look in the "link.txt" file where I can find the linker argument. But here I could not find any references to libusb.a or libftdi.a. I think we must add these LIBs too. Best regards, Michael _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development