Michael Fischer wrote:
> 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
>
Michael,
I doubt we need support for static libraries in our standard CMake
scripts, but there is the CMake mailing list, and then you can google
for your own answer,
follow this thread to the end:
http://www.cmake.org/pipermail/cmake/2008-July/022538.html
and
http://www.itk.org/Bug/view.php?id=1643
Hope this helps
Dick
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development