Looking for a C compiler

hi
For my course work, I am looking for a freeware C compiler for my Mac laptop (OS 10.6.4).
Which C compiler should I use? Prefer to have a GUI
I am a newbie to Mac
regards

If you join the Developer Center, which is free, you can then download Xcode. Included within Xcode is the GCC compiler. GCC is a "C" complier.
Allan

Similar Messages

  • Looking for JDK binary compiled with debug info

    For some reason JTree.startEditingAtPath() is not doing what I expect, and I'd like to step through the JDK code to see what's going on. Back with Java 5 there were debug builds of the JDK that would let me do this. I've been searching, but cannot find the equivalent for Java 6. Are there still debug binaries out there I can grab (and not have to compile the JDK myself)?

    JDK is open source. Just get the source and step through it in your debugger.

  • Looking for someone with ios developer account who can compile and test my app on ios 8

    Hi,
    my ios developer account expired.
    Before I renew it i want to be sure that my app will still run on ios 8
    It's a flex app , downloadable  on google code : Source Checkout - helpdiabetes-air - HelpDiabetes written for Adobe AIR - Google Project Hosting
    So i'm looking for some one with flash builder installed, with the latest flex sdk (4.13) , an ios developer account and a device with ios 8, who wants to build and install the app for me.
    See if it runs.
    thanks,
    Johan

    I have to say this is the hardest thing to diagnose that I have come up against over the past 10 years! Completely out of ideas.
    If this was just the Intuos3 with the mouse on my G5 then I would just say it is a bad mouse switch, but when a different mouse on two different tablets (Intuos 2 and Intuos3) are both exhibiting the same behavior on two different computers (a G4 Laptop and a G5 Tower) - then something is wrong.
    The only other thing I have done to both computers recently is I installed Adobe CS3. Have any of you that have responded also installed CS3?
    This is not a Wacom Driver issue, because if you plug in a tablet without the Wacom Driver installed, the mouse should still work like a standard mouse and I am having trouble even then. Even during a restart of the computer as soon as the Wacom tablet blue light comes on - even before the desktop appears, if I hold down the mouse button the tablet will irratically flicker between blue (receiving power from USB) to green (mouse button engaged)? (Again it does not do this with the Pen - it always works fine - just any Wacom mouse).
    If it were a USB power issue the tablet light would go off and on, but it doesn't - one of the LEDs is always lit. If it were a tablet grid issue, the Pen would also display the same symptoms - it doesn't. It acts like the mouse does not have enough "consistent power" output to keep the grid engaged when activated which would be easily explained by a bad mouse switch or for sure if the mouse had a bad battery, but I don't think the mouse has a battery does it? And none of this explains why I am getting this on two tablets with two mice (unless the mouse actually does have a battery and both are bad)?
    Anyway I am 95% sure this is a communication problem between the mouse and the tablet - not the tablet and the computer and Driver is not in the equation.
    Really stumped.

  • I'm looking for a new small, efficient media player.

    Hi there.
    The background that will give you insight into my situation but doesn't need to be read
    I come from a very cushioned past media-wise. When I really started to get into listening to music I was still using Windows. It was Winamp first, which I liked but found a little much, but a few coincidences later found XMPlay, a free but closed-source media player capable of playing not only some weird file formats such as MO3, MOD, IT, XM, S3M etc, of which I have a few files in this format, but also MP3, OGG, WAV, and all the other general stuff out there. The timing was just perfect and I "grew" into my "media years" with this player. I used it across my transition from Win98 to XP, and also used it on a Win95 laptop - and I don't even think I had to "help" the system "like" the player to make it work, although I could be wrong.
    However, XMPlay has no Linux version, and as far as I can see, no porting is planned. And as I said before, it's closed source, so not much can be done there.
    In my setup I had a machine set aside for media playback because it had a SB16 in it, and I'd run it with the bass set to 100% and treble set to 0%. Despite what you might think, the output was awesome with headphones - it could give me a good headache or two without distorting at all.
    So, when I first switched to Linux, I didn't initially switch this machine over, but left it running Win98. This got to me in the end so I switched it over... and immediately faced issues. Since there was no port of XMPlay, I needed to find a new player, and fast. XMPlay has a bunch of audio postprocessing features I had enabled, none of which I found support or equivalents for in Linux (for example, an EQ setting promoting bassboost, in addition to that provided by the card - you can understand the headaches). I eventually gave up and ran XMPlay using WINE... and left it that way, for several months. I mean, it worked, didn't it? Then the fact that XMPlay over WINE on a 450MHz processor (it's a P3, haha) used 50%+ CPU -minimum- for the player to even be running (IIRC) got to me, so I decided once again that a new player had to be found. After some digging, I found XMMS to be the most likely candidate (it supports LADSPA and I could configure a bass-boost filter), and for the most part, it worked well. Quite well.
    Then... after I recently found myself recording some audio from the SB16's output to my main machine's input (the simplest way to get around the issue that the bass boost isn't very easy to feed back into the card - or impossible, I haven't tried it for so long), and had my headphones connected to my desktop to monitor the recording. Then, after that was done, I somehow started listening to some other piece of music (through my main box), for whatever reason. I immediately noticed a rather stark contrast in quality to what I'd recorded from the SB16 and what I was listening to. A doublecheck later confirmed that yes, my SB16 was of terrible quality, and yes, I needed a solution, since I wasn't gonna listen to that kinda sound quality anymore now that I knew.
    Over the past few weeks (months?) up until this point I've slowly been weaning myself off the music I liked so much (XMs and MODs, and maybe the occasional S3M), and the postprocessing features I thought had glued themselves into my ears....
    The, uh, like, point.
    ....so I need a media player that doesn't have much in terms of sound processing, but meets all the following requirements, either built in or as a plugin (as logically applicable):
    * Can hide completely, leaving only a hotkey to bring it back. I don't use a system tray and don't want to, for any purpose.
    * Is written in a compiled language.
    * Has configurable global hotkey support
    * Isn't bloated, dependancy-wise, filesize or memory-wise, or desktop-real-estate-wise - something that uses basic C and has a basic GUI preferred
    * Controls the hardware volume so that volume changes are instant
    * Supports tracks longer than 60 minutes / 1 hour
    * Has good file management / playlist support
    * Is something I can throw a gigantic directory tree at and expect to load all the music in it, FAST. I could throw my entire 32GB HDD at XMPlay when I wanted to see/remember what new music was on it and I'd just leave it alone for slightly under 5 minutes. When I returned to it, bam, playlist. That was on the 450MHz P3, running Win98. XMPlay also gave me feedback - if you can recommend something that shows me where it is on the filesystem, that'd be great.
    Up until now, Audacious has met those requirements. But it's had the following issues:
    * The track details window won't open for random tracks
    * The time display stuffs up for tracks longer than >60m, showing the position at 0:59, then, 1:40, then after 10 minutes have passed 1:41, etc
    * The volume control randomly forgets how to change the volume, and I refuse to change the controller to use a software volume since it'll induce delays
    * The system has no ability to add directories recursively - this was present in XMMS, but the BMP guys removed it (?!?!?!) and since Audacious is a fork of BMP, ...
    * The latest version's global hotkeys plugin restores the window to a non-changeable location when I use the "toggle player windows" function. As a visual person I find this a huge blocker.
    Now for the list of players that don't do what I want. XD
    * mpd - expects all your files to be in one folder; mine are everywhere, even thrown across sshfs mounts to other systems.
    * audacious - ...
    * xmms - too boring. GTK1. old stuff. unsupported.
    * xmms2 - seems too "unreachable". I haven't tried this player yet, mostly because Arch has no clients in the repos. *stab*
    * banshee - 200TB of dependencies, and it needs 400TB of RAM to run. Read: I dislike Mono.
    * rhythmbox, banshee, amarok, exaile, quod libet - iTunes-ey UI. I hate iTunes-ey UIs.
    * songbird - depends on the Gecko rendering engine. I have 512MB RAM, and I already run Firefox, thanks.
    * bmp, xmms, audacious - winamp-ey UI. I want to move away from winamp-ey UIs.
    If you have any suggestions... I'll be amazed.
    -dav7
    Last edited by dav7 (2008-09-09 12:55:22)

    * Can hide completely, leaving only a hotkey to bring it back. I don't use a system tray and don't want to, for any purpose.
    Sonata, disable system tray icon, modify any panel settings to ignore it
    * Is written in a compiled language.
    mpd is written in C
    * Has configurable global hotkey support
    Set up keybindings for mpc commands
    * Isn't bloated, dependancy-wise, filesize or memory-wise, or desktop-real-estate-wise - something that uses basic C and has a basic GUI preferred
    mpd uses basic C, many, many GUIs for it around, extremely small memory footprint
    * Controls the hardware volume so that volume changes are instant
    Keybind alsamixer commands
    * Supports tracks longer than 60 minutes / 1 hour
    Is there a modern media player that doesn't do this?
    * Has good file management / playlist support
    I never use mpd's playlist capabilities, but they do seem fairly extensive.
    * mpd - expects all your files to be in one folder; mine are everywhere, evn thrown across sshfs mounts to other systems.
    Apparently you have never heard of symbolic links. OH SNAP! Just create a single directory to collect all the links in. Also, mpd does not expect everything to be in one folder; it expects everything to be available from one parent folder, allowing you to organize beneath that parent.
    The problem you're having isn't that you're looking for a music player, you're looking for a wm/media player/file manager, and that just doesn't exist on Linux, largely because we are sane (for the sake of argument, ignore Songbird right now, I don't think any of us are crazy enough to use it anyways). Like looking for a zebroctonoceros, even though a zebra exists, an octopus exists, and a rhinoceros exists, they do not exist in the same creature. For interfacing with X (keybindings and the disappearing music player), you're better off going through a configurable wm like Openbox. For the actual music playing, well, I don't see any problems with mpd besides your music files being messy, and you can't expect music playing software to solve a personal organization problem. If your file system is messy, then use a file manager to fix it, not your mp3 player. I put a lot of effort into keeping my music files properly tagged and accessible from a single top level directory called music, which then splits off into mp3/ogg files, flac files, podcasts, etc, and that largely solves the problem of wondering where s--t is.
    Another idea for you, if you have multiple machines. Collect all your music onto a single machine, and then set up that system to serve exclusively as an mpd jukebox you can listen to from your other computers over the network. Give it a try.
    Last edited by coarseSand (2008-09-11 16:03:31)

  • What to look for in a web hosting company for Flex applications

    Hello,
    I am trying to figure out what I need to look for in a web
    hosting company if I want to deploy my own Flex applications? I
    don't anticipate having any special requirements other than the
    ability to interact with databases and XML files. Can someone help
    me figure out what the server-side requirements are?
    Thanks in advance!
    Matt

    then almost 99.9% hosting will work.
    if you want a Flexx app with compiler then oo thats different
    but as you say "I don't anticipate having any special requirements
    other than the ability to interact with databases and XML files"
    then you can go with pretty much any hosting, as long as they have
    apache, Database serve and I think thats it.

  • Upgrading to uber SDO_GEOMETRY, looking for comments

    Good morning folks,
    I see the new thread from Dalibor discussing an issue with what I am calling "uber" SDO_GEOMETRY - anyone got a better name?
    Uber SDO_GEOMETRY is described here
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e11830/sdo_migrat.htm#CHDBCHBG
    Dalibor wins some kind of prize for the first time anyone has brought up uber SDO on the forum since the old thread ran its course years back
    Re: SDO_GEOMETRY size limits here to stay?
    Coincidentally this past week was my first shot at trying out the upgrade script and I thought I might post my experiences and see if anyone would have comments. This was just a test machine and I agree that each major error could have been followed up with a SR. But my overall goal is to determine if installing and running uber SDO_GEOMETRY is feasible in my production environment, so for better or worse these experiences are building those recommendations.
    So I am not much interested in going much in length why anyone would want to upgrade. I think the old thread covers it. For my work at least, the issues have not gone away. No question a polygon with millions of vertices is nutty, but they are out there all over the place and growing in number each year. Here are two additional datasets I am working with that are "over the top" for normal SDO:
    * National Wetlands Inventory (http://www.fws.gov/wetlands/data/DataDownload.html) - Largest polygon has 1,210,907 vertices.
    * FEMA National Flood Hazard Layer (http://www.msc.fema.gov/webapp/wcs/stores/servlet/info?storeId=10001&catalogId=10001&langId=-1&content=nfhlResources&title=NFHL%20Resources) - Largest polygon has 1,537,698 vertices.
    My current procedure is to load the datasets using ESRI's geometry format, identify the biggies, export the remainder and then reimport them as SDO_GEOMETRY.
    E.g. toss the big polygons away and explain to my clients that Oracle Spatial cannot handle this type of thing.
    My production instances remain on 10g so uber SDO is not yet a possibility but I am trying to think ahead.
    So back to the present. I started with a fresh 11gR2 (no upgrade history) running PSU 11.2.0.1.2 on OpenSUSE on a rather modest machine with two processors and four gig of RAM. I have about 100 gig of Oracle Spatial data on this machine. Basically I ended up running the upgrade script four times of the course of about 5 days, each run required about 30 hours to process. Here are some notes:
    * Make sure you spool the results! The script is quite "verbose" and does not have any error checking so the ALTER TYPE CASCADE part can fail but the script continues recompiling packages and rebuilding all your indexes. This is good in that the system is put back together whether it bombs or not. Bad in that you can waste a lot of time waiting to rerun the script.
    * You need lots of undo! The first time it ran through it appeared to finish and it was not until I looked at the logs did I see that I ran out of undo. I just had a single smallfile undo and it topped out at 32 gig. In the end I created 4 undo datafiles and it appears I needed 100 gig of undo! So I believe you need as much undo as you have SDO_GEOMETRY data. The first thing you want to do afterwards is DESCRIBE MDSYS.SDO_ORDINATE_ARRAY to see if the type was altered. If you see the usual 1048576 then you bombed.
    * Second time through I received an error that I had some spatial indexes in a failed state. Turns out as this is a development box there was an index stuck in "INPROGRS" state due to some flub on my part. This was enough to hose the upgrade. I would suggest folks check for this ahead of time using SELECT * FROM dba_indexes WHERE index_type = 'DOMAIN' AND domidx_status != 'VALID' and drop or rebuild those indexes.
    * Third time through I received the cryptic error
    ERROR at line 1:
    ORA-22324: altered type has compilation errors
    ORA-22332: a dependent object in schema "NAVTEQ_SF" has errors.
    ORA-00600: internal error code, arguments: [qctostiix1], [], [], [], [], [],
    [], [], [], [], [], []I had some sample Navteq data for use with the networking demo I never got functioning. At this point after four days of trying I was getting a bit impatient and just decided to drop that schema and try again. I have no idea why this navteg data caused an issue but the error never happened again with any other datasets.
    * Fourth time through the alter type worked! But the script still crashed with
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [qximgcn1], [], [], [], [], [], [],
    ORA-06512: at line 14After eyeballing the script and the spool file it looks like it failed in the final step where it rebuilds all the spatial indexes. This seems right as I found sixty seven bad spatial indexes afterwards. However, it was easy enough to rebuild those by hand myself (I mean have ArcSDE do so).
    So I call this a success! :)
    So I am looking for anyone else's experiences they'd like to share.
    With the amount of undo required, I think it might be a better route to just use the old school exp to export out all spatial data, run the upgrade and then imp it all back in? Or perhaps just dump out the large tables? Weird 00600 errors cause the DBAs (not part of my organization) that manage my production environment to bleed internally. Ideally I would like to avoid all that pain and suffering. Perhaps just dropping ALL the spatial indexes before the upgrade? I guess I would need to open an SR to see what caused the 00600s. I suspect the indexes.
    So I would like to keep this thread tied to the upgrade process and/or planning/strategy for the upgrade process. There are a lot of other issues that we should start new threads over. For example, exchange of data between standard and uber instances as Dalibor is doing. It sure appears that datapump is never going to work and that only the old-school unsupported imp/exp utility can play this role? I have done some initial testing and ESRI's sdeimport/sdeexport tools seems to work fine between these instances. And none of this even scratches the performance issues.
    So hey Dalibor, I know you went through this. Any comments?
    Cheers!
    Paul

    Hi Mike,
    Nice to hear from you. I would indeed be interested in your thoughts on the upgrade and the actual business case surrounding the upgrade or the decision not to upgrade. I am feeling rather skeptical at this point as the side-effects of the medicine so far are pretty serious. But yet the need to treat the disease remains. You can always drop me an email offline at my first name at my last name dot com or via LinkedIn. The nice things about a super-rare unpronounceable Polish last name is I am easy to find - and that's the bad thing too. Here is an update on my testing.
    Per my earlier SR, the folks are Oracle have provided a backport for bug 10085580 for Linux 32-bit. It looks to work just fine and does the trick - problem solved. If one needs something other than Linux you will need to request the backport for your platform. The bug affects more than SDO_GEORASTER so I would recommend this patch as mandatory.
    Moving along my next issue is that Oracle MapViewer does not seem to work with uber SDO_GEOMETRY.
    MapViewer and uber (Very Large) SDO_GEOMETRY upgrade not compatible?
    This is again a bit of a nonstarter as my client has a couple of applications using MapViewer against production instances. I dutifully submitted an SR on the matter yesterday. Almost to be expected the tech immediately asked why I would want to have such a large geometry and why don't I thin it! :)
    It's no fun being in the middle on these things. I suppose I could ring up FEMA or Fish and Wildlife and tell them Oracle Corporation thinks their polygons are crazy. But as they are ESRI-shop folks, I think they would just be puzzled by the statement. If anyone has an opinion on how to broach the topic nicely with public agencies, I would love to hear it. Do we need to create a "citizens against huge polygons" lobby in DC? Again the ESRI shop folks are smirking.
    The other issue in the thread started by Dalibor where the old imp/exp is erratically failing on the table creation statements is probably going to need an SR too. The work around is to just append the data and create your tables by hand ahead of time. On a more positive note ArcSDE seems utterly oblivious to the type change and I have not found any problems using ESRI tools to move stuff around.
    Cheers,
    Paul

  • Looking for a real "BitSet"

    Hi all,
    I'm looking for an efficient set implementation based on bit vectors. BitSet doesn't support the set interface. EnumSet requires you to know the set of elements at compile time, which I don't.
    I guess I could subclass BitSet, implementing the Set interface, but I was hoping someone could point me toward an existing solution.
    Thanks!
    David

    I didn't find anything in the Jakarta collections. So I went ahead and implemented a "FixedSet" which is like EnumSet but is based on a collection that specifies the universe at runtime, instead of an enum that specifies the universe at compile time.
    For example:
    HashSet<String> universe = new HashSet<String>;
    universe.add("a");
    universe.add("b");
    universe.add("c");
    universe.add("d");
    universe.add("e");
    // Fast bit vector based implementation
    FixedSet<X> fixedSet = FixedSet.noneOf(universe);
    fixedSet.add("a");
    // Throws "element not in universe" exception
    fixedSet.contains("z");To test the performance, I created a universe of 150 enumerated values, then a set containing 100 values. Then I ran "contains" 30M times for 100 elements, 50 of which were in the set. Results:
    TreeSet: 25 seconds
    EnumSet: 2 seconds
    FixedSet: 10 seconds
    Profiling the code, the performance loss seems to be in a HashMap I use to map the Object to its index into the array of all elements. e.g.:
    public abstract class FixedSet<E> extends AbstractSet<E>
      implements Cloneable, java.io.Serializable
      // All of the values comprising E for this set.
      protected E[] universe;
      // For reverse lookup
      protected Hashtable<E,Integer> ordinal;I have to do this because E doesn't necessarily have an ordinal value (EnumSet uses Enum.ordinal()). Unfortunately the hash lookup is now a bottleneck.
    This brings me to my next question: I was thinking of replacing the hashtable by creating an inner class that extends E and adds an ordinal value that I initialize during creation of the FixedSet. e.g.:
    public abstract class FixedSet<E> extends AbstractSet<E>
      implements Cloneable, java.io.Serializable
      // All of the values comprising E for this set.
      protected EOrdinal[] universe;
      protected class EOrdinal extends E {
        int ordinal;
        int ordinal() { return ordinal; }
      }The compiler doesn't like this. Can anyone suggest a solution?

  • [SOLVED] makepkg error: Why is it looking for '.part' files?

    I've been seeing the following problem with every package I try to build with makepkg.  The download works, but then makepkg complains that it can't find the source file:
    ==> Making package: android-sdk r20-2 (Fri Jun 29 11:01:35 CDT 2012)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    -> Downloading android-sdk_r20-linux.tgz...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 78.7M 100 78.7M 0 0 1640k 0 0:00:49 0:00:49 --:--:-- 2166k
    mv: cannot stat ‘/usr/local/src/android-sdk_r20-linux.tgz.part’: No such file or directory
    ==> ERROR: Failure while downloading android-sdk_r20-linux.tgz
    Aborting...
    Why is it looking for the .part file, instead of the .tgz file?  When I run makepkg again, without doing anything in between, it finds the .tgz file and goes on its merry way.
    I'm using curl, and I haven't tried wget.  Judging by my unscientific sample of forum posts it looks like wget is the de facto standard, so this may not be on anyone else's radar.
    Here's my makepkg.conf:
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    # Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
    'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
    'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
    'rsync::/usr/bin/rsync -z %u %o'
    'scp::/usr/bin/scp -C %u %o')
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/wget
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    #-- Compiler and Linker Flags
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
    CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
    LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
    #-- Make Flags: change this for DistCC/SMP systems
    MAKEFLAGS="-j4"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign)
    # A negated environment option will do the opposite of the comments below.
    #-- fakeroot: Allow building packages as a non-root user
    #-- distcc: Use the Distributed C/C++/ObjC compiler
    #-- color: Colorize output messages
    #-- ccache: Use ccache to cache compilation
    #-- check: Run the check() function if present in the PKGBUILD
    #-- sign: Generate PGP signature file
    BUILDENV=(fakeroot !distcc color !ccache check !sign)
    #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
    #-- specify a space-delimited list of hosts running in the DistCC cluster.
    #DISTCC_HOSTS=""
    #-- Specify a directory for package building.
    #BUILDDIR=/tmp/makepkg
    # GLOBAL PACKAGE OPTIONS
    # These are default values for the options=() settings
    # Default: OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
    # A negated option will do the opposite of the comments below.
    #-- strip: Strip symbols from binaries/libraries
    #-- docs: Save doc directories specified by DOC_DIRS
    #-- libtool: Leave libtool (.la) files in packages
    #-- emptydirs: Leave empty directories in packages
    #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
    #-- purge: Remove files specified by PURGE_TARGETS
    #-- upx: Compress binary executable files using UPX
    OPTIONS=(strip docs !libtool emptydirs zipman purge !upx)
    #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
    INTEGRITY_CHECK=(md5)
    #-- Options to be used when stripping binaries. See `man strip' for details.
    STRIP_BINARIES="--strip-all"
    #-- Options to be used when stripping shared libraries. See `man strip' for details.
    STRIP_SHARED="--strip-unneeded"
    #-- Options to be used when stripping static libraries. See `man strip' for details.
    STRIP_STATIC="--strip-debug"
    #-- Manual (man and info) directories to compress (if zipman is specified)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    #-- Doc directories to remove (if !docs is specified)
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    #-- Files to be removed from all packages (if purge is specified)
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    # PACKAGE OUTPUT
    # Default: put built package and cached source in build directory
    #-- Destination: specify a fixed directory where all packages will be placed
    PKGDEST=/usr/local/pkgs
    #-- Source cache: specify a fixed directory where source files will be cached
    SRCDEST=/usr/local/src
    #-- Source packages: specify a fixed directory where all src packages will be placed
    #SRCPKGDEST=/home/srcpackages
    #-- Packager: name/email of the person or organization building packages
    PACKAGER="Whitney Marshall <[email protected]>"
    #-- Specify a key to use for package signing
    GPGKEY="E4FB694E"
    # EXTENSION DEFAULTS
    # WARNING: Do NOT modify these variables unless you know what you are
    # doing.
    PKGEXT='.pkg.tar.xz'
    SRCEXT='.src.tar.gz'
    # vim: set ft=sh ts=2 sw=2 et:
    Last edited by wmarshall (2012-07-02 15:39:16)

    It looks like this code is the culprit.  I don't have time to dig into it right now, but presumably this works with wget.  I would have thought any cmdline downloader would manage renaming the .part file itself...?
    makepkg, lines 395-417 (pacman 4.0.3-2):
    395 # replace %o by the temporary dlfile if it exists
    396 if [[ $dlcmd = *%o* ]]; then
    397 dlcmd=${dlcmd//\%o/\"$file.part\"}
    398 dlfile="$file.part"
    399 fi
    414 # rename the temporary download file to the final destination
    415 if [[ $dlfile != "$file" ]]; then
    416 mv -f "$SRCDEST/$dlfile" "$SRCDEST/$file"
    417 fi

  • First PKGBUILD - looking for review

    Hello all,
    I have created my first PKGBUILD for some new scientific computing libraries and corresponding examples related to my field. I am looking for input before submitting this to the authors for inclusion on their site (and possibly to the AUR if there ends up being more interest).
    Anyway, here is what I have so far, which seems to work on my system:
    PKGBUILD:
    pkgname=ismrmrd-git
    pkgver=20121030
    pkgrel=1
    pkgdesc="Libraries and examples for the proposed ISMRM Raw Data format"
    url="http://ismrmrd.sourceforge.net"
    arch=('any')
    license=('unknown')
    depends=('hdf5-fortran-cxx'
    'boost-libs'
    'xsd'
    'xerces-c')
    optdepends=('fftw: used to compile example programs'
    'doxygen: only needed if you want to produce your own copy of the documentation')
    makedepends=('unzip'
    'git'
    'cmake')
    # install="${pkgname}.install"
    # source=("http://www.syntax-on.com/static/$pkgname/$pkgname-$pkgver.tar.gz")
    # source=("http://downloads.sourceforge.net/project/ismrmrd/src/${pkgname}_${pkgver}.zip")
    source=("cmakelists.diff")
    noextract=("${pkgname}_${pkgver}.zip")
    md5sums=("9ec7ed899e488961826fa41da7109a84")
    _gitroot="git://git.code.sf.net/p/ismrmrd/code"
    _gitname="ismrmrd"
    build() {
    cd "${srcdir}"
    # unzip ${pkgname}_${pkgver}.zip -d ${pkgname}-${pkgver}
    msg "Connecting to GIT server..."
    if [ -d $_gitname ] ; then
    cd $_gitname && git pull origin
    msg "Local files have been updated"
    else
    git clone $_gitroot "${srcdir}/$_gitname"
    fi
    msg "Received code from GIT or server timed out"
    # stop CMakeLists.txt appending an unwanted dir to the CMAKE_INSTALL_PREFIX
    # also prevent install of /usr/cmake/FindIsmrmrd.cmake
    msg "Patching CMakeLists.txt to comply with Arch Packaging Standards..."
    cd "${srcdir}/${_gitname}"
    patch < ${startdir}/cmakelists.diff --forward
    # start the build
    mkdir "${srcdir}/${_gitname}/build" -p
    cd "${srcdir}/${_gitname}/build"
    msg "Starting cmake..."
    cmake -DCMAKE_INSTALL_PREFIX=/usr ../
    msg "Starting make..."
    make
    package() {
    cd "${srcdir}/${_gitname}/build"
    make DESTDIR="${pkgdir}/" install
    cmakelists.diff
    --- src/ismrmrd-latest/CMakeLists.txt 2012-10-30 11:48:03.332945241 -0500
    +++ src/ismrmrd-latest/CMakeLists_mod.txt 2012-10-30 11:48:27.619612710 -0500
    @@ -10,7 +10,7 @@
    endif (WIN32)
    -set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/ismrmrd)
    +# set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/ismrmrd)
    list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
    find_package(XSD REQUIRED)
    @@ -69,7 +69,7 @@
    INSTALL(FILES ismrmrd.h ${XSDS_SOURCES} ismrmrd_hdf5.h ismrmrd_hdf5_datatypes.h ismrmrd_export.h DESTINATION include)
    INSTALL(FILES schema/ismrmrd.xsd DESTINATION schema)
    -INSTALL(FILES cmake/FindIsmrmrd.cmake DESTINATION cmake)
    +# INSTALL(FILES cmake/FindIsmrmrd.cmake DESTINATION cmake)
    INSTALL(TARGETS ismrmrd DESTINATION lib)
    INSTALL(TARGETS ismrmrd_xsd DESTINATION lib)
    I'm not using any .install file, is this something big I am missing? Again, this is my first time writing a PKGBUILD, so I appreciate any feedback. Thanks!

    Thanks - I will take note for future packages, or if I end up using a non-git version. makepkg seemed to not be able to handle the zip file itself, though. If I re-hosted the source myself in a tarball it worked, but on the authors' site I could only find it as a zip.
    My main question is still about installation location, though. This typically installs itself in:
    /usr/local/ismrmrd/bin
    /usr/local/ismrmrd/lib
    /usr/local/ismrmrd/include
    /usr/local/ismrmrd/schema
    /usr/local/ismrmrd/cmake
    I was able to change this to:
    /usr/bin
    /usr/lib
    /usr/include
    /usr/schema
    Obviously this prevents cmake/FindIsmrmrd.cmake from being installed at all (not sure this is OK or desirable), It also creates the /usr/schema directory, which I don't think is really standard. Where should I put such files? Should I instead install the whole package into /usr/opt/ismrmrd? It doesn't seem big enough to warrant that, but I don't know where else to put the schema and cmake directories and the associated files. Maybe in /usr/share?
    Last edited by aganders3 (2012-11-07 20:20:40)

  • Looking for someone on x86_64 to test a snippet of C#

    I'm having trouble getting a piece of C# code to work. It's 100% correct and was found working by two users running x86, however on my x86_64 it doesn't.
    It should display an icon in the notification area ('system tray'). For me it won't show the icon in gnome, but neither in openbox + trayer. The other two x86(!) users tested in on Gnome as well, and did get the icon to show up.
    I'm looking for someone else on x86_64 to test this code, to eliminate (or confirm) that it's a very obscure x86_64 bug. Make sure you're fully synched up - that is Mono 1.9.1, with (preferably) Gnome 2.22.3 (but if it won't work on KDE/Xfce/anything else that pretty much identifies the problem as well).
    You can find the 20-line snippet at http://pastebin.com/m4ebdcba6 (save as Test.cs)
    Compiling is easy, `mcs -r:System.Drawing,System.Windows.Forms Test.cs` should do the trick, followed by `mono Test.exe`. You will get a messagebox, and at that time it *should* display the icon.
    Thanks.

    I have Arch64 on Intel Core2Duo, with [testing] repository enabled.
    I use KDE 3.5.9. I could try it with KDE 4-svn later as well
    Mono version: extra/mono-1.9.1-1
    I tried that file and when I disable autohiding of my panel, it works correctly:
    http://img389.imageshack.us/img389/5647/screen1lf1.png
    If I hide the panel manually (by using the hide button on the right), and I show it again, the icon disappears, but the space is still occupied:
    http://img519.imageshack.us/img519/473/screen3on2.png
    When I have auto-hiding disabled, it appears fine (just like in the first picture), but when the panel hides and appears again I get black rectangle:
    http://img242.imageshack.us/img242/3091/screen2ye7.png
    The first time I tried it, the rectangle was white instead
    Last edited by tanis (2008-07-15 16:16:06)

  • Looking for sample code to create my own pub/sub!

    I am a new bee in JMS. So I would really appreciate if
    some one could give me some hint to start up with my school project. I am looking for a sample Java code that will:
    For the Publisher:
    1. Connect to a broker [create it, if it does not exist]
    2. Create a publisher/destination.
    3. Create a pub-sub queue
    4. Publish a message
    5. Ack or Nak depending on if the subscriber got or did not get the message.
    For the Subscriber:
    1. Connect to a broker [create it, if it does not exist]
    2. Subscribe to the broker
    3. Subscribe to the Queue
    4. Show an received messages on the console.
    Here are the command line params for both the Publisher and subscriber:
    runPub 127.0.0.1:7676 myTestBroker myQueue "this is my message"
    runSub 127.0.0.1:7676 myTestBroker myQueue
    Please tell me if there are similar java code that will do all this and work with ANY JMS compatible client. i.e. I should not have to use the Admin tool of any JMS Server (MQSeries, iPlanet, SonicMQ etc etc). The code should follow the JMS spec and do this programmatically.
    Thank you very very much in advance for doing this great favor.
    With regards,
    Amir.

    Thanks a lot for that hint. I think that's a great tutorial for a beginner. I could compile those sample codes from chapter 4 with out any problem, but could not run it. I also installed j2sdkee1.3.1 and updated my classpath according to the spec. But when I tried to run the "j2ee -verbose" command it was giving me the following error message:
    ERROR: Set J2EE_HOME before running this script.
    Any advise for me that I should follow next. Thanks again.

  • Where to start looking for _JVM_SupportsCX8@0  error

    I compiled a Java applet with jdk1.1.8 that html runs fine on Explorer 6.0.2800...
    but when I run on Netscape 7.0 I get an error:
    The procedure entry point JVMSupportsCX8@0 could not be located in the dynamic link library jvm.dll
    I need a suggestion where to start looking for a solution.
    Netscape or

    You might need to use the Object & Embed tags rather than the Applet tag in your HTML. IE allows you use sun's JVM for the Applet tag, but I don't know about Netscape. Look for HTMLConverter to convert HTML files that support both tags.

  • Looking for information about AS3 sound classes in "audio" wrong places?

    I'm looking for in depth information about ActionScript 3.0 sound classes. No matter where I search I continually encounter the same sort of kindergarten level descriptions, which never teach more than what we can readily glean from Adobe's documentation. Someone must know where there a discussion that really gets to the heart of the matter.
    I've read Adobe's LiveDocs on the Sound, SoundChannel, SoundMixer, SoundTransform classes. Indeed, they provided me enough guidance to create my own streaming MP3 player, with volume, pan, my own custom mono mix, http request, a preloading animation, and peak meters ...
    Here's an example (in the last statement of the following code) where I understand the end effect, but I fail to comprehend what happens at the compiler level:
    var currentSoundSource:Sound = new Sound();
    currentSoundSource.load(new URLRequest("http://www.mySite.com/myRecording.mp3"));
    var audioChannel_01:SoundChannel = new SoundChannel();
    audioChannel_01 = currentSoundSource.play();
    Unfortunately the class definitions in LiveDocs are quite terse, and they're seemingly incomplete with respect to:
         •     advice on best practices
         •     a thorough coverage of class to class interactivity
         •     a description of exactly how audio streams/plays into channels
    ... and in certain cases it appears that Adobe's descriptions are not fully accurate.*
    Regarding best practices, at first blush I'm sure everyone ponders over the fact that SoundChannel and SoundMixer have a stop method while the Sound class does not.
    One assumes that this surprising design must bear some advantages. If so,  what are they? Where are the analog sound mixer analogies? What would be the disadvantage of a sound class with a stop method ...  particularly when they have their own play method?
    Where are the discussion of these concepts? (Even if Adobe hired the wrong guy to write its sound classes, there should be some follow through that thoroughly explains the existing situation.)
    Phrankie
    * Here's an instance where the docs appear to be partially in error. (Is "and play" mistakenly included in the following?)
    "The Sound class lets you lets you create a new Sound object [and] load and play an external MP3 file into that object."
    ... uh, mmmmmm ... we play an MP3 into a sound class object?
    Wouldn't it be more accurate to say the following:
    A soundChannel can receive the audio data from a sound class object. We can play a sound object into an SoundChannel and manipulate it by altering the SoundChannel's soundTransform property, and we can stop it with the SoundChannel's stop method. 

    check everything you can find written by tinic uro.  this will get you started:  http://www.kaourantin.net/

  • Looking for applications written using CLDC.

    Dear all,
    I want to find some opensource Java application*s* written using CLDC. It is because I want to test the optimization of Squawk. Squawk only compiles Java files (not class files) written using CLDC.
    Can you please give me some links pointing to CLDC based applications with Java source files.
    Looking for your reply,

    Dear all,
    I want to find some opensource Java application*s* written using CLDC. It is because I want to test the optimization of Squawk. Squawk only compiles Java files (not class files) written using CLDC.
    Can you please give me some links pointing to CLDC based applications with Java source files.
    Looking for your reply,

  • Digikam update - should I look for a (slimmer) replacement?

    Hi!
    I'm using Xfce and Digikam, so I have a few parts of the kde libs installed to make it work. Today I was checking the packages to be updated, and there's a new version of digikam. The thing is, that it comes with 320Mb other stuff, needed by kdegraphics, kdepimlibs, and kdelibs.
      Since it's an EeePC, I don't have much space anyway, and been wondering, is this 320Mb a replacement of some of the libraries (thus not entirely newly occupied space) or pure "fattening"? Because if I need >300Mb just to download the pictures from my camera, then maybe it's time to look for something slimmer....
      Or can digikam compiled such that it's include all necessary libraries and won't need all the ballast?
      Cheers!

    ise wrote:the "problem" is that digikam needs libkexiv2 and libkdcraw, both libraries are provided by kdegraphics. kdepimlibs is needed for some plugins in kipi-plugins and kdelibs is needed because of kdegraphics. No way to have this thing smaller. I'm not so happy with the dependencies, too, but no way to make it smaller. Maybe you find the standalone libraries on the internet and you can compile against them, but since KDE4 those were included into kdegraphics.
    If there's no way to make it smaller, then there's some serious problem with this dependency-web. I mean there are a number of 3rd degree dependencies even (e.g. kdegraphics  -> ebook-tools -> libzip) just to get it work...
    Is it because of the internal reorganization of the KDE4 libraries?
    ise wrote:Smaller/slimmer replacements could be:
    f-spot (needs mono)
    gthumb
    Cheers for the suggestions. f-spot looks better.but it comes with 120Mb "package" of dependencies. The previous digikam is 33Mb, the new 320Mb, gthumb is 8Mb...
    Tried gthumb, and it's pretty bare - but that's mostly what I'd need anyway, a downloader. If it had a way to show which pictures were already downloaded and which are new, then it would be total sweetness. So maybe I'll check out some source code later...
    userlander wrote:Try gtkam in XFCE4. It's very light.
    gtkam - 1.5Mb, very light indeed, maybe a bit too much. I'd prefer not to manually browse through the directories on the camera. Will check it out a bit more, though, it was just a quick look. Thanks!
    a0peter wrote:ou could take a look at Intipunku. It is not in AUR, if I had the skills I would do a packagebuild, but I'm still very new to Arch.
    Thanks! It looks interesting, I'll put together a PKGBUILD hopefully over the weekend and let you know.

Maybe you are looking for

  • IPod not playing re-ripped tunes with higher bit-rates

    Since I got my iPod and have more storage I have been slowly re-ripping some of some tunes at a higher bit rate. iTunes doesn't appear to try to sync these songs and re-upload them to the iPod. What happens is that the song stops playing part-way thr

  • Connecting oracle with php

    hi all, i am using Xammp 1.7.4, PHP version 5.3.5, apache 2.2, and oracle 11g. actually i know how to connect MySql using php, but now i am trying to connect oracle using php. Can any 1 tell me the clear cut steps to do the same ?

  • Is it good to use xmlrpc in flash lite 2.1

    Hi Friends, I am new developer to flash lite and i want to use xmlrpc protocol in my Application. So is there any body who can suggest should i use it or not. Regards Ashish

  • HT4623 Unable to connect 4S to itunes via cable

    Unable to connect to Itunes via docking station

  • Having trouble inserting my images

    Hello! I need to find a solution to this problem as soon as possible, because I'm working on my website design final that's due next Monday (12/08/2014). I am having a really difficult time inserting my images. I don't understand why, that's somethin