GCC development on a MacBook

Before buying a MacBook (Pro), I would like to have confirmations on the tools available.
I am mainly a Linux user today. I need to develop C++ programs with Gcc (mainly simple command line programs but quiet heavy computations).
Gcc is delivered with Leopard, right ?
Are standard UNIX sockets and pthread usable ?
In this case I will be able to use all my prefered libs (like GMP or so).
Will I be able to easily compile on 64 bits mode ?
Is SSH delivered ?
To sum up, I would like to write/execute/test my source code on my (future) MacBook (without heavy configuration).
Then I would like to copy my source code on a powerful linux server, just recompile my code and get all the results. Is there any pitfall ?
Hope this is the good forum.
Many Thanks,
Roman

The basic answer to all your questions is: Yes. There may be some minor configuration changes involved. All the "standard" stuff is there, but none of the "non-standard" stuff. MacOS X is UNIX, not Linux. If any of your libraries require a Linux kernel, they will not work at all. X11 is not the native display so, while almost everything works, they won't work as well as a system that doesn't have another windowing system between the system and X11.

Similar Messages

  • MacBook Air iPad Development

    Hi everyone,
    I'm sure you can classify this under the "Newbie" section, but I can't seem to find a response anywhere:
    I'm thinking of getting a MacBook Air for developing iPad apps with. Is this a powerful enough machine, or should I go with the MacBook Pro instead? I travel a lot and the extra weight may be a factor at times.
    My company wants me to put in a request for whatever I need sometime today if possible, so any answers would be great.
    Thanks!
    Nat.

    Hi Nat, and welcome to the Dev Forum!
    I've never developed on a MacBook Air, but I've spent lots of time happily developing on a MacBook. I also tend to read lots of online blogs and forums. I've never heard or read anything to the effect that a MBA can't run Xcode, Interface Builder, the iPhone or iPad simulator, or any of the other important dev tools. I think the consensus is that any Intel Mac which can run OS X 10.5.4, won't have a problem with the dev tools.
    That said I've read some complaints about inconveniences. Most of these are either about the screen size or the response time for features like code completion in the Xcode source code editor. If I needed a portable dev environment, I can't imagine comparing any of these complaints to light weight and increased battery life. Maybe the writers didn't travel much.
    I don't know if the MBA has any RAM options besides 2GB. If it does, try to get 4 (unless you find out that will significantly impact battery life). But I think you'll do just fine with 2.
    \- Ray

  • MacBook 7,1 CS4206a audio driver crashes on Windows 8 Developer Preview

    I'm experiencing crash on about every 20minutes on Windows 8 Developer Preview.(MacBook 7,1 late 2010 model)(BootCamp 4.0.0 installed)
    It seems that Built-In audio driver is the one that causes the problem.
    I disabled CS4206a driver in Driver Manager to prevent that.
    But I really want my sounds back.
    I've also tried CS4207driver from Cirrus Logic, and a old driver.
    but none seems to be helping.
    Any advice??

    Thank you all for the replies. Unfortunatly, I found that audio driver is not the problem.
    After disablling, removing the audio driver from the system32/drivers, the time til to get crash has indeed EXTENDED, but it still crashes..
    misalaram, thank you for the idea. Formatted windows 8 and installed JUST the graphics card driver directly from the nvidia. Still crashes..
    I think it is sort of like kernel panic. Which microsoft has said that they implemented multi-tasking capable kernel. I think somthing is unstable..

  • Using multiple systems for Iphone development?

    Hi,
    I have been using a borrowed macbook to start with IPhone development.
    Today I purchased my own MacBook and after installing the IPhone SDK, I plugged in my IPhone and was presented with a message saying that my IPhone was flagged as development on another machine. I had an option to continue or quit, so obviously I continued.
    Will this cause any problems further down the line?
    Has my IPhone been 'reflagged' as a development for my Macbook?
    Thanks

    Mohammed Sadiq wrote:
    Can we use c++ to develop applications for iPhone
    Yes.
    .... If so, how it is advantageous over objective C ?? ...
    It's disadvantageous since the only top layer API available for native iPhone apps is Cocoa. Every time a C++ program needs to make a call into the UIKit framework, it must use Obj-C and it may be necessary to wrap that Obj-C in additional code to implement the interface. While Xcode (with a little help from gcc) makes it easy to mix C++ with Obj-C in the same file, a C++ class can't be made from an Obj-C parent and vice-versa.
    Common reasons for using C++ in an iPhone app are: 1) A static library that wants a C++ interface is needed; 2) An app written in C++ is being ported to the iPhone; 3) The developer is much more comfortable with C++ and wishes to avoid Obj-C as much as possible. This can work if most of the app is OpenGL for example. In that case, only one short Obj-C file is necessary and most of that will be available as a Cocoa template.
    Hope that answers your question!
    \- Ray
    p.s.: I think you have quite a few open threads. Have solutions been provided for any of them? Here's how to close a thread: [http://discussions.apple.com/help.jspa#answers]. - R

  • What is the best technique for "ripping" a commercial DVD and inserting this clip in my IMovie project (macbook Pro)?

    How can i "rip" a part of a DVD that i bought from a vendor, when I went scuba diving recently?  My goal is to insert the  scuba  clip into my Imovie project, which I am developing in my Macbook Pro.     (This Mac is about 3 yearsold now)
    I ,of course, will give credit to the company that produced the scuba DVD.
    I read the posts, and Appleman1958, vernon Alexander,and Samhaque have had experience with this issue.
    Which solution  do you recommend for me?  My ultimate goal is to create a DVD that includes snippets of a family trip.
    thank you for your input here.
    Moshe Pipick

    Let's assume that such a 'holiday video' does not have copy protection:
    You need to convert the VOB files in the TS-Folder of the DVD back to DV which iMovie is designed to handle. For that you need mpegStreamclip:
    http://www.squared5.com/svideo/mpeg-streamclip-mac.html
    which is free, but you must also have the  Apple mpeg2 plugin :
    http://store.apple.com/us/product/D2187Z/A/quicktime-mpeg-2-playback-component-f or-mac-os-x
    (unless you are running Lion in which case see below))
    which is a mere $20.
    Another possibility is to use DVDxDV:
    http://www.dvdxdv.com/NewFolderLookSite/Products/DVDxDV.overview.htm
    which costs $25.
    For the benefit of others who may read this thread:
    Obviously the foregoing only applies to DVDs you have made yourself, or other home-made DVDs that have been given to you. It will NOT work on copy-protected commercial DVDs, which in any case would be illegal.
    And from the TOU of these forums:
    Keep within the Law
    No material may be submitted that is intended to promote or commit an illegal act.
    Do not submit software or descriptions of processes that break or otherwise ‘work around’ digital rights management software or hardware. This includes conversations about ‘ripping’ DVDs or working around FairPlay software used on the iTunes Store.
    If you are running Lion:
    From the MPEG Streamclip homepage
    The installer of the MPEG-2 Playback Component may refuse to install the component in Lion. Apple states the component is unnecessary in Lion, however MPEG Streamclip still needs it. See this:
    http://support.apple.com/kb/HT3381
    To install the component in Lion, please download MPEG Streamclip 1.9.3b7 beta above; inside the disk image you will find the Utility MPEG2 Component Lion: use it to install the MPEG-2 Playback Component in Lion. The original installer's disk image (QuickTimeMPEG2.dmg) is required.
    The current versions of MPEG Streamclip cannot take advantage of the built-in MPEG-2 functionality of Lion. For MPEG-2 files you still need to install the QuickTime MPEG-2 Playback Component, which is not preinstalled in Lion. You don't have to install QuickTime 7.

  • USB mouse button doesn't work on MacBook Unibody

    Since the trackpad was not working, we have to use a USB mouse to navigate. After a few minutes, the mouse left and right button doesn't work. I can move the pointer around the screen and use the keyboard.
    Thoughts

    The same problem happens with a Bluetooth apple mouse. You can scroll up, down and use the secondary (the right click) The problem normally developes after the MacBook has been running for a while and gets hot underneath.

  • SQL Developer video problems on Parallels (Win XP)

    I am running ORACLE 11G, APEX and SQL Developer on my MacBook pro. Initially I installed 1.5.4 SQL Developer and I stared having problems when editing SQL scripts.
    Edit window, blacks out the lines which are not being viewed. Very annoying when working on complex scripts.
    Although I've reported this problem to Parallels support, given that SQL Developer is the only application causing the problem is making me think it is more likely an issue with SQL Developer.
    Since then I went back to 1.5.1 version and having same problem.
    Any body else having this problem?
    I might try 1.5.4 with patch #2 . . .
    Details related to SQL Developer installed:
    Oracle SQL Developer 1.5.1
    Version 1.5.1
    Build MAIN-5440
    Copyright © 2005,2008 Oracle. All Rights Reserved.
    IDE Version: 11.1.1.0.22.49.35
    Product ID: oracle.sqldeveloper
    Product Version: 11.1.1.54.40
    Version
    Component     Version
    =========     =======
    CVS Version     Internal to Oracle SQL Developer (client-only)
    Java(TM) Platform     1.5.0_06
    Oracle IDE     1.5.1.54.40
    Versioning Support     1.5.1.54.40
    Edited by: APEX minded on 27/05/2009 17:12

    I will post this info to help people who may have similar problem.
    The work around I found is to run Parallels in full-screen mode.
    Parallels support haven't provided a fix for this yet.

  • Battery life on macbook pro

    has anyone figured out how to reclaim some of the battery life lost with the mountain lion upgrade and update?

    perhaps this will be of some encouragement...
    http://www.cultofmac.com/189568/latest-os-x-10-8-2-developer-build-gives-macbook s-best-battery-life-since-snow-leopard/
    10.8.2 has just "dropped". It looks as though it is available, right now, from the software update feature on the App Store.  I hope it fixes your problems.  I hope it fixes my problems.
    peace ~
    Message was edited by: cmontgo

  • Oracle sql developer not installing or start on mac os x 10.9

    Hello ,
    i installed oracle sql developer 4 , on macbook pro with retina display , 10.9
    and when i click the icon it's still loading and no response !! i leave it 1 hour and the same problem .
    i have attached the screenshot ,
    please check it 

    i use no problem.

  • MacBook Doesn't sleep when lid closed, then grey screen

    When I close the Mac Book it does not go to sleep. In other words, the Apple light on top does not go out. When I open it, that grey multi-language screen is there that says to restart. This is a new problem. I've been running SL since day one.

    Try Resetting the System Management Controller (SMC). If this doesn't help, try Using Apple Hardware Test to see if some hardware problem has developed in the MacBook.
    Note: the grey multi-language screen that says to restart is an indication of a kernel panic. See Mac OS X 10.6 Help: If “You need to restart your computer” appears for more general info about resolving this.

  • My MacBook is falling apart!

    I bought my MacBook back in august (2007).
    Recently, about a month ago, a small crack appeared at the top of my laptop, just above the magnetic area. I tried not to touch it at ALL, but now its completely chipped off.
    Now, a week and a bit ago, ANOTHER crack has appeared, but bigger and by the touchpad at the bottom of the laptop, again next to the magnetic bit.
    Is this happening to anyone else?
    I've been taking pretty good care of my laptop (as my parents would probably KILL me if I messed it up) but I don't know what to do now =(

    Bring it back to the store where you bought your machine and get the case replaced. Please search this forum, there are posts about cracks developing on their macbooks. I have not experienced any crack with my macbook (black), I am extremely cautious. I am using the Speck clear case for protection.

  • My MacBook si not booting displaying a folder with question mark

    The very latest development in My Macbook that is not booting, it now displays a gray screen with blinking folder and a question mark inside then it turns off after few minutes.
    It is not responding to any option+C,S,V, shift and I cannot boot from the install CD or diskwarrior.
    Any thoughts??
    Thanks,
    AT

    If DW can't see the hard drive then it does not bode well for the drive. Try booting from the CD and run Disk Utilities from the CD to see if the drive shows up there. I am not optimistic though since usually DW stands a better chance at this than DU.
    If neither DU nor DW work, try using an application such as [Data Rescue II|http://www.prosofteng.com/products/data_rescue.php] or [FileSalvage|http://subrosasoft.com/OSXSoftware/index.php?mainpage=product_info&productsid=1]. Both have free trial versions that let you see if the software will help before you decide to buy. In this regard you can use them as an analytical tool to see if they can see the drive.
    There is also this free tool which supposedly runs on OSX and does recovery of popular media and Office files. [http://www.cgsecurity.org/wiki/TestDisk_Download] I have only done a bit of reading about this tool so I really know almost nothing about it - maybe it only works on Intel processor computers.

  • Mounting disks/partitioning. Alternatives to fstab?

    I wanted to be able to separate the OS, Applications and Users and had found an excellent article by Justin (Ref: http://www.macosxhints.com/article.php?story=20040716153639236). But now with Snow Leopard, fstab has been discontinued and this won't work
    Is there any alternate solution to achieve the same as I would want to
    1. Install OS in a separate partition
    2. Put swap in separate partition (this is still doable but here I'm not looking for pro's con's of doing this)
    * the above two would significantly help reduce disk fragmentation I suppose as the main reason for me to do this is, once the disk is near full, performance goes for a toss and getting tired of seeing rainbow circles
    3. Put the /Applications in a different partition (may be on the same disk as root)
    4. Put /Users on to second disk
    Looking for some pointers as well as some insight into how the partitions are handled in Snow Leopard.
    Thanks in advance,
    -Kesari.

    Thanks to every one of you who helped me with the answer. In particular KJK555's comment wrt fstab as well as pointers suggested by R C-R. It was a good reading and indeed a good learning experience for me as this provided quite a bit of insight into Mac for coming from Solaris/Linux. Also, my boot time is under 36 secs with all my apps, initialization with toshiba 500gb 7200rpm disk (would scream if I could get a ssd I suppose. But with mbp, have to live with one disk unless I forego my dvd drive).
    Now, to answer why I did this or rather why I wanted to do this extra (unwanted ?) steps:
    I can't religiously monitor my disk usage and putting all under one partition, install, uninstall applications etc and I would figure out that either /tmp run out of space or system crash and take for ever to reboot and then end up finding what I can part with and where to squeeze in space from
    Now at least by keeping root partion out of all these hassle, I'm safe as I won't run out of space in /.
    Another immediate benefit I could think of is, I don't need regular backup of most of the partitions and take only selective ones. In particular of some one is using vmware or virtualbox and set up timemachine, they would love to have this as only they know the pain. Now it's simple. Just put all the vm's in one partition and setup snapshot from the vm onto another partition and take the initial backup of the vm's partition and just setup time machine for the snapshot area. I could go on with advantages but would leave it for other's imagination. Video editing folks !!!
    Coming to mistakes or rather my learning experience.
    The suggestions in macosxhints works very much except for the fstab changes and here's some tips for those who's looking for this info:
    1. The mounting order is always not the same i.e. don't expect /dev/disk0s3 to be mounted as /whatever. This never works. Mount using the UUID instead.
    2. Do not try to mount / from fstab and just leave it to the OS. For that matter, just mount those you need it different and leave the rest (in my case now it's only Applications and Users)
    3. Trying to add swap or moving it around to a different partition is waste of time as I didn't find any significant gain by doing this. Rather I think by doing this you will be limiting the swap size to the partition size. Now that / is good enough (40gb is quite a lot once you move /Applications out) and this gives excellent leg space for swap or any files in /
    4. Not sure but I think this is due to the way OS initializes/uses Applications folder. When I tried to put Applications on to a different disk, it doesn't seem to like it and felt boot time was more as well as login/initialization time. But works fine after boot. Don't think this is a stopper as I have plenty of space to put in Applications on the first drive containing root.
    Now I'm going to reinstall (3rd attempt) as with this experiment, found that I may not need such a huge root and (redundant) swap partitions. Little more to my /Users. Here's my planned allocation: root 20gb, alternate root 20gb (for future use), Applications 120gb, Users 120gb, data 200gb.
    Once again thanks to all of you for this information.
    Wouldn't it be slick, if Apple would produce a 4 or six core Developer's edition MacBook Pro with
    up to 16GB of ram and one of WD's new 600GB 10,000 rpm 2.5 inch Velociraptor as standard
    equipment?
    This would be my dream MBP and would be the first one to buy if it's under $1500

  • Sound volume control unresponsive after waking from sleep

    Lately, a strange problem has developed on my MacBook 13-inch Aluminum (Late 2008), running Mac OS X 10.6.4:
    After waking the MacBook from sleep, the sound volume control keys on the keyboard does not affect the volume control of:
    * Neither the sound volume output by the built-in speakers,
    * nor the sound volume indicator/slider in the menubar,
    * nor the sound volume indicator/slider in the Sound preference pane in System Preferences,
    Only the sound volume slider/indicator in the Sound preference pane in System Preferences has an effect on the actual volume ouput by the built-in speakers.
    First I thought the problem was affected by disconnecting a set of analog headphones while the MacBook was sleeping -- it seemed that after sleep the volume control keys on the keyboard and menubar item still was set to affect the headphone port and not the built-in speakers.
    However, the problem just occured after sleeping without anything connected to the MacBook. The built-in speakers were muted, when the MacBook lid was closed, and the computer went to sleep - after waking from sleep the built-in speakers were unmuted - and control was only possible through System Preferences.
    Any ideas?

    Not sure if you stumbled on the other threads like this one:
    http://discussions.apple.com/thread.jspa?messageID=11801555&#11801555
    I've been having the same problem on my Mac Pro for a while, finally decided to see if there were some other people having the problem. I'll see if the others have a solution yet.
    One workaround I've been doing is to go to Preferences -> Sound and select a different output device. For me, I have to flick to Internal Speakers and then back to Line Out.
    Brett

  • Winmail.dat attachment and Mail

    Since one week I no longer receive proper attachments of PDF files from windows system in my mail, but instead a winmail.dat attachment. Can one please give me hint, what could be wrong? Thanks

    http://www.joshjacob.com/mac-development/tnef.php
    MacBook Pro Changes PDF files ti winmail.dat, that I can't open

Maybe you are looking for

  • Best practice  Error " no fiscal year "

    In best practice Report CR " GL Statment " After updating the data base and entering the parameters , It pops to me error " no fiscal year variant specified " though i run the same query in the ERP with the same parameters and it runs !  And am using

  • Flatten family hierarchy to level 2, level 3, level 4 across

    For example....                      Family Hierarchy                       Grandma 1                               Mom 1                                  daughter 1                                     Grand daughter 1                                

  • Silly Rabbit  imported to iM but lost my dissolve transition!!!!

    Silly Rabbit, you suggested <You could try importing th project to iMovie and exporting it to Quicktime as full quality dv. This will elliminate another possibility.> I did it and the dissolve between the slides are gone! The original QT file had dis

  • $5k camera recs with hassle-free FCP X workflow?

    Sorry if this is a redundant question, but I couldn't find a current answer in past posts. Desperately looking to replicate the good ol' MiniDv workflow from years back when I connected my camera to FCP via firewire and captured with no re-compressio

  • How do I connect my dj2540 to my galaxy note 10.1?

    How do I connect my dj2540 to my galaxy note 10.1?