Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

When compiling any of the Qualcomm sample projects (i.e. c_samplsms) using CodeSourcery as the ARM compiler in Visual Studio 2008 I get a list of errors (shown below). I can compile the code for Win32 / x86 without any errors and run it in the simulator but I need to be able to get ARM code for the target.

 

I can also create a new Brew MP project and get it to compile with the CodeSourcey compiler so I think it is installed OK.

Are there any compler switches I need to set or anything else to get the sample code to compile ?

 

Error list:

 

Project Brew MP Version: 1.0.2.488

------ Build started: Project: c_samplesms, Configuration: Debug ------

cs-make.exe SHELL=cmd -f "c_samplesms.mak" "V=armgcc_Debug" "BREWMPSDK=C:\PROGRA~1\Qualcomm\BREWMP~1\PLATFO~1\102~1.488\platform" "BREWMP_PLATFORM=C:\Program Files\Qualcomm\Brew MP SDK\Platforms\1.0.2.488\platform"

"arm-none-eabi-gcc" -marm -c -Wall -Werror -fshort-wchar -Wno-missing-braces -mword-relocations  -ffunction-sections  -D__ARMCGCC -g -std=gnu99     -D_DEBUG -D_DEBUG  -IC:/PROGRA~1/Qualcomm/BREWMP~1/PLATFO~1/102~1.488/platform/connectivity/inc -IC:/PROGRA~1/Qualcomm/BREWMP~1/PLATFO~1/102~1.488/platform/databases/inc -IC:/PROGRA~1/Qualcomm/BREWMP~1/PLATFO~1/102~1.488/platform/deprecated/inc -IC:/PROGRA~1/Qualcomm/BREWMP~1/PLATFO~1/102~1.488/platform/hardware/inc -IC:/PROGRA~1/Qualcomm/BREWMP~1/PLATFO~1/102~1.488/platform/languages/inc -IC:/PROGRA~1/Qualcomm/BREWMP~1/PLATFO~1/102~1.488/platform/media/inc -IC:/PROGRA~1/Qualcomm/BREWMP~1/PLATFO~1/102~1.488/platform/networking/inc -IC:/PROGRA~1/Qualcomm/BREWMP~1/PLATFO~1/102~1.488/platform/security/inc -IC:/PROGRA~1/Qualcomm/BREWMP~1/PLATFO~1/102~1.488/platform/system/inc -IC:/PROGRA~1/Qualcomm/BREWMP~1/PLATFO~1/102~1.488/platform/telephony/inc -IC:/PROGRA~1/Qualcomm/BREWMP~1/PLATFO~1/102~1.488/platform/ui/inc -Iarmgcc_Debug  -oarmgcc_Debug/c_samplesms.o c_samplesms.c

cc1.exe: warnings being treated as errors

c_samplesms.c: In function 'c_samplesms_HandleEvent':

c_samplesms.c:678: error: passing argument 5 of 'pMe->m_pIShell->pvt->SendEvent' makes integer from pointer without a cast

c_samplesms.c:678: note: expected 'uint16' but argument is of type 'void *'

c_samplesms.c:678: error: passing argument 6 of 'pMe->m_pIShell->pvt->SendEvent' makes integer from pointer without a cast

c_samplesms.c:678: note: expected 'uint32' but argument is of type 'void *'

c_samplesms.c: In function 'c_samplesms_DrawSoftKey':

c_samplesms.c:1463: error: passing argument 3 of 'IDisplay_DrawRect' makes integer from pointer without a cast

C:/PROGRA~1/Qualcomm/BREWMP~1/PLATFO~1/102~1.488/platform/ui/inc/AEEIDisplay.h:277: note: expected 'RGBVAL' but argument is of type 'void *'

c_samplesms.c:1471: error: passing argument 5 of 'IDisplay_DrawText' makes integer from pointer without a cast

C:/PROGRA~1/Qualcomm/BREWMP~1/PLATFO~1/102~1.488/platform/ui/inc/AEEIDisplay.h:273: note: expected 'int' but argument is of type 'void *'

c_samplesms.c:1471: error: passing argument 6 of 'IDisplay_DrawText' makes integer from pointer without a cast

C:/PROGRA~1/Qualcomm/BREWMP~1/PLATFO~1/102~1.488/platform/ui/inc/AEEIDisplay.h:273: note: expected 'int' but argument is of type 'void *'

c_samplesms.c:1476: error: passing argument 5 of 'IDisplay_DrawText' makes integer from pointer without a cast

C:/PROGRA~1/Qualcomm/BREWMP~1/PLATFO~1/102~1.488/platform/ui/inc/AEEIDisplay.h:273: note: expected 'int' but argument is of type 'void *'

c_samplesms.c:1476: error: passing argument 6 of 'IDisplay_DrawText' makes integer from pointer without a cast

C:/PROGRA~1/Qualcomm/BREWMP~1/PLATFO~1/102~1.488/platform/ui/inc/AEEIDisplay.h:273: note: expected 'int' but argument is of type 'void *'

c_samplesms.c: In function 'c_samplesms_ShowStatus':

c_samplesms.c:1513: error: passing argument 4 of 'pMe->m_pIStatic->pvt->SetText' makes integer from pointer without a cast

c_samplesms.c:1513: note: expected 'AEEFont' but argument is of type 'void *'

c_samplesms.c: In function 'c_samplesms_DisplayMessage':

c_samplesms.c:1698: error: comparison between pointer and integer

cs-make.exe: *** [armgcc_Debug/c_samplesms.o] Error 1

------ Build failed: Project: c_samplesms ------

 

refer to Compiler help in CodeSourcery docs.. the compiler is treating warnings as errors bcoz of the compiler flag -werror.
 
2 options:
1.  fix the warnings as per instructions from compiler messages.
2. to disable this you may remove the flag -Werror from compiler flags.
go to Current BMP Platform Dir (...Brew MP SDK\Platforms\1.0.2.xxx\).
 - in folder make.d, open "defines_armgcc.min" & remove the flag "-werror" from __CXX_FLAGS.

refer to Compiler help in CodeSourcery docs.. the compiler is treating warnings as errors bcoz of the compiler flag -werror.
 
2 options:
1.  fix the warnings as per instructions from compiler messages.
2. to disable this you may remove the flag -Werror from compiler flags.
go to Current BMP Platform Dir (...Brew MP SDK\Platforms\1.0.2.xxx\).
 - in folder make.d, open "defines_armgcc.min" & remove the flag "-werror" from __CXX_FLAGS.

Thanks ! This was QC's sample code as-is. I guess I should really fix their bad coding rather than trying to mask it.

Thanks ! This was QC's sample code as-is. I guess I should really fix their bad coding rather than trying to mask it.