• 90903阅读
  • 196回复

qtembedded的桌面系统EMD(即Embedded desktop) [复制链接]

上一主题 下一主题
离线watery920
只看该作者 80楼 发表于: 2010-10-05
再跟您请教一下!!点击任务栏上的输入法图标,使输入法与软键盘出现的"触发程序",是在那一个程序中实现的?因为我可能要从这边着手与楼主以上所提供的部份来操作!!谢谢!!
离线watery920
只看该作者 81楼 发表于: 2010-10-05
另外,我点击任务栏上的输入法图标不会出现输入法和软键盘,但是点击TimeSetting时会跳出输入法与软键盘!! 这是链接部份有误!!?
离线zzz945
只看该作者 82楼 发表于: 2010-10-05
任务栏上的是输入法管理器, 也就是用来切换输入法的,  而不是触发输入法的, 但目前只注册了一个输入法, 所以它现在没用。 输入法是根据需要自动触发的,  触发的条件是当前有焦点的控件能接受输入。 你打开textedit程序试一下, 输入法会自动出现。  你不用关心任务栏上的东西, 只需要用AbstractInputMethod的接口就可以
离线watery920
只看该作者 83楼 发表于: 2010-10-06
楼主,再跟您请教一下, 打开textedit程序中, “输入法会自动出现”<=这个触发的条件是在那一个.cpp的那一段程序中??因为刚学习,还有很多不太懂的!!感谢!
离线zzz945
只看该作者 84楼 发表于: 2010-10-06
过程是这样的:
    每个client程序都和server有唯一的一个通信通道, 当textedit程序得知自己获得焦点的控件可以接受输入, 就会通过这个通道给server发送消息, server接受到消息后, 就会启动输入法。client部分的程序在emdesktopclient中, server的程序在applicationmanager中, applicationmanager接受client的消息, 并发送启动输入法的信号
离线watery920
只看该作者 85楼 发表于: 2010-10-07
楼主,再请教一下,server接受到消息是以这个函数来接受的?(bool ApplicationsManager::launch).但是这个函数中好像没有发送启动输入法的信号? 是这个函数slotChannelMessage(QString, QByteArray) 发送启动输入法信号吗?谢谢!!
离线watery920
只看该作者 86楼 发表于: 2010-10-07
另外一问,输入法与软键盘可以直接做成独立运行的程序吗?像是/emd/emdesktop-running-environment/app底下的hellow,imageview,textedit,lineedit,直接以./来执行,不需透过emd的程序?是否可以请楼主给予指示,感谢!
离线watery920
只看该作者 87楼 发表于: 2010-10-07
修正以上的问题!!应该是夹带输入法的软键盘是否可以做成独立运行的程序!?
离线zzz945
只看该作者 88楼 发表于: 2010-10-08
引用第85楼watery920于2010-10-07 14:16发表的  :
楼主,再请教一下,server接受到消息是以这个函数来接受的?(bool ApplicationsManager::launch).但是这个函数中好像没有发送启动输入法的信号? 是这个函数slotChannelMessage(QString, QByteArray) 发送启动输入法信号吗?谢谢!!


当有启动输入法的需要时, ApplicationManager::message(...)信号就会发送启动输入发的信息, 它只管发送信号, 而不管谁关心这个信号。 关心这个信号的有ImManager类, 所以在它的构造函数中你会发现它connect了这个信号到自己的槽中处理。 这就是Observer模式, 谁关心谁注册, 实现模块解偶的灵丹妙药, 也是QT中signal and slot的精华。
离线zzz945
只看该作者 89楼 发表于: 2010-10-08
引用第86楼watery920于2010-10-07 14:40发表的  :
另外一问,输入法与软键盘可以直接做成独立运行的程序吗?像是/emd/emdesktop-running-environment/app底下的hellow,imageview,textedit,lineedit,直接以./来执行,不需透过emd的程序?是否可以请楼主给予指示,感谢!


int main(......)
{
       .......
       QTextEdit *text_edit = new QTextEdit;
       AbstractInputMethod *pin_yin = new PinYinInputMethod;
       QWSServer::instance()->setCurrentInputMethod(pin_yin);
       pin_yin->toggled(true);
       QVBoxLayout *vbox = new QVBoxLayout;
       vbox->addWidget(text_edit);
       vbox->addWidget(pin_yin->widget());
       QWidget main;
       main.setLayout(vbox);
       main.show();
       ......
}

你还要修改pinyininputmethod.cpp中输入法库文件的路径, 让程序能找到它们
上面的代码没有过测试
[ 此帖被zzz945在2010-10-08 15:40重新编辑 ]
离线watery920
只看该作者 90楼 发表于: 2010-10-08
在applicationsmaanger.cpp中只有看到ApplicationsManager::slotChannelMessage(),没有ApplicationManager::message(),请问是后来程序有改吗?

我是从这边取得程序的!! http://emd.svn.sourceforge.net/viewvc/emd/?view=tar
点击任务栏上app中的textedit会出现错!!

以上的指示程序,我看到了,谢谢!!

[ 此帖被watery920在2010-10-08 14:49重新编辑 ]
离线zzz945
只看该作者 91楼 发表于: 2010-10-08
message()是signal, 程序一直在改, 下载最新的试下

出现什么错误
离线watery920
只看该作者 92楼 发表于: 2010-10-08
出現segmentation fault的錯!! 无法开启程序


程序一样是从这边取得吗??!! http://emd.svn.sourceforge.net/viewvc/emd/?view=tar


AbstractInputMethod *pin_yin = new QPinYinInputMethod;
楼主给的程序中,好像没有QPinYinInputMethod这个类可以用


main.cpp:20: error: expected type-specifier before 'QPinYinInputMethod'
main.cpp:20: error: cannot convert 'int*' to 'AbstractInputMethod*' in initialization
main.cpp:20: error: expected ',' or ';' before 'QPinYinInputMethod'




[ 此帖被watery920在2010-10-08 15:15重新编辑 ]
离线zzz945
只看该作者 93楼 发表于: 2010-10-08
打错了, 是PinYinInputMethod, 当然还要在你的工程里加入必要的.h和.cpp, 其他的程序也会出现segment fault吗, 是server出现segment, 还是textedit出现, 看看你的emdesktop-runnint-environment/app 下有没有可执行程序
离线watery920
只看该作者 94楼 发表于: 2010-10-08
emdesktop-runnint-environment/app有可执行程序,单独执行./textedit是可执行的.但是透过emd就是不行!!其它3个也一样!!其实执行emd的textedit有被呼叫起来,但是立刻就跳掉了!!连emd也结束了!!
离线zzz945
只看该作者 95楼 发表于: 2010-10-08
你试一下运行两个普通qt程序, 比如第一个./textedit -qws, 第2个./lineedit,  看看有没有问题, 如果有问题就和编译器有关
离线gaowf_1987
只看该作者 96楼 发表于: 2010-10-21
编译出现这个问题是怎么回事呀?
emdecorationplugin/emdecoration.cpp:1: 错误:开关的参数(generic,属于开关-mtune=)不正确
emdecorationplugin/emdecoration.cpp:1: 错误:开关的参数(i386,属于开关-march=)不正确
离线zzz945
只看该作者 97楼 发表于: 2010-10-21
为EMD做了一个文件系统, 在http://blog.csdn.net/z642010820/archive/2010/10/14/5939999.aspx记录了制作的全过程, 有全部的脚本和配置文件。
离线zzz945
只看该作者 98楼 发表于: 2010-10-21
回 96楼(gaowf_1987) 的帖子
是编译器的问题吧, 你在命令行里打qmake -v看看
离线liyayao

只看该作者 99楼 发表于: 2010-11-01
编译时出现
'class QApplication'has no menber named 'qwsSetDecoration'
怎么解决
离线liyayao

只看该作者 100楼 发表于: 2010-11-01
make clean 之后出了 'QCopChannel' was not declared in this scope

编译qtembedded for x86的时候我, ./configure -prefix /path install, -phonon ,-qvfb 然后make ,make install

在qcopchannel_qws.h中有
#ifndef QT_NO_COP
class QWSClient;
class QCopChannelPrivate;
.....
是不是 就说明编译qt时, 没有把这模块编译进去
离线liyayao

只看该作者 101楼 发表于: 2010-11-01
我要怎么做呢
离线liyayao

只看该作者 102楼 发表于: 2010-11-01
回 17楼(yinsun_01) 的帖子
对于这个
'QCopChannel' was not declared in this scope
你是怎么做的
我编译不通过
我又重新编译了QT
我编译的是
qt-everywhere-opensource-src-4.7.0.tar.gz

能说一下吗
离线zzz945
只看该作者 103楼 发表于: 2010-11-01
你编译的是qt for x11, 编译参数不对, 具体用./configure --help查看, 你可以参考clfs for emd对qt的编译参数, 上页有链接
离线liyayao

只看该作者 104楼 发表于: 2010-11-01
回 103楼(zzz945) 的帖子
我编译的是在Fedora 10上,没有编译 Qt SDK for Linux/X11 64-bit** (530 MB)
我想先编译PC上的QTE
我编译的QT是qt-everywhere-opensource-src-4.7.0.tar.gz
这个是QT embedded 的吧
我是
./configure
make
make install
完成安装的
离线liyayao

只看该作者 105楼 发表于: 2010-11-01
我该如何才能编译成PC上的QTE呢,求助楼主
离线liyayao

只看该作者 106楼 发表于: 2010-11-01
# ./configure -help
Usage:  configure [-h] [-prefix <dir>] [-prefix-install] [-bindir <dir>] [-libdir <dir>]
        [-docdir <dir>] [-headerdir <dir>] [-plugindir <dir> ] [-importdir <dir>] [-datadir <dir>]
        [-translationdir <dir>] [-sysconfdir <dir>] [-examplesdir <dir>]
        [-demosdir <dir>] [-buildkey <key>] [-release] [-debug]
        [-debug-and-release] [-developer-build] [-shared] [-static] [-no-fast] [-fast] [-no-largefile]
        [-largefile] [-no-exceptions] [-exceptions] [-no-accessibility]
        [-accessibility] [-no-stl] [-stl] [-no-sql-<driver>] [-sql-<driver>]
        [-plugin-sql-<driver>] [-system-sqlite] [-no-qt3support] [-qt3support]
        [-platform] [-D <string>] [-I <string>] [-L <string>] [-help]
        [-qt-zlib] [-system-zlib] [-no-gif] [-qt-gif] [-no-libtiff] [-qt-libtiff] [-system-libtiff]
        [-no-libpng] [-qt-libpng] [-system-libpng] [-no-libmng] [-qt-libmng]
        [-system-libmng] [-no-libjpeg] [-qt-libjpeg] [-system-libjpeg] [-make <part>]
        [-nomake <part>] [-R <string>]  [-l <string>] [-no-rpath]  [-rpath] [-continue]
        [-verbose] [-v] [-silent] [-no-nis] [-nis] [-no-cups] [-cups] [-no-iconv]
        [-iconv] [-no-pch] [-pch] [-no-dbus] [-dbus] [-dbus-linked] [-no-gui]
        [-no-separate-debug-info] [-no-mmx] [-no-3dnow] [-no-sse] [-no-sse2]
        [-qtnamespace <namespace>] [-qtlibinfix <infix>] [-separate-debug-info] [-armfpa]
        [-no-optimized-qmake] [-optimized-qmake] [-no-xmlpatterns] [-xmlpatterns]
        [-no-multimedia] [-multimedia] [-no-phonon] [-phonon] [-no-phonon-backend] [-phonon-backend]
        [-no-media-backend] [-media-backend] [-no-audio-backend] [-audio-backend]
        [-no-openssl] [-openssl] [-openssl-linked]
        [-no-gtkstyle] [-gtkstyle] [-no-svg] [-svg] [-no-webkit] [-webkit] [-no-javascript-jit] [-javascript-jit]
        [-no-script] [-script] [-no-scripttools] [-scripttools] [-no-declarative] [-declarative]

        [additional platform specific options (see below)]


Installation options:

These are optional, but you may specify install directories.

    -prefix <dir> ...... This will install everything relative to <dir>
                         (default /usr/local/Trolltech/Qt-4.7.0)

  * -prefix-install .... Force a sandboxed "local" installation of
                         Qt. This will install into
                         /usr/local/Trolltech/Qt-4.7.0, if this option is
                         disabled then some platforms will attempt a
                         "system" install by placing default values to
                         be placed in a system location other than
                         PREFIX.

You may use these to separate different parts of the install:

    -bindir <dir> ......... Executables will be installed to <dir>
                            (default PREFIX/bin)
    -libdir <dir> ......... Libraries will be installed to <dir>
                            (default PREFIX/lib)
    -docdir <dir> ......... Documentation will be installed to <dir>
                            (default PREFIX/doc)
    -headerdir <dir> ...... Headers will be installed to <dir>
                            (default PREFIX/include)
    -plugindir <dir> ...... Plugins will be installed to <dir>
                            (default PREFIX/plugins)
    -importdir <dir> ...... Imports for QML will be installed to <dir>
                            (default PREFIX/imports)
    -datadir <dir> ........ Data used by Qt programs will be installed to <dir>
                            (default PREFIX)
    -translationdir <dir> . Translations of Qt programs will be installed to <dir>
                            (default PREFIX/translations)
    -sysconfdir <dir> ..... Settings used by Qt programs will be looked for in <dir>
                            (default PREFIX/etc/settings)
    -examplesdir <dir> .... Examples will be installed to <dir>
                            (default PREFIX/examples)
    -demosdir <dir> ....... Demos will be installed to <dir>
                            (default PREFIX/demos)

You may use these options to turn on strict plugin loading.

    -buildkey <key> .... Build the Qt library and plugins using the specified
                         <key>.  When the library loads plugins, it will only
                         load those that have a matching key.

Configure options:

The defaults (*) are usually acceptable. A plus (+) denotes a default value
that needs to be evaluated. If the evaluation succeeds, the feature is
included. Here is a short explanation of each option:

*  -release ........... Compile and link Qt with debugging turned off.
    -debug ............. Compile and link Qt with debugging turned on.
    -debug-and-release . Compile and link two versions of Qt, with and without
                         debugging turned on (Mac only).

    -developer-build ... Compile and link Qt with Qt developer options (including auto-tests exporting)

    -opensource ........ Compile and link the Open-Source Edition of Qt.
    -commercial ........ Compile and link the Commercial Edition of Qt.


*  -shared ............ Create and use shared Qt libraries.
    -static ............ Create and use static Qt libraries.

*  -no-fast ........... Configure Qt normally by generating Makefiles for all
                         project files.
    -fast .............. Configure Qt quickly by generating Makefiles only for
                         library and subdirectory targets.  All other Makefiles
                         are created as wrappers, which will in turn run qmake.

    -no-largefile ...... Disables large file support.
+  -largefile ......... Enables Qt to access files larger than 4 GB.

    -no-exceptions ..... Disable exceptions on compilers that support it.
*  -exceptions ........ Enable exceptions on compilers that support it.

    -no-accessibility .. Do not compile Accessibility support.
*  -accessibility ..... Compile Accessibility support.

    -no-stl ............ Do not compile STL support.
*  -stl ............... Compile STL support.

    -no-sql-<driver> ... Disable SQL <driver> entirely.
    -qt-sql-<driver> ... Enable a SQL <driver> in the QtSql library, by default
                         none are turned on.
    -plugin-sql-<driver> Enable SQL <driver> as a plugin to be linked to
                         at run time.

                         Possible values for <driver>:
                         [  db2 ibase mysql oci odbc psql sqlite sqlite2 sqlite_symbian tds ]

    -system-sqlite ..... Use sqlite from the operating system.

    -no-qt3support ..... Disables the Qt 3 support functionality.
*  -qt3support ........ Enables the Qt 3 support functionality.

    -no-xmlpatterns .... Do not build the QtXmlPatterns module.
+  -xmlpatterns ....... Build the QtXmlPatterns module.
                         QtXmlPatterns is built if a decent C++ compiler
                         is used and exceptions are enabled.

    -no-multimedia ..... Do not build the QtMultimedia module.
+  -multimedia ........ Build the QtMultimedia module.

    -no-audio-backend .. Do not build the platform audio backend into QtMultimedia.
+  -audio-backend ..... Build the platform audio backend into QtMultimedia if available.

    -no-phonon ......... Do not build the Phonon module.
+  -phonon ............ Build the Phonon module.
                         Phonon is built if a decent C++ compiler is used.
    -no-phonon-backend.. Do not build the platform phonon plugin.
+  -phonon-backend..... Build the platform phonon plugin.

    -no-svg ............ Do not build the SVG module.
+  -svg ............... Build the SVG module.

    -no-webkit ......... Do not build the WebKit module.
+  -webkit ............ Build the WebKit module.
                         WebKit is built if a decent C++ compiler is used.

    -no-javascript-jit . Do not build the JavaScriptCore JIT compiler.
+  -javascript-jit .... Build the JavaScriptCore JIT compiler.

    -no-script ......... Do not build the QtScript module.
+  -script ............ Build the QtScript module.

    -no-scripttools .... Do not build the QtScriptTools module.
+  -scripttools ....... Build the QtScriptTools module.

    -no-declarative .....Do not build the declarative module.
+  -declarative ....... Build the declarative module.

    -platform target ... The operating system and compiler you are building
                         on (linux-g++).

                         See the README file for a list of supported
                         operating systems and compilers.
    -graphicssystem <sys> Sets an alternate graphics system. Available options are:
                           raster - Software rasterizer
                           opengl - Rendering via OpenGL, Experimental!

    -no-mmx ............ Do not compile with use of MMX instructions.
    -no-3dnow .......... Do not compile with use of 3DNOW instructions.
    -no-sse ............ Do not compile with use of SSE instructions.
    -no-sse2 ........... Do not compile with use of SSE2 instructions.

    -qtnamespace <name>  Wraps all Qt library code in 'namespace <name> {...}'.
    -qtlibinfix <infix>  Renames all libQt*.so to libQt*<infix>.so.

    -D <string> ........ Add an explicit define to the preprocessor.
    -I <string> ........ Add an explicit include path.
    -L <string> ........ Add an explicit library path.

    -help, -h .......... Display this information.

Third Party Libraries:

    -qt-zlib ........... Use the zlib bundled with Qt.
+  -system-zlib ....... Use zlib from the operating system.
                         See http://www.gzip.org/zlib

    -no-gif ............ Do not compile GIF reading support.
*  -qt-gif ............ Compile GIF reading support.
                         See also src/gui/image/qgifhandler_p.h

    -no-libtiff ........ Do not compile TIFF support.
    -qt-libtiff ........ Use the libtiff bundled with Qt.
+  -system-libtiff .... Use libtiff from the operating system.
                         See http://www.libtiff.org

    -no-libpng ......... Do not compile PNG support.
    -qt-libpng ......... Use the libpng bundled with Qt.
+  -system-libpng ..... Use libpng from the operating system.
                         See http://www.libpng.org/pub/png

    -no-libmng ......... Do not compile MNG support.
    -qt-libmng ......... Use the libmng bundled with Qt.
+  -system-libmng ..... Use libmng from the operating system.
                         See http://www.libmng.com

    -no-libjpeg ........ Do not compile JPEG support.
    -qt-libjpeg ........ Use the libjpeg bundled with Qt.
+  -system-libjpeg .... Use libjpeg from the operating system.
                         See http://www.ijg.org

    -no-openssl ........ Do not compile support for OpenSSL.
+  -openssl ........... Enable run-time OpenSSL support.
    -openssl-linked .... Enabled linked OpenSSL support.

    -ptmalloc .......... Override the system memory allocator with ptmalloc.
                         (Experimental.)

Additional options:

    -make <part> ....... Add part to the list of parts to be built at make time.
                         (libs tools examples demos docs translations)
    -nomake <part> ..... Exclude part from the list of parts to be built.

    -R <string> ........ Add an explicit runtime library path to the Qt
                         libraries.
    -l <string> ........ Add an explicit library.

    -no-rpath .......... Do not use the library install path as a runtime
                         library path.
