Post Go back to editing

Qt project with mcapi

Hi! I want to include MCAPI library in my Qt project. What should I do to make this?

I copied mcapi 2.0 headers into myproject/mcapi folder and append INCLUDEPATH += $$PWD/mcapi into .pro file. Also I appended DEPENDPATH += $$PWD/mcapi and unix:!macx: LIBS += -L$$PWD/mcapi/ -lmcapi. But I get error

mainwindow.o: In function `MainWindow::on_pushButton_2_clicked()':

../myproject/mainwindow.cpp:(.text+0x134): undefined reference to `mcapi_initialize(unsigned int, unsigned int, attributes_t const*, int const*, mcapi_info_t*, unsigned int*)'

collect2: ld returned 1 exit status

Parents
  • Hi, we have a set of test application that use the MCAPI, you can try to take it as reference and implement your application. At first enable the following items in the buidlroot menuconfig and build

    1) make linux-menuconfig -> device drivers -> staging drivers -> icc driver

    2) make menuconfig -> target packages -> Miscellaneous -> bfin inter-core communication support 

    3) make menuconfig -> target packages -> libraries -> other ->libmcapi

    after that you will have the source files for core A Linux:

    output/build/libmcapi-931/libmcapi-2.0

    for core B bare metal:

    output/build/icc-930

    One example is output/build/libmcapi-931/libmcapi-2.0/tests/msg1.c as the test application on core A, with it's counterpart output/build/icc-930/example/task/mcapi_msg1.c on core B.

    Another example is output/build/libmcapi-931/libmcapi-2.0/tests/bmp2jpg.c on core A, and output/build/icc-930/example/task/cjpeg.c on core B

Reply
  • Hi, we have a set of test application that use the MCAPI, you can try to take it as reference and implement your application. At first enable the following items in the buidlroot menuconfig and build

    1) make linux-menuconfig -> device drivers -> staging drivers -> icc driver

    2) make menuconfig -> target packages -> Miscellaneous -> bfin inter-core communication support 

    3) make menuconfig -> target packages -> libraries -> other ->libmcapi

    after that you will have the source files for core A Linux:

    output/build/libmcapi-931/libmcapi-2.0

    for core B bare metal:

    output/build/icc-930

    One example is output/build/libmcapi-931/libmcapi-2.0/tests/msg1.c as the test application on core A, with it's counterpart output/build/icc-930/example/task/mcapi_msg1.c on core B.

    Another example is output/build/libmcapi-931/libmcapi-2.0/tests/bmp2jpg.c on core A, and output/build/icc-930/example/task/cjpeg.c on core B

Children
No Data