Git Product home page Git Product logo

Comments (5)

bkaradzic avatar bkaradzic commented on May 12, 2024

Unfortunately I updated my mac to latest 10.9 and now I can't test on 10.8. It built on 10.8 until recently, I'm not sure what happened. The problem is due older compiler relying on TR1 instead C++11. Try following ifdefs that wrapping anything that has tr1/ in include path.

from bgfx.

marynate avatar marynate commented on May 12, 2024

I solved it by:

  1. add
    buildoptions { "-std=c++11", "-stdlib=libc++" }
    linkoptions { "-std=c++11", "-stdlib=libc++" }
    to osx configuration section;
  2. run "premake4 --file=premake/premake4.lua --gcc=osx xcode4" to generated xcode project, and compile from there

The reason that I use xcode instead of gmake target, is that c++ and linker flags were not pass to generated make file correctly by premake (premake 4.4 beta 5).

btw, is it possible to set xcode project's OSX Deployment Target via premake?

from bgfx.

bkaradzic avatar bkaradzic commented on May 12, 2024

Yeah you need to install command line tools for Xcode (or something like that) in order to compile with makefile. I don't use Xcode at all, so I'm not sure what's deployment target?

from bgfx.

marynate avatar marynate commented on May 12, 2024

I got command line tools installed, but still qmake version won't work. ( I verified the make file generated, no cxx flags been generated, so it failed to compile c++11 code). But I can live with xcode solution for now ;)

In Xcode, you can use say OSX 10.9 SDK, and build for 10.8 as deployment target.

from bgfx.

bkaradzic avatar bkaradzic commented on May 12, 2024

Cool that Xcode works! I have it installed but it looks scary so I never run it... I might try to run it an d build for 10.8 and see what's failing. :)

from bgfx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.