-
Notifications
You must be signed in to change notification settings - Fork 35
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
Can't build project, looks like there's at least one unlisted dependency #7
Comments
That is weird, those types should come from the directX part of https://github.com/axodox/axodox-common/blob/main/Axodox.Common.Shared/includes.h Can you verify that it is included? |
I have the same issue. It sounds like solution cannot be built from visual studio application directly. I suppose it's related with usage of axodox.common package, because it defines needed macro for direct3d. (My visual studio showed errors that common's headers cannot be found) But usage build_nuget.ps1 script allowed me to build library. I hope this may help |
I have ran update_dependencies.ps1 and committed the results. It will work now. |
The issue was that the code was still referencing an older version of axodox-common. On my setup I use env vars to allow simultaneous building of of common, machinelearning and unpaint without regenerating nuget packages or updating any references, while the build script is designed to pull the latest nuget no matter what. In your case you build straight from Studio, and have not run the update_dependencies.ps1, this resulting in VS trying to build the code with the old version of common, which failed. |
You may close the issue, if you see that my latest change resolved it for you. |
@axodox Thank you, now it looks better. I have built Desktop/Test project via studio. Unfortunately Universal project outputs error: |
@alex-aparin Usually VS would prompt you with a GUI to install when opening the solution. You can just open VS installer and install the "C++ (v143) Universal Windows Platform tools" from individual components tab. |
Hi,
I made sure I have all the dependencies listed in the readme, but I still can't build the project. It looks like there's at least one more dependency that I need to install, but I have no idea what it might be. Build output (see attached file for entire output):
Build started...
1>------ Build started: Project: Axodox.MachineLearning.Desktop, Configuration: Debug x64 ------
1>pch.cpp
1>C:\github2\axodox-machinelearning\packages\Axodox.Common.1.0.12\include\Graphics\Devices\GraphicsTypes.h(7,38): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\github2\axodox-machinelearning\packages\Axodox.Common.1.0.12\include\Graphics\Devices\GraphicsTypes.h(7,25): error C2146: syntax error: missing ';' before identifier 'IDXGIFactoryT'
1>C:\github2\axodox-machinelearning\packages\Axodox.Common.1.0.12\include\Graphics\Devices\GraphicsTypes.h(8,38): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\github2\axodox-machinelearning\packages\Axodox.Common.1.0.12\include\Graphics\Devices\GraphicsTypes.h(8,25): error C2146: syntax error: missing ';' before identifier 'IDXGIAdapterT'
// more errors follow ...
Looks like for whatever reason, the symbols in GraphicsTypes.h (IDXGIFactory4, IDXGIAdapter3, ID3D11Device5, etc) are undefined.
BuildErrors.txt
The text was updated successfully, but these errors were encountered: