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

Developer

Forums

Forums:

Hi,

I am trying to build my application (Using C++) with codesourcery G++ lite. I am not able to genereate the build process successfully. I am end with errors likethis.

My Quires are

1) Can we build C++ code with codesourcery ?

2) If i can use codesourcery, please teach me how to include my external liberies which are requird for my application to be included in the makefile. and also do i need to do any settings in the BrewMp properties.

3) Also please tell me aprt from RVCT, can i use any other compilers? 

Please help me in this. Awaithing for the reply. Thank you.

 

/////////////////////////My Error Messages//////////////////////////////////////

c:/program files (x86)/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib\libc.a(lib_a-abort.o): In function `abort':abort.c:(.text+0x10): undefined reference to `_exit'c:/program files (x86)/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib\libc.a(lib_a-sbrkr.o): In function `_sbrk_r':sbrkr.c:(.text+0x18): undefined reference to `_sbrk'c:/program files (x86)/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib\libc.a(lib_a-signalr.o): In function `_kill_r':signalr.c:(.text+0x1c): undefined reference to `_kill'c:/program files (x86)/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib\libc.a(lib_a-signalr.o): In function `_getpid_r':signalr.c:(.text+0x44): undefined reference to `_getpid'c:/program files (x86)/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib\libc.a(lib_a-writer.o): In function `_write_r':writer.c:(.text+0x20): undefined reference to `_write'c:/program files (x86)/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib\libc.a(lib_a-closer.o): In function `_close_r':closer.c:(.text+0x18): undefined reference to `_close'c:/program files (x86)/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib\libc.a(lib_a-fstatr.o): In function `_fstat_r':fstatr.c:(.text+0x1c): undefined reference to `_fstat'c:/program files (x86)/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib\libc.a(lib_a-isattyr.o): In function `_isatty_r':isattyr.c:(.text+0x18): undefined reference to `_isatty'c:/program files (x86)/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib\libc.a(lib_a-lseekr.o): In function `_lseek_r':lseekr.c:(.text+0x20): undefined reference to `_lseek'c:/program files (x86)/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib\libc.a(lib_a-readr.o): In function `_read_r':

readr.c:(.text+0x20): undefined reference to `_read'eadr.c:(.text+0x20): undefined reference to `_read'collect2: ld returned 1 exit status

//////////////End Error Messages//////////////////////////////////////////////

 

This is for BrewMP mod application.
1) I want to know wether can we get compatible  jsongen.lib and jsonparser.lib libraries for ARM code sourcery.
Right now these are available for win32, ADS and RVCT. But not for code sourcery.
Please help me in this.

This is for BrewMP mod application.
1) I want to know wether can we get compatible  jsongen.lib and jsonparser.lib libraries for ARM code sourcery.
Right now these are available for win32, ADS and RVCT. But not for code sourcery.
Please help me in this.

Hi Anjani,
Code Sourcery is the make tool, rite? It's not a target(Win32,  ADS, RVCT). With this you should be able to compile/link for Win32, ADS or RVCT.
- Herojit
 

Hi Anjani,
Code Sourcery is the make tool, rite? It's not a target(Win32,  ADS, RVCT). With this you should be able to compile/link for Win32, ADS or RVCT.
- Herojit
 

Can you paste ur make file?
- Herojit

Can you paste ur make file?
- Herojit

On C++ app, Issue is happening becuase some system header files files are not available at the time of compilation. Please make following changes in your MAK file, this will fix the issue. replace with your project name
ifeq ($(V_TARGET),armgcc)
_C_SRCS +=glibc_stubs
endif

ifneq ($(V_TARGET),Win32)
_C_SRCS +=mod_malloc
endif

# specify paths to search for dependencies
VPATH +=$(BREWMP_PLATFORM_DIR)/system/src

for ex: Here my project name is mycppapp

ifeq ($(V_TARGET),armgcc)
mycppapp_C_SRCS +=glibc_stubs
endif

ifneq ($(V_TARGET),Win32)
mycppapp_C_SRCS +=mod_malloc
endif

# specify paths to search for dependencies
VPATH +=$(BREWMP_PLATFORM_DIR)/system/src Note: This MAK file will be deleted once you build project again so check disbale automatic makefile generation checkbox, follow below steps: Open MS visual studio-> open you project->Select "Project" from menu pane->Select "Brew Mp properties"-> This will open "Brew MP Properties "window -> Select "Advanced" tab-> check "disbale automatic makefile generation" checkbox. This will not update changes we did earlier in MAK file.
Thanks, Mahesh

On C++ app, Issue is happening becuase some system header files files are not available at the time of compilation. Please make following changes in your MAK file, this will fix the issue. replace with your project name
ifeq ($(V_TARGET),armgcc)
_C_SRCS +=glibc_stubs
endif

ifneq ($(V_TARGET),Win32)
_C_SRCS +=mod_malloc
endif

# specify paths to search for dependencies
VPATH +=$(BREWMP_PLATFORM_DIR)/system/src

for ex: Here my project name is mycppapp

ifeq ($(V_TARGET),armgcc)
mycppapp_C_SRCS +=glibc_stubs
endif

ifneq ($(V_TARGET),Win32)
mycppapp_C_SRCS +=mod_malloc
endif

# specify paths to search for dependencies
VPATH +=$(BREWMP_PLATFORM_DIR)/system/src Note: This MAK file will be deleted once you build project again so check disbale automatic makefile generation checkbox, follow below steps: Open MS visual studio-> open you project->Select "Project" from menu pane->Select "Brew Mp properties"-> This will open "Brew MP Properties "window -> Select "Advanced" tab-> check "disbale automatic makefile generation" checkbox. This will not update changes we did earlier in MAK file.
Thanks, Mahesh