Re: OPENGL library

Hello!
I'm a Qosmio x300-156 / PQX31E with windows7-x64.
Where can I download "Open gl Source? like: (1) opengl32.lib; (2) glu32.lib; (3) gl.h; (4) glu.h
On the site www.opengl.org they say that
"On Windows, companies like nVidia and AMD/ATI use the spec to write their own implementation, so OpenGL is included in the drivers that they supply. For laptop owners, however, you'll need to visit the manufacturer of your laptop and download the drivers from them".
I dont understand! i don't find these lib in folder system32.
Someone can help me, thank you

lfemem
I'm not addressing your laptop here but explaining the 2nd paragrah quote
Where a desktop pc has a grahics card using an ATI/nvidia chip set then that card has been designed to meet a reference standard created by the chip set manufacturers. This means that the generic drivers produced by ATI/nvidia will work on the graphics cards.
Laptops are a different case in that the manufacturer designs the graphics card and for the everyday user generic drivers will not install. Iin your case only Toshiba drivers will install and if Toshiba choose to ignore opengl then your stuck

Similar Messages

  • OpenGL embeded in Java

    I new in OpenGL and Java.
    So, I want to ask a following question:
    1. Is openGL library file which used in Java same with in C++?
    If not, where I can get that OpenGL file?
    2. Is use OpenGL in Java same with in C++?
    But in C++ some of file OpenGL is embeded in C++ directory like include and lib,
    How about in Java? Where I can get a procedure for that?
    Thank you very much

    This question would probably get better replies at the gaming forum, but I've heard some people use JOGL to interface OpenGL from Java https://jogl.dev.java.net/

  • OpenGL on xcode

    Hi! I'm new on this forum and my post is about a cocoa application.
    It's a graphic application that uses openGL library and the original source code was written in c++ on devc++(windows). I changed some things and xcode build the entire project without problems. But when I run it I have this problem:
    ZeroLink: unknown symbol '_glutInit'
    what does it mean?
    please help me!

    The error is saying the linker can't find the symbol glutInit, which is part of the GLUT framework. You need to add the GLUT framework to your project.
    The reason your code built correctly is that you're using ZeroLink, which skips the linking phase. You're usually better off turning off ZeroLink so you can catch the linker errors when you build your project. Choose Build > Allow ZeroLink to turn it off.

  • Unreal Tournament 99 - Wont start- OpenGL/32bit issue?

    I have an AMD card with the latest beta driver.
    When I try to start unreal tournament (using ut-bin -log for more detailed output) I get:
    InitGame: ?Name=Player?Class=Botpack.TMale2?team=255?skin=SoldierSkins.blkt?Face=SoldierSkins.Othello
    Base Mutator is CityIntro.Mutator1
    Initialized moving brush tracker for Level CityIntro.MyLevel
    Created and initialized a new SDL viewport.
    Bound to UWeb.so
    Team 255
    Login: Player
    Case-insensitive search: SoldierSkins -> ..\Textures\Soldierskins.utx
    Possessed PlayerPawn: TMale2 CityIntro.TMale0
    Input system initialized for SDLViewport0
    Opening SDL viewport.
    Bound to OpenGLDrv.so
    Loaded render device class.
    Initializing OpenGLDrv...
    binding libGL.so.1
    Resizing SDL viewport. X: 640 Y: 480
    OpenGL
    Signal: SIGSEGV [segmentation fault]
    Aborting.
    Exiting.
    Name subsystem shut down
    Allocation checking disabled
    The issue is at the OpenGL level. The screen brightness changes for a split second as if it's about to launch the game.
    glxgears runs fine and KDE is running using OpenGL.
    I have the same copy of Unreal Tournament running on the same machine inside a Linux Mint installation with the same 14.1 catalyst driver and it works fine.
    My assumption is that I'm missing a 32 bit library but I have no idea what it may be. Not sure if this helps anyone but if I run
    ldd ut-bin
    I get
    linux-gate.so.1 (0xf76f2000)
    libdl.so.2 => /usr/lib32/libdl.so.2 (0xf76bf000)
    libnsl.so.1 => /usr/lib32/libnsl.so.1 (0xf76a5000)
    libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf7689000)
    Engine.so => ./Engine.so (0xf7430000)
    Core.so => ./Core.so (0xf72c0000)
    libSDL-1.1.so.0 => ./libSDL-1.1.so.0 (0xf7221000)
    libm.so.6 => /usr/lib32/libm.so.6 (0xf71db000)
    libc.so.6 => /usr/lib32/libc.so.6 (0xf702e000)
    /lib/ld-linux.so.2 (0xf76f3000)
    libX11.so.6 => /usr/lib32/libX11.so.6 (0xf6ef7000)
    libXext.so.6 => /usr/lib32/libXext.so.6 (0xf6ee3000)
    libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf6ec0000)
    libXau.so.6 => /usr/lib32/libXau.so.6 (0xf6ebc000)
    libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf6eb5000)
    Any ideas? Thanks for any help!

    I've done that and it's made no difference:
    Opening SDL viewport.
    Bound to OpenGLDrv.so
    Loaded render device class.
    Initializing OpenGLDrv...
    binding libGL.so.1
    Resizing SDL viewport. X: 640 Y: 480
    OpenGL
    Signal: SIGSEGV [segmentation fault]
    Aborting.
    Exiting.
    Name subsystem shut down
    Allocation checking disabled
    Segmentation fault (core dumped)
    It looks like it's a 32 bit opengl problem as "glxinfo32 | grep OpenGL" provides no outptut, running just "glxinfo32" reports: 
    name of display: :0
    Segmentation fault (core dumped)
    What do I need to do to completely reinstall the 32 bit opengl library? I thought it came with the catalyst driver.
    edit after reinstalling lib32-mesa-libgl I now get the output:
    libGL error: failed to load driver: swrast
    libGL error: Try again with LIBGL_DEBUG=verbose for more details.
    OpenGL vendor string: ATI Technologies Inc.
    OpenGL renderer string: ATI Radeon HD 5800 Series
    OpenGL version string: 1.4 (2.1 (4.3.12780 Compatibility Profile Context 13.35.1005))
    OpenGL extensions:
    From "glxinfo32 | grep OpenGL"
    if I do  as it suggests and set debug to verbose it says:
    libGL: screen 0 does not appear to be DRI2 capable
    libGL: OpenDriver: trying /usr/lib32/dri/tls/swrast_dri.so
    libGL: OpenDriver: trying /usr/lib32/dri/swrast_dri.so
    libGL error: dlopen /usr/lib32/dri/swrast_dri.so failed (/usr/lib32/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
    libGL: OpenDriver: trying /usr/lib/dri/tls/swrast_dri.so
    libGL: OpenDriver: trying /usr/lib/dri/swrast_dri.so
    libGL error: dlopen /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
    libGL error: unable to load driver: swrast_dri.so
    libGL error: failed to load driver: swrast
    OpenGL vendor string: ATI Technologies Inc.
    OpenGL renderer string: ATI Radeon HD 5800 Series
    OpenGL version string: 1.4 (2.1 (4.3.12780 Compatibility Profile Context 13.35.1005))
    OpenGL extensions:
    Any ideas?
    Last edited by Tom B (2014-02-14 18:41:11)

  • Kwin: OpenGL compositing disabled

    Recently I tried to start KDM via inittab as mentioned in the wiki. Before that I used daemon and everything worked fine using Nvidia driver. After the change (for some reason) compositing is gone with following message:
    [tuhyk@dell documents]$ glxinfo | grep -i direct
    direct rendering: Yes
        GL_EXT_direct_state_access, GL_EXT_draw_range_elements, GL_EXT_fog_coord,
    Any ideas? Return back to daemon did not help.
    EDIT: Xrender setting works, OpenGL does not at all. I discovered that issue is not user related. Also, new Xorg.conf generated via nvidia-xconfig did not help. Reinstalling nvidia and nvidia-utils packages did not help either.
    Last edited by tuhyk (2010-12-28 09:13:29)

    After reading a couple of previsou threads I tried compiz:
    [tuhyk@dell documents]$ fusion-icon
    * Detected Session: kde
    * Searching for installed applications...
    * NVIDIA on Xorg detected, exporting: __GL_YIELD=NOTHING
    * Using the GTK Interface
    * Starting Compiz
    ... executing: compiz --replace --sm-disable --ignore-desktop-hints ccp
    compiz (core) - Error: Plugin 'text' not loaded.
    compiz (ring) - Warn: No compatible text plugin found.
    * Setting window manager to KWin
    kwin(6591) KWin::CompositingPrefs::detectDriverAndVersion: GL vendor is "NVIDIA Corporation"
    kwin(6591) KWin::CompositingPrefs::detectDriverAndVersion: GL renderer is "GeForce Go 7300/PCI/SSE2"
    kwin(6591) KWin::CompositingPrefs::detectDriverAndVersion: GL version is "2.1.2 NVIDIA 260.19.29"
    kwin(6591) KWin::CompositingPrefs::detectDriverAndVersion: Detected driver "nvidia" , version "260.19.29"
    kwin(6591) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect "kwin4_effect_wobblywindows" is not supported
    kwin(6591) KWin::CompositingPrefs::detectDriverAndVersion: GL vendor is "NVIDIA Corporation"
    kwin(6591) KWin::CompositingPrefs::detectDriverAndVersion: GL renderer is "GeForce Go 7300/PCI/SSE2"
    kwin(6591) KWin::CompositingPrefs::detectDriverAndVersion: GL version is "2.1.2 NVIDIA 260.19.29"
    kwin(6591) KWin::CompositingPrefs::detectDriverAndVersion: Detected driver "nvidia" , version "260.19.29"
    kwin(6591) KWin::Workspace::setupCompositing: KWin has detected that your OpenGL library is unsafe to use, falling back to XRender.
    kwin(6591): Failed to initialize compositing, compositing disabled
    kwin(6591): Consult http://techbase.kde.org/Projects/KWin/4.0-release-notes#Setting_up
    kwin(6591) KWin::CompositingPrefs::detectDriverAndVersion: GL vendor is "NVIDIA Corporation"
    kwin(6591) KWin::CompositingPrefs::detectDriverAndVersion: GL renderer is "GeForce Go 7300/PCI/SSE2"
    kwin(6591) KWin::CompositingPrefs::detectDriverAndVersion: GL version is "2.1.2 NVIDIA 260.19.29"
    kwin(6591) KWin::CompositingPrefs::detectDriverAndVersion: Detected driver "nvidia" , version "260.19.29"
    kwin(6591) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect "kwin4_effect_wobblywindows" is not supported
    kwin(6591) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect "kwin4_effect_wobblywindows" is not supported
    Compiz seems to work fine...
    And for the record my xorg.conf. I did not alter its configuration before the error occured.
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig: version 1.0 (buildmeister@builder75) Tue Dec 8 21:04:28 PST 2009
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    EndSection
    Section "Files"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/TTF"
    FontPath "/usr/share/fonts/Type1"
    EndSection
    Section "Module"
    Load "extmod"
    Load "glx"
    Load "dri2"
    Load "dbe"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection
    Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5 6 7"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Monitor Vendor"
    ModelName "Monitor Model"
    EndSection
    Section "Device"
    Identifier "Card0"
    Driver "nvidia"
    VendorName "nVidia Corporation"
    BoardName "G72M [Quadro NVS 110M/GeForce Go 7300]"
    Option "NoLogo" "true"
    Option "UseEdidDpi" "false"
    Option "DPI" "96 x 96"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    SubSection "Display"
    Viewport 0 0
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 4
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 8
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 15
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 16
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection

  • Mini's chip set supports OpenGL?

    Hi All,
    It's time to upgrade my Mac (it's only 7 yo, and just keeps ticking). I need to buy two laptops for other family members, so I can't spend much cash on myself. The software package that I'm using is drifting toward opengl for 3D visualization. It's not gaming software, so fps isn't a major factor. Just as long as the opengl library is supported by the Intel graphics chip set.
    Also, the kids use iMovie quite a lot. Does that preform well on the mini?
    Thanks for your input.
    Jeff

    The answer is yes. See: http://developer.apple.com/graphicsimaging/opengl/

  • System heat up and frame rate reduces to 5 fps approx. while playing FIFA 12

    The game works very well in first 2 minutes of startup but after that the fan speed increses abnormally and hard disk also heats up. this is followed by reduced frame rate about 5 fps which makes it very difficult to play the game. While this problem is not seen with earlier versions of FIFA 09 and FIFA 10.
    I am using HP-Pavilion dv4 1204tu laptop. 3GB ram. Windows Vista SP1 32-bit. and Intel(R) Graphics Media Accelator Series 4.

    Interesting, and yet the video card worked beautifully through Mac OS X 10.5.x and 10.6.x until 10.6.5 came along. And the game binary hasn't changed, so the problem must be with the OS.
    Further, if I understand the hierarchy of responsibilities in the software correctly, it's not surprising that the game worked with a video card it may not have listed as supported: Apple supplies an OpenGL library, and compatible drivers for the video cards it sells (that would include my video card, of course), and the games use the OpenGL library to do their graphics. So there's an Apple-supplied abstraction layer (or two) between the game and the video card. In principle, the game doesn't need to know what type of video card is present; just which of the many of the OpenGL features the OpenGL library supports, and whatever the OpenGL library allows it to discover about a video cards' functionality. That way, game developers don't have to create separate versions of their games, or huge amounts of their own video card abstraction code, in order to write a game that's compatible with all of the many video cards on the market at any given time, and all of the new video cards that will come along after the game is published. (I believe my ATI Radeon HD 4870 falls into the latter category.)

  • Intel i965 on 2.6.28 kernel --- results with xf86-video-intel 2.5.99.

    I compiled and booted into 2.6.28 and switched xorg.conf back to
    EXA.
    Ok, it worked a little bit better but it did not WOW me.  So, I compiled by hand the
    latest intel driver and DAMN! very smooth in Compiz... "lightening fast"  I don't have
    any 3d games to compare but, some "artifacts" that were happening on startup of the
    AWN dock are GONE.   I can play a movie trailer and drag it around with wobbly windows
    and it looks awesome.
    Here's what I did.... 
    use./autogen.sh --prefix=/usr  or ./configure --prefix=/usr where appropriate.
    [1] pthread-stubs
    git clone git://anongit.freedesktop.org/xcb/pthread-stubs
    ./autogen.sh --prefix=/usr
    [2] xf86driproto
    git clone git://anongit.freedesktop.org/xorg/proto/xf86driproto
    ./autogen.sh --prefix=/usr
    make install (its just headers so there's nothing to compile)
    [3] Dec 22 version of libdrm (the latest)
    http://dri.freedesktop.org/libdrm/libdrm-2.4.3.tar.bz2
    [4] Intel driver
    http://xorg.freedesktop.org/archive/ind … 9.1.tar.gz
    ./configure --prefix=/usr
    Transitions everything now in Compiz is smooth, smooth, smooth....!!!!!!
    Enjoy!!!!
    [ANNOUNCE] xf86-video-intel 2.5.99.1     Mon Dec 15 17:43:30 PST 2008
    http://lists.freedesktop.org/archives/x … 00714.html

    For those who'd like some PKGBUILDs in order of compilation and install, these are what I used and it works quite well.
    libpthread-stubs
    pkgname=libpthread-stubs
    pkgver=0.1
    pkgrel=1
    pkgdesc="stubs missing from libc for standard pthread functions"
    arch=('i686' 'x86_64')
    url="http://xcb.freedesktop.org/"
    license=('MIT')
    source=(http://xcb.freedesktop.org/dist/$pkgname-$pkgver.tar.bz2)
    md5sums=('774eabaf33440d534efe108ef9130a7d')
    build() {
    cd "$srcdir/$pkgname-$pkgver"
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR="$pkgdir/" install
    libdrm
    pkgname=libdrm
    pkgver=2.4.3
    pkgrel=1
    pkgdesc="Userspace interface to kernel DRM services"
    arch=(i686 x86_64)
    depends=('glibc' 'libpthread-stubs')
    options=('!libtool' 'force')
    url="http://dri.freedesktop.org/"
    source=(http://dri.freedesktop.org/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
    md5sums=()
    build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    ./configure --prefix=/usr || return 1
    make || return 1
    make DESTDIR="${pkgdir}" install || return 1
    libxcb
    pkgname=libxcb
    pkgver=1.1.93
    pkgrel=1
    pkgdesc="X11 client-side library"
    arch=(i686 x86_64)
    url="http://xcb.freedesktop.org/"
    depends=('xcb-proto>=1.2' 'libxdmcp' 'libxau')
    makedepends=('pkgconfig' 'libxslt' 'python')
    options=('!libtool')
    license=('custom')
    source=(${url}/dist/${pkgname}-${pkgver}.tar.bz2)
    md5sums=()
    build() {
    cd ${srcdir}/${pkgname}-${pkgver}
    libtoolize --force --copy || return 1
    aclocal || return 1
    autoconf || return 1
    automake --add-missing || return 1
    ./configure --prefix=/usr --enable-xinput || return 1
    make || return 1
    make DESTDIR=${pkgdir} install || return 1
    install -m755 -d ${pkgdir}/usr/share/licenses/${pkgname}
    install -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
    libx11
    pkgname=libx11
    pkgver=1.1.99.2
    pkgrel=1
    pkgdesc="X11 client-side library"
    arch=(i686 x86_64)
    url="http://xorg.freedesktop.org/"
    depends=('libxcb>=1.1.90.1' 'kbproto>=1.0.3')
    makedepends=('xproto>=7.0.13' 'xextproto>=7.0.3' 'xf86bigfontproto>=1.1.2' 'xtrans>=1.2.1' 'kbproto>=1.0.3' 'inputproto>=1.4.4' 'xorg-util-macros')
    options=('!libtool')
    license=('custom:XFREE86')
    source=(${url}/releases/individual/lib/libX11-${pkgver}.tar.bz2
    xorg.sh)
    md5sums=()
    build() {
    cd ${srcdir}/libX11-${pkgver}
    libtoolize --force --copy || return 1
    aclocal || return 1
    autoconf || return 1
    automake --add-missing || return 1
    ./configure --prefix=/usr \
    --with-xcb || return 1
    make || return 1
    make DESTDIR=${pkgdir} install || return 1
    install -m755 -d ${pkgdir}/etc/profile.d
    install -m755 ${srcdir}/xorg.sh \
    ${pkgdir}/etc/profile.d/ || return 1
    install -d -m755 ${pkgdir}/usr/share/licenses/${pkgname}
    install -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
    xorg.sh
    export XDG_DATA_HOME=$HOME/.local/share
    export XDG_CONFIG_HOME=$HOME/.config
    export XDG_CACHE_HOME=$HOME/.cache
    if [ -z $XDG_DATA_DIRS ]; then
    export XDG_DATA_DIRS=/usr/share:/usr/local/share
    else
    export XDG_DATA_DIRS=/usr/share:/usr/local/share:$XDG_DATA_DIRS
    fi
    if [ -z $XDG_CONFIG_DIRS ]; then
    export XDG_CONFIG_DIRS=/etc/xdg
    else
    export XDG_CONFIG_DIRS=/etc/xdg:$XDG_CONFIG_DIRS
    fi
    dri2proto-git
    pkgname=dri2proto-git
    pkgver=20081228
    pkgrel=1
    pkgdesc="X11 OpenGL extension wire protocol"
    arch=(i686 x86_64)
    url="http://xorg.freedesktop.org/"
    license=('custom')
    replaces=('dri2proto')
    provides=('dri2proto=1.99.3.99' 'dri2proto-git')
    conflicts=('dri2proto')
    groups=('xorg')
    source=()
    md5sums=()
    _gitroot="git://anongit.freedesktop.org/xorg/proto/dri2proto"
    _gitname="dri2proto"
    build() {
    msg "Connecting to git.freedesktop.org GIT server...."
    if [ -d $startdir/src/$_gitname ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
    else
    git clone $_gitroot
    fi
    msg "GIT checkout done or server timeout"
    msg "Starting make..."
    cd $startdir/src/$_gitname
    sh autogen.sh --prefix=/usr
    make || return 1
    make DESTDIR=${startdir}/pkg install || return 1
    xf86driproto-git
    pkgname=xf86driproto-git
    pkgver=20081228
    pkgrel=1
    pkgdesc="Xf86driproto"
    arch=(i686 x86_64)
    url="http://xorg.freedesktop.org/"
    license=('custom')
    replaces=('xf86driproto')
    provides=('xf86driproto=2.0.4.99' 'xf86driproto-git')
    conflicts=('xf86driproto')
    groups=('xorg')
    source=()
    md5sums=()
    _gitroot="git://anongit.freedesktop.org/xorg/proto/xf86driproto"
    _gitname="xf86driproto"
    build() {
    msg "Connecting to git.freedesktop.org GIT server...."
    if [ -d $startdir/src/$_gitname ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
    else
    git clone $_gitroot
    fi
    msg "GIT checkout done or server timeout"
    msg "Starting make..."
    cd $startdir/src/$_gitname
    sh autogen.sh --prefix=/usr
    make || return 1
    make DESTDIR=${startdir}/pkg install || return 1
    libgl-git
    pkgname=libgl-git
    pkgver=20081224
    pkgrel=1
    pkgdesc="Mesa DRI OpenGL library and drivers from GIT repository"
    arch=(i686 x86_64)
    license=('custom')
    url="http://mesa3d.sourceforge.net"
    depends=('libxxf86vm' 'libdrm>=2.4.3' 'libx11>=1.1.99.2')
    makedepends=('imake' 'glproto' 'git')
    provides=('libgl=7.2.99')
    conflicts=('libgl')
    source=()
    md5sums=()
    _gitroot="git://anongit.freedesktop.org/git/mesa/mesa"
    _gitname="mesa"
    build() {
    cd ${startdir}/src/
    msg "Connecting to git.freedesktop.org GIT server...."
    if [ -d $startdir/src/$_gitname ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
    else
    git clone $_gitroot
    fi
    msg "GIT checkout done or server timeout"
    msg "Starting make..."
    cd $startdir/src/
    cp -r ${startdir}/src/$_gitname ${startdir}/src/$_gitname-build || return 1
    cd $startdir/src/$_gitname-build/
    CONFIG="linux-dri-x86"
    if [ "${CARCH}" = "x86_64" ]; then
    CONFIG="linux-dri-x86-64"
    sed -i -e "s/lib64/lib/g" ${startdir}/src/$_gitname-build/configs/${CONFIG}
    fi
    echo "EXTRA_LIB_PATH =" >> configs/${CONFIG}
    echo "OPT_FLAGS = ${CFLAGS}" >> configs/${CONFIG}
    echo "SRC_DIRS = glx/x11 mesa" >> configs/${CONFIG}
    rm -f include/GL/glut*h
    echo "USING_EGL = 0" >> configs/${CONFIG}
    echo "PROGRAM_DIRS =" >> configs/${CONFIG}
    echo "MKDEP = makedepend" >> configs/${CONFIG}
    echo "DRI_DIRS =" >> configs/${CONFIG}
    echo "DRI_DRIVER_SEARCH_DIR = /usr/lib/xorg/modules/dri" >> configs/${CONFIG}
    echo "ARCH_FLAGS += -DGLX_USE_TLS" >> configs/${CONFIG}
    echo "X11_INCLUDES = `pkg-config --cflags-only-I x11`" >> configs/${CONFIG}
    #echo "DEFINES += -DUSE_XCB" >> configs/${CONFIG}
    #echo "X11_INCLUDES += `pkg-config --cflags-only-I xcb` `pkg-config --cflags-only-I x11-xcb` `pkg-config --cflags-only-I xcb-glx`" >> configs/${CONFIG}
    #echo "GL_LIB_DEPS += `pkg-config --libs xcb` `pkg-config --libs x11-xcb` `pkg-config --libs xcb-glx`" >> configs/${CONFIG}
    make ${CONFIG} || return 1
    mkdir -p ${startdir}/pkg/usr
    make INSTALL_DIR=${startdir}/pkg/usr install
    rm -rf ${startdir}/pkg/usr/include
    mkdir -p ${startdir}/pkg/usr/lib/xorg/modules/extensions
    cd ${startdir}/pkg/usr/lib/xorg/modules/extensions
    ln -sf libGLcore.xorg libGLcore.so
    ln -sf libglx.xorg libglx.so
    rm -r $startdir/src/$_gitname-build
    mesa-git
    pkgname=mesa-git
    pkgver=20081224
    pkgrel=1
    pkgdesc="Mesa OpenGL Library from GIT repository"
    url="http://www.mesa3d.org"
    license=""
    arch=(x86_64 i686)
    depends=('libgl>=7.2.99' 'glproto' 'gcc' 'libxt')
    makedepends=('imake' 'git')
    conflicts=('mesa-apps' 'mesa')
    replaces=('mesa-apps' 'mesa')
    provides=('mesa=7.2.99')
    backup=()
    install=
    source=()
    md5sums=()
    _gitroot="git://anongit.freedesktop.org/git/mesa/mesa"
    _gitname="mesa"
    build() {
    msg "Connecting to git.freedesktop.org GIT server...."
    if [ -d $startdir/src/$_gitname ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
    else
    git clone $_gitroot
    fi
    msg "GIT checkout done or server timeout"
    msg "Starting make..."
    cd $startdir/src
    cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
    cd $startdir/src/$_gitname-build
    # Any patches you may want to add go here
    cd $startdir/src/$_gitname-build
    CONFIG="linux-dri-x86"
    if [ "${CARCH}" = "x86_64" ]; then
    CONFIG="linux-dri-x86-64"
    sed -i -e "s/lib64/lib/g" ${startdir}/src/$_gitname-build/configs/${CONFIG}
    fi
    echo "EXTRA_LIB_PATH =" >> configs/${CONFIG}
    echo "OPT_FLAGS = ${CFLAGS}" >> configs/${CONFIG}
    echo "SRC_DIRS = glx/x11 glu glw" >> configs/${CONFIG}
    rm -f include/GL/glut*h
    echo "USING_EGL = 0" >> configs/${CONFIG}
    echo "PROGRAM_DIRS =" >> configs/${CONFIG}
    echo "MKDEP = makedepend" >> configs/${CONFIG}
    echo "DRI_DIRS =" >> configs/${CONFIG}
    echo "DRI_DRIVER_SEARCH_DIR = /usr/lib/xorg/modules/dri" >> configs/${CONFIG}
    echo "ARCH_FLAGS += -DGLX_USE_TLS" >> configs/${CONFIG}
    echo "X11_INCLUDES = `pkg-config --cflags-only-I x11`" >> configs/${CONFIG}
    make ${CONFIG} || return 1
    mkdir -p ${startdir}/pkg/usr
    make INSTALL_DIR=${startdir}/pkg/usr install
    install -m644 include/GL/*.h ${startdir}/pkg/usr/include/GL/
    cp -r include/GL/* ${startdir}/pkg/usr/include/GL/
    rm -f ${startdir}/pkg/usr/lib/libGL.so*
    cd progs/xdemos
    make glxinfo glxgears
    mkdir -p ${startdir}/pkg/usr/bin
    install -m755 glxinfo glxgears ${startdir}/pkg/usr/bin/
    cd ${startdir}/src/gl-manpages-1.0.1
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR=${startdir}/pkg install
    rm -r $startdir/pkg/usr/lib/xorg/
    rm -r $startdir/src/$_gitname-build
    intel-dri-git
    pkgname=intel-dri-git
    pkgver=20081224
    pkgrel=1
    pkgdesc="Mesa DRI drivers for Intel chipsets"
    arch=(i686 x86_64)
    url="http://xorg.freedesktop.org/"
    depends=('libdrm>=2.4.3' 'mesa>=7.2.99' 'expat>=2.0')
    makedepends=('libdrm>=2.4.3' 'imake' 'mesa>=7.2.99' 'glproto>=1.4.9')
    options=('!libtool')
    conflicts=('intel-dri')
    provides=('intel-dri=7.2.99')
    source=()
    md5sums=()
    license=('custom')
    _gitroot="git://anongit.freedesktop.org/git/mesa/mesa"
    _gitname="mesa"
    build() {
    cd ${startdir}/src/
    msg "Connecting to git.freedesktop.org GIT server...."
    if [ -d $startdir/src/$_gitname ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
    else
    git clone $_gitroot
    fi
    msg "GIT checkout done or server timeout"
    msg "Starting make..."
    cd $startdir/src/
    cp -r ${startdir}/src/$_gitname ${startdir}/src/$_gitname-build || return 1
    cd $startdir/src/$_gitname-build/
    CONFIG="linux-dri-x86"
    if [ "${CARCH}" = "x86_64" ]; then
    CONFIG="linux-dri-x86-64"
    sed -i -e "s/lib64/lib/g" ${startdir}/src/$_gitname-build/configs/${CONFIG}
    fi
    echo "EXTRA_LIB_PATH =" >> configs/${CONFIG}
    echo "OPT_FLAGS = ${CFLAGS} -fno-strict-aliasing" >> configs/${CONFIG}
    echo "SRC_DIRS = glx/x11 mesa" >> configs/${CONFIG}
    rm -f include/GL/glut*h
    echo "USING_EGL = 0" >> configs/${CONFIG}
    echo "PROGRAM_DIRS =" >> configs/${CONFIG}
    echo "MKDEP = makedepend" >> configs/${CONFIG}
    echo "DRI_DIRS = i810 i915 i915tex i965" >> configs/${CONFIG}
    echo "DRI_DRIVER_SEARCH_DIR = /usr/lib/xorg/modules/dri" >> configs/${CONFIG}
    echo "DRI_DRIVER_INSTALL_DIR = /usr/lib/xorg/modules/dri" >> configs/${CONFIG}
    echo "ARCH_FLAGS += -DGLX_USE_TLS" >> configs/${CONFIG}
    echo "X11_INCLUDES = `pkg-config --cflags-only-I x11`" >> configs/${CONFIG}
    make realclean
    make ${CONFIG} || return 1
    mkdir -p ${startdir}/pkg/usr
    cd drivers/dri
    make DESTDIR=${startdir}/pkg install || return 1
    rm -rf ${startdir}/pkg/usr/local
    inputproto
    pkgname=inputproto
    pkgver=1.5.0
    pkgrel=1
    pkgdesc="X11 Input extension wire protocol"
    arch=(i686 x86_64)
    license=('custom')
    url="http://xorg.freedesktop.org/"
    source=(${url}/releases/individual/proto/${pkgname}-${pkgver}.tar.bz2)
    md5sums=()
    build() {
    cd ${srcdir}/${pkgname}-${pkgver}
    ./configure --prefix=/usr || return 1
    make || return 1
    make DESTDIR=${startdir}/pkg install || return 1
    install -m755 -d ${pkgdir}/usr/share/licenses/${pkgname}
    install -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
    pixman
    pkgname=pixman
    pkgver=0.13.2
    pkgrel=1
    pkgdesc="Pixman library"
    arch=(i686 x86_64)
    url="http://xorg.freedesktop.org"
    license=()
    depends=('glibc')
    options=('!libtool')
    source=(http://xorg.freedesktop.org/releases/individual/lib/${pkgname}-${pkgver}.tar.bz2)
    md5sums=()
    build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    ./configure --prefix=/usr --disable-static || return 1
    make || return 1
    make DESTDIR="${pkgdir}" install || return 1
    randrproto
    pkgname=randrproto
    pkgver=1.2.99.3
    pkgrel=1
    pkgdesc="X11 RandR extension wire protocol"
    arch=('i686' 'x86_64')
    license=('custom')
    url="http://xorg.freedesktop.org/"
    source=(${url}/releases/individual/proto/${pkgname}-${pkgver}.tar.bz2)
    md5sums=()
    build() {
    cd ${srcdir}/${pkgname}-${pkgver}
    ./configure --prefix=/usr || return 1
    make || return 1
    make DESTDIR=${pkgdir} install || return 1
    install -d -m755 ${pkgdir}/usr/share/licenses/${pkgname}
    install -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
    xorg-server
    pkgname=xorg-server
    pkgver=1.5.99.901
    pkgrel=1
    pkgdesc="X.Org X servers"
    arch=('i686' 'x86_64')
    license=('custom')
    url="http://xorg.freedesktop.org"
    depends=('libx11>=1.1.99.2' 'libxkbui>=1.0.2' 'libgl' 'libxfont>=1.3.3' 'openssl>=0.9.8h' 'libxxf86misc>=1.0.1' 'libpciaccess>=0.10.5' 'libxv>=1.0.4' 'libxaw>=1.0.4' 'pixman>=0.11.10' 'hal>=0.5.11' 'xcursor-themes' 'xkeyboard-config>=1.3' 'xorg-server-utils' 'xorg-utils' 'xorg-fonts-misc' 'xbitmaps' 'libdrm>=2.3.1' 'diffutils' 'xf86-input-evdev')
    makedepends=('glproto>=1.4.9' 'xf86driproto>=2.0.4' 'mesa>=7.2.99' 'randrproto>=1.2.99.3' 'renderproto>=0.9.3' 'scrnsaverproto>=1.1.0' 'fontsproto>=2.0.2' 'videoproto>=2.2.2' 'compositeproto>=0.4' 'trapproto>=3.4.3' 'resourceproto>=1.0.2' 'xineramaproto>=1.1.2' 'evieext>=1.0.2' 'libxkbfile>=1.0.5' 'libxmu>=1.0.4' 'libxpm>=3.5.7' 'libxxf86dga>=1.0.2' 'inputproto>=1.4.4' 'xcmiscproto>=1.1.2' 'bigreqsproto' 'libdrm=2.4.3' 'xtrans' 'pixman>=0.13.2' 'inputproto>=1.5.0')
    options=('!libtool')
    provides=('x-server')
    groups=('xorg')
    install=xorg-server.install
    source=(${url}/releases/individual/xserver/${pkgname}-${pkgver}.tar.bz2)
    md5sums=()
    build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    # Fix dbus config path
    sed -i -e 's/\$(sysconfdir)/\/etc/' config/Makefile.* || return 1
    ./configure --prefix=/usr \
    --enable-ipv6 \
    --enable-dri \
    --disable-dmx \
    --enable-xvfb \
    --enable-xnest \
    --enable-composite \
    --enable-xcsecurity \
    --enable-xorg \
    --enable-xtrap \
    --enable-xevie \
    --enable-xephyr \
    --enable-glx-tls \
    --enable-xorgcfg \
    --enable-kdrive \
    --enable-install-setuid \
    --enable-config-hal \
    --enable-config-dbus \
    --disable-xfbdev \
    --disable-xfake \
    --disable-xsdl \
    --disable-kdrive-vesa \
    --disable-dri2 \
    --disable-xprint \
    --disable-static \
    --sysconfdir=/etc/X11 \
    --localstatedir=/var \
    --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/100dpi:unscaled,/usr/share/fonts/75dpi:unscaled,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
    --with-xkb-path=/usr/share/X11/xkb \
    --with-xkb-output=/var/lib/xkb \
    --with-dri-driver-path=/usr/lib/xorg/modules/dri || return 1
    make || return 1
    make DESTDIR="${pkgdir}" install || return 1
    rm -rf "${pkgdir}/var/log" || return 1
    install -m755 -d "${pkgdir}/etc/X11" || return 1
    install -m755 -d "${pkgdir}/var/lib/xkb" || return 1
    # No longer needed, but as nvidia-utils mangles these files,
    # keep them like this so they can be restored
    mv "${pkgdir}/usr/lib/xorg/modules/libwfb.so" \
    "${pkgdir}/usr/lib/xorg/modules/libwfb.so.1.4" || return 1
    # Needed for non-mesa drivers, libgl will restore it
    mv "${pkgdir}/usr/lib/xorg/modules/extensions/libglx.so" \
    "${pkgdir}/usr/lib/xorg/modules/extensions/libglx.xorg" || return 1
    mv "${pkgdir}/usr/lib/xorg/modules/extensions/libdri.so" \
    "${pkgdir}/usr/lib/xorg/modules/extensions/libdri.xorg" || return 1
    install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
    install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
    xorg-server.install
    post_install() {
    rm -f usr/lib/xorg/modules/libwfb.so
    ln -sf libwfb.so.1.4 usr/lib/xorg/modules/libwfb.so
    cmp usr/lib/xorg/modules/extensions/libdri.so usr/lib/xorg/modules/extensions/libglx.xorg >/dev/null 2>&1 && rm -f usr/lib/xorg/modules/extensions/libdri.so
    # If the symlink is dead or non-existent, remove it and make a new one
    if [ ! -e usr/lib/xorg/modules/extensions/libdri.so ]; then
    rm -f usr/lib/xorg/modules/extensions/libdri.so
    ln -sf libdri.xorg usr/lib/xorg/modules/extensions/libdri.so
    fi
    post_upgrade() {
    if [ "`vercmp $2 1.4.99.906`" -lt 0 ]; then
    cat << _EOF
    Input device handling has changed in xorg-server 1.5.
    Please read http://wiki.archlinux.org/index.php/Xorg_input_hotplugging.
    _EOF
    fi
    post_install
    post_remove() {
    rm -f /usr/lib/xorg/modules/libwfb.so
    # If the symlink is dead, remove it
    if [ ! -e usr/lib/xorg/modules/extensions/libdri.so ]; then
    rm -f usr/lib/xorg/modules/extensions/libdri.so
    fi
    xf86-video-intel
    pkgname=xf86-video-intel
    pkgver=2.5.99.2
    pkgrel=1
    pkgdesc="X.org Intel i810/i830/i915/945G/G965+ video drivers"
    arch=(i686 x86_64)
    url="http://xorg.freedesktop.org/"
    depends=('intel-dri>=7.2.99' 'libpciaccess>=0.10.5' 'libdrm>=2.4.3')
    makedepends=('pkgconfig' 'xorg-server>=1.5.99.3' 'xf86driproto>=2.0.4' 'glproto>=1.4.9' 'mesa>=7.2.99' 'libdrm=2.4.3')
    conflicts=('xorg-server<1.5.99.3' 'xf86-video-i810')
    replaces=('xf86-video-i810')
    options=('!libtool' 'force')
    groups=('xorg-video-drivers')
    source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2)
    md5sums=()
    build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    ./configure --prefix=/usr \
    --enable-dri || return 1
    make || return 1
    make DESTDIR="${pkgdir}" install || return 1
    xf86-input-evdev
    pkgname=xf86-input-evdev
    pkgver=2.1.0
    pkgrel=1
    pkgdesc="X.org evdev input driver"
    arch=(i686 x86_64)
    url="http://xorg.freedesktop.org/"
    license=('custom')
    depends=('glibc')
    makedepends=('pkgconfig' 'xorg-server>=1.5.99.3' 'inputproto>=1.5.0' 'randrproto>=1.2.99.3')
    options=('!libtool')
    groups=('xorg-input-drivers')
    source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2)
    md5sums=('a6070ead29b2d81b5b386a96df2661b8')
    build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    ./configure --prefix=/usr || return 1
    make || return 1
    make DESTDIR="${pkgdir}" install || return 1
    install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
    install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
    Last edited by mutlu_inek (2009-01-15 02:45:22)

  • Acrobat 8 error on sun os 9

    Hi
    I am on Sparc Sun Os 5.9. I was already using Acrobat reader 5.0.5 and now I wanted to installed 8. I downloaded from here, AdobeReader_enu-8.1.1-1.sparc.tar.gz --http://www.adobe.com/products/acrobat/readstep2_servefile.html?option=full&platform=Solaris_.tar.gz&order=1&type=&esdcanbeused=0&esdcanhandle=0&hasjavascript=1&dlm=&os=solaris&winPlatform=&macPlatform=&linuxPlatform=&solarisPlatform=Solaris_.tar.gz&aixPlatform=&hpPlatform=&mobilePlatform=&otherPlatform=&language=English&order_radio=1
    and installed it using ./INSTALL script using root account.
    I received this error,
    bash-2.05# acroread
    ld.so.1: acroread: fatal: libpangoxft-1.0.so.0: open failed: No such file or directory
    Killed
    what could be the reason ? please help
    Thanks
    Edited by: upengan78 on Oct 25, 2007 3:31 PM

    Did you read the Adobe ReadMe.htm?
    System requirements for Solaris�
    UltraSPARC� or UltraSPARC IIIi� processor
    Solaris 9 or 10
    GNOME or KDE Desktop Environment (GNOME only for Solaris 10)
    512 MB of RAM (1 GB recommended)
    175 MB of available hard disk space (additional 60 MB required for all Asian fonts; additional 13 MB required for the Extended Language Pack (HATV) and the Central European font pack)
    GNU C library (glibc) version 2.3 or higher
    GTK+ (GIMP Toolkit) user interface library, version 2.4 or higher: This can be installed from the Package CDs obtained from Sun with the operating system CDs. Also, the GTK+ library can be
    downloaded from http://www.sun.com/software/star/gnome/index.html.
    Firefox 1.5 or higher; Mozilla 1.7.3 or higher
    OpenGL library: This can be installed from the Package CDs obtained from Sun with the operating system CDs. Also, the OpenGL library can be downloaded from
    http://www.sun.com/software/graphics/opengl/download.xml.
    OpenSSL 0.9.7, OpenLDAP, and CUPS libraries: These libraries can be obtained from the Package CDs obtained from Sun with the operating system CDs or from
    http://sun.com/software/solaris/freeware. Remember to set the LD_LIBRARY_PATH to include the path where these libraries are installed.
    libstdc++ library: Adobe Reader requires the libstdc++.so.5 library. Some systems might not have it installed by default. To fix this, you need to install the compat-libstdc++ package.
    If that lib is not in this selection of stuff needed to run acroread. Try downloading pango from sunfreeware.
    Good luck!!

  • Wine and resolution issue

    hello!
    i have used archlinux for a year or so. everything went quite perfectly, but because archlinux is not multilib (i need it for my 32-bit blitzmax application) i installed gentoo last week. and because gentoo did not get me "that feeling" of arch, i went back and reinstalled arch...completely new. now i have got problems with 32bit-wine. i am using arch64 and never had such a problem. we are discussing that in the german forums without any solutions yet so i hope you could help me. i guess nobody else has this problem (because i did not read of it) so i must be an idiot and do sth. wrong .
    ok, first, this issue does not appear when running native 64bit applications, like frozen-bubble iin fullscreen. so i guess it has sth to do with the lib32 packages...dont know. when i am running windows games iin wine (bin32-wine 1.1.17 or bin32-wine-suse 1.1.18 from aur) in fullscreen, wine changes the resolution as it has to be (640x480, 800x600 or whatever), but i can still use my mouse and move it to the right or bottom edge and can so navigate through the whole screen ( so i can see the rest of my gnome desktop for example). because of that my games are unplayable. it happens to morrowind, half-life (the old one, not the source-based) & half-life 2, so it not depends on one game. i tried running wine using xrandr resolution changer (changed in wine config) but the i cannot change the resolution from my native one (1680x1050), also not perfectly, because i want to play my games in 800x600 ^^.
    but remember, it did work quite well two weeks ago :-\ (i will never change my distro again, i will never change my distro again... )
    here is maybe stuff you will need:
    my xorg.conf:
    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    EndSection
    Section "Files"
    EndSection
    Section "Module"
    Load "dbe"
    Load "extmod"
    Load "type1"
    Load "freetype"
    Load "glx"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "Unknown"
    HorizSync 28.0 - 33.0
    VertRefresh 43.0 - 72.0
    Option "DPMS"
    EndSection
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection
    but i also tried different other xorg.conf's. i had also this minimalistic one:
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    EndSection
    but the i had problems changing my resolution in gnome (via gnome-display-properties).
    my lib32-*:
    [stephan@myhost ~]$ pacman -Qs lib32-
    local/lib32-alsa-lib 1.0.19-1 (lib32)
    An alternative implementation of Linux sound support
    local/lib32-e2fsprogs 1.41.4-1
    Ext2 filesystem utilities
    local/lib32-expat 2.0.1-2 (lib32)
    An XML Parser library written in C
    local/lib32-fontconfig 2.6.0-2 (lib32)
    A library for configuring and customizing font access
    local/lib32-freetype2 2.3.9-1 (lib32)
    TrueType font rendering library
    local/lib32-gcc-libs 4.3.3-1 (lib32)
    The GNU Compiler Collection
    local/lib32-glibc 2.9-4 (lib32)
    GNU C Library (32 Bit)
    local/lib32-libdrm 2.3.1-3 (lib32)
    Userspace interface to kernel DRM services
    local/lib32-libice 1.0.5-1 (lib32)
    X11 Inter-Client Exchange library
    local/lib32-libjpeg 6b-6 (lib32)
    Library of JPEG support functions
    local/lib32-libsm 1.1.0-1.1 (lib32)
    X11 Session Management library
    local/lib32-libx11 1.2-1 (lib32)
    X11 client-side library
    local/lib32-libxau 1.0.4-1 (lib32)
    X11 authorisation library
    local/lib32-libxcb 1.2-1 (lib32)
    X11 client-side library
    local/lib32-libxcomposite 0.4.0-1 (lib32)
    X11 Composite extension library
    local/lib32-libxdamage 1.1.1-1 (lib32)
    X11 damaged region extension library
    local/lib32-libxdmcp 1.0.2-1 (lib32)
    X11 Display Manager Control Protocol library
    local/lib32-libxext 1.0.5-1 (lib32)
    X11 miscellaneous extensions library
    local/lib32-libxfixes 4.0.3-1 (lib32)
    X11 miscellaneous 'fixes' extension library
    local/lib32-libxml2 2.7.3-1 (lib32)
    XML parsing library, version 2
    local/lib32-libxrender 0.9.4-1 (lib32)
    X Rendering Extension client library
    local/lib32-libxslt 1.1.24-2 (lib32)
    XML stylesheet transformation library
    local/lib32-libxt 1.0.5-1 (lib32)
    X11 toolkit intrinsics library
    local/lib32-libxxf86vm 1.0.2-1 (lib32)
    X11 XFree86 video mode extension library
    local/lib32-mesa 7.2-1 (lib32)
    Mesa OpenGL library
    local/lib32-nvidia-utils 180.29-3 (lib32)
    NVIDIA drivers utilities and libraries.
    local/lib32-zlib 1.2.3.3-3 (lib32)
    A compression/decompression Library
    i am using stable archlinux, no testing. as you can see i have got an nvidia-card.
    i also tried removing .wine and also (!) .* and created a new user, but without any solution. everytime the same problem. i will try installing a 32bit chroot now, maybe it is working there.
    i hope you can help me

    G`Day I had the same problem also (x64), I managed to get it working by installing all of lib32* without chroot
    # pacman -S lib32
    resolving dependencies...
    looking for inter-conflicts...
    warning: removing 'lib32-libgl' from target list because it conflicts with 'lib32-nvidia-utils'
    Targets (69): lib32-glibc-2.9-4 lib32-alsa-lib-1.0.19-1 lib32-glib2-2.20.1-1 lib32-atk-1.26.0-1 lib32-expat-2.0.1-2 lib32-zlib-1.2.3.3-3 lib32-freetype2-2.3.9-2
    lib32-fontconfig-2.6.0-2 lib32-libpng-1.2.35-1 lib32-libxau-1.0.4-1 lib32-libxcb-1.2-1 lib32-libxcomposite-0.4.0-2 lib32-libxdmcp-1.0.2-2
    lib32-libx11-1.2.1-1 lib32-libxrender-0.9.4-2 lib32-pixman-0.14.0-2 lib32-xcb-util-0.3.4-2 lib32-cairo-1.8.6-1 lib32-openssl-0.9.8k-2
    lib32-curl-7.19.4-1 lib32-gcc-libs-4.3.3-1 lib32-db-4.7.25-2 lib32-libtasn1-2.1-1 lib32-lzo2-2.02-3.1 lib32-libgpg-error-1.6-1.1
    lib32-libgcrypt-1.4.4-1 lib32-opencdk-0.6.6-1.1 lib32-ncurses-5.7-2 lib32-readline-5.2.013-2 lib32-gnutls-2.6.6-1 lib32-heimdal-1.2.1-3
    lib32-libjpeg-6b-6 lib32-libtiff-3.8.2-4 lib32-libcups-1.3.10-2 lib32-libxfixes-4.0.3-2 lib32-libxcursor-1.1.9-2 lib32-libxext-1.0.5-2
    lib32-libxi-1.2.1-1 lib32-libxinerama-1.0.3-2 lib32-libxrandr-1.3.0-1 lib32-libxft-2.1.13-1 lib32-pango-1.24.1-1 lib32-pcre-7.9-1 lib32-gtk2-2.16.1-1
    lib32-libart-lgpl-2.3.20-1 lib32-libdrm-2.4.9-1 lib32-libxxf86vm-1.0.2-1 lib32-libice-1.0.5-1 lib32-libsm-1.1.0-1.1 lib32-libstdc++5-3.3.6-3
    lib32-libxdamage-1.1.1-2 lib32-libxml2-2.7.3-1 lib32-libxt-1.0.5-2 lib32-libxmu-1.0.4-2 lib32-libxslt-1.1.24-2 lib32-libxss-1.1.3-1
    lib32-libxtst-1.0.3-2 lib32-libxv-1.0.4-1 lib32-nvidia-utils-180.51-1 lib32-mesa-7.4.1-1 lib32-nas-1.9.2-1 lib32-nspr-4.7.4-1 lib32-sqlite3-3.6.13-1
    lib32-nss-3.12.3-1 lib32-openal-1.7.411-1 lib32-pciutils-3.1.2-1 lib32-qt-4.5.0-5 lib32-qt3-3.3.8-10 lib32-sdl-1.2.13-3

  • I need help guys... please help....

    guys, is someone interested to help here? this is for our thesis.. this is an opengl program. i can send the whole program if you want.. but this is the most urgent and need the best help... ill be glad if you guys can help......
    * Dice.java
    * Created on 08 February 2007, 22:26
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package longgong;
    import java.net.URL;
    import gl4java.GLContext;
    import gl4java.awt.GLAnimCanvas;
    import gl4java.utils.textures.*;
    * @author welcome
    public class Dice {
    GLAnimCanvas glCanvas ;
    URL codeBase;
    int[]texture1 = new int[1]; //Storage for one texture ( NEW )
    int[]texture2 = new int[1]; //Storage for one texture ( NEW )
    int[]texture3 = new int[1]; //Storage for one texture ( NEW )
    int[]texture4 = new int[1]; //Storage for one texture ( NEW )
    int[]texture5 = new int[1]; //Storage for one texture ( NEW )
    int[]texture6 = new int[1]; //Storage for one texture ( NEW )
    float rx;
    float ry;
    float rz;
    float tx;
    float ty;
    float tz;
    float speed;
    boolean txMoveLeft;
    boolean tyMoveUp;
    boolean tzMoveFront;
    /** Creates a new instance of Dice */
    public Dice(GLAnimCanvas g) {
    glCanvas = g;
    if(!LoadGLTexture("c:\\java\\images\\one.png",texture1)){
    System.out.println("Failed to load Textures,Bailing!");
    System.exit(0);
    if(!LoadGLTexture("c:\\java\\images\\two.png",texture2)){
    System.out.println("Failed to load Textures,Bailing!");
    System.exit(0);
    if(!LoadGLTexture("c:\\java\\images\\three.png",texture3)){
    System.out.println("Failed to load Textures,Bailing!");
    System.exit(0);
    if(!LoadGLTexture("c:\\java\\images\\four.png",texture4)){
    System.out.println("Failed to load Textures,Bailing!");
    System.exit(0);
    if(!LoadGLTexture("c:\\java\\images\\five.png",texture5)){
    System.out.println("Failed to load Textures,Bailing!");
    System.exit(0);
    if(!LoadGLTexture("c:\\java\\images\\six.png",texture6)){
    System.out.println("Failed to load Textures,Bailing!");
    System.exit(0);
    txMoveLeft = true;
    tyMoveUp = true;
    public boolean inCircleBoundaries(float x, float y, float radius)
    float r;
    r = (float)Math.sqrt((x*x) + (y*y));
    if (r <= radius)
    return true;
    else
    return false;
    public void setCoordinates(float corRx,float corRy,float corRz,float corTx,float corTy,float corTz){
    rx = corRx;
    ry = corRy;
    rz = corRz;
    tx = corTx;
    ty = corTy;
    tz = corTz;
    public void getRandomDice(){
    int num = (int)(Math.random() * 6);
    if (num==1){
    rx=0.0f;
    ry=0.0f;
    rz=0.0f;
    else if (num==2){
    rx=90.0f;
    ry=0.0f;
    rz=0.0f;
    else if (num==3){
    rx=0.0f;
    ry=-90.0f;
    rz=0.0f;
    else if (num==4){
    rx=0.0f;
    ry=90.0f;
    rz=0.0f;
    else if (num==5){
    rx=-90.0f;
    ry=0.0f;
    rz=0.0f;
    else{
    rx=180.0f;
    ry=0.0f;
    rz=0.0f;
    public float getTx(){
    return tx+0.5f;
    public float getTy(){
    return ty+0.5f;
    public float getTz(){
    return tz+0.5f;
    public void setTz(float z){
    tz=z;
    public boolean getMoveLeft(){
    return txMoveLeft;
    public boolean getMoveUp(){
    return tyMoveUp;
    public void setMoveLeft(boolean m){
    txMoveLeft = m;
    public void setMoveUp(boolean m){
    tyMoveUp = m;
    public void startDiceMovement(){    
    if (txMoveLeft==true) {
    tx+=speed;
    else {
    tx-=speed;
    if (tyMoveUp==true) {
    ty+=speed;
    else {
    ty-=speed;
    ry+=(speed*4);
    rx+=(speed*4);
    //rz+=(speed*2);
    //tx+=speed;
    //ty+=speed;
    //tz+=speed;
    if (inCircleBoundaries(tx,ty,3.5f)==false) {  
    if (tx>=3.0f) txMoveLeft = false;
    if (tx<=-3.0f) txMoveLeft = true;
    if (ty>=3.0f) tyMoveUp = false;
    if (ty<=-3.0f) tyMoveUp = true;
    public void setSpeed(float s){
    speed = s;
    public void drawDice(){        
    glCanvas.gl.glLoadIdentity();                                             // Reset The View
    glCanvas.gl.glTranslatef(tx,ty,tz);
    glCanvas.gl.glRotatef(rx,1.0f,0.0f,0.0f);
    glCanvas.gl.glRotatef(ry,0.0f,1.0f,0.0f);
    glCanvas.gl.glRotatef(rz,0.0f,0.0f,1.0f);
    glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture1[0]);
    glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);
         // Front Face
    glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, 1.0f);
    glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, 1.0f);
    glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f, 1.0f, 1.0f);
    glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f, 1.0f, 1.0f);
    glCanvas.gl.glEnd();
    glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture6[0]);
    glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);
              // Back Face          
    glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, -1.0f);
    glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f, 1.0f, -1.0f);
    glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f, 1.0f, -1.0f);
    glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, -1.0f);
    glCanvas.gl.glEnd();
    glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture2[0]);
    glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);
         // Top Face
    glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f, 1.0f, -1.0f);
    glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, 1.0f, 1.0f);
    glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, 1.0f, 1.0f);
    glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f, 1.0f, -1.0f);
    glCanvas.gl.glEnd();
    glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture5[0]);
    glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);
         // Bottom Face
    glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, -1.0f);
    glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, -1.0f);
    glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, 1.0f);
    glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, 1.0f);
    glCanvas.gl.glEnd();
    glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture3[0]);
    glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);
         // Right face
    glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, -1.0f);
    glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f, 1.0f, -1.0f);
    glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f, 1.0f, 1.0f);
    glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, 1.0f);
    glCanvas.gl.glEnd();
    glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture4[0]);
    glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);
         // Left Face
    glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, -1.0f);
    glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, 1.0f);
    glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f, 1.0f, 1.0f);
    glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f, 1.0f, -1.0f);
    glCanvas.gl.glEnd();
    public boolean LoadGLTexture(String fileName, int textureNumber[])
    PngTextureLoader texLoader = new PngTextureLoader(glCanvas.gl, glCanvas.glu);
    if(codeBase!=null)
    texLoader.readTexture(codeBase, fileName);
    else
    texLoader.readTexture(fileName);
    if(texLoader.isOk())
    //Create Texture
    glCanvas.gl.glGenTextures(1, textureNumber);
    glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, textureNumber[0]);
    glCanvas.gl.glTexParameteri(glCanvas.gl.GL_TEXTURE_2D, glCanvas.gl.GL_TEXTURE_MAG_FILTER, glCanvas.gl.GL_LINEAR);
    glCanvas.gl.glTexParameteri(glCanvas.gl.GL_TEXTURE_2D, glCanvas.gl.GL_TEXTURE_MIN_FILTER, glCanvas.gl.GL_LINEAR);
    glCanvas.gl.glTexImage2D(glCanvas.gl.GL_TEXTURE_2D,
    0,
    3,
    texLoader.getImageWidth(),
    texLoader.getImageHeight(),
    0,
    glCanvas.gl.GL_RGB,
    glCanvas.gl.GL_UNSIGNED_BYTE,
    texLoader.getTexture());
    return true;
    return false;
    }

    im from university of st. la salle bacolod city.. this is for our thesis due on friday... this is a java program but with the opengl library to create graphics. i can send you all the files so that you can read it. but first, you need to have all the jar and lib of opengl in your pc to see the canvas. this is made up of three dice that supposed to bounce on the circle boundaries and with each other as well. i have to send you 3 files in order to work on that dice so that you can see the outcomes. so if you want, i can send to you these files on your email add if you want.. but it is ok for me to send it here also but i will just protion the three. but if you want, i can send it to your email add. just send me a message on my email add... [email protected]....
    but if you want to read more about me... you can see me here...
    http://tagged.com/memayem2
    thank you very much....

  • Open G version updates, any trouble?

    Hi,
    I've been resisting integrating any Open G tools into our project for some time, because I'm afraid of future updates of the libraries breaking things in the code.  But I see there are a couple things in there that I need, and would take me considerable time coding from scratch.  So I have a question for those that have used Open G over the years:  Have you experienced significant problems from opengl library updates breaking things in your code, which you've spend considerable time fixing/working around?  I looks like the VI package manager queries what versions are the latest and installs from there.  I see no way to download a comprehensive "package" that we can use, and not have to worry about  it changing.  Is there one?    I am responsible for 6 test stations, all running identical
    teststand/labview code, and I'd prefer to source control a snapshot of
    the entire open G package.  Then I could test new "packages" as they come out on one machine, before installing on all.
    Thanks
    David Jenkinson

    Interesting question you bring up (and valid ones as well).
    As OpenG developers we have the policy that an upgrade of a package should never lead to altered results or behaviour. If code should improve and making the improvements changes inputs/outputs a new version of the VI is built with a new name (see  OpenG Wiki)
    If such behaviour is found by an OpenG user please report!
    I have never had issues with upgrading OpenG packages in the way you mention (breaking code, altering style).
    If you are worried you could take advance of VIPC functionality of VIPM, making stale library packages for a given project.
    What I advice on several test stations is working with executables. Of every build you distribute you create a source distribution with everything of that application (even vi.lib files) since any VI can change how hard everyone tries to keep them compatible, for instance a VI might have a bug that you unintentionally exploit, the bug gets fixed and your code might be altered.
    Ton (OpenG developer)
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Cant install lib32-nvidia-utils-beta

    Hello ,
    I am trying to install lib32-nvidia-utils-beta.. but I get
    ==> ERROR: Makepkg was unable to build lib32-nvidia-utils-beta.
    ==> Restart building lib32-nvidia-utils-beta ? [y/N]
    # Maintainer : Dan Vratil <[email protected]>
    # Contributors: Jeremy Sands <[email protected]>
    # Thomas Baechler <[email protected]>
    # James Rayner <[email protected]>
    # Erik Hardesty <[email protected]>
    # josephgbr <[email protected]>
    pkgname=lib32-nvidia-utils-beta
    pkgver=304.37
    pkgrel=1
    pkgdesc="NVIDIA drivers utilities and libraries. (32 bit)"
    arch=(x86_64)
    url="http://www.nvidia.com/"
    license=('custom:NVIDIA')
    groups=('lib32')
    depends=('lib32-libxext' 'lib32-zlib' 'lib32-gcc-libs')
    conflicts=('lib32-libgl' 'lib32-ati-fglrx-utils' 'lib32-nvidia-utils')
    provides=('lib32-libgl' "lib32-nvidia-utils=${pkgver}")
    source=(ftp://download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run)
    build()
    cd "${srcdir}"
    if [ -d NVIDIA-Linux-x86-${pkgver} ]; then
    rm -rf NVIDIA-Linux-x86-${pkgver};
    fi
    # Extract sources
    sh NVIDIA-Linux-x86-${pkgver}.run --extract-only
    package() {
    cd $srcdir/NVIDIA-Linux-x86-${pkgver}
    # OpenGL library
    install -D -m755 libGL.so.$pkgver $pkgdir/usr/lib32/libGL.so.$pkgver
    # OpenGL core library
    install -D -m755 libnvidia-glcore.so.$pkgver $pkgdir/usr/lib32/libnvidia-glcore.so.$pkgver
    # XvMC
    install -D -m644 libXvMCNVIDIA.a $pkgdir/usr/lib32/libXvMCNVIDIA.a
    install -D -m755 libXvMCNVIDIA.so.$pkgver $pkgdir/usr/lib32/libXvMCNVIDIA.so.$pkgver
    # VDPAU
    install -D -m755 libvdpau_nvidia.so.$pkgver $pkgdir/usr/lib32/vdpau/libvdpau_nvidia.so.$pkgver
    # CUDA
    install -D -m755 libcuda.so.$pkgver $pkgdir/usr/lib32/libcuda.so.$pkgver
    install -D -m755 libnvcuvid.so.$pkgver $pkgdir/usr/lib32/libnvcuvid.so.$pkgver
    # nvidia-tls library
    install -D -m755 tls/libnvidia-tls.so.$pkgver $pkgdir/usr/lib32/libnvidia-tls.so.$pkgver
    # OpenCL
    install -D -m755 libnvidia-compiler.so.$pkgver $pkgdir/usr/lib32/libnvidia-compiler.so.$pkgver
    install -D -m755 libOpenCL.so.1.0.0 $pkgdir/usr/lib32/libOpenCL.so.1.0.0
    install -D -m755 libnvidia-cfg.so.$pkgver $pkgdir/usr/lib32/libnvidia-cfg.so.$pkgver
    install -D -m755 libnvidia-ml.so.$pkgver $pkgdir/usr/lib32/libnvidia-ml.so.$pkgver
    # create soname links
    for _lib in $(find $pkgdir -name '*.so*'); do
    _soname="$(dirname ${_lib})/$(readelf -d "$_lib" | sed -nr 's/.*Library soname: \[(.*)\].*/\1/p')"
    if [ ! -e "${_soname}" ]; then
    ln -s "$(basename ${_lib})" "${_soname}"
    ln -s "$(basename ${_soname})" "${_soname/.[0-9]*/}"
    fi
    done
    rm -rf "${pkgdir}"/usr/{include,share,bin}
    mkdir -p "$pkgdir/usr/share/licenses"
    ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
    md5sums=('ee3e97109201ab954c96860e28ada611')
    This is my PKGBUILD can you help me?

    I am installing arch linux from the beginning . Nvidia nvidia/utils and lib32-nvidia-utils did not have any problem.
    Last edited by ytsejam (2012-08-16 07:44:12)

  • JNI + Timer, weird crash

    Hello people.
    First of all, I'd like to apologize beforehand for the long post. Also, I hope I'm posting on the right forum section.
    Here's the story:
    I'm working on an academic project, which involves a Java application calling C++ code, via JNI. I'm currently facing an issue, the exact cause of which I cannot track down, at least given my current grasp of Java, JNI, JVM etc.
    Before I get straight to the point, here's some background on the project, which I think may help in clarifying any possible subtleties of the problem. You can probably skip this paragraph safely though, and jump to the picture that is provided on the link below it, without missing too much. Basically, I'm working on implementing an AI (specifically Reinforcement Learning) experiment domain which is based on an open-source game, written in C++. A Java application (which can be thought of, as a platform for deploying AI experiments) is responsible for the control of the experiment execution, which is conducted on a step-by-step basis. The game is compiled as a dynamically loadable shared library, so that it can be loaded by a specific JNI component of the Java AI platform. Let me state at this point, that the Java application, as well as the JNI dynamic library loader that it features, were not implemented by myself. As a consequence, I'm not aware of the details concerning the JNI part of the implementation (I've peeked at the pure Java part though, and it seems pretty OK to me). My work lies on modifying the game code (C++), so that it can be integrated with the Java AI platform. The application features 2 modes of executing experiment steps. In the "manual" mode, a step is executed when a specific JButton is hit (I will henceforth refer to this execution mode, as JButton mode). On the other hand, there is a "batch" mode, where step execution is scheduled to happen on a fixed time interval, using the scheduleAtFixedRate method of the java.util.Timer class (Timer mode, henceforth). To make matters even more clear, here's a a sketch of the architecture of the system:
    [Sketch of the problem|http://users.auth.gr/~idaroglo/pub/fsitu.png]
    The problem is, that while the JButton mode works OK, the Timer mode doesn't. In that case, things crash on the native side (specifically on the OpenGL library, which is used to render the graphics of the game). This is quite weird I think, as the only difference between these 2 execution modes, is the way they call the native step function (I tried to illustrate in the picture linked above). So, a wild guess could be that something gets messed up, when the Timer gets involved in orchestrating the execution. I cannot put blame on the native shared library, as it functions properly in the case of the JButton mode. Having no other hint or indication of what causes this situation, I can only blame it on the Timer involvement (hence the thread title). I will post a sample JVM Hotspot crash log, as a reply to this one.
    Here are some things I've tried so far, to resolve this issue:
    1) Debugging with gdb. I tracked down which function of the OpenGL library causes the crash (btw, segmentation fault - SISEGV). I've been told by a fellow though, that this specific function cannot produce a segmentation fault and that the crash probably happens due to memory corruption. In case this speculation holds, a wild guess could be that the use of a timer, could be introducing memory corruption.
    2) I've skimmed through the JVM Troubleshooting guide, in the hope that I'll find some advice on how I should troubleshoot this situation. I'm bound to revisit this, hopefully after some feedback from the community.
    3) I've considered using valgrind to verify that memory corruption, but I'm not sure if that would make sense in the case of Java/JNI.
    4) I've tried setting the Timer's fixed time interval to a 20 seconds (20000ms), to make absolutely sure that the native method returns, before it is invoked by the timer for a consecutive time. Still things crash.
    5) I've tested the Java AI platform with a considerably simpler dynamic library (in terms of implementation), and both modes functioned OK. This probably indicates that I cannot blame it all, on the Timer alone.
    So, I would really appreciate some feedback on the following matters:
    1) Does any of the speculations above, concerning the cause of the problem, make sense to you?
    2) How should I proceed troubleshooting? Are there any recommended tools that might prove helpful in tracking down the cause of the problem?
    3) Should one employ extra care when using Timers in combination with JNI & native methods?
    4) How can one track down and troubleshoot memory corruption issues in the mixed mode scenario (JAVA+JNI)?
    That's all. Thanks for the time you spent reading this. Once more, I sincerely apologize for the long post.
    I really hope that collective experience and wisdom, will help me squash this issue.
    Thanks again.

    Hello again!
    Sorry to revive this thread after a long time, but this post might be helpful to anyone that might encounter a similar problem in the future.
    I am obliged to Paul Pluzhnikov, for identifying the cause of the problem. Wouldn't it be for his invaluable help, I would still have been stuck with this one.
    I quote part of his response, a while ago:
    Paul Pluzhnikov wrote:
    ....JVM log has register dump as well, and
    RAX=0x0000000000000000 in it. So your program tried to jump through a
    NULL pointer, and crashed with SIGSEGV since zero page of memory is
    not mapped into the process space on Linux.
    The more interesting question is "why is RAX NULL?"
    RAX was loaded in the previous instruction from the FS (thread-local
    storage on x86_64) segment register.
    Given all of the above, I will guess that the difference between the
    "JButton" and "Timer" execution is that in the "JButton" case you
    execute the call to JNI/game_step in the event dispatch thread, while
    in the "Timer" case you are not.
    The following (buggy) program demonstrates what I believe is
    essentially the same crash:
    // compile with "gcc -g main.c /usr/lib/libGL.so.1 -pthread"
    #include <pthread.h>
    #include <stdio.h>
    void *fn(void *p)
    printf("calling glHint on other thread\n");
    return glHint();
    int main(int argc, char *argv[])
    pthread_t tid;
    if (argc > 1) {
    printf("calling glHint on main thread\n");
    return glHint();
    pthread_create(&tid, 0, fn, 0);
    pthread_join(tid, 0);
    return 0;
    }Here is what I see on my system:
    gdb -q ./a.out
    (gdb) run
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/libthread_db.so.1".
    [New Thread 0x7ffff7ed4720 (LWP 19872)]
    [New Thread 0x40802950 (LWP 19875)]
    calling glHint on other thread
    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0x40802950 (LWP 19875)]
    0x00007ffff7db62c9 in glHint () from /usr/lib/libGL.so.1
    (gdb) x/i $pc
    0x7ffff7db62c9 <glHint+9>:     jmpq *0x378(%rax)
    (gdb) p $rax
    $1 = 0 Notice the same instruction crash, and the same RAX == NULL (gdb) run 1
    [Thread debugging using libthread_db enabled]
    [New Thread 0x7ffff7ed4720 (LWP 19877)]
    calling glHint on main thread
    Program exited normally.
    (gdb) quitSo how do you fix this? The following may be helpful:
    [http://java.sun.com/docs/books/tutorial/uiswing/concurrency/index.html] A few days later, I got some further input from Paul. I quote part of it as well, as I think it might also prove to be helpful for someone:
    Paul Pluzhnikov wrote:
    You probably don't actually have to jump through hoops to get the
    "game" executing on the event dispatch thread.
    What I think must happen is that the dlopen() of the "game" must
    be done in the same thread that the "step" will be done in.
    Alternatively, you may be able to force libGL to initialize its
    TLS storage for arbitrary thread, by using glXMakeCurrent.
    Here is some additional info which may be helpful:
    [http://www.equalizergraphics.com/documentation/parallelOpenGLFAQ.html]
    [http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/glx/xmakecurrent.html]
    I'd like to thank all of you, who provided any sort of input on this. Most of all, I'd like to thank Paul Pluzhnikov once more, for figuring the problem out.
    Hope this post will be helpful to someone in the future!
    Cheers!

  • 32-bit binary does not run on x86_64, ldd not a dynamic executable

    Hi,
    I switched from Ubuntu 8.10 x86_64 to arch linux x86_64 a short while ago and have an issue running 32-bit proprietary binary that dynamically links to some libraries.
    ldd insists "not a dynamic executable"
    How am I supposed to resolve the issue? Running this 32-bit binary using 64-bit Ubuntu was never an issue.
    Best Regards,
    Cetin Sert

    I installed all the lib32 libraries but I still get the same error:
    [cetin@unique bin]$ pacman -Qs lib32-*
    local/lib32-alsa-lib 1.0.20-1 (lib32)
        An alternative implementation of Linux sound support
    local/lib32-atk 1.26.0-1 (lib32)
        A library providing a set of interfaces for accessibility
    local/lib32-cairo 1.8.8-1 (lib32)
        Cairo vector graphics library
    local/lib32-curl 7.19.6-1 (lib32)
        An URL retrival utility and library
    local/lib32-db 4.7.25.4-1 (lib32)
        The Berkeley DB embedded database system
    local/lib32-dbus-core 1.2.14-1
        Freedesktop.org message bus system
    local/lib32-e2fsprogs 1.41.8-2.1
        Ext2 filesystem utilities
    local/lib32-expat 2.0.1-2 (lib32)
        An XML Parser library written in C
    local/lib32-fontconfig 2.6.0-2 (lib32)
        A library for configuring and customizing font access
    local/lib32-freetype2 2.3.9-2 (lib32)
        TrueType font rendering library
    local/lib32-gcc-libs 4.4.1-1 (lib32)
        The GNU Compiler Collection
    local/lib32-glib2 2.20.4-1 (lib32)
        Common C routines used by GTK+ 2.4 and other libs
    local/lib32-glibc 2.10.1-4 (lib32)
        GNU C Library (32 Bit)
    local/lib32-gnutls 2.8.3-1 (lib32)
        A library which provides a secure layer over a reliable transport layer
    local/lib32-gtk2 2.16.5-1 (lib32)
        The GTK+ Toolkit (v2)
    local/lib32-heimdal 1.2.1-5 (lib32)
        Heimdal Kerberos V5 libraries
    local/lib32-libart-lgpl 2.3.20-1 (lib32)
        A library for high-performance 2D graphics
    local/lib32-libcups 1.3.11-1 (lib32)
        The CUPS Printing System
    local/lib32-libdrm 2.4.12-1 (lib32)
        Userspace interface to kernel DRM services
    local/lib32-libgcrypt 1.4.4-2 (lib32)
        Libgcrypt is a general purpose crypto library based on the code used
    local/lib32-libgpg-error 1.6-1.1 (lib32)
        Support library for libgcrypt
    local/lib32-libice 1.0.5-1 (lib32)
        X11 Inter-Client Exchange library
    local/lib32-libjpeg 7-1 (lib32)
        Library of JPEG support functions
    local/lib32-libpng 1.2.39-1 (lib32)
        A collection of routines used to create PNG format graphics files
    local/lib32-libsm 1.1.1-1 (lib32)
        X11 Session Management library
    local/lib32-libstdc++5 3.3.6-3 (lib32)
        GNU Standard C++ library version 3
    local/lib32-libtasn1 2.2-1 (lib32)
        The ASN.1 library used in GNUTLS
    local/lib32-libtiff 3.9.0-1 (lib32)
        Library for manipulation of TIFF images
    local/lib32-libx11 1.2.2-1 (lib32)
        X11 client-side library
    local/lib32-libxau 1.0.4-1 (lib32)
        X11 authorisation library
    local/lib32-libxcb 1.4-1 (lib32)
        X11 client-side library
    local/lib32-libxcomposite 0.4.0-2 (lib32)
        X11 Composite extension library
    local/lib32-libxcursor 1.1.9-2 (lib32)
        X cursor management library
    local/lib32-libxdamage 1.1.1-2 (lib32)
        X11 damaged region extension library
    local/lib32-libxdmcp 1.0.2-2 (lib32)
        X11 Display Manager Control Protocol library
    local/lib32-libxext 1.0.5-2 (lib32)
        X11 miscellaneous extensions library
    local/lib32-libxfixes 4.0.3-2 (lib32)
        X11 miscellaneous 'fixes' extension library
    local/lib32-libxft 2.1.13-1 (lib32)
        FreeType-based font drawing library for X
    local/lib32-libxi 1.2.1-1 (lib32)
        X11 Input extension library
    local/lib32-libxinerama 1.0.3-2 (lib32)
        X11 Xinerama extension library
    local/lib32-libxml2 2.7.3-3 (lib32)
        XML parsing library, version 2
    local/lib32-libxmu 1.0.4-2 (lib32)
        X11 miscellaneous micro-utility library
    local/lib32-libxrandr 1.3.0-1 (lib32)
        X11 RandR extension library
    local/lib32-libxrender 0.9.4-2 (lib32)
        X Rendering Extension client library
    local/lib32-libxslt 1.1.24-2 (lib32)
        XML stylesheet transformation library
    local/lib32-libxss 1.2.0-1 (lib32)
        X11 Screen Saver extension library
    local/lib32-libxt 1.0.6-1 (lib32)
        X11 toolkit intrinsics library
    local/lib32-libxtst 1.0.3-2 (lib32)
        X11 Testing -- Resource extension library
    local/lib32-libxv 1.0.4-1 (lib32)
        X11 Video extension library
    local/lib32-libxxf86vm 1.0.2-1 (lib32)
        X11 XFree86 video mode extension library
    local/lib32-lzo2 2.03-1 (lib32)
        LZO is a portable lossless data compression library written in ANSI C
    local/lib32-mesa 7.5-2 (lib32)
        Mesa OpenGL library
    local/lib32-nas 1.9.2-1 (lib32)
        Network Audio System is a network transparent, client/server audio transport system
    local/lib32-ncurses 5.7-2 (lib32)
        A System V Release 4.0 curses emulation library
    local/lib32-nspr 4.8-1 (lib32)
        Netscape Portable Runtime
    local/lib32-nss 3.12.3.1-1 (lib32)
        Mozilla's Netscape Security Services Library that implements PKI support
    local/lib32-nvidia-utils 185.18.36-1 (lib32)
        NVIDIA drivers utilities and libraries.
    local/lib32-openal 1.8.466-1 (lib32)
        OpenAL audio library for use with opengl
    local/lib32-opencdk 0.6.6-1.1 (lib32)
        The Open Crypto Development Kit provides basic parts of the OpenPGP message format
    local/lib32-openssl 0.9.8k-4 (lib32)
        The Open Source toolkit for Secure Sockets Layer and Transport Layer Security
    local/lib32-pango 1.24.5-1.1 (lib32)
        A library for layout and rendering of text
    local/lib32-pciutils 3.1.3-1 (lib32)
        PCI bus configuration space access library and tools
    local/lib32-pcre 7.9-1 (lib32)
        A library that implements Perl 5-style regular expressions
    local/lib32-pixman 0.14.0-2 (lib32)
        Pixman library
    local/lib32-qt 4.5.2-6 (lib32)
        The QT gui toolkit.
    local/lib32-qt3 3.3.8-12 (lib32)
        The QT gui toolkit.
    local/lib32-readline 6.0.004-1 (lib32)
        GNU readline library
    local/lib32-sdl 1.2.13-3 (lib32)
        A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard
    local/lib32-sqlite3 3.6.17-1 (lib32)
        A C library that implements an SQL database engine
    local/lib32-util-linux-ng 2.16-1
        Miscellaneous system utilities for Linux
    local/lib32-xcb-util 0.3.6-1 (lib32)
        Utility libraries for XC Binding
    local/lib32-zlib 1.2.3.3-3 (lib32)
        A compression/decompression Library
    [cetin@unique bin]$
    [cetin@unique bin]$
    [cetin@unique bin]$
    [cetin@unique bin]$ ldd Adifor2.1
    Adifor2.1          Adifor2.1-Linux86 
    [cetin@unique bin]$ ldd Adifor2.1-Linux86
        not a dynamic executable
    if i create a chroot environment can 64-bit programs in our tool chain call the 32-bit binary using exactly the same ways they would do on a working multilib environment? btw vanilla ubuntu 9.04 64-bit has the same issue, so I'm a bit at a loss now hehe.

Maybe you are looking for