标题: yizhi Qt chengxu dao kaifaban [打印本页] 作者: huoooooo 时间: 2017-2-22 11:44 标题: yizhi Qt chengxu dao kaifaban encoding/apr_escape.c: In function 'apr_escape_shell':
encoding/apr_escape.c:79:33: error: 'test_char_table' undeclared (first use in this function)
#define TEST_CHAR(c, f) (test_char_table[(unsigned)(c)] & (f))
^
encoding/apr_escape.c:109:21: note: in expansion of macro 'TEST_CHAR'
if (TEST_CHAR(*s, T_ESCAPE_SHELL_CMD)) {
^
encoding/apr_escape.c:79:33: note: each undeclared identifier is reported only once for each function it appears in
#define TEST_CHAR(c, f) (test_char_table[(unsigned)(c)] & (f))
^
encoding/apr_escape.c:109:21: note: in expansion of macro 'TEST_CHAR'
if (TEST_CHAR(*s, T_ESCAPE_SHELL_CMD)) {
^
encoding/apr_escape.c:109:35: error: 'T_ESCAPE_SHELL_CMD' undeclared (first use in this function)
if (TEST_CHAR(*s, T_ESCAPE_SHELL_CMD)) {
^
encoding/apr_escape.c:79:67: note: in definition of macro 'TEST_CHAR'
#define TEST_CHAR(c, f) (test_char_table[(unsigned)(c)] & (f))
^
encoding/apr_escape.c: In function 'apr_escape_path_segment':
encoding/apr_escape.c:79:33: error: 'test_char_table' undeclared (first use in this function)
#define TEST_CHAR(c, f) (test_char_table[(unsigned)(c)] & (f))
^
encoding/apr_escape.c:353:21: note: in expansion of macro 'TEST_CHAR'
if (TEST_CHAR(c, T_ESCAPE_PATH_SEGMENT)) {
^
encoding/apr_escape.c:353:34: error: 'T_ESCAPE_PATH_SEGMENT' undeclared (first use in this function)
if (TEST_CHAR(c, T_ESCAPE_PATH_SEGMENT)) {
^
encoding/apr_escape.c:79:67: note: in definition of macro 'TEST_CHAR'
#define TEST_CHAR(c, f) (test_char_table[(unsigned)(c)] & (f))
^
encoding/apr_escape.c: In function 'apr_escape_path':
encoding/apr_escape.c:79:33: error: 'test_char_table' undeclared (first use in this function)
#define TEST_CHAR(c, f) (test_char_table[(unsigned)(c)] & (f))
^
encoding/apr_escape.c:437:17: note: in expansion of macro 'TEST_CHAR'
if (TEST_CHAR(c, T_OS_ESCAPE_PATH)) {
^
encoding/apr_escape.c:437:30: error: 'T_OS_ESCAPE_PATH' undeclared (first use in this function)
if (TEST_CHAR(c, T_OS_ESCAPE_PATH)) {
^
encoding/apr_escape.c:79:67: note: in definition of macro 'TEST_CHAR'
#define TEST_CHAR(c, f) (test_char_table[(unsigned)(c)] & (f))
^
encoding/apr_escape.c: In function 'apr_escape_urlencoded':
encoding/apr_escape.c:79:33: error: 'test_char_table' undeclared (first use in this function)
#define TEST_CHAR(c, f) (test_char_table[(unsigned)(c)] & (f))
^
encoding/apr_escape.c:504:21: note: in expansion of macro 'TEST_CHAR'
if (TEST_CHAR(c, T_ESCAPE_URLENCODED)) {
^
encoding/apr_escape.c:504:34: error: 'T_ESCAPE_URLENCODED' undeclared (first use in this function)
if (TEST_CHAR(c, T_ESCAPE_URLENCODED)) {
^
encoding/apr_escape.c:79:67: note: in definition of macro 'TEST_CHAR'
#define TEST_CHAR(c, f) (test_char_table[(unsigned)(c)] & (f))
^
encoding/apr_escape.c: In function 'apr_escape_entity':
encoding/apr_escape.c:79:33: error: 'test_char_table' undeclared (first use in this function)
#define TEST_CHAR(c, f) (test_char_table[(unsigned)(c)] & (f))
^
encoding/apr_escape.c:578:21: note: in expansion of macro 'TEST_CHAR'
if (TEST_CHAR(c, T_ESCAPE_XML)) {
^
encoding/apr_escape.c:578:34: error: 'T_ESCAPE_XML' undeclared (first use in this function)
if (TEST_CHAR(c, T_ESCAPE_XML)) {
^
encoding/apr_escape.c:79:67: note: in definition of macro 'TEST_CHAR'
#define TEST_CHAR(c, f) (test_char_table[(unsigned)(c)] & (f))
^
encoding/apr_escape.c: In function 'apr_escape_echo':
encoding/apr_escape.c:79:33: error: 'test_char_table' undeclared (first use in this function)
#define TEST_CHAR(c, f) (test_char_table[(unsigned)(c)] & (f))
^
encoding/apr_escape.c:884:21: note: in expansion of macro 'TEST_CHAR'
if (TEST_CHAR(c, T_ESCAPE_ECHO)) {
^
encoding/apr_escape.c:884:34: error: 'T_ESCAPE_ECHO' undeclared (first use in this function)
if (TEST_CHAR(c, T_ESCAPE_ECHO)) {
^
encoding/apr_escape.c:79:67: note: in definition of macro 'TEST_CHAR'
#define TEST_CHAR(c, f) (test_char_table[(unsigned)(c)] & (f))
^
/opt/activemqcpp/apr-1.5.2/build/apr_rules.mk:206: recipe for target 'encoding/apr_escape.lo' failed
make[1]: *** [encoding/apr_escape.lo] Error 1
make[1]: Leaving directory '/opt/activemqcpp/apr-1.5.2'
/opt/activemqcpp/apr-1.5.2/build/apr_rules.mk:118: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1作者: huoooooo 时间: 2017-2-22 13:36
在移植Qt程序,已经移植好Qte5.7.1,PC机Qt creator搭建好交叉编译环境(可能我比较幸运,过程中出现的问题基本上网上都找到解决方法,所以不多说了),随便找了个Qt自带的工程例子,编译成可执行文件,在开发板上能跑起来。真正要移植的程序还需要json和activemq的库,json已编译好,然后是cppunit,apr,apr-util,openssl,activema-cpp,上面是对apr进行make时出错。作者: huoooooo 时间: 2017-2-22 13:46
根据第一条报错,打开encoding/apr_escape.c,其依赖的头文件include/private/apr_escape_test_char.h为空,在tools/下面找到gen_test_char,发现是ARM下的程序,用gcc编译该目录下的源文件生成在PC机上执行的gen_test_char,执行它并输出重定向到include/private/apr_escape_test_char.h,该文件就有了test_char_table。作者: huoooooo 时间: 2017-2-22 16:24
顺便问一下,开发板烧的Firefly-rk3288_Ubuntu_1604_2016_10181203_Beta.7z固件,不知道是32位的还是64位的,用uname看不出来,file /usr/bin/ls 是32位程序。网络可用,但是apt update不行,连接168.168.0.14(没记错的话)超时,所以apt install qtcreator装不上,感觉既然开发板上就是交叉编译环境,还不如直接在板上来编译库。求解答,先谢。作者: isle 时间: 2017-2-24 10:52
Hi apt问题 : 删除/etc/apt/apt.conf
my bad作者: huoooooo 时间: 2017-2-24 17:34