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.

Re-building signal analyzer demo

Has anyone tried to re-build the signal analyzer demo?

I tried as follows:

- Copy folder demos/signal-analyzer_1_00_00_04 to some local folder outside of the EZSDK to keep the EZSDK untouched

- Edit Rules.make in the second section (starting at '# Set the below paths as needed if not previously defined above'), adapting to the EZSDK's paths and more or less guessing the Qt specific paths

- Execute make all. This works and creates sigan_app.a.

- Execute make sigan_demo_app. This gives an error message; see below.

- Executing linux-devkit/environment-setup prior starting make doesn't help

- The only appropriate libraries I could find are those with an 'E' suffix, which probably refer to Qt embedded, which makes sense here. Modfying Makefile by appending 'E' to the missing libraries gives other missing libraries. Adding these libraries finally results in symbol 'main' being undefined.

-Trying to re-build the matrix GUI works and the generated executable also works fine on the target

- Building the hello world from the Qt wikipedia page also works fine, but requires linux-devkit/environment-setup to be executed first.

To me it seems I'm missing something very basic in my settings or there's something missing in the EZSDK. Maybe there should be links from libQtGuiE to libQtGui? If someone has successfully built this demo, I'd be interested in the settings (Rules.make, etc.) or the build log so I can see where it's going wrong. The only modification to the signal analyzer folder is in Rules.make (see attachment).

Here's the build log of the first attempt:

. /home/guenter/ti-ezsdk_c6a816x-evm_5_00_00_56/linux-devkit/environment-setup; make sigan_demo_app

Linking sigan_demo_app from sigan_main.o sigan_profile.o sigan_util.o sigan_app_config/linker.cmd..
/home/guenter/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc -L/home/guenter/ti-ezsdk_c6a816x-evm_5_00_00_56/linux-devkit/arm-none-linux-gnueabi/usr/lib -lm -lpthread -ldl -lrt -pthread -L/home/guenter/ti-ezsdk_c6a816x-evm_5_00_00_56/linux-devkit/arm-none-linux-gnueabi/usr/lib -L/home/guenter/ti-ezsdk_c6a816x-evm_5_00_00_56/linux-devkit/arm-none-linux-gnueabi/usr/lib -L../../lib -lqwt -lQtGui -L/home/guenter/ti-ezsdk_c6a816x-evm_5_00_00_56/linux-devkit/arm-none-linux-gnueabi/usr/lib -lQtNetwork -lQtCore -o sigan_demo_app sigan_main.o sigan_profile.o sigan_util.o sigan_app_config/linker.cmd
/home/guenter/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lQtGui
collect2: ld returned 1 exit status
make: *** [sigan_demo_app] Error 1

Guenter

  • Hi Guenter,

    From your logs and description, it looks like you are trying to build from within the signal-analyzer directory that you have copied. Building the demo outside the EZSDK is a little bit more involved.  My sdk is installed in /swcoe/sdk/sid/ti-ezsdk_c6a816x-evm_5_00_00_57

    Step 1 - Copy the signal-analyzer_1_00_00_04 directory to your home directory. Run clean inside the directory

    cd $(HOME)

    make clean

    Step 2 - Edit $HOME/signal-analyzer_1_00_00_04/sigan-gui-r/*.pro. Change line number 11 to reflect the full path to EZSDK installation/c6accel_2_01_00_03. In my case I have installed the EZSDK in /swcoe/sdk/sid and so the line now says. We will make this more generic in future releases so that you don't need to do this in upcoming releases. But for now, this step needs to be done.

    C6ACCEL_ROOT = /swcoe/sdk/sid/ti-ezsdk_c6a816x-evm_5_00_00_57/c6accel_2_01_00_03

    Step 3 - make sure you build c6accel and other components in the EZSDK by running the following command inside the EZSDK. This will ensure that all components that the demo is dependent on in the EZSDK is built and available for linking.

    cd /swcoe/sdk/sid/ti-ezsdk_c6a816x-evm_5_00_00_57/

    make components

    Step 4 - from the EZSDK, run make for signal analyzer demo as follows

    make sademo SADEMO_INSTALL_PATH=$(HOME)/signal-analyzer_1_00_00_04

     

  • Hi Siddarth, Thanks for this hint. I was already looking for relative paths in the makefiles and even also for a .pro file, but overlooked the sigan-gui-r folder. Anyway, this doesn't help. Even when compiling from within ~/ti-ezsdk_c6a816x-evm_5_00_00_56/demos/signal-analyzer_1_00_00_04 I get the same error (cannot find -lQtGui). Building the components has already been done. re-running make components doesn't help. IMHO, either Makefile is wrong or my EZSDK installation lacks libQtGui.*. Can you please check whether your EZSDK contains libQtGui.* and where it must be located? I've seen that you use version 5.00.00.57 of the EZSDK. Is this already public available? best regards Guenter