Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Building on ARM

(1/2) > >>

lesnewell:
I'm trying to build codeblocks on ARM (Raspberry Pi) using a recent SVN version.

A lot of the contrib plugins have this code:
#if defined(LOGGING)
 #define LOGGING 1
 #undef LOGIT
 #define LOGIT wxLogMessage
 #define TRAP asm("int3")
#endif

int3 is an x86 instruction so the compiler chokes. I can't see anywhere obvious where I can undefine LOGGING.

stahta01:
Building using what method?

CB Projects or configure/make?

If CB Projects, remove the define of "LOGGING" and maybe add the define of "NO_LOGGING".

Tim S.

lesnewell:
Sorry, configure and make.

stahta01:
Patch that comments out the TRAP defines. I see no where that TRAP define is used!

Edit: I did see another asm command that I did not try to fix; you will likely have to skip building that plugin or ask someone else how to fix it.

Tim S.

lesnewell:
Hmm, that TRAP must be being used somewhere otherwise the compiler would ignore it. Maybe something like this would be a more elegant solution https://github.com/scottt/debugbreak/blob/master/debugbreak.h. It seems to cover most common architectures.

Navigation

[0] Message Index

[#] Next page

Go to full version