How to compile opencl on mac 10.8.4 terminal.

How to compile opencl on mac 10.8.4 terminal. I have tired "gcc -o main main.c -framework OpenCL". It cannot work.

I know nothing about that application, but if it needs a Java runtime, you have to install the one distributed by Apple, not the one from Oracle.

Similar Messages

  • How to compile and run java files on a mac using command line?

    can someone tell me or link me to some article on how to compile and run java files from command line on a mac? I have mac OS X leopard

    What do you mean by "where to put them" ? What do you want to put anywhere ?
    Have you read Peter's comment in brackets ? Perhaps you have a classpath problem ?
    Edited by: Michael_Knight on Aug 31, 2008 4:23 AM

  • How can I upgrade my Mac Pro

    Hello,
    I have a Mac Pro. Here are the specs :
    Mac OS X 10.5.8
    MacPro1,1
    NVIDIA GeForce 7300 GT
    When OS 10.6 came out, I found out that I couldn't upgrade to it because of my graphic card. In the technical specifications it is mentioned that :
    OpenCL
    requires one of the following graphics cards or graphics processors:
    NVIDIA GeForce 9400M, GeForce 9600M GT, GeForce 8600M GT, GeForce GT 120, GeForce GT 130, GeForce GTX 285, GeForce 8800 GT, GeForce 8800 GS, Quadro FX 4800, Quadro FX5600
    ATI Radeon 4850, Radeon 4870
    Now, OS 10.5.8 is becoming more and more outdated. I would like to know how can I upgrade my Mac Pro ? What kind of graphic card can I put in ?
    Thank you for any help and/or information !

    Dalfe wrote:
    Hello,
    I have a Mac Pro. Here are the specs :
    Mac OS X 10.5.8
    MacPro1,1
    NVIDIA GeForce 7300 GT
    When OS 10.6 came out, I found out that I couldn't upgrade to it because of my graphic card. In the technical specifications it is mentioned that :
    OpenCL
    requires one of the following graphics cards or graphics processors:
    NVIDIA GeForce 9400M, GeForce 9600M GT, GeForce 8600M GT, GeForce GT 120, GeForce GT 130, GeForce GTX 285, GeForce 8800 GT, GeForce 8800 GS, Quadro FX 4800, Quadro FX5600
    ATI Radeon 4850, Radeon 4870
    Now, OS 10.5.8 is becoming more and more outdated. I would like to know how can I upgrade my Mac Pro ? What kind of graphic card can I put in ?
    Thank you for any help and/or information !
    It's been a while since I've used it but I installed Snow Leopard on my old Mac Pro 1,1 with the 7300GT and it worked. OpenCL may not have but the rest of it did. I don't think what you've quoted says you can't upgrade but only that an upgrade won't deliver all of the features in Snow Leopard. Indeed, I was able to move the HD in the 1,1 Mac Pro into the 5,1 Mac Pro, boot from it (10.6.4 is the minimum the 2010 Mac Pro will boot with), clone it and then updated it.

  • How to compile and execute lex,yac,c and java programs

    its the 3rd day on my New MacBook pro..
    as i just migrated from windows to mac i love to work on this..
    The main problem  is i DON't know .......
    how to compile and execute
    1) lex and yac programs
    2) c program
    3) java program
    so please help me
    THIS is the error i got   a1.l is a program
    i got the same error when i used  gcc
    $ lex a1.l
    $ cc lex.yy.c                                 
    Undefined symbols:
      "_yywrap", referenced from:
          _yylex in cc8QDQjW.o
          _input in cc8QDQjW.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status

    Is the problem that you don't know how to compile and execute these programs on a Mac, or just that you don't know how to compile and execute them?
    Mac OS X is really just a version of BSD Unix, as far as programs like like bison, flex and gcc are concerned...and even when Apple specific versions are provided in the Developer Tools, there are symlinks in the usual places in the Unix file hierarchy.
    For problems with lex and yacc, I suggest you start with their own references, for example, here.
    Or you could just use %option noyywrap, if you only have one file to scan.
    Or you could link to libfl.a using -lfl and use the default version from that library.
    But you really should (as Keith Barkley was subtly hinting at) learn how these tools work and why they work that way.

  • How to compile and execute programing languages

    its the 3rd day on my New MacBook pro..
    as i just migrated from windows to mac i love to work on this..
    but i my main problems is i DON't know .......
    how to compile and execute
    1) lex and yac programs
    2) c program
    3) java program
    so please help me
    THIS is the error i got   a1.l is a program
    i got the same error when i used  gcc
    $ lex a1.l
    $ cc lex.yy.c                                  
    Undefined symbols:
      "_yywrap", referenced from:
          _yylex in cc8QDQjW.o
          _input in cc8QDQjW.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status

    You're trying to build something that depends on a library you don't have, or haven't referenced. This sort of question belongs in the Developer forums.
    Developer Forums: Apple Support Communities

  • Eclipse, How to compiled a class !

    Hi everyone, I started JAVA programming today, and I've done the first tutorial, the famous Hello World.
    Firstly I created my JAVA project, a package, and finally I created a class !
    In my class I wrote :
    package helloWorld;
    *public class HelloWorld {*
    *     * @param args*
    *     public static void main(String[] args) {*
    *          // TODO Auto-generated method stub*
    I know that I have to write : system.out.println("Hello world!!!");,
    I've already wrote it.
    My class is save with .java extension
    I would like to know how to compile my project to see if it work.
    I'm working with Eclipse on a mac
    Thanks for your help
    Henri

    Henri90 wrote:
    Ok, thank you for helping me ! I have another question, How can I fill the method to see my hello world ? I just have to fill the brackets between the strings and argument ?The code you want executed when the program runs is places inside the main() method. Where the //TODO comment is at present.
    You must make sure that the java source file has the filename of the class name plus .java.
    The source file has to be in a directory with the name of the package. You compile it from the directory containing the package directory using the javac command.
    IDEs like Eclipse organize this stuff for you but for your first couple of programs compile from the command line, then you are much clearer about what's going on.

  • How to compile the AIR app to android emulator

    How to compile the AIR application to run on emulator ?
    May be use the 'adb' command line ?

    -target The type of package to create. The supported package types are:
    air — an AIR package. “air” is the default value and the -target flag does not need to be specified when creating AIR or AIRI files.
    airn — a native application package for devices in the extended television profile.
    native — a native desktop installer. The type of file produced is the native installation format of the operating system on which the command is run:
    EXE — Windows
    DMG — Mac
    DEB — Ubuntu Linux
    RPM — Fedora or OpenSuse Linux
    apk — an Android package. A package produced with this target can only be installed on an Android device, not an emulator.
    apk-debug — an Android package with extra debugging information. (The SWF files in the application must also be compiled with debugging support.)
    apk-emulator — an Android package for use on an emulator without debugging support. (Use the apk-debug target to permit debugging on both emulators and devices.)
    Use the value as per your need. The you can use adb to push the packaged apk to your emulator.

  • How to compile code having ATSFonts on iphone

    Hi,
    I am trying to cross compile a Mac library which is using ATSFontMatrix, ATSFontRef and other ATS related methods for rendering. Can anybody suggest me how to compile this code for iPhone because i don't find the CoreServices Framework on iphone.
    I am using xCode 3.1.4. Any pointer for help would be very thankful.
    Thanks

    Go to: Settings -> Mail, Contacts, Calendars -> click on your email account ( to example Hotmail) -> instill there is the voice '' email to synchronize '' -> touch and decide whether to synchronize emails 1 day, 3 days, 1 week, 2 weeks, 1 month, or no limit   Ps: not all mail provider is present this possibility ( to example Gmail no )

  • Java compiling on a mac

    Could Someone PLEASE explain with a good amount of detail how to compile a program through terminal on a mac. Whatever I try I can't get it to work.

    one might just say that one has no idea how to use
    the javac command in terminal at all, and one would
    just like a little bit of helpWhat have you tried to do? What terminal are you using? (I've never used a mac personally, but I understand they ship with a *NIX shell, right??)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Compiling OpenCL aplications

    Hello,
    I've been trying to compile some OpenCL wrappers for python with no luck. I've added the -framework OpenCL to the linker, but I always get a "Symbol not found" error when executing them, I've also tried to add the Foundation and CoreFoundation frameworks to the linking process, but the result is always the same. Does someone know how to compile them (not from Xcode) and what libraries are needed?

    Hello,
    I've been trying to compile some OpenCL wrappers for python with no luck. I've added the -framework OpenCL to the linker, but I always get a "Symbol not found" error when executing them, I've also tried to add the Foundation and CoreFoundation frameworks to the linking process, but the result is always the same. Does someone know how to compile them (not from Xcode) and what libraries are needed?

  • How do i use my mac book with my HP 6510 e all in one series printer

    how do i use my mac book with HP photosmart 6510 e all in one series

    Hello Marilynatsea,
    Thanks for using Apple Support Communities.
    To learn more about printing in OS X on your Mac, and how to add a printer, take a look at the article linked to below.
    Mac Basics: Printing in OS X - Apple Support
    Cheers,
    Alex H.

  • TS2530 When I put a burned cd from one Mac into another Mac, song titles do not show up! I have to enter them manually! My CD player reads the titles that i on the cd; how can I get my Mac to do so?

    When I put a burned cd from one Mac into another Mac, song titles do not show up! I have to enter them manually! My CD player reads the titles that i on the cd; how can I get my Mac to do so?

    The problem is that I burned these CD's myself from music that I added from my personal collection to iTunes. The INFO is ON the CD's (it appears perfectly when I put the CD in my Numark mixer...so I know the info is on the CD), but for some reason, my MAC PRO will NOT read the info on the burned CD when I place the CD into the MAC PRO. The CD was burned on a MAC that I no longer own. But there HAS to be a way to transfer songs from a burned CD with the INFO that is on the CD burned with iTunes.
    PLEASE HELP!
    -Old Appel

  • "How do I defrag my mac?" "You don't need to, it does it itself" Fragmented Free Space: 99%. READ THIS NOW

    Just a heads up for my fellow Mac users.
    "How do I defrag my mac?"
    "You don't need to, ever. It does it automatically."
    "But it's running really slowly..."
    "Repair permissions or something. Defragging is not necessary on a mac."
    Techtool pro is now defragmenting my mac. Looks like the job's going to take about 4 hours. I thought I'd give everyone the truth about this while waiting (on a different computer obviously)
    The truth is, Apple's defragmenting system ***** BALLS. It has two massive, massive flaws which I feel people urgently need to be made aware of.
    #1: It only defragments files up to 20mb. If you're a movie producer, a songwriter, a photographer, or anything which involves working with many massive files, the built in defragmenting program WILL NOT HELP YOU IN THE SLIGHTEST.
    #2: It only defragments FILES. Free space is ignored, which eventually causes absolutely hrrendous problems.
    Let me give you an analogy here. Imagine your mac's hard drive is a bookcase with lots of books on it.
    File fragmentation is when it can't find a gap in the bookcase big enough for the entire book, so it breaks the book into pieces and srotes them in different gaps.
    Space fragmentation is when there are gaps all over the bookcase, instead of all the books being pushed to one side so there's a long gap elsewhere.
    Apple's built in defragmenting program will only fix the first problem - and even then, it will ignore any book bigger than 20 pages long, if you have bigger books which are broken up, you're screwed.
    Why is space fragmentation a problem? It's a problem because it directly LEADS TO file fragmentation. If there is a large block of free space all in one part of the disk, then an entire file can be written to it. However, if there is no single free block big enough for the file, it HAS NO CHOICE but to fragment it.
    So basically you might have 5 GB free and want to save a 2GB imovie project. That's cool. But what you may not realize is, the biggest single area of free space is only say 600MB. Others are around 300 and 400. Therefore the file MUST be fragmented into all these different areas, which wouldn't be necessary if all the free space was in one area of the disk.
    But apple's built in tools don't do anything about this, at least not in Tiger. PErhaps this has been fixed in later installations but I'm almost certain the same issues exist in leopard.
    Your only option is to buy a defragmenting program. I know this ***** but believe me, this IS something you NEED to do if your activity on your laptop involves disk space - intensive projects. I'm using TechTool Pro which has been recommended to me as hands down the best. It has a number of other functions as well, right now I'm only using the defragmenting tools but it has others for repairing damages disk sectors and other mantainence tools. There are other programs such as iDefrag out there as well.
    Why am I telling you this? I'm telling you because I experienced mind numbing frustration trying to get answers from the Apple community. Google it or ask the question yourself and you will most likely be whacked in the face with the intro to my post here - "You don't need to, it's not necessary, macs do it themselves, blah blah blah"
    Even worse, Apple's own webpage on the subject is nothing short of a disaster. It basically says "You PROBABLY don't need to defragment, unless you work with large files." That's it. You'd expect it to have an extra section saying "If you DO happen to work with large files, here's what you do" but no such section exists. It basically says "You don't need to defrag most of the time, and on the rare occasions when you do, well, too bad, you're screwed."
    I urge everyone to heed this or they will be tearing their hair out at how slow their mac has become and the fact that no one will offer any meaningful advice other than the standard, generic, "Repair permissions" - the Mac equivelant of "have you tried turning it off and on again".
    My disk is at 99% fragmented free space. NINTEY NINE PERCENT. In other words, although I have 25GB of free space, there was not a single contiguous block on the entire machine. I had almost 5,000 fragmented files as well, mostly imovies. Defragmenting got this down to about 300.
    The defrag job is taking more than 4 hours and will probably go on to take a lot longer than that. This machine has been slowly grinding to a halt over the last 3 years and now I know why.
    Please don't listen to anyone. Get yourself a defragmenting folder, and email Apple to tell them it's just not good enough to give their customers half assed answers and inadequate basic maintainence tools. Mac OS X must literally be the only operating system out there where something as basic as defragmenting is not only almost impossible to get answers on, but actually costs money to fix once you DO get answers.
    As customers, we should not accept this any longer. I intend to spread the above message far and wide.
    I LOVE Apple. I've always been "a mac" and I always will be. This in no way a mac bashing post or a windows endorsing one. I wouldn't switch back to windows if you gave me a million euro.
    But sometimes even the best developers can royally f*ck up. This is one of them.
    There is no readon people should be forced to put up with this crap. Absolutely no reason at all. I've had 3 months of crappy performance with no official explanation whatsoever.
    Apple if you're reading this: I love your products. I'm a loyal customer. People are more forgiving than you think, speak up, admit you dropped the ball, and DO something about it in your next updates to Lion and whichever versions of Leopard you are still actively maintaining.
    There's no shame in admitting when you're wrong. The shame is in hiding behind false promises and walls of silence.
    --Loyal customer, but feeling rather betrayed by all this.

    The old rule of thumb was to keep 10-12 GB free. Any lower than that and you will start to have trouble. I was very close to that for a long time and never had any complaints. Now, Lion "encourages" 20% free space (on my newer 250 GB drive) so I try to keep it with more than 50 GB free.
    Do you still have the original memory in that machine too? The metal plate you have to remove in the battery compartment also provides access to the RAM. Your machine will take 2 GB of RAM, possibly 3. You definitely want to max that out too.
    Regardless, you definitely need a new hard drive. When Apple switched to PC components, they had to take a quality hit. These 2.5" notebook hard drives are not very reliable. I'm surprised your hard drive hasn't died by now. I usually get a new hard drive with every major OS upgrade. A $ 50 investment every couple of years is no big deal.
    Unfortunately, you (and I) suffer from being an early adopter in 2006. Those 32-bit machines only accept 2 GB RAM (maybe 3) and are only 32-bit so they can't be upgraded to Lion. Because of this limitation, you won't see as dramatic an improvement as you would with a 2007 machine. If you run more than a couple of applications, your hard drive is always going to have to be doing some VM work. My 2006 machine has even lost its bluetooth. I gave it to my brother. My very similar 2007 Macbook is still running great.
    So, you must get a new hard drive because your old one is likely on death's door. If you don't have at least 2 GB - get it. If you can't afford a new machine, you might want to consider an SSD. That might help mitigate your RAM limitations. You can spend from $ 100 to $ 350 and get a dramatic speed improvement.

  • How to delete applications from mac pro?

    I think many people struggling at "How to delete appalications from Mac pro ,just because you made some mistakes or curious !" I know it is a bit difficut for people who are new users for the Mac .
    If you really don't want them ,you can delete them easily,
    As all you know after you download appalications from anywhere  ,it could be from apple app store or from other websites. They all can be disspeared if you don't like them .
    First , If you installed from apple app store  it will be really easily  just click at the app on the launchpad, after few seconds all the apps will be all shaking like leaves ,yes they are scared .(No No  don't delete me  I am helpful !) Ok yes  that is a little joke ! so what you can see now there is a small "x" at the top right corner .Can you see them ? just click the "x" And they will gone .
    Second step. This is only for you downoaded from other websites , In that case  , you just skip first step come to here  in order to save you some golden time .
    You can delete them from the launchpad , I have tried many times . i tried to drug them in the the trash . But after them all jump back to where they are , So you need to open the Finder ---> click the download -----> find the file which is belong to the app (make sure ) ------->click it  -----> drug it into the trash. then you can hear a little sound like you through it into the bin. it is really humanny  isn't it ? then go back to the finder again .---->click the application -------> find the icon on there which is you just drag into the trash.  do it again . take this one into the trash as well  then you will find the icon on the launchpad is disppeared . at the end don't forget to empty your trash   After that all job done , it is been deleted  ,
    Well done !
    Hope this could help all of your!
    Thanks for reading !

    Your profile shows Macbook Pro yet your topic confirms you are talking about a Mac Pro - or

  • How do I connect my Mac Book Pro to a projector I have the adapter but cant get anything on the screen

    How do I connect my Mac Book Pro to a projector I have the adapter but cant get anything on the screen

    Go to your "screen settings". then chose "find screen" then you vill find the prosjector.
    this will probably fix your problem.
    if this dont works can it be something wrong with your adapter.
    hope it helps

Maybe you are looking for

  • Confirmation of activity type in Process order -Impact in FI.

    Dear All, On doing a confirmation of a activity type for a process/ Production order - values get posted to secondary cost element which has been assigned to a acitivity type.  This means only a impact in controlling but not in FI How woould the book

  • Please add support for JPEG Exchangeable Image File Format (EXIF)

    It seems that now Adobe® Illustrator® can export only to the JPEG File Interchange Format (JFIF). We should have an option to produce the JPEG Exchangeable image file format (EXIF) as well (just like Photoshop does!). Why this is so important to me?

  • How to use wildcards in the query

    Hi all, I have the following code: pStmt = conn.prepareStatement("SELECT * FROM library.books where title like ?",java.sql.ResultSet.TYPE_FORWARD_ONLY,java.sql.ResultSet.CONCUR_UPDATABLE); pStmt.setString(1, name); rs = pStmt.executeQuery();When I tr

  • Each request gets a new session problem

    I have a standalone oc4j and I have deployed an application that uses Dynamic JDBC Credentials as described in ½How To Support Dynamic JDBC Credentials½. The application works fine when oc4j runs on every computer except one (the one it should be on)

  • External Monitor Flickers Slowly

    I have an iMac 8,1 with a Dell 2009W connected via DVI at 1680x1050 and 60 Hz. Every couple mins the screen will go black for half a second then back to normal several times. I haven't seen anyone else on the forums with the same issue; they all seem