diy jewelry wholesale Ask, how to establish a QT compilation environment under Arch

diy jewelry wholesale

1 thought on “diy jewelry wholesale Ask, how to establish a QT compilation environment under Arch”

  1. high quality wholesale jewelry 1. Install the G environment
    sudo Apt-get install build-essential
    mi. If not installed, some QT components cannot be compiled normally. For example, OpenGL
    SUDO APT-GET Install libx11-dev libxau-dev libxa-dev libxcb1-dev -DEV Libxdmcp-Dev NSUDO APT -get install libxext-dev libxfixes-dev libxfont-dev libxft-dev libxi-dev -dev -dev libxmu-dev libxmuu-devrnsudo apt-get install libxpm-dev libxrandr-dev -dev libxres-dev libxss-dev libxt-dev libxtSt-dev libxv-dev libxvmc-dev
    sudo Apt-get install libglib2.0-dev
    sudo Apt inspratevgovget instant R nSudo APT-get install libcups2-dev
    sudo app-get install libgl1-mesa-dev libglu1-ama-dev nsudo app-get install. 10-dev r r r r r r r r r r r r r r r r r r r r r r r r
    tar ZXVF QT --- SRC-4.8.4.tar.gz
    The source code folder after decompression
    . execution. /Configure generate makefile
    . /configure -prefix /usr/local/qt-4.8.2 R n (the directory /usr/local/qt-4.8.2 specified above is the installation directory after the make instant)
    The conversation below appears below the conversation. The box select Open Source Edition. This is a free version. Enter the yes accepting protocol.
    (1) If the various library files of your machine are complete, after a small meeting, the configuration is completed, the following information will appear
    qt is now for building, just run 'make'
    once is built,, You Must Run 'Make Install' R
    QT Will be into Installed into /usr/local/qt-4.8.2 r nto, run 'make confclean' and 'configure' n indicates the success of the makefile file r r r r r r
    (2) If the following information appears
    basic xlib test failed! rnYou might need to modify the include and library search paths by editingrnQMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /home/gcgily/qt---src-4.8.4/mkspecs/linux-g rn还是老办法,Maintaining the status quo. Enter Config.test/X11/XLIB to execute the make command, see the error message
    g -wl, -o1 -o xlib xlib.o -l/usr/x11r6/lib -lxext -lm n/usr /bin/ld: Cannot Find -Lxext
    I saw it, g under/usr/x11r6/lib, I can't find libxext.so.
    The reason is that the development package of libx11 is required. In Ubuntu/Debian, the names of the package are libx11-dev
    based on previous experience, in. /Configure, take the initiative to install the following 3 packs. Basically, everything is good. /Configure can generate the Makefile file
    If: Project Error: Package GSTREAMER-APP-0.10 Not Found, then execute the following commands
    apt-get install .10-dEV-Plugins-10-DEV If Appearance: G : ERROR: Command Line Option '-Fuse-LD = GOLD'
    This is a bug: bugs.webkit/show_bug.cgi? ID = 89312
    In a system equipped with a GOLD LINKER, the compilation script will add -Fuse-LD = GOLD options, but this option GCC is not supported. The solution is to remove the option and find the file src/3rdparty/webkit/source/commit.pri, block qmake_lflags = -fuse-ld = GOLD.
    #
    qmake_lflags =-fuse-ld = GOLD
    . Compile QT
    to execute the make command for 2 hours.
    5. Install Qt
    Run the Sudo Make Install command. It takes a few minutes to install it by default to /usr/local/qt-4.8.2. Run /usr/local/qt-4.5.3/bin/designer. If QT can be started, it means that Qt has been installed.
    6. Set environment variables
    Puisone environment variables
    Gedit /home/username/.bashrc N Add:
    export qtdir =/usr/local/qt-4.8.2
    export path = $ qtdir/bin: $ PATH
    export Manpath = $ qtdir/man: $ Manpath
    export ld_library_path = $ qtdir/lib: $ ld_library_path n to change the ROOOT user.
    sudo gedit/etc/profile (the profile file needs to be changed here to write)
    In:
    export qtdir =/usr/local/qt-4.8.2
    export path = $ Qtdir/bin: $ PATH
    export Manpath = $ QTDIR/Man: $ Manpath
    export LD_Library_Path = $ qtdir/lib: $ ld_library_path n 7. :
    qmake -v
    Display version information:
    qmake version 2.01a
    using Qt Version 4.8.2 in /usr/local/qt-4.8.2/lib nwhich qmake
    display installation location information:
    /usr/local/trueTech/qt-4.8.2/bin/qmake

    code:
    If reference to other packages and library files in Qt, then use:
    =/usr/local/include/
    =/usr/local/logal/ Include/eigen
    =/USR/LOCAL/Include/Boost
    =/USR/LOCAL/Include/CGAL
    LIBS = -l/Lib/-LGMP R. nlibs = -l/usr/local/lib/-lmpfr
    Tlayer in the libs parameter can only connect a specific library file after -to Only "XXX".
    The above is the introduction of the method of building the QT development environment. As a good cross -platform development tool, QT can run well in larger mainstream systems, with rich APIs, etc.

Leave a Comment