Running exported makefile under Windows

I can compile my code in VisualDSP++ but when I exported my makefile using "Project Options->Export Makefile..." and tried to run it under a Windows XP command prompt (i.e, cmd.exe) I get the following error:

     set PATH=C:\Program Files\Analog Devices\VisualDSP 5.0;%PATH%

     gmake-378 -f tmm_export.mak tmm_Debug

     "Linking..."

     'C:/Program\' is not recognized as an internal or external command,operable program or batch file.
     gmake-378: *** [Debug/tmm.dxe] Error 1

This would appear to be due to the fact that I am running under Windows instead of UNIX because the tmm_export.mak file replaces

     ADI_DSP=C:\Program Files\Analog Devices\VisualDSP 5.0

with

     VDSP=C:Program\ Files/Analog\ Devices/VisualDSP\ 5.0

(replacing backslashes with slashes and spaces with backslash-space) which is what I assume is causing cmd.exe to choke.

Are there any environment variables or arguments to cmd.exe that I need to set to get gmake to run from cmd.exe? Can someone point me to the documentation which describes how to do this? How does the IDDE run the tmm.mak file properly?

I am using VisualDSP++ 5.0.6.0, IDDE 8.0.6.76 (Feb 12, 2009) under Windows XP Pro service pack 3.


Parents
  • The compiler did work, it is just the final link that has the problem. I will have to see about sending you a copy of my project/makefile as I don't want to post it here (it is pretty big so I would like to try to simplify it before I send it to you privately).

    I tried building a new project, like you did, which has only a single file source file in it and the "Linking..." step worked. I am beginning to wonder if the problem is related to the size of my project.

    I ran gmake with -d to print out debugging information and got the following (NewProject.dxe is the target) as the linking step.

    C:/Program\ Files/Analog\ Devices/VisualDSP\ 5.0/ccblkfn.exe .\Debug\ExceptionHa
    ndler-BF536.doj .\Debug\main.doj .\Debug\VDK.doj -T .\VDK-BF536.ldf -L .\Debug -
    add-debug-libpaths -flags-link -od,.\Debug -o .\Debug\NewProject.dxe -proc ADSP-
    BF536 -flags-link -MD_ADI_THREADS -si-revision 0.2 -flags-link
    CreateProcess(C:\Program Files\Analog Devices\VisualDSP 5.0\ccblkfn.exe,"C:/Prog
    ram Files/Analog Devices/VisualDSP 5.0/ccblkfn.exe" .\Debug\ExceptionHandler-BF5
    36.doj .\Debug\main.doj .\Debug\VDK.doj -T .\VDK-BF536.ldf -L .\Debug -add-debug
    -libpaths -flags-link -od,.\Debug -o .\Debug\NewProject.dxe -proc ADSP-BF536 -fl
    ags-link -MD_ADI_THREADS -si-revision 0.2 -flags-link,...)

    I then ran gmake with -d on the project that does not link (tmm.dxe is the target) and got the following as the linking step:

    C:/Program\ Files/Analog\ Devices/VisualDSP\ 5.0/ccblkfn.exe .\Debug\ALA.doj .\D
    ebug\blackfin_tmm_hardware.doj .\Debug\dhcp_settings.doj .\Debug\dns.doj .\Debug
    \ExceptionHandler-BF536.doj .\Debug\FFT.doj .\Debug\general.doj .\Debug\host.doj
    .\Debug\HOST_listener.doj .\Debug\HOST_mbt.doj .\Debug\HOST_omron.doj .\Debug\H
    OST_tcpip.doj .\Debug\ID.doj .\Debug\inet_utilities.doj .\Debug\lwip_sysboot_thr
    eadtype.doj .\Debug\mu_compress_packed.doj .\Debug\mu_expand_packed.doj .\Debug\
    NTP_client.doj .\Debug\RTP.doj .\Debug\sdp.doj .\Debug\settings.doj .\Debug\SIP.
    doj .\Debug\sip_authentication.doj .\Debug\SIP_dialog.doj .\Debug\SIP_ict.doj .\
    Debug\SIP_ist.doj .\Debug\SIP_nict.doj .\Debug\SIP_nist.doj .\Debug\SIP_registra
    tion.doj .\Debug\SIP_tcp.doj .\Debug\SIP_tcp_listener.doj .\Debug\sip_util.doj .
    \Debug\SWITCH.doj .\Debug\SWITCH_reporting.doj .\Debug\SYSLOG.doj .\Debug\tftp_c
    lient.doj .\Debug\tmm_basiccrt.doj .\Debug\tmm_cplbtab.doj .\Debug\tmm_heaptab.d
    oj .\Debug\tmm_settings.doj .\Debug\upgrade.doj .\Debug\VDK.doj .\Debug\voip.doj
    .\Debug\WAV.doj .\Debug\wav_files.doj .\Debug\web_functions.doj .\Debug\web_mai
    n.doj Debug\webrom.doj .\Debug\xml.doj .\Debug\xml_files.doj .\Debug\xml_io.doj
    -T .\tmm.ldf -map .\Debug\tmm.map.xml -L .\Debug -flags-link -MD__cplusplus,-MDU
    SER_CRT="tmm_basiccrt.doj",-MDUSE_CACHE,-MDUSE_INSTRUCTION_CACHE,-MDUSER_CPLBTAB
    =".\Debug\\tmm_cplbtab.doj" -add-debug-libpaths -flags-link -MDUSE_CACHE -flags-
    link -od,.\Debug -o .\Debug\tmm.dxe -proc ADSP-BF536 -flags-link Kervdkbf536d.dl
    b,liblwIPbf536d.dlb,Tcpipbf536d.dlb,../../../Flash\ Programmer/bf536/Debug/adi_m
    29w320e.dlb,../../../Ethernet\ Driver/bf536/Debug/adi_ks8993.dlb,../../../webser
    ver/bf536/Debug/libwebsvr.dlb,../../../sip/bf536/Debug/sip.dlb -si-revision 0.2
    -flags-link
    'C:/Program\' is not recognized as an internal or external command,
    operable program or batch file.

