[solved] make xconfig

hi
somehow i cant make xconfig anymore
CHECK qt
* Unable to find the QT3 installation. Please make sure that
* the QT3 development package is correctly installed and
* either install pkg-config or set the QTDIR environment
* variable to the correct location.
make[1]: *** No rule to make target `scripts/kconfig/.tmp_qtcheck', needed by `scripts/kconfig/qconf.o'. Stop.
make: *** [xconfig] Error 2
qt3 is installed, but i can't find any qt3-dev package
Last edited by kriz (2010-06-23 12:44:13)

I think it's because of qt(4) and qt3 relation, since qt3 is installed in /opt.
Try something like:
source /etc/profile.d/qt3.sh
makepkg
(or make xconfig)

Similar Messages

  • [SOLVED] make: *** No rule to make target `kernelrelease'

    Hi guys! My problem is similar this one Please help a newbie compile a kernel
    I tried to compile kernel 2.6.33.9 by simply copying the PKGBUILD and other files into my workspace. Everything goes well but I cant make a package:
    PKGBUILD:
    pkgdesc="The Linux Kernel and modules with tuxonice support and rt-patchset"
    depends=('coreutils' 'linux-firmware' 'module-init-tools>=3.16' 'mkinitcpio>=0,7')
    optdepends=('crda: to set the correct wireless channels of your country')
    pkgname=linux-rt-ice
    backup=(etc/mkinitcpio.d/$pkgname.preset)
    _kernelname=${pkgname#linux}
    _basekernel=2.6.33
    pkgver=${_basekernel}.9
    #pkgver=${_basekernel}
    pkgrel=1
    arch=('i686' 'x86_64')
    url="https://rt.wiki.kernel.org"
    license=('GPL2')
    install=$pkgname.install
    provides=('kernel26-rt-ice')
    conflicts=('kernel26-rt-ice')
    replaces=('kernel26-rt-ice')
    makedepends=('xmlto' 'docbook-xsl')
    options=('!strip')
    ### User/Environment defined variables
    enable_toi=${enable_toi:-0}
    BFQ_IO_SCHEDULER="y"
    bfs_scheduler=${bfs_scheduler:-0}
    keep_source_code=${keep_source_code:-1}
    gconfig=${gconfig:-0}
    xconfig=${xconfig:-0}
    menuconfig=${menuconfig:-1}
    realtime_patch=${realtime_patch:-1}
    local_patch_dir="${local_patch_dir:-}"
    use_config="${use_config:-}"
    use_config_gz=${use_config_gz:-0}
    enable_reiser4=${enable_reiser4:-1}
    ### Compile time defined variables
    ### Files / Versions
    #!file_rt="patch-3.0.14-rt31.patch.gz"
    #!file_reiser4="reiser4-for-2.6.31.patch.bz2"
    #file_toi="current-tuxonice-for-3.0.patch.bz2"
    #file_bfs="2.6.38.3-sched-bfs-401.patch"
    file_rt="patch-2.6.33.9-rt31.gz"
    file_reiser4="reiser4-for-2.6.33.patch.gz"
    file_bfs="2.6.33.7-sched-bfs-357.patch"
    _bfqpath="http://algo.ing.unimo.it/people/paolo/disk_sched/patches/2.6.33/"
    source=("ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-${_basekernel}.tar.bz2"
    "ftp://ftp.kernel.org/pub/linux/kernel/v2.6/longterm/v2.6.33/patch-2.6.33.9.gz"
    http://www.kernel.org/pub/linux/kernel/projects/rt/2.6.33/patch-2.6.33.9-rt31.gz
    # https://tglx.de/~tglx/rt/3.0/${file_rt}
    http://sourceforge.net/projects/reiser4/files/reiser4-for-linux-2.6/reiser4-for-2.6.33.patch.gz
    #http://www.tuxonice.net/files/${file_toi}
    http://ck.kolivas.org/patches/bfs/${_basekernel}/${file_bfs}
    # the main kernel config files
    'config' 'config.x86_64'
    # standard config files for mkinitcpio ramdisk
    "${pkgname}.preset"
    'change-default-console-loglevel.patch'
    'i915-fix-ghost-tv-output.patch'
    #BFQ patch:
    "${_bfqpath}/0001-bfq_iosched-block-prepare_IO_context_code-v1-r1.patch"
    "${_bfqpath}/0002-bfq_iosched-block-add_cgroups_kconfig_and_build_bits-v1-r1.patch"
    "${_bfqpath}/0003-bfq_iosched-block-introduce_BFQ-v1-r1.patch")
    md5sums=('c3883760b18d50e8d78819c54d579b00'
    '6594052b26f8e79c374c278f62d3329b'
    '772776957913e76492e3547b304b75c2'
    '96f986418d1ab9b9abdcbfb2c20fdc0d'
    '3b8ef39f43a1dab60ddc703049cb8ac2'
    '540318683b69e49ab5fa629cfb32dc48'
    '74d172143d448a002834879d99c3992c'
    '7c9725208ab6834602c8b9d645ed001d'
    '9d3c56a4b999c8bfbd4018089a62f662'
    '263725f20c0b9eb9c353040792d644e5'
    '69adc7f64f4dc5b34ad1cb3825b7c0f4'
    '4146ee711eed553c024a93c766463583'
    '678c791c7df57a71cdb480fdc49aec8d')
    build() {
    cd "${srcdir}/linux-${_basekernel}"
    # add upstream patch
    patch -p1 -i "${srcdir}/patch-${pkgver}"
    if [ -n "${local_patch_dir}" ] && [ -d "${local_patch_dir}" ] ; then
    echo "Applying patches from ${local_patch_dir} ..."
    for my_patch in "${local_patch_dir}"/* ; do
    echo -e "Applying custom patch:\t'${my_patch}'" || true
    patch -Np1 -i "${my_patch}" || { echo -e "Failed custom patch:\t'${my_patch}'" ; return 1 ; }
    done
    fi
    # Applying realtime patch
    if [ "$realtime_patch" = "1" ]; then
    echo "Applying real time patch"
    # Strip './Makefile' changes
    gzip -dc ${srcdir}/${file_rt} \
    | sed '/diff --git a\/Makefile b\/Makefile/,/*DOCUMENTATION*/d' \
    | patch -Np1 || { echo "Failed Realtime patch '${file_rt}'"; return 1 ; }
    fi
    # applying reiserfs4 patch
    if [ "$enable_reiser4" = "1" ]; then
    echo "Applying ${file_reiser4%.gz}"
    gzip -dc ${srcdir}/${file_reiser4} | patch -Np1 || { echo "Failed reiser4 patch '${file_reiser4%.gz}'"; return 1 ; }
    fi
    # applying tuxonice patch
    if [ "${enable_toi}" = "1" ]; then
    echo "Applying ${file_toi%.bz2}"
    # fix to tuxonice patch to work with rt
    #if [ "$realtime_patch" = "1" ]; then
    #bzip2 -dck ${srcdir}/${file_toi} \
    #| sed '/diff --git a\/kernel\/fork.c b\/kernel\/fork.c/,/{/d' \
    #| sed 's/printk(KERN_INFO "PM: Creating hibernation image:\\n/printk(KERN_INFO "PM: Creating hibernation image: \\n/' \
    #| patch -Np1 || { echo "Failed TOI w/rt" ; return 1 ; }
    #else
    bzip2 -dck ${srcdir}/${file_toi} \
    | sed 's/printk(KERN_INFO "PM: Creating hibernation image:\\n/printk(KERN_INFO "PM: Creating hibernation image: \\n/' \
    | patch -Np1 -F4 || { echo "Failed TOI"; return 1 ; }
    #fi
    fi
    if [ "${bfs_scheduler}" = "1" ] && [ "${realtime_patch}" = "0" ]; then
    # applying BFS scheduler patch
    echo "BFS scheduler patch not available yet, sorry"
    # echo "Applying BFS scheduler patch"
    # patch -Np1 -i ${srcdir}/${file_bfs} || { echo "Failed BFS"; return 1 ; }
    fi
    # --> BFQ
    if [ $BFQ_IO_SCHEDULER = "y" ] ; then
    msg "Patching source with BFQ patches"
    for i in $(ls ${srcdir}/000*.patch); do
    patch -Np1 -i $i
    done
    fi
    # Some chips detect a ghost TV output
    # mailing list discussion: http://lists.freedesktop.org/archives/intel-gfx/2011-April/010371.html
    # Arch Linux bug report: FS#19234
    # It is unclear why this patch wasn't merged upstream, it was accepted,
    # then dropped because the reasoning was unclear. However, it is clearly
    # needed.
    #patch -Np1 -i "${srcdir}/i915-fix-ghost-tv-output.patch"
    # set DEFAULT_CONSOLE_LOGLEVEL to 4 (same value as the 'quiet' kernel param)
    # remove this when a Kconfig knob is made available by upstream
    # (relevant patch sent upstream: https://lkml.org/lkml/2011/7/26/227)
    patch -Np1 -i "${srcdir}/change-default-console-loglevel.patch"
    if [ "${CARCH}" = "x86_64" ]; then
    cat "${srcdir}/config.x86_64" > ./.config
    else
    cat "${srcdir}/config" > ./.config
    fi
    # use custom config instead
    if [ -n "${use_config}" ] ; then
    echo "Using config: '${use_config}'"
    cat "${use_config}" > ./.config
    make oldconfig
    fi
    # use existing config.gz
    if [ "$use_config_gz" = "1" ]; then
    zcat /proc/config.gz > ./.config
    make oldconfig
    fi
    if [ "${_kernelname}" != "" ]; then
    sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
    fi
    # set extraversion to pkgrel
    sed -ri "s|^(EXTRAVERSION =).*|\1 -${pkgrel}|" Makefile
    # hack to prevent output kernel from being marked as dirty or git
    #chmod +x ${srcdir}/linux-${_basekernel}/scripts/setlocalversion
    #sed 's/head=`git rev-parse --verify --short HEAD 2>\/dev\/null`/0/' \
    # ${srcdir}/linux-${_basekernel}/scripts/setlocalversion \
    # > ${srcdir}/linux-${_basekernel}/scripts/setlocalversion.new
    #mv ${srcdir}/linux-${_basekernel}/scripts/setlocalversion.new \
    # ${srcdir}/linux-${_basekernel}/scripts/setlocalversion
    # get kernel version
    make prepare
    # load configuration
    # Configure the kernel. Replace the line below with one of your choice.
    if [ "$gconfig" = "1" ]; then
    make gconfig
    else
    if [ "$xconfig" = "1" ]; then
    make xconfig
    else
    if [ "$menuconfig" = "1" ]; then
    make menuconfig
    fi
    fi
    fi
    yes "" | make config
    make prepare # Necessary in case config has been changed
    # build!
    make ${MAKEFLAGS} bzImage modules
    package_linux-rt-ice() {
    KARCH=x86
    cd ${srcdir}/linux-${_basekernel}
    if [ "$keep_source_code" = "1" ]; then
    echo -n "Copying source code..."
    # Keep the source code
    cd $startdir
    mkdir -p $pkgdir/usr/src || return 1
    cp -a ${srcdir}/linux-${_basekernel} $pkgdir/usr/src/linux-${_kernver} || return 1
    #Add a link from the modules directory
    mkdir -p $pkgdir/lib/modules/${_kernver} || return 1
    cd $pkgdir/lib/modules/${_kernver} || return 1
    rm -f source
    ln -s ../../../usr/src/linux-${_kernver} source || return 1
    echo "OK"
    fi
    # get kernel version
    _kernver="$(make kernelrelease)"
    mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot}
    make INSTALL_MOD_PATH="${pkgdir}" modules_install
    cp arch/$KARCH/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgname}"
    # add vmlinux
    install -D -m644 vmlinux "${pkgdir}/usr/src/linux-${_kernver}/vmlinux"
    # install fallback mkinitcpio.conf file and preset file for kernel
    install -D -m644 "${srcdir}/${pkgname}.preset" "${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset"
    # set correct depmod command for install
    sed \
    -e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
    -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
    -i "${startdir}/${pkgname}.install"
    sed \
    -e "s|ALL_kver=.*|ALL_kver=\"/boot/vmlinuz-${pkgname}\"|g" \
    -e "s|default_image=.*|default_image=\"/boot/initramfs-${pkgname}.img\"|g" \
    -e "s|fallback_image=.*|fallback_image=\"/boot/initramfs-${pkgname}-fallback.img\"|g" \
    -i "${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset"
    echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${pkgdir}/etc/mkinitcpio.d/${pkgname}.kver
    # remove build and source links
    rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build}
    # remove the firmware
    rm -rf "${pkgdir}/lib/firmware"
    # gzip -9 all modules to save 100MB of space
    find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \;
    # make room for external modules
    ln -s "../extramodules-${_basekernel}${_kernelname:--rt-ice}" "${pkgdir}/lib/modules/${_kernver}/extramodules"
    # add real version for building modules and running depmod from post_install/upgrade
    mkdir -p "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--rt-ice}"
    echo "${_kernver}" > "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--rt-ice}/version"
    mkdir -p "${pkgdir}/lib/modules/${_kernver}"
    cd "${pkgdir}/lib/modules/${_kernver}"
    ln -sf ../../../usr/src/linux-${_kernver} build
    cd "${srcdir}/linux-${_basekernel}"
    install -D -m644 Makefile \
    "${pkgdir}/usr/src/linux-${_kernver}/Makefile"
    install -D -m644 kernel/Makefile \
    "${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile"
    install -D -m644 .config \
    "${pkgdir}/usr/src/linux-${_kernver}/.config"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include"
    for i in acpi asm-generic config crypto drm generated linux math-emu \
    media net pcmcia scsi sound trace video xen; do
    cp -a include/${i} "${pkgdir}/usr/src/linux-${_kernver}/include/"
    done
    # copy arch includes for external modules
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/x86"
    cp -a arch/x86/include "${pkgdir}/usr/src/linux-${_kernver}/arch/x86/"
    # copy files necessary for later builds, like nvidia and vmware
    cp Module.symvers "${pkgdir}/usr/src/linux-${_kernver}"
    cp -a scripts "${pkgdir}/usr/src/linux-${_kernver}"
    # fix permissions on scripts dir
    chmod og-w -R "${pkgdir}/usr/src/linux-${_kernver}/scripts"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel"
    cp arch/${KARCH}/Makefile "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
    if [ "${CARCH}" = "i686" ]; then
    cp arch/${KARCH}/Makefile_32.cpu "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
    fi
    cp arch/${KARCH}/kernel/asm-offsets.s "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel/"
    # add headers for lirc package
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video"
    cp drivers/media/video/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/"
    for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102; do
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/${i}"
    cp -a drivers/media/video/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/${i}"
    done
    # add docbook makefile
    install -D -m644 Documentation/DocBook/Makefile \
    "${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"
    # add dm headers
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"
    cp drivers/md/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"
    # add inotify.h
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/linux"
    cp include/linux/inotify.h "${pkgdir}/usr/src/linux-${_kernver}/include/linux/"
    # add wireless headers
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"
    cp net/mac80211/*.h "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"
    # add dvb headers for external modules
    # in reference to:
    # http://bugs.archlinux.org/task/9912
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core"
    cp drivers/media/dvb/dvb-core/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/"
    # and...
    # http://bugs.archlinux.org/task/11194
    #mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"
    #cp include/config/dvb/*.h "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"
    # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
    # in reference to:
    # http://bugs.archlinux.org/task/13146
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
    cp drivers/media/dvb/frontends/lgdt330x.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
    cp drivers/media/video/msp3400-driver.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
    # add dvb headers
    # in reference to:
    # http://bugs.archlinux.org/task/20402
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb"
    cp drivers/media/dvb/dvb-usb/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb/"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends"
    cp drivers/media/dvb/frontends/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners"
    cp drivers/media/common/tuners/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners/"
    # add xfs and shmem for aufs building
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/mm"
    cp fs/xfs/xfs_sb.h "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h"
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p "${pkgdir}"/usr/src/linux-${_kernver}/`echo ${i} | sed 's|/Kconfig.*||'`
    cp ${i} "${pkgdir}/usr/src/linux-${_kernver}/${i}"
    done
    chown -R root.root "${pkgdir}/usr/src/linux-${_kernver}"
    find "${pkgdir}/usr/src/linux-${_kernver}" -type d -exec chmod 755 {} \;
    # strip scripts directory
    find "${pkgdir}/usr/src/linux-${_kernver}/scripts" -type f -perm -u+w 2>/dev/null | while read binary ; do
    case "$(file -bi "${binary}")" in
    *application/x-sharedlib*) # Libraries (.so)
    /usr/bin/strip ${STRIP_SHARED} "${binary}";;
    *application/x-archive*) # Libraries (.a)
    /usr/bin/strip ${STRIP_STATIC} "${binary}";;
    *application/x-executable*) # Binaries
    /usr/bin/strip ${STRIP_BINARIES} "${binary}";;
    esac
    done
    # remove unneeded architectures
    if [ "$keep_source_code" = "0" ]; then
    rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
    fi
    [ku@ku-la linux-rt-ice]$ makepkg -R
    ==> Making package: linux-rt-ice 2.6.33.9-1 (Sat Jan 21 13:33:09 NOVT 2012)
    ==> Removing existing pkg/ directory...
    ==> Entering fakeroot environment...
    ==> Starting package_linux-rt-ice()...
    Copying source code...OK
    make: *** No rule to make target `kernelrelease'. Stop.
    ==> ERROR: A failure occurred in package_linux-rt-ice().
    Aborting...
    I remounted it with defaults options as stressed above topic and try again makepkg -R but still no joy
    I looked at kernel.release
    2.6.33-1-rt-ice
    Any ideas?
    Last edited by noMaster (2012-01-21 15:35:54)

    I suggested to build package again. And finally I got it. I guess the problem was in mounting options so was needed to began from the very start

  • Question about make xconfig

    I was just wondering if someone could answer this question for me about making xconfig for a kernel.
    When I try and make xconfig via sudo or as a normal user (depending on the write permissions on where I have the sources at) I get the error that it cant find qt since I'm using qtmod.
    Yet if I switch to the root account and execute xhost+ ; make xconfig; xhost - everything works as it should.
    How can I get this to work as it should with a normal user account? It's annoying to have to pre-configure the kernel when I'm trying to compile from a pkgbuild, also adding those commands to the pkgbuild doesn't seem to work either.

    David,
    Don't reinvent the wheel on this one. Get jQuery and then use Impromptu:
    http://trentrichardson.com/Impromptu/index.php
    Your prompt would be the div and you could close it programmaticly too. Learning to use these tools will have benefits in the future too.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur

  • [SOLVED] Make Pacman cache packages installed with -U

    When installing a package with -U, pacman doesn't cache packages as it does when installing with -S. Is there a way to change this behavior?
    I read somewhere that specifying the package's full path and prepending "file://", as in "pacman -U file://path/to/package.pkg.tar.xz", but this often complains of an "invalid or corrupted package (PGP signature)".
    How can I make pacman always copy installed packages to the cache?
    MOD EDIT: change 'closed' to 'solved' in title to avoid confusion
    Last edited by fukawi2 (2013-07-06 13:09:21)

    You can't.  This has been discussed on the bugtracker several times.
    https://bugs.archlinux.org/task/35699
    https://bugs.archlinux.org/task/31243
    https://bugs.archlinux.org/task/15143
    https://bugs.archlinux.org/task/18012
    If you're building the packages yourself with makepkg, you can set PKGDEST to your cache in makepkg.conf.  Otherwise you could write a small pacman wrapper that copies the package after installing it.

  • [solved] Make content fit the TitleWindow's size proportionally

    Hi everyone,
    I have a component which has the super class TitleWindow. It's basically used as a popUp for my application. So it receives a file name and adds it to the popUp using the MXML tag Image.
    This content received is a SWF file, and I had no problems using the tag Image to import it (I'm new to Flex, but I guess there is nothing wrong with it).
    My problem is that my application has a sort of "PowerPoint" style, and is going to be used in some presentations, so I want to make sure it works on all screen resolutions, from 800x600 till 1280x1024. And that's where the problem begins.
    I could simply let Flex determinate the size of my popUp (depending on what is the size of the content, the SWF file), but I simply can't. That's because all of the SWF files are going to be 800x600, and so when you run this app in a 800x600 screen, things get messy. The popUp gets too big (in order to contain the content).
    So the solution was to manually set the size this popUp, based on the user's screen resolution. I did this simply by using:
    this.width = stageWidth * 0.9;
    this.height = stageHeight * 0.8;
    This works great and is exactly what I want.
    However, the content is not being fitted into the popUp correctly anymore. It seems after setting manually the width and height of my popUp, all of those wonderful properties, such as horizontalAlign="center" and verticalAlign="middle",  were lost also. The content is too big when seeing the app in a 800x600 computer, while the popUp is on a correct size.
    So I tried to resize the content also, based on the this.width and this.height. That solves some trouble, but then the problem is that X and Y positions are all messed, and so my content appears on wrong places, depending on the user's resolution.
    Straight to the point: after customizing the width and height of my popUp (TitleWindow) how can I set the content to keep the aspect ratio (don't get distorted, since it's a 800x600 file) and also to be resized according to the dimensions that popUp has? I'm here for like 6 hours just trying and failing to do it, and it must be an easier way to do it in Flex.
    Appreciate any advice.
    Thanks!
    Solved: I changed the Image tag for the SWFLoader tag. Also, added the property horizontalAlign="center". The rest was the same, and this solved my problem :D Weird.. I saw on some tutorials that Image could be used without problems to load SWF files... Well, works, and for sure it must be more correct also.

    Solved: I changed the Image tag for the SWFLoader tag. Also, added the property horizontalAlign="center". The rest was the same, and this solved my problem Weird.. I saw on some tutorials that Image could be used without problems to load SWF files... Well, works, and for sure it must be more correct also.

  • [SOLVED]Make Pacman think that I have libgl (NVIDIA driver)

    Hi,
    I've installed my Nvidia driver manualy because my card (NVS 310) do not work with the packages provides by pacman (even in AUR).
    Now I have a problem because pacman think I do not have
    libgl
    and do not allows me to install any graphical tools like libreoffice even if I ignore libgl:
    pacman -S libreoffice-fresh --ignore libgl
    resolving dependencies...
    :: There are 4 providers available for libgl:
    :: Repository extra
    1) mesa-libgl 2) nvidia-304xx-libgl 3) nvidia-340xx-libgl 4) nvidia-libgl
    Enter a number (default=1):
    I cannot install one of these package because then conflict with my manual install:
    pacman -S libgl
    :: There are 4 providers available for libgl:
    :: Repository extra
    1) mesa-libgl 2) nvidia-304xx-libgl 3) nvidia-340xx-libgl 4) nvidia-libgl
    Enter a number (default=1): 4
    resolving dependencies...
    looking for conflicting packages...
    warning: dependency cycle detected:
    warning: nvidia-utils will be installed before its nvidia-libgl dependency
    Packages (2) nvidia-utils-352.09-1 nvidia-libgl-352.09-1
    Total Installed Size: 125.31 MiB
    :: Proceed with installation? [Y/n]
    (2/2) checking keys in keyring [######################################] 100%
    (2/2) checking package integrity [######################################] 100%
    (2/2) loading package files [######################################] 100%
    (2/2) checking for file conflicts [######################################] 100%
    error: failed to commit transaction (conflicting files)
    nvidia-utils: /usr/bin/nvidia-bug-report.sh exists in filesystem
    nvidia-utils: /usr/bin/nvidia-cuda-mps-control exists in filesystem
    Errors occurred, no packages were upgraded.
    So my question is: Is there a way to make pacman understand that I have installed libgl manualy so it do not ask me to install it?
    Thanks
    The possible workaround is to remove my driver manually install any libgl than re-install manualy the driver and ignore libgl in the pacman configuration. But this is REALLY ugly...
    Last edited by mickours (2015-06-13 19:09:41)

    Thanks for your reply, that was fast!
    Make my own package is definitly the right way to do this and I will when I have some time.
    For now I tried the workaround I mentioned before:
    mickours wrote:The possible workaround is to remove my driver manually install any libgl than re-install manualy the driver and ignore libgl in the pacman configuration. But this is REALLY ugly...
    And it works!
    Thanks again

  • [solved]make error when using svn in PKGBUILD

    Hi, all
    I want to install the development package of R software using PKGBUILD. My PKGBUILD file is like this:
    pkgname=r
    _svnmod=r
    pkgver=0.0.0
    pkgrel=1
    pkgdesc="R is a language and environment for statistical computing and graphics"
    arch=('i686' 'x86_64')
    license=('GPL')
    url=('http://www.r-project.org/')
    depends=('blas' 'lapack' 'bzip2' 'libpng' 'libjpeg' 'libtiff'
    'ncurses' 'pcre' 'readline' 'zlib' 'perl' 'gcc-libs'
    'tk' 'libxt' 'libxmu' 'pango')
    #makedepends=('subversion' 'openjdk6' 'gcc-fortran')
    makedepends=('subversion' 'jre7-openjdk')
    options=('!makeflags')
    conflicts=('r')
    provides=('r')
    source=('r::svn+https://svn.r-project.org/R/trunk/')
    md5sums=('SKIP')
    pkgver() {
    cd "$SRCDEST/$_svnmod"
    svnversion
    build() {
    cd "$srcdir/$_svnmod"
    ./configure --prefix=/usr \
    --libdir=/usr/lib \
    --datarootdir=/usr/share \
    rsharedir=/usr/share/R/ \
    rincludedir=/usr/include/R/ \
    rdocdir=/usr/share/R/docs/ \
    --enable-memory-profiling \
    --with-readline \
    --with-x \
    --with-system-zlib \
    --with-system-bzlib \
    --with-system-pcre \
    --enable-R-shlib \
    --with-lapack \
    --with-blas \
    --without-recommended-packages \
    F77=gfortran \
    LIBnn=lib
    make
    package() {
    cd "$srcdir/$_svnmod"
    make -j1 DESTDIR=${pkgdir} install
    # Fixup R wrapper scripts.
    sed -i "s|${pkgdir} ||" ${pkgdir}/usr/bin/R
    rm ${pkgdir}/usr/lib/R/bin/R
    cd ${pkgdir}/usr/lib/R/bin
    ln -s ../../../bin/R
    But i encounter a make error like this:
    ERROR: not an svn checkout
    make: *** [svnonly] ERROR 1
    Did anyone give me some advices? Thanks a lot!
    PS. I was noticed that in wiki page "VCS PKGBUILD Guidelines", "The copy in $srcdir is made using svn export which does not create working copies. Any svn related command has to be used in the local repo in $SRCDEST." So when I change the cd line in build() and package() function into
    cd "$SRCDEST/$_svnmod"
    the error message vanished. But the local repo are changed when configure and make the project.
    Last edited by januslian (2013-05-06 08:50:09)

    Scimmia wrote:This will be fixed in pacman 4.1.1. For now, just copy the ".svn" dir yourself. cp -r "$SRCDEST/$_svnmod/.svn" "$srcdir/$_svnmod"
    Great, it works. Thanks.

  • [SOLVED] make fails but makepkg works fine (when building zathura git)

    Hello,
    when I build the "zathura-girara-git" AUR package with makepkg everything works fine, but if I try to build zathura after cloning the git repo make fails with some errors.
    make output from makepkg:
    zathura build options:
    CFLAGS = -march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -std=c99 -pedantic -Wall -Wno-format-zero-length -Wextra -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14
    LIBS = -lgirara-gtk2 -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread -lm
    DFLAGS = -g
    CC commands.c
    CC = cc
    CC document.c
    CC render.c
    CC zathura.c
    CC completion.c
    CC bookmarks.c
    CC utils.c
    CC shortcuts.c
    CC config.c
    CC callbacks.c
    CC print.c
    CC database-plain.c
    CC -o zathura
    installing executable file
    installing header files
    installing manual pages
    which: no rst2man in (/usr/lib/ccache/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/bin/:/home/bexie/bin)
    installing desktop file
    installing pkgconfig file
    make output:
    zathura build options:
    CFLAGS = -std=c99 -pedantic -Wall -Wno-format-zero-length -Wextra -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14
    LIBS = -lgirara-gtk2 -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lsqlite3 -ldl -lpthread -lm
    DFLAGS = -g
    CC = cc
    CC commands.c
    In file included from commands.c:3:0:
    commands.h:7:20: fatal error: girara.h: No such file or directory
    compilation terminated.
    make: *** [commands.o] Error 1
    I tried exporting the enviroment variables from /etc/makepkg.conf, to no avail. I also tried adding the girara include files to CFLAGS, but it throws the same kind of error about some gtk dependency.
    I don't know if this is a general issue, but as I can compile it through makepkg I don't think this is due to zathura.
    Does anyone have a clue on what could be wrong here?
    Last edited by donbex (2012-01-22 12:56:59)

    In the PKGBUILD, they are cloning the repo by doing :
    _gitroot="git://pwmt.org/zathura.git"
    _gitname="zathura"
    git clone $_gitroot
    cd $_gitname && git checkout --track -b develop origin/develop
    Are you doing the same ?

  • [SOLVED] Make Totem media player use Adwaita White instead of Dark

    I do not like the dark variant of adwaita that totem uses as default. I have tried messing with gtkrc-3.0 but have had no luck. I figure out how to change this in Ubuntu 11.10 but forget how. I booted into it but could find out what I had done.
    Last edited by quasifilmie (2011-11-26 04:25:14)

    Solved. In Aldabra (gtk2 port of Adwaita) I put the css files with dark in the filename to a subfolder called backup and did the same with Adwaita.

  • [SOLVED]Make a local repository

    I wonder if there is a way to make an archlinux repository for AUR packages, I think it'll be a lot easier to share these packages to other "Archers" with packages available in local repository like /var/cache/pacman/pkg
    Can anyone tell me how to make it, because i cannot find it anywhere so probably with asking in the forum i will find the answer.
    Thanks to you guys!
    Last edited by ch1pz (2010-04-08 14:29:11)

    first what you call AUR packages are not in fact binary packages but rather builds for making those packages. this means that is no sense for doing a repository.
    if you want to redistribute some of the builds out there, the tool for creating a repository is repo-add which is distribute with pacman.
    repo-add repo_name.db.tar.gz package-pkgver-pkgrel.pkg.tar.gz

  • [Solved] Make'ing C++ project - multiple including error

    Hi all,
    I've rewritten a makefile for my project in a more "correct" way. Reason was not to recompile everything while debugging (complete rebuild takes about 10 seconds, maybe more). But it led to new troubles - now there are a lot of errors, showing that headers are included many times, despite header guards. In makefile, target "debug" is a new way build, "debug_old" - an old one which builds normally. I don't want the rules for each source file to be written manually.
    Is it a problem in the makefile? How it can be corrected?
    Makefile:
    SOURCES=main.cpp data_types.cpp physics.cpp io.cpp
    OBJECTS=$(addprefix obj/,$(SOURCES:.cpp=.o))
    EXECUTABLE=bin/ThreadedParticles
    DEBUG_FLAGS=-Wall -g -c
    DEBUG_FLAGS_OLD=-lboost_thread-mt -Wall -g
    LDFLAGS=-lboost_thread-mt
    debug: $(SOURCES) $(EXECUTABLE)
    $(EXECUTABLE): $(OBJECTS)
    g++ $(LDFLAGS) -o $@ $(OBJECTS)
    $(OBJECTS): $(SOURCES)
    g++ $(DEBUG_FLAGS) -o $@ $<
    debug_old:
    g++ $(DEBUG_FLAGS_OLD) -o $(EXECUTABLE) $(SOURCES)
    $ make -B debug
    g++ -Wall -g -c -o obj/main.o main.cpp
    main.cpp: In function 'int main(int, char**)':
    main.cpp:32:8: warning: enumeration value 'SUCCESS' not handled in switch
    main.cpp:32:8: warning: enumeration value 'LINES_LEFT' not handled in switch
    main.cpp:32:8: warning: enumeration value 'WRONG_VERSION' not handled in switch
    main.cpp:32:8: warning: enumeration value 'FEW_PARTICLES' not handled in switch
    main.cpp:34:2: warning: label 'WRONG_VERSION' defined but not used
    main.cpp:37:2: warning: label 'FEW_PARTICLES' defined but not used
    main.cpp:40:2: warning: label 'LINES_LEFT' defined but not used
    main.cpp:42:2: warning: label 'SUCCESS' defined but not used
    g++ -Wall -g -c -o obj/data_types.o main.cpp
    main.cpp: In function 'int main(int, char**)':
    # same warnings as for main.o
    g++ -Wall -g -c -o obj/physics.o main.cpp
    main.cpp: In function 'int main(int, char**)':
    # same warnings as for main.o
    g++ -Wall -g -c -o obj/io.o main.cpp
    main.cpp: In function 'int main(int, char**)':
    # same warnings as for main.o
    g++ -lboost_thread-mt -o bin/ThreadedParticles obj/main.o obj/data_types.o obj/physics.o obj/io.o
    obj/data_types.o: In function `main':
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/exception:64: multiple definition of `main'
    obj/main.o:/mnt/data/Coding/Current Projects/ThreadedParticles/main.cpp:9: first defined here
    obj/physics.o: In function `main':
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/exception:64: multiple definition of `main'
    obj/main.o:/mnt/data/Coding/Current Projects/ThreadedParticles/main.cpp:9: first defined here
    obj/io.o: In function `main':
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/exception:64: multiple definition of `main'
    obj/main.o:/mnt/data/Coding/Current Projects/ThreadedParticles/main.cpp:9: first defined here
    obj/main.o: In function `main':
    main.cpp:(.text+0x109): undefined reference to `prepareWorld(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, tpPhysicsGravity**, tpOutput**)'
    main.cpp:(.text+0x157): undefined reference to `tpPhysics::iterationNumber()'
    main.cpp:(.text+0x171): undefined reference to `tpPhysics::startThreads()'
    main.cpp:(.text+0x17d): undefined reference to `tpOutput::start()'
    main.cpp:(.text+0x189): undefined reference to `tpPhysics::stopThreads()'
    main.cpp:(.text+0x195): undefined reference to `tpOutput::stop()'
    main.cpp:(.text+0x1b5): undefined reference to `tpOutput::start()'
    main.cpp:(.text+0x1c1): undefined reference to `tpOutput::stop()'
    obj/main.o: In function `tpPhysicsGravity::~tpPhysicsGravity()':
    main.cpp:(.text._ZN16tpPhysicsGravityD2Ev[_ZN16tpPhysicsGravityD5Ev]+0x13): undefined reference to `vtable for tpPhysicsGravity'
    obj/data_types.o: In function `main':
    # same "undefined reference" as for previous
    obj/physics.o: In function `main':
    # same "undefined reference" as for previous
    obj/io.o: In function `main':
    # same "undefined reference" as for previous
    collect2: ld returned 1 exit status
    make: *** [bin/ThreadedParticles] Error 1
    Last edited by Kosmonavt (2010-11-30 08:16:56)

    Situation is the following: there are also physics.hpp, io.hpp and data_types.hpp. main() is declared only in main.cpp one time, also not used by any classes/functions. It was surprising for me, since debug_old build normally, only warnings about enum are printed.
    data_types.hpp:
    #ifndef DATA_TYPES_HPP_INCLUDED
    #define DATA_TYPES_HPP_INCLUDED
    #include <valarray>
    #include <vector>
    #include <cmath>
    // Common typedefs and (maybe) data types
    typedef std::valarray<double> vector3;
    typedef std::vector<vector3> vector_array;
    typedef std::vector<double> d_array;
    // Defining square of vector length
    double norm( vector3 v );
    #endif // DATA_TYPES_HPP_INCLUDED
    io.hpp:
    #ifndef IO_HPP_INCLUDED
    #define IO_HPP_INCLUDED
    #include <fstream>
    // #include <boost/thread.hpp>
    #include <string>
    #include <sstream>
    #include "data_types.hpp"
    #include "physics.hpp"
    // *** Output facility ***
    class tpOutput
    public:
    tpOutput(std::string filename, int version, int skip, tpPhysics* physsystem);
    ~tpOutput() { }
    void start();
    void stop();
    private:
    std::ofstream outputFile;
    // boost::thread outputWorker;
    int skipSize;
    int versionNumber;
    tpPhysics* physSystem;
    void writeResults();
    void writeTableHeader();
    void writeVersion();
    void writeSettingOverview();
    // *** Input facility ***
    enum prepareError { SUCCESS, LINES_LEFT, WRONG_VERSION, FEW_PARTICLES };
    prepareError prepareWorld( std::string settingFileName, std::string outputFileName, int worker_num, tpPhysicsGravity** world, tpOutput** log );
    namespace input
    int parseSettings( std::ifstream& fin, long int& part_num, long int& iter_num, double& delta_t, int& skip, std::string& desc );
    // 0 - if incompatible at all, nonzero - number of setting file ID
    // for Ver2 setting file
    void readParticleData_2( std::ifstream& fin, d_array& m_range, d_array& c_range, d_array& v_range );
    // for coord/velocity, lower values are in 0-2,
    // higher - in 3-5
    // for Ver1 setting file; to be called for every particle in list
    void readParticleData_1( std::ifstream& fin, double& m, vector3& c, vector3& v );
    // Getting CSV key values
    void getKey( std::ifstream& f, long int& result );
    void getKey( std::ifstream& f, double& result );
    void getKey( std::ifstream& f, int& result );
    #endif // IO_HPP_INCLUDED
    physics.hpp:
    #ifndef PARTICLES_HPP_INCLUDED
    #define PARTICLES_HPP_INCLUDED
    #include <boost/thread.hpp>
    #include <boost/shared_ptr.hpp>
    #include <cmath>
    #include <vector>
    #include <valarray>
    #include <cstdlib>
    #include <ctime>
    #include <iostream>
    #include "data_types.hpp"
    // General-purpose constants and types
    const double G = 6.673e-11;
    // *** Physics facility ***
    class tpPhysics
    public:
    tpPhysics( long int iter_num, long int part_num, double delta_t, int worker_num );
    ~tpPhysics() { }
    void startThreads();
    void stopThreads();
    void addParticle( double m, vector3 c, vector3 v );
    void generateParticles(d_array m, d_array c, d_array v);
    void getPreviousState( long int num, double& m, vector3& c, vector3& v );
    long int iterationNumber();
    long int particleNumber();
    double dt();
    long int showTime();
    protected:
    void setWorkers(int worker_number);
    // 1st set of parameters
    vector_array coords_1;
    vector_array velocity_1;
    d_array mass_1;
    // 2nd set of parameters
    vector_array coords_2;
    vector_array velocity_2;
    d_array mass_2;
    void setCurrentState( long int num, vector3 c, vector3 v );
    void setCurrentState( long int num, double m, vector3 c, vector3 v );
    void nextStep();
    // Common parameters
    const long int iterNumber;
    const long int partNumber;
    const double deltaT;
    long int current_time;
    int which_set; // 1 - if 1st set is current, 2 - if 2nd set is current
    // Threading data
    std::vector<long int> boundaries;
    std::vector<boost::shared_ptr<boost::thread> > workerArray;
    int workerCount;
    virtual void singleCalculator(int lower, int higher) = 0;
    class tpPhysicsGravity : public tpPhysics
    public:
    tpPhysicsGravity( long int iter_num, long int part_num, double delta_t, int worker_num )
    : tpPhysics(iter_num, part_num, delta_t, worker_num) { }
    ~tpPhysicsGravity() { }
    protected:
    void singleCalculator(int lower, int higher);
    #endif // PARTICLES_HPP_INCLUDED

  • [SOLVED] Make 2 sound sources into 1

    What I want to do is take two sound sources (plughw:0,0 & plughw:1,0) and make them into either one plug or a whole new (virtual) sound card with a plug...
    I am using ALSA (no PulseAudio, JACK or OSS), system updated to latest kernel, etc...
    My goal is to have just 1 device that, when recorded, streams both System Sound and Microphone sound...
    Help is appreciated!
    Last edited by Nobabs27 (2014-12-27 02:47:46)

    You might be able to do that directly with your recording software. ffmpeg should be able to do that with custom filter chains and the amix filter
    http://www.ffmpeg.org/ffmpeg-filters.html#amix
    http://unix.stackexchange.com/questions … b-possible
    Last edited by progandy (2014-12-26 09:44:25)

  • [SOLVED] Make failing for Canon MG6400-series scanner driver

    EDIT: ~~ Solution ~~ << Click this
    Hello,
    Been trying to install my scanner, Canon MG6450 (PSC, all-in-one),  however no package in repository nor AUR so downloaded the tarball from Canon's website, ran the autogen.sh and make. The make keep failing, been scratching my head and searching for hours but so far no luck.
    Running the autogen.sh seems flawless, then time for make... and errors. Full log of make:
    $ make
    (CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/user/scangearmp-source-2.20-1/scangearmp/missing autoheader)
    autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
    autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
    autoheader: WARNING: is deprecated and discouraged.
    autoheader:
    autoheader: WARNING: Using the third argument of `AC_DEFINE' and
    autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
    autoheader: WARNING: `acconfig.h':
    autoheader:
    autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
    autoheader: [Define if a function `main' is needed.])
    autoheader:
    autoheader: WARNING: More sophisticated templates can also be produced, see the
    autoheader: WARNING: documentation.
    rm -f stamp-h1
    touch config.h.in
    cd . && /bin/sh ./config.status config.h
    config.status: creating config.h
    config.status: config.h is unchanged
    make all-recursive
    make[1]: Entering directory '/home/user/scangearmp-source-2.20-1/scangearmp'
    Making all in po
    make[2]: Entering directory '/home/user/scangearmp-source-2.20-1/scangearmp/po'
    file=./`echo de | sed 's,.*/,,'`.gmo \
    && rm -f $file && /usr/bin/msgfmt -c -o $file de.po
    de.po:6: warning: header field 'Language' missing in header
    file=./`echo fr | sed 's,.*/,,'`.gmo \
    && rm -f $file && /usr/bin/msgfmt -c -o $file fr.po
    fr.po:6: warning: header field 'Language' missing in header
    file=./`echo ja | sed 's,.*/,,'`.gmo \
    && rm -f $file && /usr/bin/msgfmt -c -o $file ja.po
    ja.po:6: warning: header field 'Language' missing in header
    file=./`echo zh | sed 's,.*/,,'`.gmo \
    && rm -f $file && /usr/bin/msgfmt -c -o $file zh.po
    zh.po:6: warning: header field 'Language' missing in header
    make[2]: Leaving directory '/home/user/scangearmp-source-2.20-1/scangearmp/po'
    Making all in backend
    make[2]: Entering directory '/home/user/scangearmp-source-2.20-1/scangearmp/backend'
    /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I. -I./include -DV_MAJOR=2 -DV_MINOR=2 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT libsane_canon_mfp_la-canon_mfp.lo -MD -MP -MF .deps/libsane_canon_mfp_la-canon_mfp.Tpo -c -o libsane_canon_mfp_la-canon_mfp.lo `test -f 'canon_mfp.c' || echo './'`canon_mfp.c
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I./include -DV_MAJOR=2 -DV_MINOR=2 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT libsane_canon_mfp_la-canon_mfp.lo -MD -MP -MF .deps/libsane_canon_mfp_la-canon_mfp.Tpo -c canon_mfp.c -fPIC -DPIC -o .libs/libsane_canon_mfp_la-canon_mfp.o
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I./include -DV_MAJOR=2 -DV_MINOR=2 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT libsane_canon_mfp_la-canon_mfp.lo -MD -MP -MF .deps/libsane_canon_mfp_la-canon_mfp.Tpo -c canon_mfp.c -o libsane_canon_mfp_la-canon_mfp.o >/dev/null 2>&1
    mv -f .deps/libsane_canon_mfp_la-canon_mfp.Tpo .deps/libsane_canon_mfp_la-canon_mfp.Plo
    /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I. -I./include -DV_MAJOR=2 -DV_MINOR=2 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT libsane_canon_mfp_la-canon_mfp_tools.lo -MD -MP -MF .deps/libsane_canon_mfp_la-canon_mfp_tools.Tpo -c -o libsane_canon_mfp_la-canon_mfp_tools.lo `test -f 'canon_mfp_tools.c' || echo './'`canon_mfp_tools.c
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I./include -DV_MAJOR=2 -DV_MINOR=2 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT libsane_canon_mfp_la-canon_mfp_tools.lo -MD -MP -MF .deps/libsane_canon_mfp_la-canon_mfp_tools.Tpo -c canon_mfp_tools.c -fPIC -DPIC -o .libs/libsane_canon_mfp_la-canon_mfp_tools.o
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I./include -DV_MAJOR=2 -DV_MINOR=2 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT libsane_canon_mfp_la-canon_mfp_tools.lo -MD -MP -MF .deps/libsane_canon_mfp_la-canon_mfp_tools.Tpo -c canon_mfp_tools.c -o libsane_canon_mfp_la-canon_mfp_tools.o >/dev/null 2>&1
    mv -f .deps/libsane_canon_mfp_la-canon_mfp_tools.Tpo .deps/libsane_canon_mfp_la-canon_mfp_tools.Plo
    /bin/sh ../libtool --tag=CC --mode=link gcc -DV_MAJOR=2 -DV_MINOR=2 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -version-info 2:2:0 -o libsane-canon_mfp.la -rpath /usr/lib libsane_canon_mfp_la-canon_mfp.lo libsane_canon_mfp_la-canon_mfp_tools.lo -lusb -ldl -lcncpnet -lpthread -lz -lusb
    libtool: link: gcc -shared -fPIC -DPIC .libs/libsane_canon_mfp_la-canon_mfp.o .libs/libsane_canon_mfp_la-canon_mfp_tools.o -ldl -lcncpnet -lpthread -lz -lusb -O2 -Wl,-soname -Wl,libsane-canon_mfp.so.2 -o .libs/libsane-canon_mfp.so.2.0.2
    libtool: link: (cd ".libs" && rm -f "libsane-canon_mfp.so.2" && ln -s "libsane-canon_mfp.so.2.0.2" "libsane-canon_mfp.so.2")
    libtool: link: (cd ".libs" && rm -f "libsane-canon_mfp.so" && ln -s "libsane-canon_mfp.so.2.0.2" "libsane-canon_mfp.so")
    libtool: link: ar cru .libs/libsane-canon_mfp.a libsane_canon_mfp_la-canon_mfp.o libsane_canon_mfp_la-canon_mfp_tools.o
    libtool: link: ranlib .libs/libsane-canon_mfp.a
    libtool: link: ( cd ".libs" && rm -f "libsane-canon_mfp.la" && ln -s "../libsane-canon_mfp.la" "libsane-canon_mfp.la" )
    make[2]: Leaving directory '/home/user/scangearmp-source-2.20-1/scangearmp/backend'
    Making all in src
    make[2]: Entering directory '/home/user/scangearmp-source-2.20-1/scangearmp/src'
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-main.o -MD -MP -MF .deps/scangearmp-main.Tpo -c -o scangearmp-main.o `test -f 'main.c' || echo './'`main.c
    mv -f .deps/scangearmp-main.Tpo .deps/scangearmp-main.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-callbacks.o -MD -MP -MF .deps/scangearmp-callbacks.Tpo -c -o scangearmp-callbacks.o `test -f 'callbacks.c' || echo './'`callbacks.c
    mv -f .deps/scangearmp-callbacks.Tpo .deps/scangearmp-callbacks.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-interface.o -MD -MP -MF .deps/scangearmp-interface.Tpo -c -o scangearmp-interface.o `test -f 'interface.c' || echo './'`interface.c
    mv -f .deps/scangearmp-interface.Tpo .deps/scangearmp-interface.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-support.o -MD -MP -MF .deps/scangearmp-support.Tpo -c -o scangearmp-support.o `test -f 'support.c' || echo './'`support.c
    mv -f .deps/scangearmp-support.Tpo .deps/scangearmp-support.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-coloradjust.o -MD -MP -MF .deps/scangearmp-coloradjust.Tpo -c -o scangearmp-coloradjust.o `test -f 'coloradjust.c' || echo './'`coloradjust.c
    mv -f .deps/scangearmp-coloradjust.Tpo .deps/scangearmp-coloradjust.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-coloradjust_bc.o -MD -MP -MF .deps/scangearmp-coloradjust_bc.Tpo -c -o scangearmp-coloradjust_bc.o `test -f 'coloradjust_bc.c' || echo './'`coloradjust_bc.c
    mv -f .deps/scangearmp-coloradjust_bc.Tpo .deps/scangearmp-coloradjust_bc.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-coloradjust_hg.o -MD -MP -MF .deps/scangearmp-coloradjust_hg.Tpo -c -o scangearmp-coloradjust_hg.o `test -f 'coloradjust_hg.c' || echo './'`coloradjust_hg.c
    mv -f .deps/scangearmp-coloradjust_hg.Tpo .deps/scangearmp-coloradjust_hg.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-coloradjust_tc.o -MD -MP -MF .deps/scangearmp-coloradjust_tc.Tpo -c -o scangearmp-coloradjust_tc.o `test -f 'coloradjust_tc.c' || echo './'`coloradjust_tc.c
    mv -f .deps/scangearmp-coloradjust_tc.Tpo .deps/scangearmp-coloradjust_tc.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-coloradjust_fr.o -MD -MP -MF .deps/scangearmp-coloradjust_fr.Tpo -c -o scangearmp-coloradjust_fr.o `test -f 'coloradjust_fr.c' || echo './'`coloradjust_fr.c
    mv -f .deps/scangearmp-coloradjust_fr.Tpo .deps/scangearmp-coloradjust_fr.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-coloradjust_mc.o -MD -MP -MF .deps/scangearmp-coloradjust_mc.Tpo -c -o scangearmp-coloradjust_mc.o `test -f 'coloradjust_mc.c' || echo './'`coloradjust_mc.c
    mv -f .deps/scangearmp-coloradjust_mc.Tpo .deps/scangearmp-coloradjust_mc.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-com_gtk.o -MD -MP -MF .deps/scangearmp-com_gtk.Tpo -c -o scangearmp-com_gtk.o `test -f 'com_gtk.c' || echo './'`com_gtk.c
    mv -f .deps/scangearmp-com_gtk.Tpo .deps/scangearmp-com_gtk.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-cnmsstr.o -MD -MP -MF .deps/scangearmp-cnmsstr.Tpo -c -o scangearmp-cnmsstr.o `test -f 'cnmsstr.c' || echo './'`cnmsstr.c
    mv -f .deps/scangearmp-cnmsstr.Tpo .deps/scangearmp-cnmsstr.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-w1_main.o -MD -MP -MF .deps/scangearmp-w1_main.Tpo -c -o scangearmp-w1_main.o `test -f 'w1_main.c' || echo './'`w1_main.c
    mv -f .deps/scangearmp-w1_main.Tpo .deps/scangearmp-w1_main.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-w1_size.o -MD -MP -MF .deps/scangearmp-w1_size.Tpo -c -o scangearmp-w1_size.o `test -f 'w1_size.c' || echo './'`w1_size.c
    mv -f .deps/scangearmp-w1_size.Tpo .deps/scangearmp-w1_size.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-w1_ui.o -MD -MP -MF .deps/scangearmp-w1_ui.Tpo -c -o scangearmp-w1_ui.o `test -f 'w1_ui.c' || echo './'`w1_ui.c
    mv -f .deps/scangearmp-w1_ui.Tpo .deps/scangearmp-w1_ui.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-preference.o -MD -MP -MF .deps/scangearmp-preference.Tpo -c -o scangearmp-preference.o `test -f 'preference.c' || echo './'`preference.c
    mv -f .deps/scangearmp-preference.Tpo .deps/scangearmp-preference.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-save_dialog.o -MD -MP -MF .deps/scangearmp-save_dialog.Tpo -c -o scangearmp-save_dialog.o `test -f 'save_dialog.c' || echo './'`save_dialog.c
    mv -f .deps/scangearmp-save_dialog.Tpo .deps/scangearmp-save_dialog.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-prev_main.o -MD -MP -MF .deps/scangearmp-prev_main.Tpo -c -o scangearmp-prev_main.o `test -f 'prev_main.c' || echo './'`prev_main.c
    mv -f .deps/scangearmp-prev_main.Tpo .deps/scangearmp-prev_main.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-prev_sub.o -MD -MP -MF .deps/scangearmp-prev_sub.Tpo -c -o scangearmp-prev_sub.o `test -f 'prev_sub.c' || echo './'`prev_sub.c
    mv -f .deps/scangearmp-prev_sub.Tpo .deps/scangearmp-prev_sub.Po
    gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -pthread -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-scanfile.o -MD -MP -MF .deps/scangearmp-scanfile.Tpo -c -o scangearmp-scanfile.o `test -f 'scanfile.c' || echo './'`scanfile.c
    scanfile.c: In function ‘WritePnmHeader’:
    scanfile.c:469:2: warning: incompatible implicit declaration of built-in function ‘strncpy’
    strncpy( buf, "\0", 1 ); /* Buff Init */
    ^
    scanfile.c:499:18: warning: incompatible implicit declaration of built-in function ‘strlen’
    if( (len_type = strlen( str_type )) == 0 )
    ^
    scanfile.c:501:2: warning: incompatible implicit declaration of built-in function ‘strncat’
    strncat( buf+ptr, str_type, len_type);
    ^
    scanfile.c: In function ‘Change_RAW_to_PNG’:
    scanfile.c:643:54: error: ‘Z_BEST_SPEED’ undeclared (first use in this function)
    plibpngapi->p_png_set_compression_level( write_ptr, Z_BEST_SPEED ); /* maximum speed */
    ^
    scanfile.c:643:54: note: each undeclared identifier is reported only once for each function it appears in
    Makefile:799: recipe for target 'scangearmp-scanfile.o' failed
    make[2]: *** [scangearmp-scanfile.o] Error 1
    make[2]: Leaving directory '/home/user/scangearmp-source-2.20-1/scangearmp/src'
    Makefile:423: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/home/user/scangearmp-source-2.20-1/scangearmp'
    Makefile:355: recipe for target 'all' failed
    make: *** [all] Error 2
    Any suggestions on how to make progress it would be appriciated. Will keep on trying to find a solution.
    Thanks in advance.
    PS.
    I'm fairly new to Arch, comming from a long history with Ubuntu.
    Oh, and btw, it's just scanner drivers that fails - found printer ones at AUR. Scanner drivers up to MG6300-series are at the AUR.
    DS.
    Last edited by am2del (2015-05-09 14:59:46)

    ~~ Solution ~~ (version numbers are current availible)
    [As root]: Install the printer over network
    Driver: Availible at AUR, cnijfilter-mg6400series 4.00-1
    yaourt cnijfilter-mg6400series
    Device url: (replace XX-XX-XX-XX-XX-XX with Printer MAC)
    cnijbe://Canon/?port=net&serial=XX-XX-XX-XX-XX-XX
    Make & model:
    Canon MG6400 series Ver.4.00
    [Download]: MG6400 series ScanGear MP driver RPM from Canon
    [As root]: Install rpmextract
    $ pacman -S rpmextract
    [As user]: Extract RPM
    $ rpmextract.sh scangearmp-common 2.20-1.rpm
    $ rpmextract.sh scangearmp-mg6400series-2.20-1.x86_64.rpm
    [As root]: Copy to folders
    $ cp -r ~/etc/* /etc/
    $ cp -r ~/usr/lib64/* /usr/lib64/
    $ cp -r ~/usr/local/* /usr/local/
    $ cp -r ~/usr/share/* /usr/share/
    [As root]: Make symbolic links for lib64 files
    $ ls -s /usr/lib64/libcn*
    [As root]: Install GIMP & XSane
    $ pacman -S gimp xsane-gimp
    [As user]: Open GIMP
    File > Create > XSane: Device dialog... [Scanning for devices...]
    Ready to scan~ (and ofcourse over network, honestly never tried USB for this printer...)
    Gonna see if I can figure out how to add this finished to AUR for automatic install... Might be beyond me still, but gonna try.
    This reference << Helped a lot.
    Last edited by am2del (2015-05-09 15:01:00)

  • [Solved] Make systemctl find .service file in /usr/lib/systemd/user?

    I thought this had always worked, but it seems that systemctl cannot see `.service` files that are in my `/usr/lib/systemd/user` folder and I can't figure out why:
    $ locate redshift-gtk.service
    /usr/lib/systemd/user/redshift-gtk.service
    $ systemctl status redshift-gtk
    ● redshift-gtk.service
    Loaded: not-found (Reason: No such file or directory)
    Active: inactive (dead)
    I have already looked at https://wiki.archlinux.org/index.php/Systemd/User which seems to tell me to check sytemctl --user status but that appears to be loaded and working fine, I have a feeling I'm missing something obvious but can't figure out what it is. How do I make systemctl include this directory?
    $ systemctl --user status
    ● michael-work
    State: running
    Jobs: 0 queued
    Failed: 0 units
    Since: Tue 2014-08-05 11:24:32 BST; 11min ago
    CGroup: /user.slice/user-1000.slice/[email protected]
    ├─730 /usr/lib/systemd/systemd --user
    └─731 (sd-pam)
    Any ideas?
    Last edited by crashandburn4 (2014-08-05 11:09:45)

    systemctl --user status redshift-gtk.service

  • [SOLVED] Make Screen Clear After Bootup

    I want the screen to be blank when I first boot up. No prompt for logging in or anything. I tried issuing a /usr/bin/clear > /dev/tty0 when the system first boots up but that does not seem to be working as messages still get shown on the screen. Any ideas on how to accomplish this?
    Last edited by kaptk2 (2012-12-12 19:25:09)

    rebootl wrote:
    Sure, that does the job, wasn't sure if it's possible.
    Just wondering, how do you log in / do something ?
    Please mark as solved by editing your first post, if it's resolved for you
    Regards
    I use SSH to login... but Xyne is correct if I had to I could go to another terminal and it will work, the only thing un-linked is tty1
    I am marking this as solved, although it is kinda ugly, it works.

Maybe you are looking for

  • Context root

    How to fetch context root of web application from FacesContex?

  • Recording problem menubar

    Hi, i am working on BDC call transaction .My req.. is to put dear2 flag = X . This is located in EXTRAS =>account group info=>customer types. How i can record this path please help me on this.

  • End User Manual_SAP HR

    Dear All, I am working as a "SAP HR Functional consultant". Now,I have been given the Assignment of Preparing the End user Manual. Could you kindly help me by sending some End user manuals [If you have any ] & Also tell me how to prepare them? Waitin

  • Physical DataGuard issue

    Hello, - Primary Database and Standby versions: 11.2.0.3. Linux Redhat 5. - Physical Standby database created using rman active duplication command. - Archive logs are shipping and applied to standby. I am trying to setup the broker to manage the DG

  • Problem in export billing..

    Hi Friednds, I had a problem in export invoice generation. When i make export invoice, per unit cost showing as EURO but it is calculating INR ( Amount showing In INR), Pls tell me how to slove the same, i need to calculate in EURO only both the unit