Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
OpenCL woes in Xcode 4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OpenCL woes in Xcode 4



I have run into a couple of issues working with OpenCL in Xcode 4. I
was able to find workarounds, but am not completely pleased.

1. Files ending in ".cl" are no longer syntax-highlighted. I have been
unable to find a file extension that re-enables OpenCL highlighting
(the plain C syntax isn't sufficient because it doesn't recognize
OpenCL vector types: float8 and the like).

2. Files ending in ".cl" that are specified in the "Copy Bundle
Resources" build phase produce the following build error:

error: can't exec
'/System/Library/Frameworks/OpenCL.framework/Libraries/openclc' (No
such file or directory)

I am unsure as to why Xcode 4 is attempting to compile these files in
the Copy phase. In Xcode 3 they were simply copied (and compiled at
run-time, which is the normal way of doing things with OpenCL).

The workaround was to choose another file extension and to live in a
world of darkness (i.e. no syntax highlighting).
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.