Compiling dbxml-2.5.16 on Mac OSX

When I compile without options everything runs fine to the end.
If I compile with option --enable-java I get:
../dist/../libdb_java/db_java_wrap.c:137:17: error: jni.h: No such file or directory
../dist/../libdb_java/db_java_wrap.c:161: error: expected ‘)’ before ‘*’ token
../dist/../libdb_java/db_java_wrap.c:210: error: expected ‘)’ before ‘*’ token
../dist/../libdb_java/db_java_wrap.c:214: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
etc.
Mac OSX 10.6.5, java version "1.6.0_22"
file 'jni.h' is indeed missing.
How to solve this?

Hi,
that means that a compiler does not know where to search a header file "jni.h". You may help a compiler by exporting a system variable:
export CPLUS_INCLUDE_PATH=/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers/or wherever your jni.h is.
You can put this into ~/.profile so that the variable is saved for other sessions.
Vyacheslav

Similar Messages

  • Quake4 to Mac OSX need some help ?

    See at the bottom of this page is where the Q comes from.
    http://www.modwiki.net/wiki/BuildingonOSX
    Maybe some one can explain some more about this statement:
    Quake 4:
    You can compile the Quake 4 SDK on Mac OS. All you need to do is change the Preprocessor Macro D3SDK to Q4SDK. While this isn't of any use as of yet, it will be when Quake 4 comes out for Mac OS.

    Seeing that Quake 4 is based on the Doom3 engine IE: some files used in Doom 3 should be able to be used to make Quake 4 to run.
    Has anyone tried ?
    Has anyone tried to compile the SDK on Mac ??
    Yes I know Quake 4 = doom 3 extension pack and Quake 4 is not worth waisting time on on a MAC but heck not everyone that has a MAC will be replacing it in Jan 2006 so some one has to try and seeing these guy's have compiled on PearPC running OSX 10.3.x maybe we that actually have Apple can do it better and faster.

  • Air application full screen error in Mac OSX 10.7 Lion

    Hi
       We have an air application built using Flash Builder 4.5 with 4.5 SDK.
       The air application no problem to run on Windows and Mac OSX 10.6 Snow Leapard. However it has full screen issue on Mac OSX 10.7 Lion. When change to full screen mode, the whole screen disappear, press ESC and turn back to normal stage without any issue.
       We then use Flash Builder 4.5 with SDK 4.6 to compile and release, install the air application to Lion OS but still no luck.
       Air 3.1 installed on Lion OS
       Can some one please help?

    Is this still a problem?

  • Best way to run a LabVIEW VI written for Windows in a MAC OSx environment

    I have written a VI in LabVIEW 8.6 under Windows XP and compiled it into a .exe.  Now I want to run this executable on a MAC OSx machine.  What is the best way to do this without having to purchase a LabVIEW for MAC license or Windows VM software for the MAC?
    Thank you,
    cjl
    Solved!
    Go to Solution.

    cjl,
    Yes, that should run.   Except.... Does your program use any hardware?  Does it use any Windows-specific functions (from the Platform folder)? Does it rely on a particular video driver or soundcard? Does it rely on right click mouse actions?  All of these kinds of things may or may not work because they are closely linked between the Windows OS and the underlying computer hardware.  While the software itself will problaby execute, the programmay not work as expected if some of these dependencies are handled differently by the Apple hardware.
    I have not used VM but running native under Bootcamp works pretty well, again allowing for the issues mentioned above.
    Lynn

  • Adobe AIR ANE for Mac OSX 32-64bits Error

    Hi,
    I'm trying to build a ANE for Mac OSX. I setup XCode 5.1 and was following this two tutorials:
    http://riawanderer.com/2012/03/27/working-with-air-native-extensions-on-the-mac/
    http://quetwo.com/2011/12/03/working-with-air-native-extensions-on-the-mac/
    To get the project setup.
    I'm finding that Adobe AIR.framwork in folder /runtimes/air/mac is 32-bit, but XCode has deprecated 32-bit...so I'm finding this error when I try to build the project:
    error: -fobjc-arc is not supported on platforms using the legacy runtime
    Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cl ang failed with exit code 1
    So right now ANE development for Mac OSX is broke since I can't build a cocoa framework library due to 32-bit deprecation and Adobe not updating the library since 2011
    I'm right or maybe I'm missing something.
    Hope someone could give some path to solve this since it's very frustrating to deal with this stuff to see there's no update for this basic libraries for Mac.
    If what I'm seeing is true, I see another error in Adobe stack that make people like me supporting the platform tired of deal with this kind of things. Sorry to be sound so frustrated but it's a very negative experience for the Adobe AIR platform since you see that a part of the platform is not updated for 3 years!.
    Thanks
    Carlos

    Does what is talked about here help in any way?:
    http://stackoverflow.com/questions/22363266/xcode-5-1-force-32-bit-compilation-for-a-cocos 2d-iphone-v3-project

  • My Mac OSX 10.4.3 is a bit sluggish now...

    My Mac OSX 10.4.3 is running a bit sluggish now that I have had it for a few months. I am wondering what diagnostics/tweaking programs I can run through my Mac OSX System disc that will may help improve performance.
    I am not sure what specifically is going on. I just notice that sometimes it takes awhile switching between programs and running other software. A few months ago it was 100% better.

    As a voice of actual experience,
    80GB internal with about ~409MB free
    200GB external with about ~278MB free
    OS X 10.4.3
    No slow downs, no crashes, no issues (slow, sluggish, spinning beach balls, etc.)
    Best clients I have found for best use of system resources (native/compiled OS X apps) are:
    Transmission http://transmission.m0k.org/
    and second best is
    Bits On Wheels http://www.bitsonwheels.com/
    Now as far as your slow downs, look towards any software or hardware (and hence software drivers) that you may have installed recently that coincide with the slow down symptoms appearing.
    If it's just the 10.4 os (has a habit of it on some machines) deciding to give you issues, using AppleJack (booting into Single User mode after installing and using the command applejack AUTO restart [note the capitals] is sufficient enough to arm wrestle Tiger into behaving again). If however, it is being caused by an errant installed application or hardware driver you will notice the symptoms will reappear in which case you need to take the time to inventory what you have installed and remove them temporarily one at a time and test if the symptoms disappear.
    AppleJack http://applejack.sourceforge.net/
    There are other utilities you can try running while you are booted normally into OS X but they will perform the same tasks and not be able to do as much as when OS X is running a lot of files and caches are locked away from being able to be touched by the system hence they are less effective.
    Give it a go, if you have any questions, feel free to ask.
    Mac Mini 1.25   Mac OS X (10.4.3)   NO Norton Software + NO Antivirus Software = NO Problems on your Mac

  • Code for face recognition on mac osx using OpenCV

    Hi,
    I am writing a program for face detection on mac osx and I am using OpenCV. I am following the steps given on this link:
    http://iphone-cocoa-objectivec.blogspot.com/2009/01/using-opencv-for-mac-os-in-xcode.html
    There are three codes given for this program. The first code runs smoothly. In the second code there is no error in the compilation, it is successful. But it is not showing any output. As per the program it should open a new window. That window would store the picture taken from the camera.
    In the debugger console window the following error appears.
    OpenCV ERROR: Internal error (couldnt create new video channel)
    in function icvOpenCamera_QT, /Users/david/Work/Development/Net/opencv/xcode/../otherlibs/highgui/cvcap_qt.cpp(954)
    Terminating the application...
    /Users/david/Work/Development/Net/opencv/xcode/../cxcore/src/cxerror.cpp:360: failed assertion `0'
    Please help……
    Thanks and regards
    Prateek Chaubey

    I don't see what this has to do with Alchemy, or any Adobe product at all even!

  • HP Prime Connectivity Kit for Mac OSX?

    I recently bought a HP Prime Calculator. A fantastic product, but why, oh why, is the HP Connectivity Kit only available for Windows? At my work I borrowed a PC so I could at least upgrade the Prime once. I looked at the installed Connectivity kit and noticed the presence of some QT libraries. This makes me guess that the Connectivity Kit is built on QT, which means it should be eminently portable to both OSX and Linux.  Thus this desperate plea to HP: Please, please, release the HP Connectivity Kit for OSX.  I don't have a PC at home. Wine does not support USB, so the Kit doesn't work with Wine either. The only option avaible to me is to buy and install a PC emulator, but I've read that other people have tried that with very varying degrees of success. Some have apparently even managed to brick their Primes, and I definetely don't want to risk that.

    Hi, Note that "libhpcalcs" does not support updating the Prime firmware.http://www.hpmuseum.org/forum/thread-2230.html#pid19923 It also only has a command-line interface:http://www.hpmuseum.org/forum/thread-2230.html#pid19899 However, on the plus side, it portable to Mac OSX , Windows or Linux (you may have to compile it yourself). See for more info:http://www.hpmuseum.org/forum/thread-52.html Best regards.

  • DB2 java dbms for mac osx?

    Hi! i know this might be irrelevant at first sight.
    First of all i am running mac osx and i want a decent dbms system.
    i'm working on a windows db2 server but i want to port my java application for that dbms to mac.
    Do you know any db2 compartible system? (Of course i'm working with java clients)
    Thank you!

    Metalburma716 wrote:
    I have a macintosh Dual G5 running OSX 10.4 and I want to download a compiler, IDE, etc.. so that I can learn to program. I've tried eclipse and I just having a lot of trouble finding something that will work for me. Can anyone please help? thank you so much in advance, Daniel.An IDE is a massive development environment, worthy of plenty of learning time all by itself. Use the command line tools, get used to the concepts of classpaths, and how to structure your projects in the file system first. Then when you have mastered the basics of Java you can move onto the complications of integrated development environments. You can get nice syntax colouring from simple text editors such as TextWrangler, and TextMate.
    IDEs are not beginners tools.

  • HP Prime Connectivi​ty Kit for Mac OSX?

    I recently bought a HP Prime Calculator. A fantastic product, but why, oh why, is the HP Connectivity Kit only available for Windows?
    At my work I borrowed a PC so I could at least upgrade the Prime once. I looked at the installed Connectivity kit and noticed the presence of some QT libraries.
    This makes me guess that the Connectivity Kit is built on QT, which means it should be eminently portable to both OSX and Linux.
    Thus this desperate plea to HP: Please, please, release the HP Connectivity Kit for OSX.
    I don't have a PC at home. Wine does not support USB, so the Kit doesn't work with Wine either. The only option avaible to me is to buy and install a PC emulator, but I've read that other people have tried that with very varying degrees of success. Some have apparently even managed to brick their Primes, and I definetely don't want to risk that.

    Hi, Note that "libhpcalcs" does not support updating the Prime firmware.http://www.hpmuseum.org/forum/thread-2230.html#pid19923 It also only has a command-line interface:http://www.hpmuseum.org/forum/thread-2230.html#pid19899 However, on the plus side, it portable to Mac OSX , Windows or Linux (you may have to compile it yourself). See for more info:http://www.hpmuseum.org/forum/thread-52.html Best regards.

  • Building Samples partially failes (Mac OSX 10.9 64bit - XCode 6.1)

    Hi, i had some trouble getting to this stage because I am also fairly new to Mac OSX but with some common sense and googling I made it to the step of creating the project for the samples.
    This is what it shows when running the generation via ./GenerateSamples_mac.sh
    PWD is <MYXMPDIR>/samples/build/xcode/intel_64, CMAKE LOCATION IS <MYXMPDIR>/samples/build/../../tools/cmake/bin/cmake.app/Contents/bin/cmake, dir is xcode/intel_64
    -- The C compiler identification is AppleClang 6.0.0.6000056
    -- The CXX compiler identification is AppleClang 6.0.0.6000056
    -- Check for working C compiler using: Xcode
    -- Check for working C compiler using: Xcode -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler using: Xcode
    -- Check for working CXX compiler using: Xcode -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    INFO:64 Target is chosen
    -- OSX SDK is set to /Applications/Xcode.app/Contents/Developer
    INFO:Add CustomSchema sample
    ERROR: Framework Cocoa not found
    ERROR: Framework Cocoa not found
    ERROR: Framework Cocoa not found
    ERROR: Framework Cocoa not found
    ERROR: Framework Cocoa not found
    ERROR: Framework Cocoa not found
    ERROR: Framework Cocoa not found
    ERROR: Framework Cocoa not found
    ERROR: Framework Cocoa not found
    ERROR: Framework Cocoa not found
    -- ===========================================================================
    --  XMP_Samples_64
    -- ===========================================================================
    -- Configuring done
    -- Generating done
    -- Build files have been written to: <MYXMPDIR>/samples/build/xcode/intel_64
    Xcode project created successfully
    I dont know if the Framework errors are whats causing the errors when compiling above project.
    Now when I open the project, set base SDK to a recent one and try to run @ALL_BUILD, its giving me 25 errors for DumpMainXMP like these (a bit shortened)
    Build target DumpMainXMP
    Ld <MYXMPDIR>/samples/target/macintosh/intel_64/Debug/DumpMainXMP normal x86_64
        cd <MYXMPDIR>/samples/build/cmake
        export MACOSX_DEPLOYMENT_TARGET=10.7
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cl ang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOS X10.9.sdk -L<MYXMPDIR>samples/target/macintosh/intel_64/Debug -F<MYXMPDIR>/samples/target/macintosh/intel_64/Debug -filelist <MYXMPDIR>/samples/build/cmake/DumpMainXMP/build_x64/XMP_Samples_64.build/Debug/DumpMainX MP.build/Objects-normal/x86_64/DumpMainXMP.LinkFileList -mmacosx-version-min=10.7 -Wl,-search_paths_first -Wl,-headerpad_max_install_names <MYXMPDIR>/samples/build/cmake/../../../public/libraries/macintosh/intel_64/Debug/libXMPC oreStatic.a <MYXMPDIR>/samples/build/cmake/../../../public/libraries/macintosh/intel_64/Debug/libXMPF ilesStatic.a -Xlinker -dependency_info -Xlinker <MYXMPDIR>/samples/build/cmake/DumpMainXMP/build_x64/XMP_Samples_64.build/Debug/DumpMainX MP.build/Objects-normal/x86_64/DumpMainXMP_dependency_info.dat -o <MYXMPDIR>/samples/target/macintosh/intel_64/Debug/DumpMainXMP
    Undefined symbols for architecture x86_64:
      "_CFBundleCopyExecutableArchitectures", referenced from:
          XMP_PLUGIN::IsValidLibrary(std::string const&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
      "_CFBundleCopyResourceURL", referenced from:
          XMP_PLUGIN::GetResourceDataFromModule(__CFBundle*, std::string const&, std::string const&, std::string&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
      "_CFBundleCreate", referenced from:
          XMP_PLUGIN::IsValidLibrary(std::string const&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
          XMP_PLUGIN::LoadModule(std::string const&, bool) in libXMPFilesStatic.a(OS_Utils_Mac.o)
      "_CFBundleGetFunctionPointerForName", referenced from:
          XMP_PLUGIN::GetFunctionPointerFromModuleImpl(__CFBundle*, char const*) in libXMPFilesStatic.a(OS_Utils_Mac.o)
      "_CFBundleIsExecutableLoaded", referenced from:
          XMP_PLUGIN::LoadModule(std::string const&, bool) in libXMPFilesStatic.a(OS_Utils_Mac.o)
      "_CFBundleLoadExecutableAndReturnError", referenced from:
          XMP_PLUGIN::LoadModule(std::string const&, bool) in libXMPFilesStatic.a(OS_Utils_Mac.o)
      "_CFDataGetBytes", referenced from:
          XMP_PLUGIN::GetResourceDataFromModule(__CFBundle*, std::string const&, std::string const&, std::string&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
      "_CFNumberGetValue", referenced from:
          XMP_PLUGIN::GetResourceDataFromModule(__CFBundle*, std::string const&, std::string const&, std::string&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
      "_CFRelease", referenced from:
          XMP_PLUGIN::IsValidLibrary(std::string const&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
          XMP_PLUGIN::LoadModule(std::string const&, bool) in libXMPFilesStatic.a(OS_Utils_Mac.o)
          XMP_PLUGIN::UnloadModule(__CFBundle*, bool) in libXMPFilesStatic.a(OS_Utils_Mac.o)
          XMP_PLUGIN::AutoCFRef<__CFNumber const*>::~AutoCFRef() in libXMPFilesStatic.a(OS_Utils_Mac.o)
          XMP_PLUGIN::AutoCFRef<__CFData const*>::~AutoCFRef() in libXMPFilesStatic.a(OS_Utils_Mac.o)
          XMP_PLUGIN::AutoCFRef<__CFString const*>::~AutoCFRef() in libXMPFilesStatic.a(OS_Utils_Mac.o)
          XMP_PLUGIN::AutoCFRef<__CFURL const*>::~AutoCFRef() in libXMPFilesStatic.a(OS_Utils_Mac.o)
      "_CFStringCreateWithCString", referenced from:
          XMP_PLUGIN::MakeCFString(std::string const&, unsigned int) in libXMPFilesStatic.a(OS_Utils_Mac.o)
      "_CFURLCreateDataAndPropertiesFromResource", referenced from:
          XMP_PLUGIN::GetResourceDataFromModule(__CFBundle*, std::string const&, std::string const&, std::string&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
      "_CFURLCreateFromFileSystemRepresentation", referenced from:
          XMP_PLUGIN::IsValidLibrary(std::string const&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
          XMP_PLUGIN::LoadModule(std::string const&, bool) in libXMPFilesStatic.a(OS_Utils_Mac.o)
      "_CFURLCreatePropertyFromResource", referenced from:
          XMP_PLUGIN::GetResourceDataFromModule(__CFBundle*, std::string const&, std::string const&, std::string&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
      "_ConvertFromTextToUnicode", referenced from:
          ReconcileUtils::MacEncodingToUTF8(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
      "_ConvertFromUnicodeToText", referenced from:
          ReconcileUtils::UTF8ToMacEncoding(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
      "_CreateTextEncoding", referenced from:
          ReconcileUtils::UTF8ToMacEncoding(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
          ReconcileUtils::MacEncodingToUTF8(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
      "_CreateTextToUnicodeInfo", referenced from:
          ReconcileUtils::MacEncodingToUTF8(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
      "_CreateUnicodeToTextInfo", referenced from:
          ReconcileUtils::UTF8ToMacEncoding(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
      "_DisposeTextToUnicodeInfo", referenced from:
          ReconcileUtils::MacEncodingToUTF8(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
      "_DisposeUnicodeToTextInfo", referenced from:
          ReconcileUtils::UTF8ToMacEncoding(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
      "_GetTextEncodingBase", referenced from:
          ReconcileUtils::UTF8ToMacEncoding(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
          ReconcileUtils::MacEncodingToUTF8(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
      "_UpgradeScriptInfoToTextEncoding", referenced from:
          ReconcileUtils::UTF8ToMacEncoding(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
          ReconcileUtils::MacEncodingToUTF8(unsigned short, unsigned short, unsigned char const*, unsigned long, std::string*) in libXMPFilesStatic.a(Reconcile_Impl.o)
      "_kCFAllocatorDefault", referenced from:
          XMP_PLUGIN::IsValidLibrary(std::string const&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
          XMP_PLUGIN::LoadModule(std::string const&, bool) in libXMPFilesStatic.a(OS_Utils_Mac.o)
          XMP_PLUGIN::GetResourceDataFromModule(__CFBundle*, std::string const&, std::string const&, std::string&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
    "_kCFURLFileLength", referenced from:
          XMP_PLUGIN::GetResourceDataFromModule(__CFBundle*, std::string const&, std::string const&, std::string&) in libXMPFilesStatic.a(OS_Utils_Mac.o)
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    The basic linking seems to be fine from what I can tell. Dont know what else is causing the problem though..
    When I am trying to build targets individually, I get even more errors.
    Appreciate any help
    Best regards bengalo

    Aight, I dug into cmake a bit and found that i only needed to change <xmpdir>/build/shared/ToolchainLLVM.cmake to set the correct XMP_OSX_SDK
    that also solved the problems of not being able to compile the sample projects.
    In XCode it still shows up as a custom entry with "SDK not found" but the path is correct and I think XCode also figures it out when linking (cant recall if I tested)
    Anyway its enough for CMake to find its way and I still manually changed it to use the latest SDK for my project...
    I didnt get the static libraries to actually work yet but thats probably due to my noobness at dephicering compiler errors and nothing related to your project
    I'll try to use the frameworks, maybe I have better luck with those =)
    UPDATE: My C++ Standard Library was set to libc++ which is the compiler default.
    I changed it to libstdc++ and it compiled. Maybe the default was changed, I dont know really, couldnt be bothered to find out though
    Only included the header files so far but I'm fairly confident its going to work.
    Have to figure out how to nicely include it into my project. Guess it's going to be a wrapper, not sure about how to do that but lots of light at the end of the tunnel...
    Thanks for your support

  • /usr/lib/System.dylib contains just ppc code on ppc Mac OSX

    Hello!
    Trying to compile universal binaries on ppc Mac OSX fails sometimes because when a project links against /usr/lib/System.dylib for both architectures, it fails for the i386 part. On i386 Mac OSX is works fine because there System.dylib contains ppc AND i386 code.
    I installed the latest XCode 2.2.1 from the DVD (adding all Cross Development Support) and ran the ppc Combo Update 10.4.6 but still ended up with a flat System.dylib.
    Is there a way to install ppc Mac OSX so that all its libraries and executables contain i386 code as well?
    Regards
    Philipp

    Jeff,
    Unless someone comes up with a better suggestion (it is almost midnight with our forum staff friends), you may consider a reinstallation (uninstall, run the Cleaner Tool, and reinstall).
    http://www.adobe.com/support/contact/cscleanertool.html

  • Help in running Code::Blocks on Mac OSX. Should I use something else?

    I'm starting to learn programming and can't seem to get Code::Blocks running on my lap top. Terminal says "Can't execute binary file." I'm trying to build the first "Hello World" C++ program but it would not build or run. Sometimes I get the message that it cannot access folder also.
    Here's my code:
    #include <iostream>
    using namespace std;
    int main()
    cout << "Hello World !" << endl;
    What C++ software do you recommend to start? Should I use any other than Code::Blocks?

    As far as text editors, TextEdit will work, but as far as I know, you will constantly run into issues with formatting, spell-check, and other things. If you are guilty of "Which Button Do I Press?" then my first choice is likely not for you.
    If you are comfortable using the "Terminal" app, then I suggest using EMACS, (or just emacs). There is a built-in tutorial, and it is a very powerful editor, although for a non command line user it can be daunting, as most of the formatting and editing commands are all control characters (so regular characters are always entered as text). Emacs will do nice highlighting of various language elements just like XCode does. vi is another command line editing tool available on every version of UNIX. Emacs comes with Mac OS/X, as does vi. I have no idea if vi helps with programming as the first thing I do when I start to work on any Unix or Linux box is copy over some version of emacs, so i don't use it except sparingly.
    You can also continue to use XCode to edit the source files, as it does a nice job as a WYSIWYG editor and prompts you with help along the way. Just keep a terminal window open to use the command line to compile and link your program, but edit it in XCode and do a SAVE before you switch back to the terminal window.
    I also use BBEdit from Bare Bones, and some people like TextWrangler. There are at least a dozen other text editors out there that have features you can enable for programming. Do a google search for Mac OSX text editors and you'll see what I mean.
    I advise AGAINST using TextEdit, unless you set the file to "Plain Text". Also, don't use a .txt extension. Use .c, .cc, .ccp, .m, .mm, .js, or whatever the compiler expects to see for a specific language. Binaries will nearly always have a .o extension, and the final binary depends on the language, the linker and what options you provide. The default for c is a.out (or at least it used to be).
    You will also want to learn how to use "make", but that is another discussion.
    For starters, remember that "man" is your friend. If you want to look up information on Unix, and the command line on the Mac is talking to Unix, aka Darwin. Type "man man" for help getting started with the man command, and "man make" to get started with make. Note at the end of most man pages the section that says "See also", as this tells you about related commands.

  • I have recently purchased MacBook Pro with Mac OSX 10.7.3 Lion and I would like to install Final Cut Pro 6 Studio2, and it came up with this error: 'you can't open application FinalCutProStudio.mpkg because PowerPc apps are no longer supported..pls advise

    I have recently purchased MacBook Pro with Mac OSX 10.7.3 Lion and I would like to install Final Cut Pro 6 Studio2, and it came up with this error: 'you can't open application FinalCutProStudio.mpkg because PowerPc apps are no longer supported......Is there a way to run FCP6 on lion withoput this error? Any help would be appreciated.....

    Hi Shane,
    Just one more quesiton re: this topic, I am looking to get rosetta but do not have Leopard or Snow Leopard...
    I read that it is not on Snow Leopard only on Leopard....so do I need to get only Leopard? Can u advise?
    Alternatively I do have Mac OS X Tiger so is it on this and can I install it from here?
    Please excuse my lack of knowledge here, just trying to get my FCP 6 up and running asap....
    Best Rgds.

  • Why can't I open a GarageBand recording on my iPhone in GarageBand on Mac OSX?

    I recorded an acoustic performance of my vocal quart last night on an iPhone running GarageBand 2.0.1 on iOS 7.1.2.  But I can't open it in GarageBand 11 (6.0.5) on Mac OSX 10.9.5.  What gives?
    Not only will it not open (and the software on my Mac platform is way more recent than on my iPhone, so you'd think it would be upward compatible), but when I try to open this iOS-created file on the Mac, it asks me where I want to save it ... it's already saved, I'm just trying to open it.
    I've looked at the reviews for the latest GarageBand, which it tells me I need to upgrade to, and they are terrible!  Many report that they wish they hadn't upgraded and that they could get back to an older version of GarageBand on their Mac.
    Does this mean I'm stuck and the two GarageBand platforms are not compatible and that I won't be able to open this file?  ... other thanes an mp3 in iTunes ...
    Thanks for any insights you can give me.

    BigMacUser wrote:
    I recorded an acoustic performance of my vocal quart last night on an iPhone running GarageBand 2.0.1 on iOS 7.1.2.  But I can't open it in GarageBand 11 (6.0.5) on Mac OSX 10.9.5. 
    [...] when I try to open this iOS-created file on the Mac, it asks me where I want to save it
    it sounds like it's opening fine, but you're just not letting it finish.
    it's asking you to save a version of the song for the mac; if it saved over the original file, it could no longer be opened on the iOS device, if you needed to alter something later

Maybe you are looking for