+  -rpath ............. Link Qt libraries and executables using the library
                         install path as a runtime library path. Equivalent
                         to -R install_libpath

    -continue .......... Continue as far as possible if an error occurs.

    -verbose, -v ....... Print verbose information about each step of the
                         configure process.

    -silent ............ Reduce the build output so that warnings and errors
                         can be seen more easily.

*  -no-optimized-qmake ... Do not build qmake optimized.
    -optimized-qmake ...... Build qmake optimized.

    -no-gui ............ Don't build the Qt GUI library

    -no-nis ............ Do not compile NIS support.
*  -nis ............... Compile NIS support.

    -no-cups ........... Do not compile CUPS support.
*  -cups .............. Compile CUPS support.
                         Requires cups/cups.h and libcups.so.2.

    -no-iconv .......... Do not compile support for iconv(3).
*  -iconv ............. Compile support for iconv(3).

    -no-pch ............ Do not use precompiled header support.
*  -pch ............... Use precompiled header support.

    -no-dbus ........... Do not compile the QtDBus module.
+  -dbus .............. Compile the QtDBus module and dynamically load libdbus-1.
    -dbus-linked ....... Compile the QtDBus module and link to libdbus-1.

    -reduce-relocations ..... Reduce relocations in the libraries through extra
                              linker optimizations (Qt/X11 and Qt for Embedded Linux only;
                              experimental; needs GNU ld >= 2.18).

    -no-separate-debug-info . Do not store debug information in a separate file.
*  -separate-debug-info .... Strip debug information into a separate .debug file.


Qt/X11 only:

    -no-gtkstyle ....... Do not build the GTK theme integration.
+  -gtkstyle .......... Build the GTK theme integration.

*  -no-nas-sound ...... Do not compile in NAS sound support.
    -system-nas-sound .. Use NAS libaudio from the operating system.
                         See http://radscan.com/nas.html

    -egl ............... Use EGL instead of GLX to manage contexts.
                         When building for desktop OpenGL, this option will
                         make Qt use EGL to manage contexts rather than the
                         GLX, which is the default. Note: For OpenGL ES, EGL
                         is always used.

    -no-opengl ......... Do not support OpenGL.
+  -opengl <api> ...... Enable OpenGL support.
                         With no parameter, this will auto-detect the "best"
                         OpenGL API to use. If desktop OpenGL is available, it
                         will be used. Use desktop, es1, or es2 for <api>
                         to force the use of the Desktop (OpenGL 1.x or 2.x),
                         OpenGL ES 1.x Common profile, or 2.x APIs instead.

     -no-openvg ........ Do not support OpenVG.
+   -openvg ........... Enable OpenVG support.
                         Requires EGL support, typically supplied by an OpenGL
                         or other graphics implementation.

    -no-sm ............. Do not support X Session Management.
*  -sm ................ Support X Session Management, links in -lSM -lICE.

    -no-xshape ......... Do not compile XShape support.
*  -xshape ............ Compile XShape support.
                         Requires X11/extensions/shape.h.

    -no-xvideo ......... Do not compile XVideo support.
*  -xvideo ............ Compile XVideo support.
                         Requires X11/extensions/Xv.h & Xvlib.h.

    -no-xsync .......... Do not compile XSync support.
*  -xsync ............. Compile XSync support.
                         Requires X11/extensions/sync.h.

    -no-xinerama ....... Do not compile Xinerama (multihead) support.
*  -xinerama .......... Compile Xinerama support.
                         Requires X11/extensions/Xinerama.h and libXinerama.
             By default, Xinerama support will be compiled if
                         available and the shared libraries are dynamically
                         loaded at runtime.

    -no-xcursor ........ Do not compile Xcursor support.
*  -xcursor ........... Compile Xcursor support.
                         Requires X11/Xcursor/Xcursor.h and libXcursor.
             By default, Xcursor support will be compiled if
                         available and the shared libraries are dynamically
                         loaded at runtime.

    -no-xfixes ......... Do not compile Xfixes support.
*  -xfixes ............ Compile Xfixes support.
                         Requires X11/extensions/Xfixes.h and libXfixes.
             By default, Xfixes support will be compiled if
                         available and the shared libraries are dynamically
                         loaded at runtime.

    -no-xrandr ......... Do not compile Xrandr (resize and rotate) support.
*  -xrandr ............ Compile Xrandr support.
                         Requires X11/extensions/Xrandr.h and libXrandr.

    -no-xrender ........ Do not compile Xrender support.
*  -xrender ........... Compile Xrender support.
                         Requires X11/extensions/Xrender.h and libXrender.

    -no-mitshm ......... Do not compile MIT-SHM support.
*  -mitshm ............ Compile MIT-SHM support.
                         Requires sys/ipc.h, sys/shm.h and X11/extensions/XShm.h

    -no-fontconfig ..... Do not compile FontConfig (anti-aliased font) support.
*  -fontconfig ........ Compile FontConfig support.
                         Requires fontconfig/fontconfig.h, libfontconfig,
                         freetype.h and libfreetype.

    -no-xinput ......... Do not compile Xinput support.
*  -xinput ............ Compile Xinput support. This also enabled tablet support
                         which requires IRIX with wacom.h and libXi or
                         XFree86 with X11/extensions/XInput.h and libXi.

    -no-xkb ............ Do not compile XKB (X KeyBoard extension) support.
*  -xkb ............... Compile XKB support.

    -no-glib ........... Do not compile Glib support.
+  -glib .............. Compile Glib support.

离线zzz945
只看该作者 107楼 发表于: 2010-11-02
configure中加  -embedded 才会编译为qt embedded库  
离线liyayao

只看该作者 108楼 发表于: 2010-11-03
楼主。我在安装gstreamer出现了一个问题
configure通过了 make 的时候出现问题
Configuration
    Version                    : 0.10.30.3
    Source code location       : .
    Prefix                     : /usr/local
    Compiler                   : arm-linux-gcc -std=gnu99
    Package name               : GStreamer prerelease
    Package origin             : Unknown package origin

    Documentation (manuals)    : no
    Documentation (API)        : no

    Debug Logging              : yes
    Pipeline XML load/save     : yes
    Command-line parser        : yes
    Option parsing in gst_init : yes
    Tracing subsystem          : yes
    Allocation tracing         : yes
    Plugin registry            : yes
    Plugin support               : yes
    Network support            : yes
    Unit testing support       : yes

    Debug                      : yes
    Profiling                  : no

    Building examples          : no
    Building test apps         : yes
    Building tests that fail   : no

[root@CC gstreamer-0.10.30.3]# make
make  all-recursive
make[1]: Entering directory `/YY/gstreamer-0.10.30.3'
Making all in pkgconfig
make[2]: Entering directory `/YY/gstreamer-0.10.30.3/pkgconfig'
  CP     gstreamer-0.10.pc
  CP     gstreamer-base-0.10.pc
  CP     gstreamer-check-0.10.pc
  CP     gstreamer-controller-0.10.pc
  CP     gstreamer-dataprotocol-0.10.pc
  CP     gstreamer-net-0.10.pc
  CP     gstreamer-0.10-uninstalled.pc
  CP     gstreamer-base-0.10-uninstalled.pc
  CP     gstreamer-check-0.10-uninstalled.pc
  CP     gstreamer-controller-0.10-uninstalled.pc
  CP     gstreamer-dataprotocol-0.10-uninstalled.pc
  CP     gstreamer-net-0.10-uninstalled.pc
make[2]: Leaving directory `/YY/gstreamer-0.10.30.3/pkgconfig'
Making all in gst
make[2]: Entering directory `/YY/gstreamer-0.10.30.3/gst'
  GEN    gstenumtypes.h
  GEN    gstmarshal.h
/bin/sh: /usr/local/bin/glib-genmarshal: cannot execute binary file
make[2]: *** [gstmarshal.h] Error 126
make[2]: Leaving directory `/YY/gstreamer-0.10.30.3/gst'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/YY/gstreamer-0.10.30.3'
make: *** [all] Error 2
[root@CC gstreamer-0.10.30.3]#

请帮忙
配置是
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure --host=arm-linux --disable-valgrind --disable-x --disable-gnome_vfs --disable-ogg --disable-pango --disable-theora --disable-vorbis --disable-examples

离线fuyajun
只看该作者 109楼 发表于: 2010-11-04
各位同志, 大家在哪些平台运行过该程序呢, 我在INTEL的开发板上运行时,  服务程序在开启客户程序后就崩溃了.  单独运行的话就没问题. 在嵌入式环境下运行多个应用程序时, 有什么需要注意的不?
离线liyayao

只看该作者 110楼 发表于: 2010-11-05
楼主。我在安装gstreamer出现了一个问题
configure通过了 make 的时候出现问题
Configuration
    Version                    : 0.10.30.3
    Source code location       : .
    Prefix                     : /usr/local
    Compiler                   : arm-linux-gcc -std=gnu99
    Package name               : GStreamer prerelease
    Package origin             : Unknown package origin
    Documentation (manuals)    : no
    Documentation (API)        : no
    Debug Logging              : yes
    Pipeline XML load/save     : yes
    Command-line parser        : yes
    Option parsing in gst_init : yes
    Tracing subsystem          : yes
    Allocation tracing         : yes
    Plugin registry            : yes
    Plugin support               : yes
    Network support            : yes
    Unit testing support       : yes
    Debug                      :yes
    Profiling                  : no
    Building examples          :no
    Building test apps         : yes
    Building tests that fail   : no
[root@CC gstreamer-0.10.30.3]# make
make  all-recursive
make[1]: Entering directory `/YY/gstreamer-0.10.30.3'
Making all in pkgconfig
make[2]: Entering directory `/YY/gstreamer-0.10.30.3/pkgconfig'
  CP     gstreamer-0.10.pc
  CP     gstreamer-base-0.10.pc
  CP     gstreamer-check-0.10.pc
  CP     gstreamer-controller-0.10.pc
  CP     gstreamer-dataprotocol-0.10.pc
  CP     gstreamer-net-0.10.pc
  CP     gstreamer-0.10-uninstalled.pc
  CP     gstreamer-base-0.10-uninstalled.pc
  CP     gstreamer-check-0.10-uninstalled.pc
  CP     gstreamer-controller-0.10-uninstalled.pc
  CP     gstreamer-dataprotocol-0.10-uninstalled.pc
  CP     gstreamer-net-0.10-uninstalled.pc
make[2]: Leaving directory `/YY/gstreamer-0.10.30.3/pkgconfig'
Making all in gst
make[2]: Entering directory `/YY/gstreamer-0.10.30.3/gst'
  GEN    gstenumtypes.h
  GEN    gstmarshal.h
/bin/sh: /usr/local/bin/glib-genmarshal: cannot execute binary file
make[2]: *** [gstmarshal.h] Error 126
make[2]: Leaving directory `/YY/gstreamer-0.10.30.3/gst'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/YY/gstreamer-0.10.30.3'
make: *** [all] Error 2
[root@CC gstreamer-0.10.30.3]#
请帮忙
配置是
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure --host=arm-linux --disable-valgrind --disable-x --disable-gnome_vfs --disable-ogg --disable-pango--disable-theora --disable-vorbis --disable-examples
离线zzz945
只看该作者 111楼 发表于: 2010-11-05
你是要交叉编译吗  glib等依赖的库都安装到/usr/local中了吗
离线zzz945
只看该作者 112楼 发表于: 2010-11-05
回 105楼(liyayao) 的帖子
./configure -embedded x86
离线liyayao

只看该作者 113楼 发表于: 2010-11-06
楼主,前面的几乎通过了
现在编译QT出现问题了
./configure -prefix /opt/qt-embedded -embedded arm -xplatform qws/linux-arm-g++ -fast -force-pkg-config \
-no-opengl -qt-freetype -depths 16,18,24 -little-endian \
-qt-mouse-tslib  \
-nomake tools -nomake docs -opensource -confirm-license -no-largefile \
-qt-sql-sqlite -no-qt3support -no-xmlpatterns \
-multimedia -audio-backend -phonon -phonon-backend -svg \
-webkit -no-javascript-jit -script -no-scripttools -no-declarative \
-qt-gif -qt-libtiff -system-libpng -qt-libmng -system-libjpeg -no-openssl \
-system-zlib -no-nis -no-cups -dbus -no-mmx -no-3dnow -no-sse -no-sse2 \
-no-xcursor -no-xfixes -no-xrandr -no-xrender -no-separate-debug-info


我用你的配置

配置能通过

make 的时候出错了, 郁闷啊


g++ -Wl,-rpath-link,/opt/qt-everywhere-opensource-src-4.7.0-beta2/lib -fno-exceptions -Wl,-O1 -Wl,-rpath,/opt/qt-embedded/lib -Wl,-rpath,/opt/qt-embedded/lib -o ../../../bin/moc release-shared/moc.o release-shared/preprocessor.o release-shared/generator.o release-shared/parser.o release-shared/token.o release-shared/main.o    -L/opt/qt-everywhere-opensource-src-4.7.0-beta2/src/tools/bootstrap -lbootstrap
/usr/bin/ld: /opt/qt-everywhere-opensource-src-4.7.0-beta2/src/tools/bootstrap/libbootstrap.a(compress.o): Relocations in generic ELF (EM: 40)
/usr/bin/ld: /opt/qt-everywhere-opensource-src-4.7.0-beta2/src/tools/bootstrap/libbootstrap.a(compress.o): Relocations in generic ELF (EM: 40)
/opt/qt-everywhere-opensource-src-4.7.0-beta2/src/tools/bootstrap/libbootstrap.a: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[1]: *** [../../../bin/moc] Error 1
make[1]: Leaving directory `/opt/qt-everywhere-opensource-src-4.7.0-beta2/src/tools/moc'
make: *** [sub-moc-make_default-ordered] Error 2
[root@YY qt-everywhere-opensource-src-4.7.0-beta2]#

这次真的不知道哪里出错,请教啊!!谢谢啦

我在编译
gst-plugins-good 和
gst-plugins-bad 有两个错误,不知道与这个有没有关呢



离线zzz945
只看该作者 114楼 发表于: 2010-11-06
如果你不是按照clfs for emd中那样的方式编译文件系统, 没设置PKG_CONFIG_PATH的话, 就不要-force-pkg-config参数, 还有你用的是什么编译器, 你是怎么编译qt所依赖的库的, 依赖的库安装到哪里了, 编译qt时有没有告诉编译器去哪里找依赖的库。

看错误好像是在编译工具时产生的, 不是编译lib, 具体我现在也不知道怎么解决。
[ 此帖被zzz945在2010-11-06 20:31重新编辑 ]
离线liyayao

只看该作者 115楼 发表于: 2010-11-07
奇怪,我用了QT4.6.3能编译通过,我用QT4.7就不能,方法是一样的,还有按照clfs for emd中的编译gst-plugins-good 和
gst-plugins-bad 有错误,好像跟ORC 有关,然后我就编译ORC ,成功编译后,gst-plugins-good 就不能编译,搞到我又UNINSTALL ORC
不知道gst-plugins-good 和
gst-plugins-bad 有错误 之后对后面的其他会不会有影响,我QT4.6.3是编译了。。。感谢你的回复
离线zzz945
只看该作者 116楼 发表于: 2010-11-07
不用orc也没关系的
离线gaowf_1987
只看该作者 117楼 发表于: 2010-11-07
楼主,我编译EMD的时候通过了,但是连接的时候出现了问题

defaultdatewidget.o: In function `DefaultDateWidget::updateDisplay(QDateTime*)':
defaultdatewidget.cpp:(.text+0x8c): undefined reference to `QwtAnalogClock::setTime(QTime const&)'
defaultdatewidget.o: In function `DefaultDateWidget::DefaultDateWidget(QWidget*)':
defaultdatewidget.cpp:(.text+0x10c): undefined reference to `QwtAnalogClock::QwtAnalogClock(QWidget*)'
defaultdatewidget.cpp:(.text+0x118): undefined reference to `QwtDial::scaleDraw()'
defaultdatewidget.cpp:(.text+0x124): undefined reference to `QwtDialScaleDraw::setPenWidth(double)'
defaultdatewidget.cpp:(.text+0x130): undefined reference to `QwtDial::setLineWidth(int)'
defaultdatewidget.cpp:(.text+0x13c): undefined reference to `QwtDial::setFrameShadow(QwtDial::Shadow)'
defaultdatewidget.cpp:(.text+0x154): undefined reference to `QwtAnalogClock::setTime(QTime const&)'
defaultdatewidget.o: In function `DefaultDateWidget::DefaultDateWidget(QWidget*)':
defaultdatewidget.cpp:(.text+0x7f4): undefined reference to `QwtAnalogClock::QwtAnalogClock(QWidget*)'
defaultdatewidget.cpp:(.text+0x800): undefined reference to `QwtDial::scaleDraw()'
defaultdatewidget.cpp:(.text+0x80c): undefined reference to `QwtDialScaleDraw::setPenWidth(double)'
defaultdatewidget.cpp:(.text+0x818): undefined reference to `QwtDial::setLineWidth(int)'
defaultdatewidget.cpp:(.text+0x824): undefined reference to `QwtDial::setFrameShadow(QwtDial::Shadow)'
defaultdatewidget.cpp:(.text+0x83c): undefined reference to `QwtAnalogClock::setTime(QTime const&)'
main.o: In function `main':
main.cpp:(.text+0x48): undefined reference to `QTest::qExec(QObject*, int, char**)'
main.o: In function `main':
main.cpp:(.text+0x48): undefined reference to `QTest::qExec(QObject*, int, char**)'
main.o: In function `main':
main.cpp:(.text+0x48): undefined reference to `QTest::qExec(QObject*, int, char**)'
main.o: In function `main':
main.cpp:(.text+0x48): undefined reference to `QTest::qExec(QObject*, int, char**)'
tablet.o: In function `Tablet::Tablet(QString, int, QWidget*)':
tablet.cpp:(.text+0x3b4): undefined reference to `zinnia::Recognizer::create()'
tablet.cpp:(.text+0x57c): undefined reference to `zinnia::Character::create()'
tablet.o: In function `Tablet::Tablet(QString, int, QWidget*)':
tablet.cpp:(.text+0x2024): undefined reference to `zinnia::Recognizer::create()'
tablet.cpp:(.text+0x21ec): undefined reference to `zinnia::Character::create()'
testappinfo.o: In function `main':
testappinfo.cpp:(.text+0x48): undefined reference to `QTest::qExec(QObject*, int, char**)'
testappinfo.o: In function `TestAppInfo::test()':
testappinfo.cpp:(.text+0x1a0): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testappinfo.cpp:(.text+0x204): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testappinfo.cpp:(.text+0x2cc): undefined reference to `QTest::qt_snprintf(char*, int, char const*, ...)'
testappinfo.cpp:(.text+0x3f8): undefined reference to `QTest::qt_snprintf(char*, int, char const*, ...)'
testappinfo.cpp:(.text+0x460): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testappinfo.cpp:(.text+0x56c): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testappinfo.cpp:(.text+0x640): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testappinfo.cpp:(.text+0x7f8): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testappinfo.cpp:(.text+0x98c): undefined reference to `QTest::qt_snprintf(char*, int, char const*, ...)'
testappinfo.cpp:(.text+0xa4c): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testappinfo.cpp:(.text+0xae8): undefined reference to `QTest::qt_snprintf(char*, int, char const*, ...)'
testappinfo.cpp:(.text+0xb50): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testappinfo.o: In function `bool QTest::qCompare<QString>(QString const&, QString const&, char const*, char const*, char const*, int)':
testappinfo.cpp:(.text._ZN5QTest8qCompareI7QStringEEbRKT_S4_PKcS6_S6_i[bool QTest::qCompare<QString>(QString const&, QString const&, char const*, char const*, char const*, int)]+0x38): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testappinfo.cpp:(.text._ZN5QTest8qCompareI7QStringEEbRKT_S4_PKcS6_S6_i[bool QTest::qCompare<QString>(QString const&, QString const&, char const*, char const*, char const*, int)]+0xe4): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.o: In function `QTest::qWait(int)':
testapplicationsmanager.cpp:(.text+0x3c): undefined reference to `QTest::qSleep(int)'
testapplicationsmanager.o: In function `TestApplicationsManager::signalTest()':
testapplicationsmanager.cpp:(.text+0x118): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x1e8): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x2ac): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x330): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x3f0): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'
testapplicationsmanager.o:testapplicationsmanager.cpp:(.text+0x414): more undefined references to `QTest::qVerify(bool, char const*, char const*, char const*, int)' follow
testapplicationsmanager.o: In function `TestApplicationsManager::complicatedTest()':
testapplicationsmanager.cpp:(.text+0x7cc): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x810): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0x81c): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0x84c): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x8f0): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0xa04): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0xb14): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0xc20): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0xc4c): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0xc58): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0xc88): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0xd90): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0xdbc): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0xdc8): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0xdf8): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0xe90): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0xf28): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0xf78): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0xfa4): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x1044): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x10f4): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x11b8): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.o:testapplicationsmanager.cpp:(.text+0x121c): more undefined references to `QTest::compare_helper(bool, char const*, char const*, int)' follow
testapplicationsmanager.o: In function `TestApplicationsManager::complicatedTest()':
testapplicationsmanager.cpp:(.text+0x1318): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0x1324): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0x1358): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x13e4): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x1444): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x14d0): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x15d4): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.o: In function `TestApplicationsManager::launchOne()':
testapplicationsmanager.cpp:(.text+0x1d88): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x1ef0): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x1f1c): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0x1f28): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0x1f5c): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x2004): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x2060): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.o: In function `main':
testapplicationsmanager.cpp:(.text+0x2238): undefined reference to `QTest::qExec(QObject*, int, char**)'
testapplicationsmanager.o: In function `TestApplicationsManager::raise()':
testapplicationsmanager.cpp:(.text+0x24ac): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x2524): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x25b4): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x25e0): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0x25ec): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0x261c): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x2728): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x2834): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x2948): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x2a64): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x2ac4): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x2b54): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x2c40): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x2df4): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x2eb4): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.o: In function `TestApplicationsManager::launchTwoSame()':
testapplicationsmanager.cpp:(.text+0x2ff0): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x3074): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x31d0): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x31fc): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0x3208): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0x3238): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x32fc): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x3328): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.o: In function `TestApplicationsManager::launchTwoDiff()':
testapplicationsmanager.cpp:(.text+0x34bc): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x353c): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x3698): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x36c4): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0x36d0): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0x3700): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x37c4): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x380c): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.o: In function `TestApplicationsManager::kill()':
testapplicationsmanager.cpp:(.text+0x3a0c): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x3a50): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0x3a5c): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0x3a8c): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x3ba0): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x3bf0): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x3cc4): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x3cd8): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x3d64): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testapplicationsmanager.cpp:(.text+0x3d94): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0x3da0): undefined reference to `char* QTest::toString<int>(int const&)'
testapplicationsmanager.cpp:(.text+0x3dd0): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testconfig.o: In function `main':
testconfig.cpp:(.text+0x48): undefined reference to `QTest::qExec(QObject*, int, char**)'
testconfig.o: In function `TestConfig::testRead()':
testconfig.cpp:(.text+0x398): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testconfig.cpp:(.text+0x4f4): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testconfig.cpp:(.text+0x580): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testconfig.cpp:(.text+0x73c): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testconfig.cpp:(.text+0x898): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testconfig.cpp:(.text+0x8d4): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testconfig.o: In function `TestConfig::testSave()':
testconfig.cpp:(.text+0xcf8): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testconfig.cpp:(.text+0xe54): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testconfig.cpp:(.text+0xee0): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testconfig.cpp:(.text+0x1088): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testconfig.cpp:(.text+0x11e4): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testconfig.cpp:(.text+0x1220): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testconfig.o: In function `TestConfig::testWrite()':
testconfig.cpp:(.text+0x1754): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testconfig.cpp:(.text+0x18b0): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testconfig.cpp:(.text+0x1954): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testconfig.cpp:(.text+0x1ac8): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testmimetype.o: In function `main':
testmimetype.cpp:(.text+0x48): undefined reference to `QTest::qExec(QObject*, int, char**)'
testmimetype.o: In function `TestMimeType::registerTest()':
testmimetype.cpp:(.text+0x430): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testmimetype.cpp:(.text+0x4c8): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testmimetype.cpp:(.text+0x560): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testmimetype.cpp:(.text+0x670): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testmimetype.cpp:(.text+0x744): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testmimetype.cpp:(.text+0x7d0): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
main.o: In function `main':
main.cpp:(.text+0x48): undefined reference to `QTest::qExec(QObject*, int, char**)'
main.o: In function `main':
main.cpp:(.text+0x48): undefined reference to `QTest::qExec(QObject*, int, char**)'
testimageviewerdata.o: In function `TestImageViewerData::testNext()':
testimageviewerdata.cpp:(.text+0x1c0): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x284): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x2f4): undefined reference to `char* QTest::toString<int>(int const&)'
testimageviewerdata.cpp:(.text+0x300): undefined reference to `char* QTest::toString<int>(int const&)'
testimageviewerdata.cpp:(.text+0x330): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x3dc): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x4f8): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x5cc): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x678): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x740): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.o: In function `TestImageViewerData::complicatedTest()':
testimageviewerdata.cpp:(.text+0xcd0): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0xd94): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0xec8): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0xf98): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x1244): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x13bc): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x1480): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x15c8): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x15ec): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x16b8): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.o: In function `TestImageViewerData::testDel()':
testimageviewerdata.cpp:(.text+0x1e34): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x1ea4): undefined reference to `char* QTest::toString<int>(int const&)'
testimageviewerdata.cpp:(.text+0x1eb0): undefined reference to `char* QTest::toString<int>(int const&)'
testimageviewerdata.cpp:(.text+0x1ee0): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x1f1c): undefined reference to `char* QTest::toString<int>(int const&)'
testimageviewerdata.cpp:(.text+0x1f28): undefined reference to `char* QTest::toString<int>(int const&)'
testimageviewerdata.cpp:(.text+0x1f58): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x2088): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x2304): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x2328): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x2340): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x2358): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.o: In function `TestImageViewerData::testPre()':
testimageviewerdata.cpp:(.text+0x27a0): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x28a0): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x2910): undefined reference to `char* QTest::toString<int>(int const&)'
testimageviewerdata.cpp:(.text+0x291c): undefined reference to `char* QTest::toString<int>(int const&)'
testimageviewerdata.cpp:(.text+0x294c): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x2a38): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x2b70): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x2c44): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x2c68): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x2d30): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.o: In function `TestImageViewerData::testInit()':
testimageviewerdata.cpp:(.text+0x30d8): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x319c): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x320c): undefined reference to `char* QTest::toString<int>(int const&)'
testimageviewerdata.cpp:(.text+0x3218): undefined reference to `char* QTest::toString<int>(int const&)'
testimageviewerdata.cpp:(.text+0x3248): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x33a8): undefined reference to `QTest::compare_helper(bool, char const*, char*, char*, char const*, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x3410): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'
testimageviewerdata.cpp:(.text+0x3428): undefined reference to `QTest::compare_helper(bool, char const*, char const*, int)'


之前编译的时候说找不到<QTest>,但我发现<QtTest>里面有这个库,于是我将<QTest>全部换成<QtTest/QTest>,编译就通过了,但是现在这里还想一直是说Qtest里面的问题,我自己编译的qwt和那个zinnia是不是都有问题?如果有问题,那为什么编译的时候能通过呀?
离线liyayao

只看该作者 118楼 发表于: 2010-11-07
郁闷啊,问题又来,先是poppler 不通过,
然后我就不管他了
就编译 EMD了,
cd gps/ && /opt/qt-embedded/bin/qmake /opt/emd/emd/app/gps/gps.pro -unix -o Makefile
cd gps/ && make -f Makefile
make[2]: Entering directory `/opt/emd/emd/app/gps'
/opt/qt-embedded/bin/uic mainwindow.ui -o ui_mainwindow.h
arm-linux-g++ -c -pipe -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../qt-embedded/mkspecs/qws/linux-arm-g++ -I. -I../../../../qt-embedded/include/QtCore -I../../../../qt-embedded/include/QtNetwork -I../../../../qt-embedded/include/QtGui -I../../../../qt-embedded/include -I../../emdesktopclient -I../../../../qt-embedded/include -I/opt/include -I. -I. -I/work/cross/rootfs/usr/include -o main.o main.cpp
In file included from main.cpp:2:
mainwindow.h:6:46: error: QtLocation/QNmeaPositionInfoSource: No such file or directory
mainwindow.h:7:39: error: QtLocation/QGeoPositionInfo: No such file or directory
In file included from main.cpp:2:
mainwindow.h:11: error: expected constructor, destructor, or type conversion before 'class'
mainwindow.h:25: error: expected ',' or '...' before '&' token
mainwindow.h:25: error: ISO C++ forbids declaration of 'QGeoPositionInfo' with no type
mainwindow.h:28: error: ISO C++ forbids declaration of 'AbstractSerial' with no type
mainwindow.h:28: error: expected ';' before '*' token
mainwindow.h:29: error: ISO C++ forbids declaration of 'QNmeaPositionInfoSource' with no type
mainwindow.h:29: error: expected ';' before '*' token
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/opt/emd/emd/app/gps'
make[1]: *** [sub-gps-make_default] Error 2
make[1]: Leaving directory `/opt/emd/emd/app'
make: *** [sub-app-make_default-ordered] Error 2
[root@YY emd]#
是不是我的QTE没有编好呢,
离线liyayao

只看该作者 119楼 发表于: 2010-11-07
我的poppler  
Building poppler with support for:
  font configuration: fontconfig
  splash output:      no
  cairo output:       no
  abiword output:     no
  qt wrapper:         no
  qt4 wrapper:        yes
  glib wrapper:       no
    use GDK:          no
  cpp wrapper:        yes
  use gtk-doc:        no
  use libjpeg:        yes
  use libpng:         no
  use zlib:           no
  use libcurl:        no
  use libopenjpeg:    no
  use cms:            no
  command line utils: no

  Warning: There is no rendering backend enabled
  Warning: Using libopenjpeg is recommended
[root@YY poppler-0.14.4]# make
make  all-recursive
make[1]: Entering directory `/YY/poppler-0.14.4'
Making all in goo
make[2]: Entering directory `/YY/poppler-0.14.4/goo'
  CXX    gfile.lo
  CXX    gmempp.lo
  CXX    GooHash.lo
  CXX    GooList.lo
  CXX    GooTimer.lo
  CXX    GooString.lo
  CXX    gmem.lo
  CXX    FixedPoint.lo
  CXX    PNGWriter.lo
  CXX    JpegWriter.lo
  CXX    ImgWriter.lo
  CXX    gstrtod.lo
  CXXLD  libgoo.la
make[2]: Leaving directory `/YY/poppler-0.14.4/goo'
Making all in fofi
make[2]: Entering directory `/YY/poppler-0.14.4/fofi'
  CXX    FoFiBase.lo
  CXX    FoFiEncodings.lo
  CXX    FoFiTrueType.lo
  CXX    FoFiType1.lo
  CXX    FoFiType1C.lo
  CXXLD  libfofi.la
make[2]: Leaving directory `/YY/poppler-0.14.4/fofi'
Making all in poppler
make[2]: Entering directory `/YY/poppler-0.14.4/poppler'
make  all-am
make[3]: Entering directory `/YY/poppler-0.14.4/poppler'
  CXX    DCTStream.lo
