c++ - Apache Cross Compilation Error ./gen_test_char: cannot execute binary file -


i looked quite time find solution bug. when trying cross-compile apache arm (i sure happen many other architectures), bug in server folder:

 ./gen_test_char: cannot execute binary file 

this means apache trying compile test_char.h generator actual device while need run on ubuntu cross-compiling. ubuntu not recognize compiled gen_test_char executable need compiled correctly ubuntu.

i searched , searched , found several tries patch none of them worked. of these patches suggested directly apache dev group.

but came across apache mail list. suggests straight forward solution patches not provide.

compile gen_test_char app before trying cross-compile apache. did. , followed suggestions , worked charm.

instead compile gen_test_char.c 1st like: gcc -wall -o2 -dcross_compile gen_test_char.c -s -o gen_test_char run , put output include folder (or placed normaly);

and after compilation run desired output with:

 ./gen_test_char > test_char.h 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -