Skip to content

Building issues fixed on Mac with SDK 10.10 and Xcode 6.2 #1

@kayjkay

Description

@kayjkay

I was unable to compile on Mac with SDK 10.10 and Xcode 6.2. However, the following are the simple fixes.

Copy cl.hpp:

https://www.khronos.org/registry/cl/api/1.2/cl.hpp

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/OpenCL.framework/Versions/A/Headers

Fix CLUtils.hpp by adding #include < numeric > (std::accumulate needs it)

include < numeric >

to have this compile:
rep total (rep initVal = 0.0)
{
return std::accumulate (tExec.begin (), tExec.end (), initVal);
}

Fix CLUtils.cpp by adding (APPLE)

if defined(_WIN32)

include <windows.h>

elif defined(linux)

include <GL/glx.h>

elif APPLE

include <OpenGL/OpenGL.h>

endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions