0
0

Hello all, I have a post build event that parses the built .h file to change the EVENTGUID lines to something that works in my VC++ project, then it copy’s and renames the file to .hpp.

ssr 0 "const char EVENTGUID" "const char const EVENTGUID" "..\data\Sounds\sounds.h" "..\Simulators\sounds.hpp"

When I build, I get an error that the post build event failed. If I go into the command prompt and CD to the FMOD Project directory, i can manually run the command successfully. How can I troubleshoot this reported failure? Here’s what the log shows:

Info : FSB Compilation complete
Running post-build commands…
Running command ‘ssr 0 "const char EVENTGUID" "const char const EVENTGUID" "..\data\Sounds\sounds.h" "..\Simulators\sounds.hpp"’…
Command ‘ssr 0 "const char EVENTGUID" "const char const EVENTGUID" "..\data\Sounds\sounds.h" "..\Simulators\sounds.hpp"’ failed
The following errors and warnings were detected:
Error : Post-build commands failed.

Warning : FMOD Designer : Build aborted after 00:00:01 (OK)

Any ideas?

  • You must to post comments
0
0

Apologies for the delay. Checking it out here.

Cheers

  • You must to post comments
0
0

[quote="gtzpower":37ps05jc]ssr 0 "const char EVENTGUID" "const char const EVENTGUID" "..\data\Sounds\sounds.h" "..\Simulators\sounds.hpp"

When I build, I get an error that the post build event failed. If I go into the command prompt and CD to the FMOD Project directory, i can manually run the command successfully. How can I troubleshoot this reported failure?[/quote:37ps05jc]
You need to specify the full path of the command you’re invoking. If the command executable (ssr.exe) is in the same directory as the project, you can use the $(ProjectDir) macro, as shown:

[code:37ps05jc]"$(ProjectDir)\ssr" 0 "const char EVENTGUID" "const char const EVENTGUID" "..\data\Sounds\sounds.h" "..\Simulators\sounds.hpp"[/code:37ps05jc]

We have a task in our tracker to make these commands relative to the project directory by default, but I don’t know when this will be implemented. The next build of Designer will at least log a message indicating the error that was encountered in cases like this.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.