This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5718: I have an issue with QT5 running on am5718 board.

Part Number: AM5718


Hello. I was able to compile an application compiled with library for QT5.6.1 before, and it ran without a problem on am5718 board.

Then I've made a shared library for SISCO 61850 application and compiled the application with the shared library. (I've run a simple test code with the shared library, so there is no problem with producing the library)

The application is not starting with these error messages below.

QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
Unable to figure out framebuffer device. Specify it manually.
linuxfb: Failed to initialize screen
Segmentation fault (core dumped)

I know the error might not be directly related to the board but I don't know where I'm supposed to debug in this situation. 

It'd be really grateful if anyone can spot what's going on or suggest me where to debug.

Thank you.

  • Hello,

    Are you able to run other Qt examples located in the directory "/usr/share/qt5/examples"?Also, have you tried to disable Weston while running your application?

    Regards,
    Krunal

  • Hello Krunal.

    Now, I've begun to think that this problem is not related with QT but with my linux system somehow. 

    I've changed the compilation setting back to original when there was no 61850 shared library linked.

    And I compiled the application, executed it and got the following error.

    /sanion/HUR-IED/bsp/linux-rt-4.14.79/include/linux/types.h:15:26: error: conflicting types for ‘fd_set’
     typedef __kernel_fd_set  fd_set;
                              ^~~~~~
    In file included from /opt/ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/sys/time.h:32:0,
                     from /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:20:
    /opt/ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/sys/select.h:75:5: note: previous declaration of ‘fd_set’ was here
       } fd_set;
         ^~~~~~
    In file included from /home/taki/fork_a15_app_code/sdk/src/i2c-dev.h:27:0,
                     from /home/taki/fork_a15_app_code/sdk/src/Hmi_Keyled.h:19,
                     from /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:49:
    /sanion/HUR-IED/bsp/linux-rt-4.14.79/include/linux/types.h:16:25: error: conflicting types for ‘dev_t’
     typedef __kernel_dev_t  dev_t;
                             ^~~~~
    In file included from /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:21:0:
    /opt/ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/sys/types.h:60:17: note: previous declaration of ‘dev_t’ was here
     typedef __dev_t dev_t;
                     ^~~~~
    In file included from /home/taki/fork_a15_app_code/sdk/src/i2c-dev.h:27:0,
                     from /home/taki/fork_a15_app_code/sdk/src/Hmi_Keyled.h:19,
                     from /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:49:
    /sanion/HUR-IED/bsp/linux-rt-4.14.79/include/linux/types.h:18:26: error: conflicting types for ‘mode_t’
     typedef __kernel_mode_t  mode_t;
                              ^~~~~~
    In file included from /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:21:0:
    /opt/ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/sys/types.h:70:18: note: previous declaration of ‘mode_t’ was here
     typedef __mode_t mode_t;
                      ^~~~~~
    In file included from /home/taki/fork_a15_app_code/sdk/src/i2c-dev.h:27:0,
                     from /home/taki/fork_a15_app_code/sdk/src/Hmi_Keyled.h:19,
                     from /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:49:
    /sanion/HUR-IED/bsp/linux-rt-4.14.79/include/linux/types.h:26:26: error: conflicting types for ‘timer_t’
     typedef __kernel_timer_t timer_t;
                              ^~~~~~~
    In file included from /opt/ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/sys/types.h:131:0,
                     from /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:21:
    /opt/ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/bits/types/timer_t.h:7:19: note: previous declaration of ‘timer_t’ was here
     typedef __timer_t timer_t;
                       ^~~~~~~
    In file included from /home/taki/fork_a15_app_code/sdk/src/i2c-dev.h:27:0,
                     from /home/taki/fork_a15_app_code/sdk/src/Hmi_Keyled.h:19,
                     from /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:49:
    /sanion/HUR-IED/bsp/linux-rt-4.14.79/include/linux/types.h:37:24: error: conflicting types for ‘uintptr_t’
     typedef unsigned long  uintptr_t;
                            ^~~~~~~~~
    In file included from /opt/ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/gcc/arm-linux-gnueabihf/7.2.1/include/stdint.h:9:0,
                     from /opt/ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/netinet/tcp.h:77,
                     from /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:28:
    /opt/ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/stdint.h:130:23: note: previous declaration of ‘uintptr_t’ was here
     typedef unsigned int  uintptr_t;
                           ^~~~~~~~~
    In file included from /home/taki/fork_a15_app_code/sdk/src/i2c-dev.h:27:0,
                     from /home/taki/fork_a15_app_code/sdk/src/Hmi_Keyled.h:19,
                     from /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:49:
    /sanion/HUR-IED/bsp/linux-rt-4.14.79/include/linux/types.h:135:23: error: conflicting types for ‘blkcnt_t’
     typedef unsigned long blkcnt_t;
                           ^~~~~~~~
    In file included from /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:21:0:
    /opt/ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/sys/types.h:240:20: note: previous declaration of ‘blkcnt_t’ was here
     typedef __blkcnt_t blkcnt_t;  /* Type to count number of disk blocks.  */
                        ^~~~~~~~
    In file included from /opt/ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/sys/time.h:32:0,
                     from /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:20:
    /home/taki/fork_a15_app_code/sdk/src/PCInterface.c: In function ‘PCIF_Init’:
    /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:3100:3: error: ‘fd_set {aka struct <익명>}’ has no member named ‘__fds_bits’; did you mean ‘fds_bits’?
       FD_ZERO(&readfds);
       ^
    /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:3101:3: error: ‘fd_set {aka struct <익명>}’ has no member named ‘__fds_bits’; did you mean ‘fds_bits’?
       FD_SET(listen_fd, &readfds);
       ^
    /home/taki/fork_a15_app_code/sdk/src/PCInterface.c: In function ‘PCIF_DeInit’:
    /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:3167:3: error: ‘fd_set {aka struct <익명>}’ has no member named ‘__fds_bits’; did you mean ‘fds_bits’?
       FD_CLR(sockfd, &readfds);
       ^
    /home/taki/fork_a15_app_code/sdk/src/PCInterface.c: In function ‘PCIF_ProcessMain’:
    /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:3213:32: warning: passing argument 2 of ‘select’ from incompatible pointer type [-Wincompatible-pointer-types]
        fd_num = select(maxfd + 1 , &allfds, (fd_set *)0, (fd_set *)0, NULL);
                                    ^
    In file included from /opt/ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/sys/time.h:32:0,
                     from /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:20:
    /opt/ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/sys/select.h:106:12: note: expected ‘fd_set * restrict {aka struct <익명> * restrict}’ but argument is of type ‘fd_set * {aka struct <익명> *}’
     extern int select (int __nfds, fd_set *__restrict __readfds,
                ^~~~~~
    /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:3213:41: warning: passing argument 3 of ‘select’ from incompatible pointer type [-Wincompatible-pointer-types]
        fd_num = select(maxfd + 1 , &allfds, (fd_set *)0, (fd_set *)0, NULL);
                                             ^
    In file included from /opt/ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/sys/time.h:32:0,
                     from /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:20:
    /opt/ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/sys/select.h:106:12: note: expected ‘fd_set * restrict {aka struct <익명> * restrict}’ but argument is of type ‘fd_set * {aka struct <익명> *}’
     extern int select (int __nfds, fd_set *__restrict __readfds,
                ^~~~~~
    /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:3213:54: warning: passing argument 4 of ‘select’ from incompatible pointer type [-Wincompatible-pointer-types]
        fd_num = select(maxfd + 1 , &allfds, (fd_set *)0, (fd_set *)0, NULL);
                                                          ^
    In file included from /opt/ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/sys/time.h:32:0,
                     from /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:20:
    /opt/ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/sys/select.h:106:12: note: expected ‘fd_set * restrict {aka struct <익명> * restrict}’ but argument is of type ‘fd_set * {aka struct <익명> *}’
     extern int select (int __nfds, fd_set *__restrict __readfds,
                ^~~~~~
    /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:3234:8: error: ‘fd_set {aka struct <익명>}’ has no member named ‘__fds_bits’; did you mean ‘fds_bits’?
        if (FD_ISSET(listen_fd, &allfds))
            ^
    /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:3241:5: error: ‘fd_set {aka struct <익명>}’ has no member named ‘__fds_bits’; did you mean ‘fds_bits’?
         FD_SET(client_fd, &readfds);
         ^
    /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:3284:35: error: ‘fd_set {aka struct <익명>}’ has no member named ‘__fds_bits’; did you mean ‘fds_bits’?
        if (CommType != CONNECT_TCP || FD_ISSET(sockfd, &allfds))
                                       ^
    /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:3306:6: error: ‘fd_set {aka struct <익명>}’ has no member named ‘__fds_bits’; did you mean ‘fds_bits’?
          FD_CLR(sockfd, &readfds);
          ^
    /home/taki/fork_a15_app_code/sdk/src/PCInterface.c:3396:7: error: ‘fd_set {aka struct <익명>}’ has no member named ‘__fds_bits’; did you mean ‘fds_bits’?
           FD_CLR(sockfd, &readfds);
           ^
    Makefile:44: recipe for target '/home/taki/fork_a15_app_code/sdk/obj/PCInterface.o' failed
    make: *** [/home/taki/fork_a15_app_code/sdk/obj/PCInterface.o] Error 1

    My colleagues didn't get such errors after the compilation of the same code. Is there a problem with my linkage of my shared library to affect the Linux system somehow. I've googled the possible solution to my error but still have no clue. 

    Please save me from this endless swamp of debugging. 

    Thank you!

    Regards,

    Jin Tak Lee

  • Hello,

    As mentioned in the following document, TI SDK integrates many open source software but we do not own, maintain and support all the packages. Please post Qt specific questions on Qt forms.

    QT Framework

    Regards,
    Krunal