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: *** Error 1
make: 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: *** Error 1 在移植Qt程序,已经移植好Qte5.7.1,PC机Qt creator搭建好交叉编译环境(可能我比较幸运,过程中出现的问题基本上网上都找到解决方法,所以不多说了),随便找了个Qt自带的工程例子,编译成可执行文件,在开发板上能跑起来。真正要移植的程序还需要json和activemq的库,json已编译好,然后是cppunit,apr,apr-util,openssl,activema-cpp,上面是对apr进行make时出错。 根据第一条报错,打开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。 顺便问一下,开发板烧的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装不上,感觉既然开发板上就是交叉编译环境,还不如直接在板上来编译库。求解答,先谢。 Hiapt问题 : 删除/etc/apt/apt.conf
my bad isle 发表于 2017-2-24 10:52
Hiapt问题 : 删除/etc/apt/apt.conf
my bad
3Q, and apology accepted. lol. 本帖最后由 huoooooo 于 2017-5-5 16:00 编辑
程序已经能跑起来了,经测试json和mq都起作用。
qmake.conf添加:
QMAKE_LIBS = -dynamic-linker -lxcb -lXau -lXdmcp -lXi -lXext -lX11
配置选项如:
./configure -v \
-prefix /usr/local/Trolltech/QtEmbedded-5.7.1-arm \
-opensource -release -confirm-license -shared -qt-xcb -qpa xcb \
-no-glib -no-largefile -no-tslib -no-cups \
-qt-zlib -qt-libpng -qt-libjpeg -no-opengl \
-make libs -nomake tools -nomake examples -nomake tests \
-no-sse2 -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 \
-no-avx -no-avx2 -no-avx512 -no-mips_dsp -no-mips_dspr2 \
-skip qt3d -skip qtcanvas3d -skip qtgamepad -skip qtandroidextras \
-skip qtvirtualkeyboard -skip qtmacextras -skip qtpurchasing \
-xplatform linux-arm-gnueabi-g++
就差个spice客户端了。
还是没养成很好的习惯,有些错误没记录。anyway,,,
碰到设置好LD_LIBRARY_PATH没效果的问题,直接把路径加到/etc/ld.so.conf中,然后sudo ldconfig。太暴力了哈哈。 本帖最后由 huoooooo 于 2017-4-13 18:26 编辑
什么?花屏?不在同一图层嘛,还两个鼠标,ubuntu跑的是x11,要么qt程序加载xcb插件,linuxfb插件一般是给触摸屏用的,要么service lightdm stop,不过ubuntu系统就废了,而且拖动窗口也还是会花屏,而且spicy也是跑x11。 本帖最后由 huoooooo 于 2017-7-12 16:29 编辑
linuxfb版本的qte库编译出来后居然不支持热插拔,xcb版本的是可以的呀
页:
[1]
2