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.

Demo application makefile

Hello,

I currently study demo application example decode and tried to compile the original project from source files (dvsdk/demos), but the command "make" from this directory didn't lead me to the binary code, but some errors occurred:

$ make

Making all in subdirectory dm365...
make -C dm365
make[1]: Entering `/opt/dvsdk/dvsdk-demos_4_02_00_01/dm365'

Making all in subdirectory decode...

======== Building decode ========
Configuring application using decode.cfg

js: "/opt/dvsdk/xdctools_3_16_03_36/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: JavaException: java.io.FileNotFoundException: /opt/dvsdk/dvsdk-demos_4_02_00_01/dm365/decode/decode_config/package.bld (No such file or directory)
make[2]: *** [decode_config/compiler.opt] Error 1
make[1]: *** [decode] Error 2
make[1]: Leaving `/opt/dvsdk/dvsdk-demos_4_02_00_01/dm365'
make: *** [dm365] Error 2 

 

Can you please hint at a possible source of error? Thank you very much. 

  • Alyona, have you compiled DMAI? If not, please compile DMAI first.

  • Kirill Brilliantov,

    No, I didn't, makefiles for dmai applications don't work at all - there are wrong pathes in them. But what is the connection between demos and dmai applications? 

  • I found some wrong paths and corrected them,  but now there is another issue concerning rootDir: in generated config.bld there are no rootDir definition. Is it known what should be in rootDir?

    Actually in config.bld it is said that "this is a generated file - do not edit"... 

     

    Making all in subdirectory decode...

    ======== Building decode ========
    Configuring application using decode.cfg

    making package.mak (because of package.bld) ...
    js: "/opt/dvsdk/xdctools_3_16_03_36/packages/xdc/xdc.tci", line 546: XDCException: xdc.bld.ROOTDIR_NOT_SET: 'rootDir' has not been set for the target gnu.targets.arm.GCArmv5T; define 'rootDir' in ./config.bld
    making package.mak (because of package.bld) ...
    js: "/opt/dvsdk/xdctools_3_16_03_36/packages/xdc/xdc.tci", line 546: XDCException: xdc.bld.ROOTDIR_NOT_SET: 'rootDir' has not been set for the target gnu.targets.arm.GCArmv5T; define 'rootDir' in ./config.bld
    gmake: *** No recipe for the target `.configuro'. Stop.
    Warning: directory "/home/alyona.nikiforova/arm_projects/workplace/packages" on package path does not exist
    Warning: directory "/packages" on package path does not exist
    js: "/opt/dvsdk/xdctools_3_16_03_36/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    make[1]: *** [decode_config/compiler.opt] Error 1
    make: *** [decode] Error 2

  • Kirill,

    I discovered that this is essential to have compiled DMAI for demos as it is used there. But actually I just absolutely can not compile DMAI as in all headers there are only relative paths but absolute paths are not included in makefiles and this is a formidable task to find all dependencies and correct them in makefiles. Now MAKE cannot find any libraries.

    Perhaps, you have a compiled DMAI and you can share it with me? I would really appreciate this and be grateful to you for this. 

  • Hello, Alyona!

    I do not understand why you can not compile DMA. You haven't DVSDK on your host?

    Now I work with DVSDK_4_02_00_06 and DM368, also I can build DVSDK_2_10_01_18.

    What components you need and how can I send it you?

  • Hello!

    I have the same version of DVSDK - 4.02.00.06 and DM368 too. How did you manage to compile dmai without editing makefiles? Mine doesn't work at all - there are numerous of errors about wrong linking, locating modules and undefined variables.

    Currently I need just DMAI module to compile demos (in compiling demos there are also a lot of similar problems with linking, etc...). Could you please send it by e-mail or via any fileshare site? (alyona.nikiforova@planar.chel.ru) 

  • Hi,

    You have to run "make" from the root dvsdk folder (where the "Rules.make" is located), not from the Demos folder.
    Then you can run "make dmai", "make demos" etc.  for partial build, also from the dvsdk root folder.
    Look at the dvsdk main makefile for other make commands.

     

    Regards,
    Marko.

  • To Marko answer I can add next - run "make help" in dvsdk root directory for get all available commands.

  • Kirill, Marko,

    Thank you very much, everything works now!