Reply
  • The compiler did work, it is just the final link that has the problem. I will have to see about sending you a copy of my project/makefile as I don't want to post it here (it is pretty big so I would like to try to simplify it before I send it to you privately).

    I tried building a new project, like you did, which has only a single file source file in it and the "Linking..." step worked. I am beginning to wonder if the problem is related to the size of my project.

    I ran gmake with -d to print out debugging information and got the following (NewProject.dxe is the target) as the linking step.

    C:/Program\ Files/Analog\ Devices/VisualDSP\ 5.0/ccblkfn.exe .\Debug\ExceptionHa
    ndler-BF536.doj .\Debug\main.doj .\Debug\VDK.doj -T .\VDK-BF536.ldf -L .\Debug -
    add-debug-libpaths -flags-link -od,.\Debug -o .\Debug\NewProject.dxe -proc ADSP-
    BF536 -flags-link -MD_ADI_THREADS -si-revision 0.2 -flags-link
    CreateProcess(C:\Program Files\Analog Devices\VisualDSP 5.0\ccblkfn.exe,"C:/Prog
    ram Files/Analog Devices/VisualDSP 5.0/ccblkfn.exe" .\Debug\ExceptionHandler-BF5
    36.doj .\Debug\main.doj .\Debug\VDK.doj -T .\VDK-BF536.ldf -L .\Debug -add-debug
    -libpaths -flags-link -od,.\Debug -o .\Debug\NewProject.dxe -proc ADSP-BF536 -fl
    ags-link -MD_ADI_THREADS -si-revision 0.2 -flags-link,...)

    I then ran gmake with -d on the project that does not link (tmm.dxe is the target) and got the following as the linking step:

    C:/Program\ Files/Analog\ Devices/VisualDSP\ 5.0/ccblkfn.exe .\Debug\ALA.doj .\D
    ebug\blackfin_tmm_hardware.doj .\Debug\dhcp_settings.doj .\Debug\dns.doj .\Debug
    \ExceptionHandler-BF536.doj .\Debug\FFT.doj .\Debug\general.doj .\Debug\host.doj
    .\Debug\HOST_listener.doj .\Debug\HOST_mbt.doj .\Debug\HOST_omron.doj .\Debug\H
    OST_tcpip.doj .\Debug\ID.doj .\Debug\inet_utilities.doj .\Debug\lwip_sysboot_thr
    eadtype.doj .\Debug\mu_compress_packed.doj .\Debug\mu_expand_packed.doj .\Debug\
    NTP_client.doj .\Debug\RTP.doj .\Debug\sdp.doj .\Debug\settings.doj .\Debug\SIP.
    doj .\Debug\sip_authentication.doj .\Debug\SIP_dialog.doj .\Debug\SIP_ict.doj .\
    Debug\SIP_ist.doj .\Debug\SIP_nict.doj .\Debug\SIP_nist.doj .\Debug\SIP_registra
    tion.doj .\Debug\SIP_tcp.doj .\Debug\SIP_tcp_listener.doj .\Debug\sip_util.doj .
    \Debug\SWITCH.doj .\Debug\SWITCH_reporting.doj .\Debug\SYSLOG.doj .\Debug\tftp_c
    lient.doj .\Debug\tmm_basiccrt.doj .\Debug\tmm_cplbtab.doj .\Debug\tmm_heaptab.d
    oj .\Debug\tmm_settings.doj .\Debug\upgrade.doj .\Debug\VDK.doj .\Debug\voip.doj
    .\Debug\WAV.doj .\Debug\wav_files.doj .\Debug\web_functions.doj .\Debug\web_mai
    n.doj Debug\webrom.doj .\Debug\xml.doj .\Debug\xml_files.doj .\Debug\xml_io.doj
    -T .\tmm.ldf -map .\Debug\tmm.map.xml -L .\Debug -flags-link -MD__cplusplus,-MDU
    SER_CRT="tmm_basiccrt.doj",-MDUSE_CACHE,-MDUSE_INSTRUCTION_CACHE,-MDUSER_CPLBTAB
    =".\Debug\\tmm_cplbtab.doj" -add-debug-libpaths -flags-link -MDUSE_CACHE -flags-
    link -od,.\Debug -o .\Debug\tmm.dxe -proc ADSP-BF536 -flags-link Kervdkbf536d.dl
    b,liblwIPbf536d.dlb,Tcpipbf536d.dlb,../../../Flash\ Programmer/bf536/Debug/adi_m
    29w320e.dlb,../../../Ethernet\ Driver/bf536/Debug/adi_ks8993.dlb,../../../webser
    ver/bf536/Debug/libwebsvr.dlb,../../../sip/bf536/Debug/sip.dlb -si-revision 0.2
    -flags-link
    'C:/Program\' is not recognized as an internal or external command,
    operable program or batch file.

Children
No Data