Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
  • 1.  Cplex in Xcode - Mac

    Posted Tue June 30, 2015 05:56 PM

    Originally posted by: M.Mubarak


    Hi,

    I am trying to set up cplex in Xcode. I followed the instructions from the following video:

    https://vimeo.com/75435100

    but I still ran thru linking errors. I am using Version 6.3.2 of Xcode and cplex 12.6.

    Any suggestions?

    Thanks!

     

     


    #DecisionOptimization
    #MathematicalProgramming-General


  • 2.  Re: Cplex in Xcode - Mac

    Posted Fri July 03, 2015 10:21 AM

    Please search the CPLEX Forums about this. There have been people with similar issues in the past and we discussed how to resolve them.

    If you cannot get things working then the general recipe is:

    1. Go to the examples/x86-64_osx/static_pic directory in your installation.
    2. Run 'make blend'
    3. Pick up all compiler and linker flags and make sure that xcode invokes the compiler and linker with the exact same flags

    If you cannot work things out, then you need at least tell us what exactly you did, what exactly the compiler and linker command lines used by xcode are, and what errors you get.


    #DecisionOptimization
    #MathematicalProgramming-General


  • 3.  Re: Cplex in Xcode - Mac

    Posted Sat July 04, 2015 06:10 AM

    Originally posted by: M.Mubarak


    There was a OS compatibility issue. 

    Here is what to do if facing the same problem:

     

    For Mavericks/Yosemite:

    1. Download Command Line Tools stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-line-tools

    2. Follow this video.

    3. Set Targets - Deployment - Mac OSX Deployment Target to Mac OSX 10.7

    4. Set Targets - Apple LLVM compiler - Language - C++ Language Dialect to Compiler Default

    5. Set Targets - Apple LLVM compiler - Language - C++ Standard Library to Compiler Default


    #DecisionOptimization
    #MathematicalProgramming-General