[SOLVED] makepkg creates install path relative to current directory

I'm packaging a pcsc driver, simply so that I can have pacman manage it. I've tried various things, but I simply cannot get makepkg to generate a package which will install to /usr/ instead of my home directory. build() and package() both work just fine; but I end up with a .pkg.tar.gz that installs to my home directory. Below are both my PKGBUILD files and the output of pacman -Qlp [my].pkg.tar.gz
pkgname=acsccid
pkgver=1.0.8
pkgrel=1
pkgdesc="Control library for ACS ACR38T"
arch=('x86_64')
url="http://www.acs.com.hk/en/driver/1/acr38t-d1-plug-in-sim-sized-card-reader/"
license=('LGPL')
depends=('pcsclite' 'libusb-compat' 'flex')
source=('http://www.acs.com.hk/download-driver-unified/6258/ACS-Unified-Driver-Lnx-Mac-108-P.zip')
md5sums=('0b235156a66f280a81f949b0c9bb3052') #generate with 'makepkg -g'
build() {
cd "ACS-Unified-Driver-Lnx-Mac-108-P"
tar xjf "$pkgname-$pkgver.tar.bz2"
cd "$pkgname-$pkgver/"
./configure --prefix=/usr --sysconfdir=/etc
make
package() {
cd "ACS-Unified-Driver-Lnx-Mac-108-P/$pkgname-$pkgver"
make DESTDIR="$pkgdir" usbdropdir="$pkgdir/lib/pcsc/drivers" install
# pacman -Qlp acsccid-1.0.8-1-x86_64.pkg.tar.xz | sed "s%/home/[a-z]*/%/home/xxx/%"
acsccid /home/
acsccid /home/xxx/
acsccid /home/xxx/projects/
acsccid /home/xxx/projects/acr38t_driver_pkg/
acsccid /home/xxx/projects/acr38t_driver_pkg/pkg/
acsccid /home/xxx/projects/acr38t_driver_pkg/pkg/acsccid/
acsccid /home/xxx/projects/acr38t_driver_pkg/pkg/acsccid/lib/
acsccid /home/xxx/projects/acr38t_driver_pkg/pkg/acsccid/lib/pcsc/
acsccid /home/xxx/projects/acr38t_driver_pkg/pkg/acsccid/lib/pcsc/drivers/
acsccid /home/xxx/projects/acr38t_driver_pkg/pkg/acsccid/lib/pcsc/drivers/ifd-acsccid.bundle/
acsccid /home/xxx/projects/acr38t_driver_pkg/pkg/acsccid/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/
acsccid /home/xxx/projects/acr38t_driver_pkg/pkg/acsccid/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/Info.plist
acsccid /home/xxx/projects/acr38t_driver_pkg/pkg/acsccid/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/Linux/
acsccid /home/xxx/projects/acr38t_driver_pkg/pkg/acsccid/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/Linux/libacsccid.so
Last edited by mkingston (2014-09-11 07:34:46)

I think you understand makepkg just fine.  It's make that's causing you trouble.  You were telling acsccid to install into
/home/xxx/projects/acr38t_driver_pkg/pkg/home/xxx/projects/acr38t_driver_pkg/pkg/acsccid/lib/pcsc/drivers/
which makepkg happily packaged for you.

Similar Messages

  • [solved] makepkg.conf + local path

    Hi!
    I would like to create two packages that are needed to run my printer (canon).
    From the canon website, after long passages, I downloaded two .tar.gz  packages with the necessary sources.
    From wiki, I refer to the page that explains how to create the PKGBUILD, I realized that you can
    also specify a local directory as url to find the source package.
    To do this, however, you must edit the file makepkg.conf.
    The question is: how do I change the file makepkg.conf?
    Thank you!
    Last edited by trevi (2011-12-29 15:19:55)

    Just put the tarball names in the source= array, put the tarballs and PKGBUILD in the same dir, and run makepkg in that dir. No need to edit makepkg.conf.

  • How to create a file in current directory

    hi,
    I want to create a file in a current directory, But when i written following
    code then it cannot create file, How i will create file in current directory?
    Is there anyone who can help me?what will be the solution of this problem?
    Please give me solution
    String dir=application.getRealPath("/");
         int count;
         String filename="sample.txt";
         out.println(dir+filename);
         FileOutputStream fout=new FileOutputStream(filename);
         PrintStream p;
         p=new PrintStream(fout);
         p.print("1");
         p.close();with regards
    Bina

    hi,
    my problem is that my path is ok...but when i open file in this directory then
    it cannot open a file, is there anyone who can do it? When a user save data in server from remote
    area then what will be path of my code? how i will solve it? please give me
    solution.
    with regards
    bina

  • Java not checking current directory

    I'm trying to run one of my classes in command line. First time I've done this, usually use JBuilder, but I need to send command line arguments for this assignment, which is easier to do in command line.
    I'm using Windows XP. My class is called Fexpand. I go to the directory that the class is in. I check this with dir, and Fexpand.class is clearly present. I type "java Fexpand" and hit enter. I get "Exception in thread "main" java.lang.NoClassDefFoundError: Fexpand" If I put the full path to the current directory in manually with -classpath it will run just fine. But everything I've checked says this shouldn't be necessary and it should be checking the current directory automatically.
    Now javac works just fine. Just for kicks I thought I'd see if compiling with javac would make any difference. Went to my source directory (because JBuilder keeps compiled classes separate from source), typed "javac Fexpand.java" and it worked just fine. And since there was now an Fexpand.class in this directory, too, I thought I'd try running it. "java Fexpand" Still get the same error.
    My CLASSPATH variable contains the following (including quotes, I didn't add those for clarity, they're in the value for CLASSPATH): "C:\Program Files\Java\j2re1.4.2_04\lib\ext\QTJava.zip"
    I have no idea whether or not this is right, but it's the only culprit I can think of.
    Thanks for any help.

    But everything I've checked says this shouldn't be necessary and it should be checking the current directory automatically.Not if you hava overridden the default checking by explicitly specifying a classpath. Read the documentation Setting the Classpath and How Classes are Found here:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/tools.html

  • Cannot install Webpack on Ubuntu: 'Could not create destination path /opt/Xilinx/13.4/ISE_DS'

    Hi there,
    I managed to untar the compressed file and get xsetup running. It all works fine till the last bit where I click 'Install' which results an error:
    Could not create destination path /opt/Xilinx/13.4/ISE_DS
    Any ideas why? Thank you for your help in advance! 

    Hi 
    Check you have write permissions to the path /opt/Xilinx/13.4/ISE_DS?
    If not, change the installation location to other path where you have write permissions.
    Thanks,
    Vinay

  • [SOLVED] Makepkg, install dependencies from AUR.

    Is it possible for makepkg to install the dependencies from AUR with makepkg -si?
    Last edited by lemanski6 (2012-09-20 18:05:38)

    Nope.  Many "AUR helpers" do this though.  In my limited experience yaourt seems to be one that handles this seemlessly, but I'd say it comes with some costs of hiding what is doing from the user.

  • [SOLVED] makepkg builds differently than local build

    SOLUTION: my makefile with `CFLAGS += ...` did not pick up the local CFLAGS environment variable, with the command in my second post, my local build has the same issue as the makepkg build.
    I have a project of mine alopex which I'm polishing up a new version for.  I've been running a locally built version for a while, but when I installed it with makepkg I'm getting all sorts of memory errors and crashes when I run it.
    The first obvious difference between my local build and makepkg was that makepkg strips the binary - so I stripped the local binary, but no change: the local build in ~/code/alopex/ worked fine, but the makepkg/pacman installed version in /usr/bin/ did not.
    The next step was to source /etc/makepkg.conf for the local build to use all the same CFLAGS and LDFLAGS as a makepkg build.  But this also lead to no change in the results.
    Here are the two files, both from the exact same git source, both built with makepkg.conf build flags, and both stripped.
    $ ls -l /usr/bin/alopex
    -rwxr-xr-x 1 root root 48280 Feb 13 14:21 /usr/bin/alopex
    $ file /usr/bin/alopex
    /usr/bin/alopex: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=03e8e16e7208d6c97bce6bd545f45d20c7a7606a, stripped
    $ ls -l ~/code/alopex/alopex
    -rwxr-xr-x 1 jmcclure users 54760 Feb 13 14:30 /home/jmcclure/code/alopex/alopex
    $ file ~/code/alopex/alopex
    /home/jmcclure/code/alopex/alopex: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0659354ed5a904fe93894f14d6bd413ea278396e, stripped
    I can't figure out why the binaries are difference sizes and have different checksums.  I suspect there is an error in my code that is only exposed when built with makepkg - but this is hard to track down without knowing what makepkg is doing differently than my local build.  To be sure relative paths couldn't be relevant, I also moved the locally built binary to /usr/bin/ (overwriting the makepkg/pacman one) and it executed just fine.
    So - my main question is, in addition to stripping a binary and using the makepkg.conf flags, what else is different about the makepkg build and my local build?  I'm guessing it might have to do with makepkg using a clean chroot build environment (right?), but namcap doesn't detect any missing dependencies or any other issues.
    Below are many details that may or may not be relevant
    EDIT: in case it's relevant, here is the `env` output for the local build with only the PS1/PS2 and LS_COLORS removed as they are long and I can't imagine relevant.
    XDG_VTNR=1
    LESS_TERMCAP_mb=
    XDG_SESSION_ID=1
    LESS_TERMCAP_md=
    LESS_TERMCAP_me=
    TERM=rxvt-unicode-256color
    SHELL=/bin/bash
    WINDOWID=6291462
    OLDPWD=/home/jmcclure
    LESS_TERMCAP_ue=
    USER=jmcclure
    _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
    SYSTEMD_PAGER=
    PAGER=vimpager
    MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
    LESS_TERMCAP_us=
    MAIL=/var/spool/mail/jmcclure
    PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/jmcclure/code/bin:/home/jmcclure/code/bin
    HG=/usr/bin/hg
    LC_COLLATE=C
    PWD=/home/jmcclure/code/alopex
    JAVA_HOME=/usr/lib/jvm/java-7-openjdk
    EDITOR=vim
    LANG=en_US.UTF-8
    HISTCONTROL=erasedups
    COLORFGBG=default;default
    SHLVL=2
    XDG_SEAT=seat0
    HOME=/home/jmcclure
    TERMINFO=/usr/share/terminfo
    XDG_CONFIG_HOME=/home/jmcclure/.config
    _JAVA_AWT_WM_NONREPARENTING=1
    LESS= -RXx4
    LOGNAME=jmcclure
    LESS_TERMCAP_so=
    LESSOPEN=|/usr/bin/src-hilite-lesspipe.sh %s
    td=
    WINDOWPATH=2
    XDG_RUNTIME_DIR=/run/user/1000
    DISPLAY=:0
    COLORTERM=rxvt
    LESS_TERMCAP_se=
    _=/usr/bin/env
    As a temporary work-around, I found that the following produces a working binary and somehow avoids the step that is leading to the crashes
    makepkg
    cd src/alopex
    make clean
    make
    cd ../..
    makepkg -efi
    I've been tinkering with readelf to see what differences I can pinpoint.  I really don't know what I'm doing, but it seemed the symbols (-s) and dynamic links (-d) were all the same between the two version except for the addressess/offsets/hex-number-column.  So I tried checking the readelf -h output and I get a couple differences there - in this output, the /usr/bin/alopex version is the working one:
    diff <(readelf -h /tmp/alopex/pkg/alopex-git/usr/bin/alopex) <(readelf -h /usr/bin/alopex)
    11c11
    < Entry point address: 0x4030d8
    > Entry point address: 0x403020
    13c13
    < Start of section headers: 46488 (bytes into file)
    > Start of section headers: 52968 (bytes into file)
    17c17
    < Number of program headers: 9
    > Number of program headers: 8
    I'm not sure what these differences mean, but they are consistent with every working and non-working build.
    Readelf -l output indicates that the extra program header in the nonworking version includes the following:
    08 .init_array .fini_array .jcr .dynamic .got
    Each of these symbols exist in the working binary as well, but they are duplicated in the non-working version (still no idea what this actually means, but in case someone else can decode this ...)
    Last edited by Trilby (2014-02-13 20:38:13)

    Crap - you are, of course, right.  It seems my Makefile is not doing what I thought it was.  I define makefile variables for flags with += operators, which I thought picked up the current value from the environment.  But it seems not to do this.
    I plan to fix the crashes, but I was stumped, and I wanted to know why it worked in some builds and not others - I'm hoping this information will help narrow down what my coding error is.
    EDIT: a local build with `CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" make` reproduces the error.
    Thanks for the help - now I know which flags expose my error, so I may be able to narrow it down.
    FOLLOW-UP: Thanks again - while I have no doubt that my troubleshooting steps are unconventional (as I have no 'conventional' training in programming) this did allow me to track down a bug in my code which I had been missing.
    Last edited by Trilby (2014-02-13 23:03:54)

  • [SOLVED]Error while installing a windows game(Witcher 2) in wine 1.4

    I'm using arch linux 64 bit with wine 1.4.
    and Was installing witcher 2 from dvd rom and the installer crashed at the very end.
    The error was with ISBEW64.exe
    this is the details of the error
    Unhandled exception: page fault on read access to 0x00000007 in 64-bit code (0x00007f0f1c10d96c).
    Register dump:
    rip:00007f0f1c10d96c rsp:000000000023f7c0 rbp:000000000002f7f0 eflags:00010246 ( R- -- I Z- -P- )
    rax:0000000000000000 rbx:0000000000000007 rcx:0000000000000007 rdx:00000000000100b0
    rsi:0000000000000000 rdi:00000000000400f0 r8:00000000000100e8 r9:0000000000000000 r10:0000000000000000
    r11:0000000000000029 r12:0000000000000000 r13:000000000002f730 r14:000000000003f950 r15:0000000000000000
    Stack dump:
    0x000000000023f7c0: 0000000000202020 0000000000000000
    0x000000000023f7d0: ffffffffffffffff ffffffffffffffff
    0x000000000023f7e0: 2020202020202020 2020202020202020
    0x000000000023f7f0: 0000000000202020 0000000000000000
    0x000000000023f800: ffffffffffffffff ffffffffffffffff
    0x000000000023f810: 0000000000202020 0000000000000000
    0x000000000023f820: 00ffffffffffffff ff00000000ff0000
    0x000000000023f830: 0000000000000000 0000000000000000
    0x000000000023f840: 0000000000000000 0000000000000000
    0x000000000023f850: 0000000000000000 0000000000000000
    0x000000000023f860: 0000000000000000 0000000000000000
    0x000000000023f870: 0000000000000000 0000000000000000
    Backtrace:
    =>0 0x00007f0f1c10d96c VariantClear+0xdc() in oleaut32 (0x000000000002f7f0)
    1 0x00007f0f1c0ee735 in oleaut32 (+0x3e734) (0x000000000002f7f0)
    2 0x00007f0f1c0e82a5 in oleaut32 (+0x382a4) (0x0000000000000000)
    3 0x000000014000139c in isbew64 (+0x139b) (0x0000000000000063)
    4 0x0000000140001fb6 in isbew64 (+0x1fb5) (0x0000000000000063)
    5 0x0000000140007cca in isbew64 (+0x7cc9) (0x0000000140007d18)
    6 0x000000007b870aa4 in kernel32 (+0x50aa3) (0x0000000140007d18)
    7 0x00007f0f1e85601b call_thread_func+0x6a() in ntdll (0x00007fff9c86c490)
    8 0x00007f0f1e84f786 RtlRaiseException+0x7d() in ntdll (0x00007fff9c86c490)
    9 0x00007f0f1e8216c6 in ntdll (+0x416c5) (0x00007fff9c86c490)
    10 0x00007f0f1f2b1173 wine_call_on_stack+0x12() in libwine.so.1 (0x00007fff9c86c490)
    11 0x00007f0f1f2b11c9 wine_switch_to_stack+0x8() in libwine.so.1 (0x00007fffffbef000)
    12 0x00007f0f1e827490 LdrInitializeThunk+0x45f() in ntdll (0x00007fffffbef000)
    13 0x000000007b877015 __wine_kernel_init+0x904() in kernel32 (0x00007fff9c86d320)
    14 0x00007f0f1e827df4 __wine_process_init+0x273() in ntdll (0x0000000000000400)
    15 0x00007f0f1f2af0f5 wine_init+0x294() in libwine.so.1 (0x0000000000000400)
    16 0x000000007bf00cc1 main+0x80() in <wine-loader> (0x0000000000000003)
    17 0x00007f0f1ece238d __libc_start_main+0xec() in libc.so.6 (0x0000000000000000)
    18 0x000000007bf00dbd _start+0x28() in <wine-loader> (0x0000000000000000)
    0x00007f0f1c10d96c VariantClear+0xdc in oleaut32: movzwl (%rbx),%eax
    Modules:
    Module Address Debug info Name (62 modules)
    ELF 7b800000- 7bc41000 Dwarf kernel32<elf>
    \-PE 7b820000- 7bc41000 \ kernel32
    ELF 7be00000- 7c103000 Dwarf <wine-loader>
    PE 140000000- 14001d000 Export isbew64
    ELF 7f0f18b92000- 7f0f18dcb000 Deferred uxtheme<elf>
    \-PE 7f0f18ba0000- 7f0f18dcb000 \ uxtheme
    ELF 7f0f18dcb000- 7f0f18fd2000 Deferred libxfixes.so.3
    ELF 7f0f18fd2000- 7f0f191dc000 Deferred libxcursor.so.1
    ELF 7f0f192d4000- 7f0f194fe000 Deferred libexpat.so.1
    ELF 7f0f194fe000- 7f0f19734000 Deferred libfontconfig.so.1
    ELF 7f0f19734000- 7f0f19944000 Deferred libxi.so.6
    ELF 7f0f19944000- 7f0f19b47000 Deferred libxcomposite.so.1
    ELF 7f0f19b47000- 7f0f19d50000 Deferred libxrandr.so.2
    ELF 7f0f19d50000- 7f0f19f5b000 Deferred libxrender.so.1
    ELF 7f0f19f5b000- 7f0f1a161000 Deferred libxxf86vm.so.1
    ELF 7f0f1a161000- 7f0f1a364000 Deferred libxinerama.so.1
    ELF 7f0f1a364000- 7f0f1a58b000 Deferred imm32<elf>
    \-PE 7f0f1a370000- 7f0f1a58b000 \ imm32
    ELF 7f0f1a58b000- 7f0f1a791000 Deferred libxdmcp.so.6
    ELF 7f0f1a791000- 7f0f1a995000 Deferred libxau.so.6
    ELF 7f0f1a995000- 7f0f1abb0000 Deferred libxcb.so.1
    ELF 7f0f1abb0000- 7f0f1adb5000 Deferred libuuid.so.1
    ELF 7f0f1adb5000- 7f0f1afd1000 Deferred libice.so.6
    ELF 7f0f1afd1000- 7f0f1b30d000 Deferred libx11.so.6
    ELF 7f0f1b30d000- 7f0f1b520000 Deferred libxext.so.6
    ELF 7f0f1b520000- 7f0f1b728000 Deferred libsm.so.6
    ELF 7f0f1b728000- 7f0f1b9ca000 Deferred winex11<elf>
    \-PE 7f0f1b740000- 7f0f1b9ca000 \ winex11
    ELF 7f0f1b9ca000- 7f0f1bbda000 Deferred libbz2.so.1.0
    ELF 7f0f1bbda000- 7f0f1bdf0000 Deferred libz.so.1
    ELF 7f0f1bdf0000- 7f0f1c08e000 Deferred libfreetype.so.6
    ELF 7f0f1c08e000- 7f0f1c3d4000 Dwarf oleaut32<elf>
    \-PE 7f0f1c0b0000- 7f0f1c3d4000 \ oleaut32
    ELF 7f0f1c3d4000- 7f0f1c751000 Deferred ole32<elf>
    \-PE 7f0f1c400000- 7f0f1c751000 \ ole32
    ELF 7f0f1c751000- 7f0f1ca50000 Deferred comctl32<elf>
    \-PE 7f0f1c760000- 7f0f1ca50000 \ comctl32
    ELF 7f0f1ca50000- 7f0f1cce0000 Deferred shlwapi<elf>
    \-PE 7f0f1ca60000- 7f0f1cce0000 \ shlwapi
    ELF 7f0f1cce0000- 7f0f1d13b000 Deferred shell32<elf>
    \-PE 7f0f1cd00000- 7f0f1d13b000 \ shell32
    ELF 7f0f1d13b000- 7f0f1d354000 Deferred version<elf>
    \-PE 7f0f1d140000- 7f0f1d354000 \ version
    ELF 7f0f1d354000- 7f0f1d645000 Deferred gdi32<elf>
    \-PE 7f0f1d370000- 7f0f1d645000 \ gdi32
    ELF 7f0f1d645000- 7f0f1d9df000 Deferred user32<elf>
    \-PE 7f0f1d660000- 7f0f1d9df000 \ user32
    ELF 7f0f1d9df000- 7f0f1dc5e000 Deferred advapi32<elf>
    \-PE 7f0f1d9f0000- 7f0f1dc5e000 \ advapi32
    ELF 7f0f1dc5e000- 7f0f1def0000 Deferred rpcrt4<elf>
    \-PE 7f0f1dc70000- 7f0f1def0000 \ rpcrt4
    ELF 7f0f1def0000- 7f0f1e0fd000 Deferred libnss_files.so.2
    ELF 7f0f1e2c2000- 7f0f1e4d8000 Deferred libgcc_s.so.1
    ELF 7f0f1e4d8000- 7f0f1e7cc000 Deferred libm.so.6
    ELF 7f0f1e7cc000- 7f0f1eaba000 Dwarf ntdll<elf>
    \-PE 7f0f1e7e0000- 7f0f1eaba000 \ ntdll
    ELF 7f0f1eabd000- 7f0f1ecc1000 Deferred libdl.so.2
    ELF 7f0f1ecc1000- 7f0f1f062000 Dwarf libc.so.6
    ELF 7f0f1f063000- 7f0f1f27f000 Deferred libpthread.so.0
    ELF 7f0f1f2a7000- 7f0f1f5d9000 Dwarf libwine.so.1
    ELF 7f0f1f5da000- 7f0f1f7fd000 Deferred ld-linux-x86-64.so.2
    ELF 7fff9c9ff000- 7fff9ca00000 Deferred [vdso].so
    Threads:
    process tid prio (all id:s are in hex)
    0000000e services.exe
    0000001f 0
    0000001e 0
    00000015 0
    00000010 0
    0000000f 0
    00000012 winedevice.exe
    0000001c 0
    00000019 0
    00000014 0
    00000013 0
    0000001a plugplay.exe
    00000020 0
    0000001d 0
    0000001b 0
    0000002c rpcss.exe
    00000009 0
    00000026 0
    00000032 0
    00000031 0
    00000030 0
    0000002e 0
    0000002d 0
    00000041 explorer.exe
    00000017 0
    00000043 (D) C:\users\ebs\Temp\{43B73120-0931-47A3-9D74-0EB39F7926A3}\ISBEW64.exe
    00000049 0
    0000003f 0
    00000045 0
    0000003b 0 <==
    System information:
    Wine build: wine-1.4
    Platform: x86_64
    Host system: Linux
    Host version: 3.2.9-1-ARCH
    How can I fix this error and play witcher 2?
    Any help is highly appreciated
    Last edited by ebshankar (2012-03-16 13:11:04)

    Kaustic wrote:
    Edit: Btw, you should have left this thread as [SOLVED] and created a new thread for the new problem. Please read: https://wiki.archlinux.org/index.php/Fo … ow_to_Post
    Edit2: This problem might not have anything to do with mouse sensitivity and may just be a bug in Wine or the Game, however it's worth a try to eliminate the possibility. (Wine had a similar issue with CS:S and erratic mouse movement (just jumpy) and was patched (wine 1.3.35 to 1.3.36 iirc))
    Righto,
    So your mouse is either "PS/2 Generic Mouse" or "OM". Whichever it is we'll only be paying attention to the id=#.
    Before I start, I'll assume that you've turned off mouse acceleration, which is ideal for games. You also might have to tweak these settings to find a happy medium.
    I'm also assuming that device 16 is your mouse (PS/2 Generic Mouse).
    My idea is to temporarily lower the mouse sensitivity when you launch the game, and then return it to default when you close the game.
    Firstly list current properties for your mouse, make note of the numbers in the parentheses. Most of the options are self explanatory.
    $ xinput --list-props 16
    [snip]
    Device Accel Profile (252): 0 #Change this to "-1" to completely disable acceleration
    Device Accel Constant Deceleration (253): 1.000000
    Device Accel Adaptive Deceleration (254): 1.000000
    Device Accel Velocity Scaling (255): 10.000000
    [snip]
    Disable mouse acceleration (I have this set by default)
    $ xinput --set-prop 16 "Device Accel Profile" -1
    # Or, if you paid attention to the number in parentheses, you can use:
    $ xinput --set-prop 16 252 -1 # less typing
    To lower your mouse sensitivity, simply do
    $ xinput --set-prop 16 "Device Accel Constant Deceleration" 4 #The higher the slower
    # Or
    $ xinput --set-prop 16 253 4
    Then you simply use a bit of shell script to launch your game (e.g.
    # cd to dir of game's .exe | lower mouse sens | launch game | restore mouse sens to default
    cd ~/.wine_rack/witcher_2/drive_c/The\ Witcher\ 2/bin; xinput --set-prop 16 253 4; WINEPREFIX=~/.wine_rack/witcher_2 WINEDEBUG=-all wine witcher2.exe; xinput --set-prop 16 253 1
    This solution is a little hacky but it should work
    You can probably find out more on your own from here on out, good luck with it.
    (My personal solution to mouse issues was to just disable mouse acceleration, it's fine for me.)
    I actually thought about creating a new thread but momentarily felt I had to write here itself because everything regarding troubleshooting witcher 2 will be here.
    your solution did decrease the mouse sensitivity but, the mouse continues to be jumpy in the game while moving it from left to right or top to bottom.
    Witcher 2 has a mouse emulator built in and some ppl(even windows users) have experienced this problem but for most of them, editing this file called 'user.ini' and setting smoothness = 0 worked. But not for me. Strangely many ppl playing witcher 2 in wine didn't experience this problem at all.
    I think this can be a bug in witcher 2 which can make only some models of mice jumpy.
    I also have an 'enter gamepad' and the game doesn't support it but one joystick works very smoothly (unlike the mouse) so presently I'm searching online for ways to get the gamepad working with the game
    Last edited by ebshankar (2012-03-16 08:53:54)

  • How to create file in current directory?

    In my JSP-page I tried to create some file in my current project directory but this file is created in C:\jakarta-tomcat-4.0.1\bin directory. I can do it using absolute path but I'd like to use relative path. Please help me.
    Thank you in advance.
    Qand.

    Try this:
    String filename = servletContext.getRealPath(request.getContextPath());Then take off the last part (after the last slash) and put on your temporary file name.
    It's a thought, anyway...

  • Installed path for registry settings for Installer

    Hi!
    I want my installer to add some registry keys to the Windows registry.  The value of these registry keys is dependent on what the user picks as their install path during the installation of my software.  Does anyone know if there is some variable that represents the install path like %install path% or something?
    I'm using LabVIEW 2009 SP1.
    Let me know if you need any more information!
    I suppose if there isn't a solution, I can add code to my program to create these registry keys after the program has been installed.
    Thanks!
    -Nic
    Solved!
    Go to Solution.

    Hi shew82!
    I didn't need to make a "setup wizard" application that ran after my installer completed.  Your post contained the information that I needed and it worked like a champ, so I'm marking your post as the solution.  Thank you very much.
    Turns out [INSTALLDIR] can be placed in the registry settings of a LabVIEW installer for your LabVIEW application.
    See below
    Here is the result in the Windows registry:
    Woops, looks like I have an extra slash in there.  Oh well, should work fine once I iron that out.
    Cheers!
    -Nic

  • How to get javahelp release install path?

    How to get javahelp release install path?
    currently usage their tool <MagicHelp>.
    magichelp is multi-user help authoring tool,
    currently Support Java help 1.0/2.0.
    Home:http://www.gethelpsoft.com

    @BalusC
    ust for a reference cause i'm new in JSP This has nothing to do with JSP, but with basic knowledge of an essential API. I have given you the link to the File API. Are you saying that you refused to read the API documentation, which clearly explains you how to use the File and shows which methods are all available to you undereach the straightforward getName() method, and expecting that the others may chew the answers for you? Loser.

  • Finding the multiple JRE installed path in Linux OS

    for my requirement on finding the JRE installaiton folder on windows and Linux machines , I can able to get it in windows but I am facing problem in getting the jre installed path from Linux machine. I am using Debian etch OS. Can anyone help me to find the installed path of JRE in Linux machine using a Java program. I need to find the multuiple JRE installed paths, i.e. my java program should find all the JRE installed paths and versions of the same.
    Thanks in advance.
    Edited by: VijayForumScreen on Jul 29, 2008 5:46 AM

    As per the terminal prompt its ok...but i need the java concept to retrieve the versions and installed paths of the all JRE.
    e.g;For current JRE we can get by,
    System.out.println(System.getProperty("java.version"));
    System.out.println(System.getProperty("java.home"));
    Output:
    1.5.0_10
    /usr/lib/jvm/java-1.5.0-sun-1.5.0.10/jre
    If i installed 1.3 and 1.4 also.,
    How can i get installed paths and versions for all three 1.3,1.4 and 1.5 JRE's

  • File path of a currently executing teststand test step

    How do i extract the file path for the currently executing LabVIEW test step within my operator interface.
    Many Thanks,
    Dave.

    Hi,
    I assume you need the SequenceFile Path where the LabView test step is located in TestStand.
    To reach to the currently executing step SequenceFile path you have to:
    1. get the SequenceContext for the execution
    2. get the currently executing step from the SequenceContext (SequenceContext.Step)
    3. get the sequence in which the step resides from the Step (Step.Sequence)
    4. get the containing sequence file for the Sequence (Sequence.SequenceFile)
    5. get the Path from the SequenceFile (SequenceFile.Path property)
    In case you want to determine the VI file path for the LabView test step Module one approach is:
    1. get the SequenceContext for the execution
    2. get the currently executing step from the SequenceContext (SequenceContext.Step)
    3. get the PropertyObject for the step (Step.AsPropertyObject)
    4. get the VI relative path from the step subproperty using "TS.SData.ViCall.VIPath" lookup string (PropObject.GetValString)
    5. now use the Engine.FindFile on the retrieved path at the step 4. above, to get the path to the executing VI
    Hope this helps,
    Silvius
    Silvius Iancu

  • Create Navigation path in IDT4.0 and how to use these navigation paths in Webi report

    Hi All, I want to know how to create navigation path in universe? I am using IDT BO4.0 SP4 and relational connection and want to create navigation path. I would like to know how to use this navigation path in Webi report? If I create a webi report where can I see my navigation paths and how to use it. If you can give any document or link which expalins this whole process, that would be great. Thanks,

    HI REMI ,
    1. ANSWER TO YOUR 1st QUESTION i.e. HOW TO CREATE A NAVIGATIONAL PATH :
        IN IDT 4.0  , YOU WILL FIND A NAVIGATIONAL PATH IN BOTTOM WHEN YOU WILL OPEN YOUR      BUSINESS LAYER , THERE YOU CAN CLICK CUSTOM NAVIGATION PATH -> THEN CLICK AT      ADD A NAVIGATIOAL PATH BUTTON->THEN GIVE NAME NAVIGATIONAL PATH NAME->THEN ADD THE OBJECTS UNDER YOUR NAVIGATIONAL PATH IN A HIERARCHICAL SEQUENCE .     FOR EX :     COUNTRY->STATE->CITY . AND YOUR CUSTOM NAVIGATIONAL PATH IS     CREATED.
    2. ANSWER TO YOUR SECOND QUESTION WHAT IS THE USE OF NAVIGATIONAL PATH IN WEBI REPORT :
    NAVIGATIONAL PATH HELPS YOU TO PERFORM DRILL DOWN ON YOUR DIMENSION OBJECTS , FOR EX : LET 'S SAY YOU CREATED A NAVIGATIONAL PATH- REGION SALES  : Containing COUNTRY->STATE->SALES. THIS WILL HELP YOU TO DRILL DOWN IN YOUR WEBI REPORT AS SHOWN BELOW :
    COUNTRY                      SALES
    INDIA                             $1000000
    (after clicking INDIA you will get below structure in your Report)
    STATE                           SALES
    DELHI                             $600000
    ANDRA-PRADESH          $200000
    MAHARASHTRA             $200000
    (after clicking MAHARASHTRA you will get below structure in your Report)
    CITY                              SALES
    MUMBAI                         $150000
    NAGPUR                        $  50000  
    ACTUALLY , DRILL - DOWN AS THE NAME SOUND HELP TO DRILL THE DIMENSION TILL ROOT LEVEL & SEE THE MEASURES VALUES ASSOCIATED WITH THOSE VALUES LEVELS.
    1ST LEVEL WILL ALWAYS CONTAIN THE SUM OF THE MEASURE OBJECTS
    CHEERS ,
    KAPIL

  • Tomcat as service : install path with spaces

    I'm trying to install tomcat as service
    but when I choose an install path with spaces
    I mean smthing like "c:\program files\tomcat"
    it doesn't work
    I tried to modify the wrapper.properties file
    with "" but it doesn't work
    I even set the parameter wrapper.cmd_line with
    a command line that works when launched for CMD
    but the service doesn't start
    any idea????

    I found it ! (hope it helps)
    wrapper.properties that works with spaces in the name
    of the java directory and the tomcat directory
    # $Header: /home/cvs/jakarta-tomcat/src/etc/Attic/wrapper.properties,v 1.2.2.1 2000/10/16 01:59:22 larryi Exp $
    # $Revision: 1.2.2.1 $
    # $Date: 2000/10/16 01:59:22 $
    # jk_service.properties - a bootstrup file for the Tomcat NT service.
    # This file provides jk_nt_service with the needed information to
    # start tomcat at a different process.
    # As a general note, the characters $( and ) are used internally to define
    # macros. Do not use them!!!
    # Whenever you see a set of lines such as:
    # x=value
    # y=$(x)\something
    # the final value for y will be value\something
    # Normaly all you will need to modify is the first two properties, i.e.
    # wrapper.tomcat_home and wrapper.java_home. Most of the configuration
    # is derived from these two.
    # wrapper.tomcat_home should point to the location where you
    # installed tomcat. This is where you have your conf, webapps and lib
    # directories.
    wrapper.tomcat_home=C:\Program Files\tomcat-3.2.1
    # wrapper.java_home should point to your Java installation. Normally
    # you should have a bin and lib directories beneath it.
    wrapper.java_home=C:\Program Files\JavaSoft\JRE\1.3
    #------ ADVANCED MODE ------------------------------------------------
    # Make sure that you read the how-to before making too many changes.
    # Defining where the service is going to put the standard
    # output of Tomcat. This is where System.out.println and
    # System.err.println goes to.
    wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout
    wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr
    # Additions to the path. put here directories where you store DLLs for
    # native methods etc.
    wrapper.ld_path=d:\
    wrapper.ld_path=c:\
    # Defining the classpath. All the rows that belongs to the class_path
    # property are concatenated to create the classpath for Tomcat.
    # If you have additional locations that you would like to add to the
    # claspath you should add a new wrapper.class_path=<location> line.
    wrapper.class_path="$(wrapper.tomcat_home)\classes"
    wrapper.class_path="$(wrapper.tomcat_home)\lib\jaxp.jar"
    wrapper.class_path="$(wrapper.tomcat_home)\lib\parser.jar"
    wrapper.class_path="$(wrapper.tomcat_home)\lib\webserver.jar"
    wrapper.class_path="$(wrapper.tomcat_home)\lib\servlet.jar"
    wrapper.class_path="$(wrapper.tomcat_home)\lib\jasper.jar"
    # This is where Javac is located in JDK1.2.x
    wrapper.class_path="$(wrapper.java_home)\lib\tools.jar"
    # and a tribute to JDK1.1.x
    wrapper.class_path="$(wrapper.java_home)\lib\classes.zip"
    # This is the Java interpreter used for running Tomcat
    wrapper.javabin=$(wrapper.java_home)\bin\java.exe
    # This is Tomcat's startup class (the class that contains Tomcat's
    # starting point.
    wrapper.startup_class=org.apache.tomcat.startup.Tomcat
    # This is the location where tomcat's server.xml configuration file
    # is located.
    wrapper.server_xml=$(wrapper.tomcat_home)\conf\server.xml
    # The NT service uses AJP12/AJP13 to shutdown Tomcat. The
    # wrapper.shutdown_port tells the service the identity of the port that
    # is used by AJP12/AJP13.
    wrapper.shutdown_port=8007
    # Can either be ajp12 or ajp13 depending on your configuration.
    # Default value is ajp12
    wrapper.shutdown_protocol=ajp12
    # This is the command line that is used to start Tomcat. You can add extra
    # parameters to it but you can not remove anything.
    wrapper.cmd_line="$(wrapper.javabin)" -classpath $(wrapper.class_path) $(wrapper.startup_class) -config "$(wrapper.server_xml)" -home "$(wrapper.tomcat_home)"

Maybe you are looking for

  • Camcorder Help Needed

    Hi, thanks for reading this. I have a Macbook with iMovie 09 and am about to purchase a camcorder. I have read the list of camcorders supported by apple but because I am clueless technologically I would love input on the best camcorder to get for wha

  • Transfer XML to Non-SAP System

    Hi, We have a requirement to transfer data to a Non-SAP system using HTTPS. As of now we are looking for a possibility of transfer it as XML over HTTPS protocol. Can anyone please share their experience. Mainly the pre-requisites & architecture for t

  • Oracle Workflow Notification to multiple users but only one response required

    Hi, I'd like to ask help on how I would go about this. I have a requirement using Oracle Workflow. Initially the workflow sends a notification with the option to Accept or Reject to a group of people, then if one accepts I should end the process. But

  • MIgration to Extended withholding tax

    HI Gurus, We are doing migration from classic withholoding tax to extended withholding tax. when doing the test run for  document conversion there were no errors, warnings or stoppages. when we are doing the update run we got a short dump and the dum

  • Can we remain in the same state even after clicking submit button?

    Hello All, Can we remain in the same stage even after clicking submit button? Also it should remain in the same stage only when certain conditions are met. For eg: Condition : In Stage1, CustomFieldA default value is 'No'. To pass from Stage1 to Stag