none
Problems with building OS design in Visual Studio 2008 RRS feed

  • Question

  • I'm trying to compile Windows Embedded Compact 7 in Visual Studio 2008 with BSP from Veriscite and getting few erors c1083 (cannot open include file). All those files are located in project tree.

    BUILD: [01:0000000047:ERRORE] Error(s) in directory "C:\WINCE700\3rdParty\Variscite\PlatInfo\EXE\". {log="C:\WINCE700\build.log(24919)"}
    BUILD: [01:0000000048:ERRORE] c:\wince700\platform\var_som_am33\src\inc\bsp.h(37) : fatal error C1083: Cannot open include file: 'ceddkex.h': No such file or directory {log="C:\WINCE700\build.log(24920)"}
    BUILD: [01:0000000049:ERRORE] NMAKE : fatal error U1077: 'C:\WINCE700\sdk\bin\i386\ARM\cl.EXE' : return code '0x2' {log="C:\WINCE700\build.log(24921)"}
    BUILD: [01:0000000051:ERRORE] TargetCompilePass  -nologo BUILDMSG=Stop.  BUILDROOT=C:\WINCE700\3rdParty\Variscite\PlatInfo\ NOLINK=1 NOPASS0=1 failed - rc = 2. {log="C:\WINCE700\build.log(24923)"}

    There is a batch file VAR_SOM_AM33.bat in the folder "C:\WINCE700\platform\VAR_SOM_AM33\". It contains line "BUILD_OPTIONS=COMMON_TI_V1_VSC". The folder COMMON_TI_V1_VSC is located in "C:\WINCE700\platform\src\soc"


    Monday, March 9, 2015 1:31 PM

Answers


  • When I'm trying to open this file from Visual Studio (right click on the #include <ceddkex.h> and then open document  <ceddkex.h> ), an error message appears:

    This (almost) never works. Visual studio and intellisense etc is a drama in combination with platform builder (I use Visual Assist frmo TheWholeTomato, that helps a lot but its not perfect)

    The problem is still some error in the include paths or in the sources file of the component that does not build. So what are you trying to build. which driver or component which fails? Often mistake made in the sources file of that component lets say an example 'a' driver:

    PLATFORM\SRC\DRIVERS\Serial\sources file could be that the include path is set like:

    INCLUDES=SOMEINCLUDEPATH; in stead of:

    INCLUDES=$(INCLUDES);SOMEINCLUDEPATH

    perhaps that's the case?


    Good Luck,

    Erwin Zwart, eMVP
    Check out my blog: http://guruce.com/blog
    GuruCE
    Microsoft Embedded Partner
    http://guruce.com
    Consultancy, training and development services.


    • Edited by Erwin Zwart Tuesday, March 10, 2015 11:06 AM
    • Marked as answer by AnatolShir Tuesday, March 10, 2015 1:35 PM
    Tuesday, March 10, 2015 11:04 AM

All replies

  • I don't know anything about your third party BSP, but I bet the third party does, have you checked with them?

    Based on your errors, the root of the problem is:

    1. The file ceddkex.h doesn't exist.  I have never heard of that file before, so I assume that it is part of your BSP.
    2. The file ceddkex.h does exist, but your INCLUDES path does not include a folder that contains it.

    Bruce Eitman (eMVP) Senior Engineer Bruce.Eitman AT Eurotech DOT com My BLOG http://geekswithblogs.net/bruceeitman Eurotech Inc. www.Eurotech.com

    Monday, March 9, 2015 6:54 PM
    Moderator

  • Based on your errors, the root of the problem is:

    1. The file ceddkex.h doesn't exist.  I have never heard of that file before, so I assume that it is part of your BSP.
    2. The file ceddkex.h does exist, but your INCLUDES path does not include a folder that contains it.
    This file does exist and located in "C:\WINCE700\platform\src\soc\COMMON_TI_V1_VSC\COMMON_TI\INC". How I can add this folder to INCLUDES path?
    Monday, March 9, 2015 8:08 PM
  • You can do that in the sources file of the component you are trying to build. As this is a common include path you probably going to use that in several places so you could also add an includes path in the sources.cmn located at the root of your BSP

    <WINCEROOT>\PLATFORM\var_som_am33\sources.cmn

    add the following to the sources.cmn

    INCLUDES=$(INCLUDES);$(_PLATFORMROOT)\src\soc\COMMON_TI_V1_VSC\COMMON_TI\INC;

    Now when type this, the path seems incorrect of the include:

    c:\WINCE700\platform\src\soc\COMMON_TI_V1_VSC\COMMON_TI\INC I would expect it to be 

    c:\WINCE700\platform\common\src\soc\COMMON_TI_V1_VSC\COMMON_TI\INC


    Good Luck,

    Erwin Zwart, eMVP
    Check out my blog: http://guruce.com/blog
    GuruCE
    Microsoft Embedded Partner
    http://guruce.com
    Consultancy, training and development services.

    Tuesday, March 10, 2015 8:30 AM
  • Yes, I wrote it incorrect. The right path is "C:\WINCE700\platform\common\src\soc\COMMON_TI_V1_VSC\COMMON_TI\INC".

    sources.cmn contain this:

    !if 0
                  Texas Instruments OMAP(TM) Platform Software
      (c) Copyright Texas Instruments, Incorporated. All Rights Reserved.
    
      Use of this software is controlled by the terms and conditions found
      in the license agreement under which this software has been supplied.
    !endif
    
    _SOC=AM33X
    _TPS6591X=TPS6591X
    
    CDEFINES=$(CDEFINES) -D_SOC_MODEL=$(_SOC)
    VARISCITE_COMMON_DIR=$(_PLATFORMROOT)\COMMON\src\soc\COMMON_TI_V1_VSC\
    
    WINCEOEM=1
    WINCECPU=1
    NOMIPS16CODE=1
    
    WINCE_ELIM_DEAD_CODE=1
    WINCE_VERBOSE_LINK=1
    
    CODE_ANALYSIS=1
    WARNLEVEL=4
    #CPPBROWSE=1
    #SYNCHRONIZE_BLOCK=1
    #WARNISERROR=1
    
    RELEASETYPE=PLATFORM
    
    
    !IF "$(ASSEMBLER_ARM_ARCH7_SUPPORT)" == "1"
    ADEFINES=$(ADEFINES) -arch 7
    ADEFINES=-pd "ASSEMBLER_ARM_ARCH7_SUPPORT SETA 1" $(ADEFINES)
    CDEFINES=$(CDEFINES) -DASSEMBLER_ARM_ARCH7_SUPPORT=1
    !ELSE
    ADEFINES=$(ADEFINES) -arch 6
    ADEFINES=-pd "ASSEMBLER_ARM_ARCH7_SUPPORT SETA 0" $(ADEFINES)
    !ENDIF
    
    CDEFINES=$(CDEFINES) -DCEDDK_USEDDKMACRO
    CDEFINES=$(CDEFINES) -Dproject_$(_TGTPROJ)
    CDEFINES=$(CDEFINES) -D_WINCEOSVER=$(_WINCEOSVER)
    
    
    !IF "$(IMGONENAND)" == "1"
    CDEFINES=$(CDEFINES) -DIMGONENAND=1
    !ENDIF
    
    !IF "$(BSP_NAND_MT29F2G16)" == "1"
    CDEFINES=$(CDEFINES) -DBSP_NAND_MT29F2G16=1
    !ENDIF
    
    !IF "$(BSP_NAND_MT29F4G16)" == "1"
    CDEFINES=$(CDEFINES) -DBSP_NAND_MT29F4G16=1
    !ENDIF
    
    _COMMONPUBROOT=$(SG_OUTPUT_ROOT)
    __PROJROOT = $(_PROJECTROOT)
    
    ##_PLATCOMMONLIB=$(_PLATCOMMONLIB)
    _PLATCOMMONLIB=$(_COMMONPUBROOT)\platcomm\$(_TGTPLAT)\lib
    _PLATLIB=$(_COMMONPUBROOT)\platform\$(_TGTPLAT)\lib
    
    _COMMONOAKLIB=$(_COMMONPUBROOT)\oak\lib
    _COMMONSDKLIB=$(_COMMONPUBROOT)\sdk\lib
    
    _OEMINCPATH=$(SG_OUTPUT_ROOT)\sdk\inc
    _OEMINCPATH=$(_OEMINCPATH);$(SG_OUTPUT_ROOT)\oak\inc
    _OEMINCPATH=$(_OEMINCPATH);$(SG_OUTPUT_ROOT)\ddk\inc
    
    _ISVINCPATH=$(_WINCEROOT)\public\common\sdk\inc
    
    INCLUDES=$(_TARGETPLATROOT)\src\inc
    INCLUDES=$(INCLUDES);$(_PLATFORMROOT)\common\src\arm\common\vfp
    INCLUDES=$(INCLUDES);$(_PLATFORMROOT)\common\src\inc
    
    
    INCLUDES=$(INCLUDES);$(VARISCITE_COMMON_DIR)\$(_SOC)\inc
    INCLUDES=$(INCLUDES);$(VARISCITE_COMMON_DIR)\COMMON_TI_AMXX\EDMA
    INCLUDES=$(INCLUDES);$(VARISCITE_COMMON_DIR)\COMMON_TI_AMXX\inc
    INCLUDES=$(INCLUDES);$(VARISCITE_COMMON_DIR)\$(_TPS6591X)\inc
    ## include this last
    INCLUDES=$(INCLUDES);$(VARISCITE_COMMON_DIR)\COMMON_TI\inc
    TI_COMMON=common_ti
    
    !IF "$(BSP_AM33X)" == "1"
    CDEFINES=$(CDEFINES) -DBSP_AM33X
    !ENDIF
    
    #-------------------------------------------------------------------
    # BSP configuration variables
    #-------------------------------------------------------------------
    # define to enable suspend/resume related debugging (requires clean BSP build)
    #CDEFINES=$(CDEFINES) -DDEBUG_PRCM_SUSPEND_RESUME
    
    
    !IF "$(BSP_TPS659XX_RTC)" == "1"
    CDEFINES=$(CDEFINES) -DBSP_TPS659XX_RTC=1
    !ENDIF
    
    !IF "$(BSP_AM33X_WATCHDOG)" == "1"
    CDEFINES=$(CDEFINES) -DBSP_AM33X_WATCHDOG
    !ENDIF
    
    !IF "$(BSP_OPM_SELECT)" == ""
    BSP_OPM_SELECT=4
    !ENDIF
    CDEFINES=$(CDEFINES) -DBSP_OPM_SELECT=$(BSP_OPM_SELECT)
    
    !IF "$(BSP_SDRAM_512MB)" == "1"
    CDEFINES=$(CDEFINES) -DBSP_SDRAM_512MB=1
    !ENDIF
    
    !IF "$(BSP_OMAP_SDMA)" == "1"
    CDEFINES=$(CDEFINES) -DBSP_OMAP_SDMA
    !ELSEIF "$(BSP_EDMA)" == "1"
    CDEFINES=$(CDEFINES) -DBSP_EDMA
    !ENDIF
    
    !IF "$(BSP_CTP_TOUCH)" == "1"
    CDEFINES=$(CDEFINES) -DBSP_CTP_TOUCH
    !ENDIF
    
    !IF "$(BSP_TSADC_TOUCH)" == "1"
    CDEFINES=$(CDEFINES) -DBSP_TSADC_TOUCH
    !ENDIF
    
    !IF "$(BSP_NO_NAND_IN_SDBOOT)" == "1"
    CDEFINES=$(CDEFINES) -DBSP_NO_NAND_IN_SDBOOT
    !ENDIF
    
    !IF "$(BSP_SAVE_EBOOTCFG_TO_SD)" == "1"
    CDEFINES=$(CDEFINES) -DBSP_SAVE_EBOOTCFG_TO_SD
    !ENDIF
    
    !IF "$(IMGNAND)" == "1"
    CDEFINES=$(CDEFINES) -DIMGNAND
    !ENDIF
    
    !IF "$(IMGSDMMC)" == "1"
    CDEFINES=$(CDEFINES) -DIMGSDMMC
    !ENDIF
    
    

    As you can see, the pathes to 

    "C:\WINCE700\platform\common\src\soc\COMMON_TI_V1_VSC\COMMON_TI\INC" are included

    VARISCITE_COMMON_DIR=$(_PLATFORMROOT)\COMMON\src\soc\COMMON_TI_V1_VSC\

    ## include this last
    INCLUDES=$(INCLUDES);$(VARISCITE_COMMON_DIR)\COMMON_TI\inc
    TI_COMMON=common_ti

    When I'm trying to open this file from Visual Studio (right click on the #include <ceddkex.h> and then open document  <ceddkex.h> ), an error message appears:

    File 'ceddkex.h' not found in current source file's directory or in build system paths. 
    Current source file path: .;C:\ WINCE700 \ platformWAR_SOM_AM33 \ SRC \ INC 

    Build system path: .;C:\WINCE700 \ PUBLIC \ SHELLSDK\SDK\INC;C:\WINCE700\PUBLIC\IE\SDK\INC; C:\WINCE700\PUBLIC \ C\COMMON\OAK\INC;C:\WINCE700\PUBLIC\COMMON\DDK\INC;C:\WINCE700 \PUBLIC\COMMON\SDK\INC;C:\WINCE700\PLATFORM\VAR_SOM_AM33\SRC\INC;C:\WINCE700\PUBLIC\COMMON \SDK\INC;.\RESOURCE\0409 


    Possibly it is a key for solving my problem. File bsp.h  which includes  <ceddkex.h> located in "C:\WINCE700\platform\VAR_SOM_AM33\SRC\INC"

    Tuesday, March 10, 2015 10:36 AM

  • When I'm trying to open this file from Visual Studio (right click on the #include <ceddkex.h> and then open document  <ceddkex.h> ), an error message appears:

    This (almost) never works. Visual studio and intellisense etc is a drama in combination with platform builder (I use Visual Assist frmo TheWholeTomato, that helps a lot but its not perfect)

    The problem is still some error in the include paths or in the sources file of the component that does not build. So what are you trying to build. which driver or component which fails? Often mistake made in the sources file of that component lets say an example 'a' driver:

    PLATFORM\SRC\DRIVERS\Serial\sources file could be that the include path is set like:

    INCLUDES=SOMEINCLUDEPATH; in stead of:

    INCLUDES=$(INCLUDES);SOMEINCLUDEPATH

    perhaps that's the case?


    Good Luck,

    Erwin Zwart, eMVP
    Check out my blog: http://guruce.com/blog
    GuruCE
    Microsoft Embedded Partner
    http://guruce.com
    Consultancy, training and development services.


    • Edited by Erwin Zwart Tuesday, March 10, 2015 11:06 AM
    • Marked as answer by AnatolShir Tuesday, March 10, 2015 1:35 PM
    Tuesday, March 10, 2015 11:04 AM
  • Thanks a lot! With your  help i solved the problem. It was in BSP module which  simply shows the CPU speed and BSP version. I added few INCLUDES to the sources files of this module and solution compiled successfully.
    Tuesday, March 10, 2015 1:41 PM