codesourcery

How to stop MinGW and MSYS from mangling path names given at the command line

只谈情不闲聊 提交于 2019-11-27 03:19:37
On Windows, I'm cross-compiling a program for ARM/Linux using CodeSourcery's cross-compiler suite. I use MinGW MSYS as my command interpreter, and very often it will mangle my paths and pathnames. For example, to build my program, I invoke arm-none-linux-gnueabi-gcc.exe -Wall -g \ -Wl,--dynamic-linker=/usr/lib/myrpath/ld-linux.so.3 \ -Wl,-rpath=/usr/lib/myrpath \ -I../targetsysroot/usr/include \ myprogram.c -o myprogram Of course, I want /usr/lib/myrpath inserted verbatim into the myprogram executable - the ARM Linux target I'm compiling for doesn't use MinGW or MSYS. But here's what ends up

Is it possible to run a native arm binary on a non-rooted android phone?

回眸只為那壹抹淺笑 提交于 2019-11-27 00:02:55
问题 Well, I've been diving in the murky waters of low-level Android programming (native C/C++ using the CodeSourcery toolchain). I tried out the executable on an emulator and it worked. I'd like to try it out on a real device. So I plugged in my nexus and pushed the files on to the filesystem. Then I tried to execute the binary, and I got a permission error. It really doesn't matter how I mount it, or where I send it, I'm not root and it's not letting me execute it. Is there any way to run a

How to stop MinGW and MSYS from mangling path names given at the command line

时光怂恿深爱的人放手 提交于 2019-11-26 09:22:56
问题 On Windows, I\'m cross-compiling a program for ARM/Linux using CodeSourcery\'s cross-compiler suite. I use MinGW MSYS as my command interpreter, and very often it will mangle my paths and pathnames. For example, to build my program, I invoke arm-none-linux-gnueabi-gcc.exe -Wall -g \\ -Wl,--dynamic-linker=/usr/lib/myrpath/ld-linux.so.3 \\ -Wl,-rpath=/usr/lib/myrpath \\ -I../targetsysroot/usr/include \\ myprogram.c -o myprogram Of course, I want /usr/lib/myrpath inserted verbatim into the