Release build error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Release build error

1,443件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tschnagel on Thu May 09 12:47:02 MST 2013
Hello All,
  I'm using LPCXpresso version 5.2.4 (this also happened on 5.1.4).  My project builds fine under Debug build configuration, but under Release configuration, it won't compile my driver directory.

  I've looked at the makefile for both Debug and Release and for some reason, Release does not include my driver directory.  I've gone through all the screens and options under Properties->Settings and I have both set the same for includes.

This is my Debug makefile
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

-include ../makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include startup/subdir.mk
-include src/subdir.mk
-include driver/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif

-include ../makefile.defs


This is my Release Makefile
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

-include ../makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include startup/subdir.mk
-include src/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables 


Am I missing something simple?  Any help would be greatly appreciated.

Thanks in advance.
0 件の賞賛
返信
5 返答(返信)

1,357件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Fri May 10 04:06:10 MST 2013

Quote: tschnagel
Just realized that when a new folder is created, it is excluded by default :confused:.  Lesson learned. :)



Therfore you should create a new 'Source Folder', which is not excluded by default ;)

Lesson #1: If you want to use source in a folder, use a 'Source Folder'.

Lesson #2: 'Source Folder' icons and Folder icons are different. 'Source Folder' icons contain a blue 'C' :)
0 件の賞賛
返信

1,357件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tschnagel on Fri May 10 03:52:02 MST 2013
Thanks for all the help.  Problem solved...for some reason the driver directory was excluded from the Release build.  Just realized that when a new folder is created, it is excluded by default :confused:.  Lesson learned. :)
0 件の賞賛
返信

1,357件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Fri May 10 00:42:17 MST 2013
Does this FAQ help?
http://support.code-red-tech.com/CodeRedWiki/PerFileProperties
0 件の賞賛
返信

1,357件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by daniel.widyanto on Thu May 09 23:44:42 MST 2013
Erase the 'Release' directory first.

Then: Properties->C/C++ Build->Settings->Configuration: Release. Then add in your driver dir under MCU C Compiler->Includes, then click Apply

Then generate the Makefile by compiling the 'Release' built. Right click->Build Configuration->Build Selected...->Select the 'Release' built

See if it helps.
0 件の賞賛
返信

1,357件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu May 09 13:40:48 MST 2013

Quote: tschnagel
Am I missing something simple?



Without seeing your project it's difficult to guess. First thing I would check is 'Exclude from Build' .
0 件の賞賛
返信