Hi,
I am trying to build a Hello_brook sample that comes with broook+
"C:\Program Files\ATI\ATI Brook+ 1.4.0_beta\samples\CPP\apps\HelloBrook"
But when i build it in VS2008 i get an the following result.
1>------ Build started: Project: hello_brook, Configuration: Debug Win32 ------
1>Performing Custom Build Step
1>The system cannot find the path specified.
1>Project : error PRJ0002 : Error result 255 returned from 'C:\Windows\system32\cmd.exe'.
1>Build log was saved at "file://c:\Program Files\ATI\ATI Brook+ 1.4.0_beta\samples\CPP\apps\HelloBrook\built_d\xp_x86_32\BuildLog.htm"
1>hello_brook - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I dont have a AMD firestream card and have to execute this on the CPU but i havent added theenvironment variable BRT_RUNTIME (do i have to add a new variable or it has to be present and i have to change it to CPU)
Second there is no step by step documention on how to get your first Brook+ program execute on VS
Any help would be highly appreciated.
That is not a bad idea. I have actually gotten my own code working on MS2008 and running on my dual GPUs. I will post how I did it a bit later. But for now, you basically need to tell the compiler where the libraries are for Brook+ and CAL as well how to compile a .br file. All these things can be found in the brook+ guide and the provided samples.
.br file is compiled using brcc. If you look at the custom build step of br file, it searches for brcc in $(BROOKROOT)\sdk\bin.
You need to make sure BROOKROOT environment variable is set to Brook+ installation directory. There is no need to set BRT_RUNTIME, this env var is used during runtime and not compilation.
Gaurav,
I think i am missing some setting to be done on VS2008.
My Btook+ environment variable is set to "C:\Program Files\ATI\ATI Brook+ 1.4.0_beta\sdk\lib" as mentioned in the installation guide.
And i thought that the sample file that are made availabe with Brook+ are already compiled .
All I want is how to write a small code in brook+ compile it ans execute it so that i can start testing smaller programs and learn brook+.
Thanks for the reply
You can take a look at Brook+ Programming Guide (section 1.2.2) comming with open source Brook+ (http://sourceforge.net/projects/brookplus/).
Gaurav
Thanks for the link but the tar file has a file with run extension how do i open that.
Go to http://sourceforge.net/projects/brookplus/files/
It has zip files for windows too.
Gaurav,
I had already used this file well it was with a different name .
I have done everything mentioned in the file.
I tried uninstalling and re installing VS2008 even that did'nt work
Are you not able to compile samples coming with SDK?
I am trying to compile the samples only and still get the errors i have mentioned above.
Is BROOKROOT environment variable set on your machine?
yes it is set to the BROOKROOT\sdk\lib directory
How can BROOKROOT set to BROOKROOT\sdk\lib?
Make sure it is set to installation directory of Brook+.
Well thats what i meant
C:\Program Files\ATI\ATI Brook+ 1.4.0_beta\sdk\lib
Change it to C:\Program Files\ATI\ATI Brook+ 1.4.0_beta\
I still get the error but this time a different one
1>------ Rebuild All started: Project: hello_brook, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'hello_brook', configuration 'Debug|Win32'
1>Performing Custom Build Step
1>A subdirectory or file brookgenfiles already exists.
1>Compiling...
1>util.cpp
1>Timer.cpp
1>SampleBase.cpp
1>Main.cpp
1>HelloBrook.cpp
1>hello_brook.cpp
1>Generating Code...
1>Linking...
1>LINK : fatal error LNK1181: cannot open input file 'C:\Program.obj'
1>Build log was saved at "file://c:\Program Files\ATI\ATI Brook+ 1.4.0_beta\samples\CPP\apps\HelloBrook\built_d\xp_x86_32\BuildLog.htm"
1>hello_brook - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Hi
I could solve the link error the brook.lib path was wrong but I again get the same error with which i started off .
Can you make sure-
1. BROOKROOT environment variable points to Brook+ installation directory
2. $(BROOKROOT)\sdk\bin contains brcc.exe and brcc_d.exe
3. Custom build step of .br file compiles br file using brcc and look for it at $(BROOKROOT)\sdk\bin location.
4. $(BROOKROOT)\sdk\lib contains brook.lib aand brook_d.lib
5. Your library path is "$(BROOKROOT)\sdk\lib"
6. You are linking with brook.lib or brook_d.lib.
1. BROOKROOT environment variable points to Brook+ installation directory
Yes BROOKROOT points to installation directory.
2. $(BROOKROOT)\sdk\bin contains brcc.exe and brcc_d.exe
Yes
3. Custom build step of .br file compiles br file using brcc and look for it at $(BROOKROOT)\sdk\bin location.
Are you talking abt the custom build in VS2008 .The command line has folloing entry
mkdir brookgenfiles | "$(BROOKROOT)\sdk\bin\brcc_d.exe" -o "$(ProjectDir)\brookgenfiles\$(InputName)" "$(InputPath)"
4. $(BROOKROOT)\sdk\lib contains brook.lib aand brook_d.lib
Yes it contains both the files
5. Your library path is "$(BROOKROOT)\sdk\lib"
Yes
6. You are linking with brook.lib or brook_d.lib.
I m linking brook.lib
Any Help Guys
Any Help
LenAlox ,
What guide are u talking abt i did follow the installation guide that
Brook_Plus_Installation_Notes
I did everything thats mentioned in that as far as I remember
Now I installed VS2005 and i can build the sample peoject Hello_Brook but when i execute the exe file hello_brook i get the error saying the aticalcl.dll was not found .
The CALROOT environment variable is C:\Program Files\ATI\ATI CAL 1.4.0_beta
I tried CALROOT C:\Program Files\ATI\ATI CAL 1.4.0_beta\lib\lh32
which has the aticalcl.dll file
Also how do execute the project from VS2005
I got to compile the samples But i dont know how to make a new project in VS2005
What i did was created a random new project and added the br file to it it compiled fine and generated the Cpp and the header files but it did not genereate the exe file .
How do i go about it .
Now I installed VS2005 and i can build the sample peoject Hello_Brook but when i execute the exe file hello_brook i get the error saying the aticalcl.dll was not found .
The CALROOT environment variable is C:\Program Files\ATI\ATI CAL 1.4.0_beta
I tried CALROOT C:\Program Files\ATI\ATI CAL 1.4.0_beta\lib\lh32
which has the aticalcl.dll file
aticalcl.dll is shipped with ATI display drivers? Do you have ATI card on your system.
No I dont have a card on my system i am excuting in CPU mode
I got to run a program on CPU but the problem is i have to work with the existing project and put my br file in it .
If i create a new project i cannot build the same br file even though i copy all the project setting .
I think it depends on the type of project i am creating , don't know which one I should create.
Are you able to compile and build your project?
You need to create a console application.
Yes I am able to compile and build in VS2005