Build.exe

There are 7 entries for the tag Build.exe
Platform Builder: Cannot open include file: 'windows.h': No such file or directory
The following is unique to Platform Builder, and applies to any version. The problem is that when building a driver, BSP or sub-project, the compiler fails with the error message “Cannot open include file: 'windows.h': No such file or directory.” There are probably many ways to cause this error. Many of these are simple user error, like accidently deleting or moving windows.h. But let’s focus on the most likely problems that can cause this. 1. The most common cause that I have run into is that the ......

Posted On Friday, January 23, 2009 12:23 PM | Comments (0)

Platform Builder: Sources.cmn
Sources.cmn is a build configuration system file that allows you to set common variables. This can be useful if more than one directory in the build tree need the a variable set to the same value because it can reduce your maintenance efforts. Each build tree can use one sources.cmn file. When build.exe runs, it will determine the root of the build tree by looking for the top most folder with a Dirs file. Build.exe then sets BUILDROOT to the top most folder with a Dirs files. Makefile.def in Public\Common\OAK\Misc ......

Posted On Saturday, August 23, 2008 10:56 PM | Comments (4)

Platform Builder: Sources Files 2
I was looking over my original post about sources files (Platform Builder: Sources Files) today and it occurred to me that there is room to improve. That post provided basic information to create a sources file that will build a driver. The following are other things that you can do within a sources file: Set CFLAGS and AFLAGS CFLAGS and AFLAGS cannot be set in a sources file. Instead, you will need to set CDEFINES and ADEFINES to set compiler and assembler command line flags. Set CDEFINES, LDEFINES ......

Posted On Friday, August 22, 2008 6:22 PM | Comments (0)

Platform Builder: Cloning an MDD Lib
I have written about cloning code from the Public tree to a platform in the past, but someone recently asked about cloning an MDD lib build directory. More specifically the question was about cloning ufnmdd.lib in Windows CE 5.0, which is actually created by linking three separate libs together. In this article, I will walk through the process by cloning one of those libs. Ufnmdd.lib is created by linking ufnmddbase.lib, ceosutil.lib and defbuslib.lib. I suspect that most people don’t really need ......

Posted On Thursday, August 21, 2008 12:10 AM | Comments (2)

Platform Builder: Sources Files
Earlier I posted about dirs files and stated that dirs files are the direction signs for build.exe. Sources files are the destinations. When build.exe finds a sources file, it stops and runs nmake to build the source code in the directory. Sources files set environment variables that are then used by nmake when interpreting the makefile. Of course if you have looked at the makefiles, you see that they typically only include the makefile.def in Public\Common\Oak\Misc. Setting variables in a sources ......

Posted On Monday, August 4, 2008 8:48 PM | Comments (9)

Platform Builder: IXP46x, 128 MB RAM, CEBaseCESysgen.bat - System Fails to Boot
It has been another one of those days. Several months ago we discovered that one of our systems wouldn’t boot if we did a clean build, but if we built the kernel separately and then ran makeimg the system would boot. What a mystery, that just didn’t make any sense. So, the engineer on the project modified PreMakeimg.bat to rebuild the kernel when we run makeimg. All was good, but this increases build time. If you have followed this blog, you know that I don’t like long build times but we all tolerated ......

Posted On Tuesday, July 22, 2008 9:02 PM | Comments (2)

Platform Builder: Dirs Files
Dirs files are the direction signs for building your platform. They show the way for build.exe to find your code to build it. Dirs files are probably the best named files in the build system because what they do is tell build.exe which sub directories to descend into to build. If you have looked around at the files in your platform, then you probably are familiar with the basic form of a dirs file, here is an example: DIRS=\ Serial \ USB \ Wave This dirs file tells build to descend into three folders; ......

Posted On Wednesday, July 16, 2008 9:31 PM | Comments (4)