cc1plus: warning: include location "/usr/include/freetype2" is unsafe for cross-compilation
  CXX    JPXStream.lo
cc1plus: warning: include location "/usr/include/freetype2" is unsafe for cross-compilation
  CXX    Annot.lo
cc1plus: warning: include location "/usr/include/freetype2" is unsafe for cross-compilation
  CXX    Array.lo
cc1plus: warning: include location "/usr/include/freetype2" is unsafe for cross-compilation
  CXX    BuiltinFont.lo
cc1plus: warning: include location "/usr/include/freetype2" is unsafe for cross-compilation
  CXX    BuiltinFontTables.lo
cc1plus: warning: include location "/usr/include/freetype2" is unsafe for cross-compilation
  CXX    CachedFile.lo
cc1plus: warning: include location "/usr/include/freetype2" is unsafe for cross-compilation
  CXX    Catalog.lo
cc1plus: warning: include location "/usr/include/freetype2" is unsafe for cross-compilation
  CXX    CharCodeToUnicode.lo
cc1plus: warning: include location "/usr/include/freetype2" is unsafe for cross-compilation
In file included from CharCodeToUnicode.cc:41:
GlobalParams.h:42:35: error: fontconfig/fontconfig.h: No such file or directory
make[3]: *** [CharCodeToUnicode.lo] Error 1
make[3]: Leaving directory `/YY/poppler-0.14.4/poppler'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/YY/poppler-0.14.4/poppler'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/YY/poppler-0.14.4'
make: *** [all] Error 2
[root@YY poppler-0.14.4]#
请楼主提供一点看法。。。感激啊!!!!!!!!!!!
快速回复
限100 字节
 
上一个 下一个