Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not make sense to me since it's trying to include public and internal header file for source code build with relative path.
Why we need to change it to use absolute folder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the relative path is wrong. From
QATzip/build/src
+../include
you only get toQATzip/build/include
and the headers are not there. The relative paths are relative to where the compiler is launched, not to where the file is.qatlib needed a similar fix, see intel/qatlib#57
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hello, @thiagomacieira, very thanks for your PR, but this issue is caused by the script "cd build ..... ${MAKE-make} -C src V=1", it means you are build the qatzip lib out the "QZ_ROOT".
For now, we don't recommand the customer to build the qatzip lib out of the "QZ_ROOT", because it may cause the Version confusion or other issue when you use the perf script from the qatzip. we recommand you to build the qatzip in
QZ_ROOT
, then maybe install the qatzip lib. it would aviod this issue.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't care about perf scripts. I just need to build and building out-of-tree is a requirement. This patch fixes the build.