Skip to content
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

Project generator doesnt add references to DX headers and libs #86

Closed
Dinno opened this issue Oct 15, 2012 · 5 comments
Closed

Project generator doesnt add references to DX headers and libs #86

Dinno opened this issue Oct 15, 2012 · 5 comments

Comments

@Dinno
Copy link

Dinno commented Oct 15, 2012

I use VS2008 projects. When I try to build newly generated project in it, I get errors like that:

  Error 22  fatal error C1083: Cannot open include file: 'dinput.h': No such file or directory  c:\users\denis\documents\workspace\torque3d\engine\source\platformwin32\windinputdevice.h   37  test DLL

To correct these errors I add additional headers and libraries directories for DX SDK to "test DLL" project. But it is pretty inconvenient, because I want to regenerate IDE projects easily for example when I add files to source directory inside my Torque project.

@ScottBurns-GG
Copy link
Member

Do you have the DX SDK installed somewhere other than the default location, or the DX SDK environment variable not defined on your machine?

@MusicMonkey5555
Copy link
Contributor

Speaking of that I know I personally changed the dx paths to use the environment variables so that it doesn't mess something up when someone is on a 64 bit os.

That should probably be done to the head build just to make things easier.

@ScottBurns-GG
Copy link
Member

That's why I asked that. It shouldn't be an issue as I updated the project generator last year to use the DX environment variables for VS2010 and it should have already been using them in VS2008.

@Dinno
Copy link
Author

Dinno commented Oct 16, 2012

DX SDK installed in C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\ and DXSDK_DIR environment variable points to correct location.

I see that this variable is used only in two files:
Tools\projectGenerator\templates\vc2010_dll_proj.tpl
Tools\projectGenerator\templates\vc2010_proj.tpl
There is one more file which uses it in directory templates_c, but I suppose that it is compiled template and it is of no interest.
So we see that only VC2010 projects implement this part correctly. I will try to fix this if you do not mind.

@DavidWyand-GG
Copy link
Member

Closing this ticket as Pull Request #92 took care of this and was also closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants