-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building test program in OSX #4
Comments
Try including the 64 bit opencl library (opencl.lib) as an additional dependency in xcode or a separate make file |
How do I do that? / what goes into the makefile to do that. Xcode sorts itself out, its great it knows how to build and run it, but I dont know how to tell it to run multiple mains, how are you doing that in VS? |
I added it as an additional dependency to the linker in VS. This was found in "Project Properties" As for the multiple mains, I just excluded all of the files I didn't want building. I think I'm going to have to create separate projects within my VS solution for each of the mains if I want VS to sort itself out and build. As for the makefile, I'm not sure how you would write it for cmake, but for nmake, I was able to build it by doing the following:
|
But in order to do the stuff, run by piping each executable into each other, there's no way of doing that in the debugger is there =/ |
Hmm. I have't thought that far yet. |
Working from me from the command line for the following:
is this what you mean? |
@darioml that works for
|
Update: Modifying the rules for |
Has anyone had any success building the src/test_opencl.cpp thing in the command line?
If I dumped the code inside an Xcode project and tweak the header to just "cl.hpp" it builds and runs, but I can't make it do it from the command line without getting a bunch of Undefined symbols for architecture x86_64: errors.
The text was updated successfully, but these errors were encountered: