Problem with pkgbuild of blitz

Hi,
  I get the following error when I try to compile blitz from aur.
                                           ==> ERROR: blitz is not available for the '' architecture.
    Note that many packages may need a line added to their ./PKGBUILD
    such as arch=('').
Error: Makepkg was unable to build blitz package.
The arch variable seems to be set in the pkgbuild file. I dont know what seems to be the problem!
# Contributor: Gleidson <[email protected]>
pkgname=blitz
pkgver=0.9
pkgrel=2
pkgdesc="C++ Class library for scientific computing"
arch=('i686' 'x86_64')
url="http://www.oonumerics.org/blitz/"
license=('GPL''custom')
depends=('gcc')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/blitz/blitz-$pkgver.tar.gz)md5sums=('031df2816c73e2d3bd6d667bbac19eca')
build() {
  cd $startdir/src/blitz-$pkgver
  # Install license
  install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
  ./configure CXX=g++ --prefix=/usr --enable-64bit
  make DESTDIR=$startdir/pkg install || return 1
~

This package is orphaned and does not compile.  Even the source-url is wrong.
if /bin/sh ../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I.. -I.. -MT globals.lo -MD -MP -MF ".deps/globals.Tpo" -c -o globals.lo `test -f '../src/globals.cpp' || echo './'`../src/globals.cpp; \
then mv -f ".deps/globals.Tpo" ".deps/globals.Plo"; else rm -f ".deps/globals.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I.. -I.. -MT globals.lo -MD -MP -MF .deps/globals.Tpo -c ../src/globals.cpp -o globals.o
In file included from ../blitz/applics.h:400,
from ../blitz/vecexpr.h:32,
from ../blitz/vecpick.cc:16,
from ../blitz/vecpick.h:293,
from ../blitz/vector.h:449,
from ../blitz/tinyvec.h:430,
from ../blitz/indexexpr.h:30,
from ../src/globals.cpp:11:
../blitz/mathfunc.h: In static member function 'static long int blitz::_bz_abs<long int>::apply(long int)':
../blitz/mathfunc.h:45: error: 'labs' is not a member of 'std'
In file included from ../blitz/array/funcs.h:29,
from ../blitz/array/newet.h:29,
from ../blitz/array/et.h:27,
from ../blitz/array-impl.h:2515,
from ../blitz/array.h:32,
from ../src/globals.cpp:13:
../blitz/funcs.h: In static member function 'static int blitz::Fn_abs<int>::apply(int)':
../blitz/funcs.h:509: error: call of overloaded 'abs(int&)' is ambiguous
/usr/lib/gcc/i686-pc-linux-gnu/4.3.1/../../../../include/c++/4.3.1/cmath:99: note: candidates are: double std::abs(double)
/usr/lib/gcc/i686-pc-linux-gnu/4.3.1/../../../../include/c++/4.3.1/cmath:103: note: float std::abs(float)
/usr/lib/gcc/i686-pc-linux-gnu/4.3.1/../../../../include/c++/4.3.1/cmath:107: note: long double std::abs(long double)
../blitz/funcs.h: In static member function 'static long int blitz::Fn_abs<long int>::apply(long int)':
../blitz/funcs.h:530: error: 'labs' is not a member of 'std'
Last upstream update was 2005. I think this PKGBUILD should be removed.
Last edited by Stefan Husmann (2008-08-09 19:50:04)

Similar Messages

  • I have problems with gameplay(zuma blitz and bejeweled blitz)in the firefox browser window. the game is latent and play is very jerky..can u please help. i played them in the IE8 browser with no problem

    i've tried playing zuma blitz and bejeweled blitz in the firefox browser window and the play is very jerky and slow.

    Just had the same thing happen AGAIN. Suddenly - a blank iPlayer Desktop which failed to download new programmes. All previous programmes were still in the repository folder. This time the sequence I outlined previously didn't work.
    What eventually got things working this time was to reinstall Adobe Air as part of the BBC iPlayer Desktop installation process - and not separately.
    So:
    a) Move iPlayer to trash.
    b) Find and delete the following folder: Users/Yourname/Library/Preferences/BBCiPlayerDesktop.61DB7A798358575D6A969CCD73DDBBD 723A6DA9D.1
    c) Find and delete the following folder:
    Users/Yourname/Library/Application Support/Adobe/AIR/ELS/BBCiPlayerDesktop.61DB7A798358575D6A969CCD73DDB BD723A6DA9D.1
    d) Find and delete the following folder:
    Users/Yourname/Movies/BBC iPlayer/repository/cache
    e) Find and run: Applications/Utilities/Adobe AIR Uninstaller
    f) Empty the Trash. I found that bits and pieces of BBC iPlayer were still running despite having been quit and dumped in the trash - and so it wouldn't allow me to complete this part. Restarted the computer, then empty the trash.
    g) Find the folder: Users/Yourname/Movies/BBC iPlayer/repository and rename it repository2
    h) Reinstall iPlayer. It will tell you that you have no programmes to view. Quit the programme.
    i) Find and delete the folder: Users/Yourname/Movies/BBC iPlayer/repository
    j) Find the folder: Users/Yourname/Movies/BBC iPlayer/repository2 and rename it to repository.
    k) Relaunch iPlayer
    It would be terribly nice if the BBC or Adobe stopped buggering about with this . . .

  • [SOLVED] Problem with symlinking and PKGBUILD

    Hello Everyone,
    I have created the javafx-sdk package on AUR, and make the installation a lot simplier. But I am having a problem with the creationg of the symlink.
    So I have 1 binary file "javafxpackager" in the "bin" folder that I need to symlink into /usr/bin. This is the method I am using
    mkdir -p ${pkgdir}/usr/bin
    chmod +x ${pkgdir}/usr/lib/jvm/${pkgname}/bin/javafxpackager
    ln -s ${pkgdir}/usr/lib/jvm/${pkgname}/bin/javafxpackager ${pkgdir}/usr/bin/javafxpackager
    My problem is that this method doesn't work at all. The only way to me after the installation to make the symlink working is by doing this :
    ls chmod +x /usr/lib/jvm/javafx-sdk/bin/javafxpackager
    sudo ln -s /usr/lib/jvm/javafx-sdk/bin/javafxpackager /usr/bin/
    In order to make it work.
    How can I solve this problem ?
    Thanks in Advance,
    Luis Da Costa
    Last edited by aliasbody (2012-06-26 00:27:15)

    Problem solved ! Here's how to do it :
    mkdir -p ${pkgdir}/usr/bin
    chmod +x ${pkgdir}/usr/lib/jvm/${pkgname}/bin/javafxpackager
    ln -s /usr/lib/jvm/javafx-sdk/bin/javafxpackager ${pkgdir}/usr/bin/javafxpackager
    I didn't know, but you can symlink a file that doesn't exist yet, and this is what I did. I use and non existing (yet) javafxpackager binary from the non existing (yet) "/usr/lib/jvm/javafx-sdk/bin/" folder, and send it to the ${pkgdir}/usr/bin/javafxpackager, that will be copied into the original "/usr/bin/" folder.
    So this problem is solved and I'm happy
    (PS : thanks @ngoonee and @Trilby for you help ! Thanks to you I found out a little bit faster where the problem was ^^)

  • Am I the only person who has problem with video playback ?

    I'm having problems with the latest nvidia driver and it seems that nobody wrote about it on the forums.. After installing the latest nvidia driver (169.07-1), the video playback with xv selected will be played in purple and blue colours.. Generally red will not be shown.. So human faces are colored with a combination of purple and blue.. Everything is normal on the other hand.. Sound works perfectly, the movie can be watched smoothly even on fullscreen.. With x11, all players can show the colors but...
    1) The movie quality in Totem is very bad then...like the image is gathered together by 3x3 pixels..
    2) mplayer shows everything fine but it can't get fullscreen..
    I created a nautilus script for a workaround that let's me watch the movies with fullscreen using the -fs -zoom options..
    But this problem is really annoying..

    1.0rc2, with some things disabled that are enabled in the Arch package (lirc, samba, and that live-media thing).
    $ pacman -Qs mplayer
    local/mplayer-custom 1.0rc2-1
    xvinfo:
    X-Video Extension version 2.2
    screen #0
    Adaptor #0: "NV17 Video Texture"
    number of ports: 32
    port base: 355
    operations supported: PutImage
    supported visuals:
    depth 24, visualID 0x21
    depth 24, visualID 0x24
    depth 24, visualID 0x25
    depth 24, visualID 0x26
    depth 24, visualID 0x27
    depth 24, visualID 0x28
    depth 24, visualID 0x29
    depth 24, visualID 0x2a
    depth 24, visualID 0x2b
    depth 24, visualID 0x2c
    depth 24, visualID 0x2d
    depth 24, visualID 0x2e
    depth 24, visualID 0x2f
    depth 24, visualID 0x30
    depth 24, visualID 0x31
    depth 24, visualID 0x32
    depth 24, visualID 0x33
    depth 24, visualID 0x34
    depth 24, visualID 0x35
    depth 24, visualID 0x36
    depth 24, visualID 0x37
    depth 24, visualID 0x38
    depth 24, visualID 0x39
    depth 24, visualID 0x3a
    depth 24, visualID 0x3b
    depth 24, visualID 0x3c
    depth 24, visualID 0x3d
    depth 24, visualID 0x3e
    depth 24, visualID 0x3f
    depth 24, visualID 0x40
    depth 24, visualID 0x41
    depth 24, visualID 0x42
    depth 24, visualID 0x43
    depth 24, visualID 0x44
    depth 24, visualID 0x45
    depth 24, visualID 0x46
    depth 24, visualID 0x47
    depth 24, visualID 0x48
    depth 24, visualID 0x49
    depth 24, visualID 0x4a
    depth 24, visualID 0x22
    depth 24, visualID 0x4b
    depth 24, visualID 0x4c
    depth 24, visualID 0x4d
    depth 24, visualID 0x4e
    depth 24, visualID 0x4f
    depth 24, visualID 0x50
    depth 24, visualID 0x51
    depth 24, visualID 0x52
    depth 24, visualID 0x53
    depth 24, visualID 0x54
    depth 24, visualID 0x55
    depth 24, visualID 0x56
    depth 24, visualID 0x57
    depth 24, visualID 0x58
    depth 24, visualID 0x59
    depth 24, visualID 0x5a
    depth 24, visualID 0x5b
    depth 24, visualID 0x5c
    depth 24, visualID 0x5d
    depth 24, visualID 0x5e
    depth 24, visualID 0x5f
    depth 24, visualID 0x60
    depth 24, visualID 0x61
    depth 24, visualID 0x62
    depth 24, visualID 0x63
    depth 24, visualID 0x64
    depth 24, visualID 0x65
    depth 24, visualID 0x66
    depth 24, visualID 0x67
    depth 24, visualID 0x68
    depth 24, visualID 0x69
    depth 24, visualID 0x6a
    depth 24, visualID 0x6b
    depth 24, visualID 0x6c
    depth 24, visualID 0x6d
    depth 24, visualID 0x6e
    depth 24, visualID 0x6f
    depth 24, visualID 0x70
    depth 24, visualID 0x71
    number of attributes: 3
    "XV_SET_DEFAULTS" (range 0 to 0)
    client settable attribute
    "XV_ITURBT_709" (range 0 to 1)
    client settable attribute
    client gettable attribute (current value is 0)
    "XV_SYNC_TO_VBLANK" (range 0 to 1)
    client settable attribute
    client gettable attribute (current value is 1)
    maximum XvImage size: 2046 x 2046
    Number of image formats: 4
    id: 0x32595559 (YUY2)
    guid: 59555932-0000-0010-8000-00aa00389b71
    bits per pixel: 16
    number of planes: 1
    type: YUV (packed)
    id: 0x32315659 (YV12)
    guid: 59563132-0000-0010-8000-00aa00389b71
    bits per pixel: 12
    number of planes: 3
    type: YUV (planar)
    id: 0x59565955 (UYVY)
    guid: 55595659-0000-0010-8000-00aa00389b71
    bits per pixel: 16
    number of planes: 1
    type: YUV (packed)
    id: 0x30323449 (I420)
    guid: 49343230-0000-0010-8000-00aa00389b71
    bits per pixel: 12
    number of planes: 3
    type: YUV (planar)
    Adaptor #1: "NV05 Video Blitter"
    number of ports: 32
    port base: 387
    operations supported: PutImage
    supported visuals:
    depth 24, visualID 0x21
    depth 24, visualID 0x24
    depth 24, visualID 0x25
    depth 24, visualID 0x26
    depth 24, visualID 0x27
    depth 24, visualID 0x28
    depth 24, visualID 0x29
    depth 24, visualID 0x2a
    depth 24, visualID 0x2b
    depth 24, visualID 0x2c
    depth 24, visualID 0x2d
    depth 24, visualID 0x2e
    depth 24, visualID 0x2f
    depth 24, visualID 0x30
    depth 24, visualID 0x31
    depth 24, visualID 0x32
    depth 24, visualID 0x33
    depth 24, visualID 0x34
    depth 24, visualID 0x35
    depth 24, visualID 0x36
    depth 24, visualID 0x37
    depth 24, visualID 0x38
    depth 24, visualID 0x39
    depth 24, visualID 0x3a
    depth 24, visualID 0x3b
    depth 24, visualID 0x3c
    depth 24, visualID 0x3d
    depth 24, visualID 0x3e
    depth 24, visualID 0x3f
    depth 24, visualID 0x40
    depth 24, visualID 0x41
    depth 24, visualID 0x42
    depth 24, visualID 0x43
    depth 24, visualID 0x44
    depth 24, visualID 0x45
    depth 24, visualID 0x46
    depth 24, visualID 0x47
    depth 24, visualID 0x48
    depth 24, visualID 0x49
    depth 24, visualID 0x4a
    depth 24, visualID 0x22
    depth 24, visualID 0x4b
    depth 24, visualID 0x4c
    depth 24, visualID 0x4d
    depth 24, visualID 0x4e
    depth 24, visualID 0x4f
    depth 24, visualID 0x50
    depth 24, visualID 0x51
    depth 24, visualID 0x52
    depth 24, visualID 0x53
    depth 24, visualID 0x54
    depth 24, visualID 0x55
    depth 24, visualID 0x56
    depth 24, visualID 0x57
    depth 24, visualID 0x58
    depth 24, visualID 0x59
    depth 24, visualID 0x5a
    depth 24, visualID 0x5b
    depth 24, visualID 0x5c
    depth 24, visualID 0x5d
    depth 24, visualID 0x5e
    depth 24, visualID 0x5f
    depth 24, visualID 0x60
    depth 24, visualID 0x61
    depth 24, visualID 0x62
    depth 24, visualID 0x63
    depth 24, visualID 0x64
    depth 24, visualID 0x65
    depth 24, visualID 0x66
    depth 24, visualID 0x67
    depth 24, visualID 0x68
    depth 24, visualID 0x69
    depth 24, visualID 0x6a
    depth 24, visualID 0x6b
    depth 24, visualID 0x6c
    depth 24, visualID 0x6d
    depth 24, visualID 0x6e
    depth 24, visualID 0x6f
    depth 24, visualID 0x70
    depth 24, visualID 0x71
    number of attributes: 2
    "XV_SET_DEFAULTS" (range 0 to 0)
    client settable attribute
    "XV_SYNC_TO_VBLANK" (range 0 to 1)
    client settable attribute
    client gettable attribute (current value is 0)
    maximum XvImage size: 2046 x 2046
    Number of image formats: 5
    id: 0x32595559 (YUY2)
    guid: 59555932-0000-0010-8000-00aa00389b71
    bits per pixel: 16
    number of planes: 1
    type: YUV (packed)
    id: 0x32315659 (YV12)
    guid: 59563132-0000-0010-8000-00aa00389b71
    bits per pixel: 12
    number of planes: 3
    type: YUV (planar)
    id: 0x59565955 (UYVY)
    guid: 55595659-0000-0010-8000-00aa00389b71
    bits per pixel: 16
    number of planes: 1
    type: YUV (packed)
    id: 0x30323449 (I420)
    guid: 49343230-0000-0010-8000-00aa00389b71
    bits per pixel: 12
    number of planes: 3
    type: YUV (planar)
    id: 0x3
    guid: 03000000-0000-0010-8000-00aa00389b71
    bits per pixel: 32
    number of planes: 1
    type: RGB (packed)
    depth: 24
    red, green, blue masks: 0xff0000, 0xff00, 0xff
    xorg.conf:
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # /etc/X11/xorg.conf (xorg X Window System server configuration file)
    # Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
    # (Type "man /etc/X11/xorg.conf" at the shell prompt.)
    #Section "ServerFlags"
    # Option "XkbDisable" "true"
    #EndSection
    Section "ServerLayout"
    Identifier "Default Layout"
    Screen "Default Screen" 0 0
    InputDevice "Generic Keyboard"
    InputDevice "Configured Mouse"
    EndSection
    Section "ServerLayout"
    Identifier "TV Layout"
    Screen 0 "Screen_TV" 0 0
    InputDevice "Generic Keyboard"
    InputDevice "Configured Mouse
    EndSection
    Section "Files"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/cyrillic"
    FontPath "/usr/share/fonts/100dpi/:unscaled"
    FontPath "/usr/share/fonts/75dpi/:unscaled"
    FontPath "/usr/share/fonts/Type1"
    FontPath "/usr/share/fonts/100dpi"
    FontPath "/usr/share/fonts/75dpi"
    FontPath "/usr/share/fonts/artwiz-fonts"
    FontPath "/usr/share/fonts/TTF"
    EndSection
    Section "Module"
    Load "bitmap"
    Load "dbe"
    Load "ddc"
    #Load "dri"
    #Load "evdev"
    Load "extmod"
    Load "freetype"
    Load "glx"
    Load "int10"
    Load "record"
    Load "type1"
    Load "vbe"
    EndSection
    Section "InputDevice"
    Identifier "Generic Keyboard"
    Driver "kbd"
    Option "CoreKeyboard"
    Option "XkbRules" "xorg"
    Option "XkbModel" "logiitc"
    Option "XkbLayout" "se"
    EndSection
    Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "mouse"
    Option "CorePointer"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "ExplorerPS/2"
    EndSection
    Section "Monitor"
    Identifier "Acer AL1923"
    #HorizSync 30.0-69.0
    #VertRefresh 60.0-75.0
    # calc: (x|y)pixels * 25.4 / dpi
    #DisplaySize 336 269 # 96 DPI @ 1280x1024
    Option "DPMS"
    EndSection
    Section "Monitor"
    Identifier "TV"
    HorizSync 30-50
    VertRefresh 60
    EndSection
    Section "Device"
    Driver "vesa"
    Identifier "VESA"
    EndSection
    Section "Device"
    Identifier "nv"
    Driver "nv"
    EndSection
    Section "Device"
    Identifier "NVIDIA GeForce 7600GS"
    Driver "nvidia"
    BusID "PCI:5:0:0"
    Option "NoLogo" "true"
    Option "RenderAccel" "true"
    Option "AddARGBGLXVisuals" "true"
    Option "backingstore" "true"
    EndSection
    Section "Device"
    Identifier "Card_TV"
    Driver "nvidia"
    Option "TVStandard" "PAL-B"
    Option "TVOutFormat" "SVIDEO"
    Option "ConnectedMonitor" "TV"
    EndSection
    Section "Screen"
    Identifier "Default Screen"
    Device "NVIDIA GeForce 7600GS"
    #Device "nv"
    #Device "vesa"
    Monitor "Acer AL1923"
    DefaultDepth 24
    SubSection "Display"
    Depth 1
    Modes "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
    Depth 4
    Modes "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
    Depth 8
    Modes "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
    Depth 15
    Modes "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
    Depth 16
    Modes "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
    Depth 24
    Modes "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "Screen_TV"
    Device "Card_TV"
    Monitor "TV"
    DefaultDepth 16
    SubSection "Display"
    Depth 16
    Modes "1024x768" "800x600"
    EndSubSection
    EndSection
    Section "Extensions"
    Option "Composite" "Enable"
    EndSection
    I should probably also mention that I'm rolling my own kernel, and as such I'm not using the package from testing. Building it manually with the PKGBUILD from ABS though so it shouldn't be any difference though.
    Last edited by [vEX] (2008-01-15 17:15:36)

  • Problem with radeon driver and Xorg

    Hoping someone can help with this problem.
    I would like to try and use the open source ati driver over the proprietary fglrx driver, however when I use this driver and I try to test my Xorg configuration it enters into X without any problems (mouse cursor appears and is functional) but when I Ctrl+Alt+Backspace to exit back to the console my screen resolution is completely distorted so that I can't read anything.  I can enter commands and can only use a reboot command to get it functional again.  I do not have this problem with the fglrx driver.
    I have a Dell Inspiron E1505 laptop with an ATI Mobility X1400 graphics card.
    Here is my xorg.conf if it helps:
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    EndSection
    Section "Files"
    RgbPath "/usr/share/X11/rgb"
    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 "GLcore"
    Load "dbe"
    Load "dri"
    Load "extmod"
    Load "glx"
    Load "record"
    Load "xtrap"
    Load "freetype"
    Load "drm"
    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"
    HorizSync 30.0 - 130.0
    VertRefresh 50.0 - 100.0
    EndSection
    Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
    ### [arg]: arg optional
    #Option "NoAccel" # [<bool>]
    #Option "SWcursor" # [<bool>]
    #Option "Dac6Bit" # [<bool>]
    #Option "Dac8Bit" # [<bool>]
    #Option "BusType" # [<str>]
    #Option "CPPIOMode" # [<bool>]
    #Option "CPusecTimeout" # <i>
    #Option "AGPMode" # <i>
    #Option "AGPFastWrite" # [<bool>]
    #Option "AGPSize" # <i>
    #Option "GARTSize" # <i>
    #Option "RingSize" # <i>
    #Option "BufferSize" # <i>
    #Option "EnableDepthMoves" # [<bool>]
    #Option "EnablePageFlip" # [<bool>]
    #Option "NoBackBuffer" # [<bool>]
    #Option "DMAForXv" # [<bool>]
    #Option "FBTexPercent" # <i>
    #Option "DepthBits" # <i>
    #Option "PCIAPERSize" # <i>
    #Option "AccelDFS" # [<bool>]
    #Option "DDCMode" # [<bool>]
    #Option "IgnoreEDID" # [<bool>]
    #Option "DisplayPriority" # [<str>]
    #Option "PanelSize" # [<str>]
    #Option "ForceMinDotClock" # <freq>
    #Option "ColorTiling" # [<bool>]
    #Option "VideoKey" # <i>
    #Option "RageTheatreCrystal" # <i>
    #Option "RageTheatreTunerPort" # <i>
    #Option "RageTheatreCompositePort" # <i>
    #Option "RageTheatreSVideoPort" # <i>
    #Option "TunerType" # <i>
    #Option "RageTheatreMicrocPath" # <str>
    #Option "RageTheatreMicrocType" # <str>
    #Option "ScalerWidth" # <i>
    #Option "RenderAccel" # [<bool>]
    #Option "SubPixelOrder" # [<str>]
    #Option "ShowCache" # [<bool>]
    #Option "DynamicClocks" # [<bool>]
    #Option "VGAAccess" # [<bool>]
    #Option "ReverseDDC" # [<bool>]
    #Option "LVDSProbePLL" # [<bool>]
    #Option "AccelMethod" # <str>
    #Option "DRI" # [<bool>]
    #Option "ConnectorTable" # <str>
    #Option "DefaultConnectorTable" # [<bool>]
    #Option "DefaultTMDSPLL" # [<bool>]
    #Option "TVDACLoadDetect" # [<bool>]
    #Option "ForceTVOut" # [<bool>]
    #Option "TVStandard" # <str>
    #Option "IgnoreLidStatus" # [<bool>]
    Identifier "Card0"
    Driver "radeon"
    VendorName "ATI Technologies Inc"
    BoardName "Radeon Mobility X1400"
    BusID "PCI:1:0:0"
    Option "XAANoOffscreenPixmaps" "true"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
    Viewport 0 0
    Depth 1
    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
    Modes "1680x1050" "1440x900" "1280x800" "1024x768"
    EndSubSection
    EndSection
    Section "DRI"
    Group "video"
    Mode 0666
    EndSection

    It is very possible to have direct rendering on YOUR card (r5xx) with the radeon(ati) driver, but you need a lot of packages that are still in testing, and it is a somewhat daunting task to sort through everything.
    Most importantly, you need x-server 1.5 and mesa 7.1+
    The packages that you need & are newer than core/extra are (all can be had from testing, except libgl):
    mesa >= 7.1
    xf86-input-evdev 2.0.4
    xf86-video-ati >= 6.9.0
    xorg-server >= 1.4.99.906
    libgl >= 7.1  ** has to be built from a with ABS/pkgbuild, because you need to add r300 & radeon dri-drivers in the configure **
    I have an x1650 (rv535) and have been running the radeon driver WITH direct rendering since JULY, and the performance is very good. I can run compiz without skipping a beat (while playing WOP), 2800FPS on glxgears, and ** play video WITHOUT TEARING **!!
    Please read a lot of what's going on in this forum:
    http://www.phoronix.com/forums/forumdisplay.php?f=43 (open source ati/amd)
    I hope this gives you some hope that it can be done.
    Fight the good fight FOSS for ALL!
    BTW, the radeon(ati) driver is better than radeonhd for our cards!!!
    Last edited by Execute_Method (2008-11-19 00:19:30)

  • [2.6.37] Problems with module compression

    Hello,
    during the last days I had problems installing carl9170-driver package from the aur. It is a package based on compat-wireless.
    Some other people had similar problems with other compat-wireless aur packages
    All the packages that are based on compat-wireless provide new versions of already existing kernel modules. They put those modules under /lib/modules/kernel-version/updates.
    After installing depmod -a should find the new modules in the /updates folder and after a reboot you can use the updated wireless drivers.
    This does not work for kernel 2.6.37 because all the in-kernel modules are .gz compressed but the carl9170-driver package produces uncompressed modules.
    I guess that depmod is not able to work correctly if you mix compressed modules with uncompressed ones.
    I found this https://patchwork.kernel.org/patch/4039/ and it seems that there are configuration options wheter you get a compressed or uncompressed module when you run "make install_modules" in a PKGBUILD.
    These configuration is made in "Makefile.modinst"
    So the question is: Is this a problem with arch's kernel? I think when compressed in-kernel-modules are used, then external modules should compile in the same way.

    Thanks for your post. I've been reporting this problem for weeks:
    https://aur.archlinux.org/packages.php?ID=41472
    https://aur.archlinux.org/packages.php?ID=41485
    https://bugs.archlinux.org/task/22633
    I solved the problem by going to /lib/modules/kernel2.6.37ARCH/updates...iwlwifi and then ran:
    cd /lib/modules/2.6.37ARCH/update
    gzip -r *
    depmod
    Then I reloaded the modules and finally depmod would report that the compat-wireless one was loaded.
    The above instructions only worked with compat-wireless-patched from AUR. I'm still unable to use compat-wireless-patched-daily even with the above trick (no module get loaded at all).
    Last edited by alphazo (2011-02-20 19:54:59)

  • Problems with (selfcompiled) gnome-applets

    I have experienced problems with gnome-applets. Those that come with a basic gnome installation work fine and there is no problem adding them to the panel. However, when I use selfcompiled applets I always get the following error when trying to add them.
    The panel encountered a problem while loading "OAFIID:GNOME_HDAPS_STATUSApplet".
    (Where OAFIID: is followed by the applets name.)
    I tried pkgbuilds from the AUR like 'ontv' and 'gnome-hdaps-applet' and I've tried compile applets manually. Always the same issue. I don't know what's wrong. I've found threads where people get that error message on any applet but I didn't find a solution to my problem, as all my other applets work fine. Any ideas?

    Have you done any Gnome updates since this applet was compiled? I seem to recall having a similar problem with an applet I built and, falling back to the Windows days, did a reboot, rebuilt the applet, and then all was well after I reinstalled the applet.
    Not sure if this will help, but it cannot hurt.
    Bob

  • Problems with ttf-mac-fonts package from AUR

    Hello,
    I've problems with generate package ttf-mac-fonts:
    $ sudo yaourt -S aur/ttf-mac-fonts
    A Macbuntu-10.04
    A Macbuntu-10.04/install.sh
    A Macbuntu-10.04/panel
    A Macbuntu-10.04/panel/panel.entries
    A Macbuntu-10.04/upgrade.sh
    A Macbuntu-10.04/compiz
    A Macbuntu-10.04/compiz/x64
    A Macbuntu-10.04/compiz/x64/original
    A Macbuntu-10.04/compiz/x64/original/libanimation.la
    A Macbuntu-10.04/compiz/x64/original/libanimation.a
    A Macbuntu-10.04/compiz/x64/original/libanimation.so
    A Macbuntu-10.04/compiz/x64/original/animation.xml
    A Macbuntu-10.04/compiz/x64/libanimation.a
    A Macbuntu-10.04/compiz/x64/libanimation.so
    A Macbuntu-10.04/compiz/x64/animation.xml
    A Macbuntu-10.04/compiz/x32
    A Macbuntu-10.04/compiz/x32/original
    A Macbuntu-10.04/compiz/x32/original/libanimation.la
    A Macbuntu-10.04/compiz/x32/original/libanimation.a
    A Macbuntu-10.04/compiz/x32/original/libanimation.so
    A Macbuntu-10.04/compiz/x32/original/animation.xml
    A Macbuntu-10.04/compiz/x32/libanimation.a
    A Macbuntu-10.04/compiz/x32/libanimation.so
    A Macbuntu-10.04/compiz/x32/animation.xml
    A Macbuntu-10.04/uninstall.sh
    A Macbuntu-10.04/readme
    Checked out revision 134.
    install: cannot stat 'gbk/*.ttf': No such file or directory
    ==> ERROR: A failure occurred in package().
    Aborting...
    ==> ERROR: Makepkg was unable to build ttf-mac-fonts.
    ==> Restart building ttf-mac-fonts ? [y/N]
    ==> --------------------------------------
    ==>
    How can I solve this problem?.
    Regards.

    Crap - sorry, I typed too quick, the upstream source if fine.  But as that PKGBUILD does some odd things, I missed the problem.   The simplest (but far from best) fix is to change the lines in the package function to the following:
    svn co https://macbuntu.svn.sourceforge.net/svnroot/macbuntu/Macbuntu/fonts/ ./
    install -d $pkgdir/usr/share/fonts/{TTF,Type1}
    install -m644 ./Macbuntu/fonts/gbk/*.ttf $pkgdir/usr/share/fonts/TTF
    install -m644 ./Macbuntu/fonts/mac/*.ttf $pkgdir/usr/share/fonts/TTF
    install -m644 ./Macbuntu/fonts/mac/*.pfb $pkgdir/usr/share/fonts/Type1
    That is, add the proper paths to the install commands.
    EDIT: or here is one that is at least a lot closer to the right way - though it's the first svn PKGBUILD I've worked on:
    _svn=ttf-mac-fonts
    pkgname=${_svn}-svn
    pkgver=134
    pkgrel=1
    pkgdesc="Mac fonts including Lucida Grande, Apple Garamond and other fonts from Apple"
    arch=('any')
    url="http://www.apple.com/safari/"
    license=('custom')
    depends=()
    makedepends=('subversion')
    conflicts=('macfonts' 'ttf-mac-fonts-svn')
    source=(
    "${_svn}::svn+http://svn.code.sf.net/p/macbuntu/code/Macbuntu/fonts"
    "http://images.apple.com/legal/sla/docs/SafariWindows.pdf"
    sha256sums=(
    'SKIP'
    'd1c9697ea430a3ddad6548c7b9c961c4b06f9da5a5ba1f1007fe998b3354df4a'
    install='ttf-mac-fonts.install'
    pkgver() {
    cd ${srcdir}/${_svn}
    svnversion | tr -d [A-z]
    package() {
    cd ${srcdir}
    install -d $pkgdir/usr/share/licenses/${_svn}
    install -m644 SafariWindows.pdf $pkgdir/usr/share/licenses/${_svn}/
    cd ${srcdir}/${_svn}
    install -d $pkgdir/usr/share/fonts/{TTF,Type1}
    install -m644 gbk/*.ttf $pkgdir/usr/share/fonts/TTF
    install -m644 mac/*.ttf $pkgdir/usr/share/fonts/TTF
    install -m644 mac/*.pfb $pkgdir/usr/share/fonts/Type1
    Last edited by Trilby (2013-08-21 13:35:55)

  • Problem with kernel 2.6.19 and ipw3945 from testing

    After kernel and ipw3945 packages update from testing my wireless network profile isn't working any more so there's something wrong with one of those. Ipw3945 module is loaded but network profile simply fails to start (maybe problems with dhcp?). With kernel and ipw3945 from current everything works fine.
    Anyone has similar problem?

    congyiwu wrote:
    The extra repository seems to already have 1.1.2... I was having the same problem so I ran "pacman -S extra/ipw3945"
    Does anyone know why pacman -Syu doesn't automatically figure out that the version in extra is newer than the version in testing?
    The extra version (i.e. the one that's been upgraded to 1.1.2) was compiled for the kernel26 package in extra (2.6.18), wheras the version in testing was compiled for the kernel26 in testing (2.6.19).  Thus the module in extra won't work if you're using the newer kernel.
    I hope the testing package gets upgraded soon, since it sucks not being able to use wireless!  I tried to update the PKGBUILD myself, but couldn't get a working module...

  • [Solved] Can't install kdemod - problem with xine.desktop

    Hi,
    today I tried to install kdemod, but got some problems with it. It couldn't be installed because of files conflict:
    /usr/share/kde4/services/phonombackends/xine.desktop in 'phonom' and 'kdemod-kdebase-runtime'. What's wrong with it?
    Thanks for your help!
    Edit: Used -f and it's done
    Last edited by blackrain (2009-01-15 22:45:47)

    N30N wrote:
    schuschu wrote:Could someone put a PKGBUILD with patch into the AUR please?
    I've added the patch to the linuxwacom-cvs package.
    Thanks, but I still can't build it:
    patching file src/xdrv/xf86Wacom.c
    Hunk #1 succeeded at 100 with fuzz 2 (offset 10 lines).
    Hunk #2 succeeded at 367 (offset -36 lines).
    Hunk #3 succeeded at 397 (offset -33 lines).
    Hunk #4 succeeded at 555 (offset -33 lines).
    Hunk #5 succeeded at 611 (offset -22 lines).
    Hunk #6 succeeded at 649 (offset -22 lines).
    Hunk #7 succeeded at 667 (offset -22 lines).
    Hunk #8 succeeded at 683 (offset -22 lines).
    Hunk #9 succeeded at 723 (offset -22 lines).
    Hunk #10 succeeded at 750 (offset -22 lines).
    Hunk #11 succeeded at 781 (offset -22 lines).
    Hunk #12 succeeded at 791 (offset -22 lines).
    Hunk #13 succeeded at 823 (offset -22 lines).
    Hunk #14 succeeded at 849 (offset -22 lines).
    Hunk #15 FAILED at 881.
    1 out of 15 hunks FAILED -- saving rejects to file src/xdrv/xf86Wacom.c.rej

  • Is anyone else having problems with the latest updates?

    I Am having a lot of problem with my iPad 2 since updating it to 8.0.2.  Face book app doesn't work nor does Bejeweled Blitz.  Deleted both apps and reinstalled again without success.
    my husbands iPad 2 is updated as well and when he plays his favorite game (spades) a advertisement appears right in the middle of it and he can't get rid of it.
    Any help will be appreciated
    Thank you.

    Hi ..
    Try a reset on both devices.
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.

  • A problem with threads

    I am trying to implement some kind of a server listening for requests. The listener part of the app, is a daemon thread that listens for connections and instantiates a handling daemon thread once it gets some. However, my problem is that i must be able to kill the listening thread at the user's will (say via a sto button). I have done this via the Sun's proposed way, by testing a boolean flag in the loop, which is set to false when i wish to kill the thread. The problem with this thing is the following...
    Once the thread starts excecuting, it will test the flag, find it true and enter the loop. At some point it will LOCK on the server socket waiting for connection. Unless some client actually connects, it will keep on listening indefinatelly whithought ever bothering to check for the flag again (no matter how many times you set the damn thing to false).
    My question is this: Is there any real, non-theoretical, applied way to stop thread in java safely?
    Thank you in advance,
    Lefty

    This was one solution from the socket programming forum, have you tried this??
    public Thread MyThread extends Thread{
         boolean active = true;          
         public void run(){
              ss.setSoTimeout(90);               
              while (active){                   
                   try{                       
                        serverSocket = ss.accept();
                   catch (SocketTimeoutException ste){
                   // do nothing                   
         // interrupt thread           
         public void deactivate(){               
              active = false;
              // you gotta sleep for a time longer than the               
              // accept() timeout to make sure that timeout is finished.               
              try{
                   sleep(91);               
              }catch (InterruptedException ie){            
              interrupt();
    }

  • Problem with Threads and a static variable

    I have a problem with the code below. I am yet to make sure that I understand the problem. Correct me if I am wrong please.
    Code functionality:
    A timer calls SetState every second. It sets the state and sets boolean variable "changed" to true. Then notifies a main process thread to check if the state changed to send a message.
    The problem as far I understand is:
    Assume the timer Thread calls SetState twice before the main process Thread runs. As a result, "changed" is set to true twice. However, since the main process is blocked twice during the two calls to SetState, when it runs it would have the two SetState timer threads blocked on its synchronized body. It will pass the first one, send the message and set "changed" to false since it was true. Now, it will pass the second thread, but here is the problem, "changed" is already set to false. As a result, it won't send the message even though it is supposed to.
    Would you please let me know if my understanding is correct? If so, what would you propose to resolve the problem? Should I call wait some other or should I notify in a different way?
    Thanks,
    B.D.
    Code:
    private static volatile boolean bChanged = false;
    private static Thread objMainProcess;
       protected static void Init(){
            objMainProcess = new Thread() {
                public void run() {
                    while( objMainProcess == Thread.currentThread() ) {
                       GetState();
            objMainProcess.setDaemon( true );
            objMainProcess.start();
        public static void initStatusTimer(){
            if(objTimer == null)
                 objTimer = new javax.swing.Timer( 1000, new java.awt.event.ActionListener(){
                    public void actionPerformed( java.awt.event.ActionEvent evt){
                              SetState();
        private static void SetState(){
            if( objMainProcess == null ) return;
            synchronized( objMainProcess ) {
                bChanged = true;
                try{
                    objMainProcess.notify();
                }catch( IllegalMonitorStateException e ) {}
        private static boolean GetState() {
            if( objMainProcess == null ) return false;
            synchronized( objMainProcess ) {
                if( bChanged) {
                    SendMessage();
                    bChanged = false;
                    return true;
                try {
                    objMainProcess.wait();
                }catch( InterruptedException e ) {}
                return false;
        }

    Thanks DrClap for your reply. Everything you said is right. It is not easy to make them alternate since SetState() could be called from different places where the state could be anything else but a status message. Like a GREETING message for example. It is a handshaking message but not a status message.
    Again as you said, There is a reason I can't call sendMessage() inside setState().
    The only way I was able to do it is by having a counter of the number of notifies that have been called. Every time notify() is called a counter is incremented. Now instead of just checking if "changed" flag is true, I also check if notify counter is greater than zero. If both true, I send the message. If "changed" flag is false, I check again if the notify counter is greater than zero, I send the message. This way it works, but it is kind of a patch than a good design fix. I am yet to find a good solution.
    Thanks,
    B.D.

  • Problem with threads running javaw

    Hi,
    Having a problem with multi thread programming using client server sockets. The program works find when starting the the application in a console using java muti.java , but when using javaw multi.java the program doesnt die and have to kill it in the task manager. The program doesnt display any of my gui error messages either when the server disconnect the client. all works find in a console. any advice on this as I havent been able to understand why this is happening? any comment would be appreciated.
    troy.

    troy,
    Try and post a minimum code sample of your app which
    does not work.
    When using javaw, make sure you redirect the standard
    error and standard output streams to file.
    Graeme.Hi Graeme,
    I dont understand what you mean by redirection to file? some of my code below.
    The code works fine under a console, code is supposed to exit when the client (the other server )disconnects. the problem is that but the clientworker side of the code still works. which under console it doesnt.
    public class Server{
    ServerSocket aServerSocket;
    Socket dianosticsSocket;
    Socket nPortExpress;
    ClientListener aClientListener;
    LinkedList queue = new LinkedList();
    int port = 0;
    int clientPort = 0;
    String clientName = null;
    boolean serverAlive = true;
    * Server constructor generates a server
    * Socket and then starts a client threads.
    * @param aPort      socket port of local machine.
    public Server(int aPort, String aClientName, int aClientPort){
    port = aPort;
    clientName = aClientName;
    clientPort = aClientPort;
    try{
    // create a new thread
    aServerSocket = new ServerSocket(port) ;
    // connect to the nPortExpress
    aClientListener = new ClientListener(InetAddress.getByName(clientName), clientPort, queue,this);
    // aClientListener.setDaemon(true);
    aClientListener.start();
    // start a dianostic port
    DiagnosticsServer aDiagnosticsServer = new DiagnosticsServer(port,queue,aClientListener);
    // System.out.println("Server is running on port " + port + "...");
    // System.out.println("Connect to nPort");
    catch(Exception e)
    // System.out.println("ERROR: Server port " + port + " not available");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Server port " + port + " not available", JOptionPane.ERROR_MESSAGE);
    serverAlive = false;
    System.exit(1);
    while(serverAlive&&aClientListener.hostSocket.isConnected()){
    try{
    // connect the client
    Socket aClient = aServerSocket.accept();
    //System.out.println("open client connection");
    //System.out.println("client local: "+ aClient.getLocalAddress().toString());
    // System.out.println("client localport: "+ aClient.getLocalPort());
    // System.out.println("client : "+ aClient.getInetAddress().toString());
    // System.out.println("client port: "+ aClient.getLocalPort());
    // make a new client thread
    ClientWorker clientThread = new ClientWorker(aClient, queue, aClientListener, false);
    // start thread
    clientThread.start();
    catch(Exception e)
    //System.out.println("ERROR: Client connection failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client connection failure", JOptionPane.ERROR_MESSAGE);
    }// end while
    } // end constructor Server
    void serverExit(){
         JOptionPane.showMessageDialog(null, "Server ","ERROR: nPort Failure", JOptionPane.ERROR_MESSAGE);
         System.exit(1);
    }// end class Server
    *** connect to another server
    public class ClientListener extends Thread{
    InetAddress hostName;
    int hostPort;
    Socket hostSocket;
    BufferedReader in;
    PrintWriter out;
    boolean loggedIn;
    LinkedList queue;      // reference to Server queue
    Server serverRef; // reference to main server
    * ClientListener connects to the host server.
    * @param aHostName is the name of the host eg server name or IP address.
    * @param aHostPort is a port number of the host.
    * @param aLoginName is the users login name.
    public ClientListener(InetAddress aHostName, int aHostPort,LinkedList aQueue,Server aServer)      // reference to Server queue)
    hostName = aHostName;
    hostPort = aHostPort;
    queue = aQueue;
    serverRef = aServer;      
    // connect to the server
    try{
    hostSocket = new Socket(hostName, hostPort);
    catch(IOException e){
    //System.out.println("ERROR: Connection Host Failed");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort Failed", JOptionPane.ERROR_MESSAGE);     
    System.exit(0);
    } // end constructor ClientListener
    ** multi client connection server
    ClientWorker(Socket aSocket,LinkedList aQueue, ClientListener aClientListener, boolean diagnostics){
    queue = aQueue;
    addToQueue(this);
    client = aSocket;
    clientRef = aClientListener;
    aDiagnostic = diagnostics;
    } // end constructor ClientWorker
    * run method is the main loop of the server program
    * in change of handle new client connection as well
    * as handle all messages and errors.
    public void run(){
    boolean alive = true;
    String aSubString = "";
    in = null;
    out = null;
    loginName = "";
    loggedIn = false;
    while (alive && client.isConnected()&& clientRef.hostSocket.isConnected()){
    try{
    in = new BufferedReader(new InputStreamReader(client.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(client.getOutputStream()));
    if(aDiagnostic){
    out.println("WELCOME to diagnostics");
    broadCastDia("Connect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    out.println("WELCOME to Troy's Server");
    broadCastDia("Connect : client "+client.getInetAddress().toString());
         out.flush();
    String line;
    while(((line = in.readLine())!= null)){
    StringTokenizer aStringToken = new StringTokenizer(line, " ");
    if(!aDiagnostic){
    broadCastDia(line);
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    else{
    if(line.equals("GETIPS"))
    getIPs();
    else{
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    } // end while
    catch(Exception e){
    // System.out.println("ERROR:Client Connection reset");
                             JOptionPane.showMessageDialog(null, (e.toString()),"ERROR:Client Connection reset", JOptionPane.ERROR_MESSAGE);     
    try{
    if(aDiagnostic){
    broadCastDia("Disconnect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    broadCastDia("Disconnect : client "+client.getInetAddress().toString());
         out.flush();
    // close the buffers and connection;
    in.close();
    out.close();
    client.close();
    // System.out.println("out");
    // remove from list
    removeThreadQueue(this);
    alive = false;
    catch(Exception e){
    // System.out.println("ERROR: Client Connection reset failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client Connection reset failure", JOptionPane.ERROR_MESSAGE);     
    }// end while
    } // end method run
    * method run - Generates io stream for communicating with the server and
    * starts the client gui. Run also parses the input commands from the server.
    public void run(){
    boolean alive = true;
    try{
    // begin to life the gui
    // aGuiClient = new ClientGui(hostName.getHostName(), hostPort, loginName, this);
    // aGuiClient.show();
    in = new BufferedReader(new InputStreamReader(hostSocket.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(hostSocket.getOutputStream()));
    while (alive && hostSocket.isConnected()){
    String line;
    while(((line = in.readLine())!= null)){
    System.out.println(line);
    broadCast(line);
    } // end while
    } // end while
    catch(Exception e){
    //     System.out.println("ERRORa Connection to host reset");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort reset", JOptionPane.ERROR_MESSAGE);
    try{
    hostSocket.close();
         }catch(Exception a){
         JOptionPane.showMessageDialog(null, (a.toString()),"ERROR: Exception", JOptionPane.ERROR_MESSAGE);
    alive = false;
    System.exit(1);
    } // end method run

  • Problem with threads and camera.

    Hi everybody!
    I've a problem with taking snapshot.
    I would like to display a loading screen after it take snapshot ( sometimes i
    have to wait few seconds after i took snapshot. Propably photo is being taken in time where i have to wait).
    I was trying to use threads but i didn't succeed.
    I made this code:
    display.setCurrent(perform);               
            new Thread(new Runnable(){
                public void run() {               
                    while((!performing.isShown()) && (backgroundCamera.isShown())){
                        Thread.yield();
                    notifyAll();
            }).start();
            new Thread(new Runnable(){
                public void run() {
                    try {
                        this.wait();                   
                    } catch(Exception e) {
                        exceptionHandler(e);
                    photo = camera.snapshot();                               
                    display.setCurrent(displayPhoto);
            }).start();This code is sometimes showing performing screen but sometimes no.
    I don't know why. In my opinion performing.isShown() method isn't working correctly.
    Does anyone have some idea how to use threads here?

    Hi,
    I've finally managed to work this fine.
    The code:
           Object o = new Object();
           display.setCurrent(perform);               
            new Thread(new Runnable(){
                public void run() {               
                    while(!performing.isShown()){
                        Thread.yield();
                   synchronized(o) {
                      o.notify();
            }).start();
            new Thread(new Runnable(){
                public void run() {
                    try {
                        synchronized(o) {
                           o.wait(1);
                    } catch(Exception e) {
                        exceptionHandler(e);
                    photo = camera.snapshot();                               
                    display.setCurrent(displayPhoto);
            }).start();

Maybe you are looking for

  • CoreSync.exe blocks all network traffic while (slowly) syncing my Creative Cloud files

    Hello folks, Since the latest Creative Cloud update (I'm using version 1.9.0.465 as of this writing), I've been unable to successfully sync my Creative Cloud Files folder. First things first, as other forum users have posted elsewhere, when the updat

  • TMS import stops working

    Hi Gurus We have been importing transports into qas client 200 without any problems, we then created client 300 in qas and when we tried to import the transports that were already in the queue, the import started hanging, i checked the logs and saw t

  • How to print (on my printer) an iPhoto iPad created journal

    I have created a series of great journals on my iPad with iPhoto. I now want to print (on my printer) each of the journal pages one by one from each journal. I know I cannot create an iPhoto photo book as I have done on my iMac. Thus this is the 2nd

  • Now that 10.4.6 is out, let's review the upgrade steps

    Every update ever made for Mac OS X has basically been troublefree for me and many others who followed these steps. I am posting this here in the hope of avoiding people posting as many 10.4.6 has killed my computer posts. 1. Backup your data. If uns

  • Why would my account get disabled and how do i get to work again ???

    I guess mine got deactivated and i cant buy anything ... it tells me to go to a certain address on apple.com but i cant find anything there... HELP?? pop up says ( when i try to buy something) You can not buy because your account has been disabled to