Closed aizitf closed 2 months ago
Hi @aizitf,
bindgen seems to generate different bindings than expected.
I cannot reproduce this on the systems I have available, could you share more information about your setup (architecture, windows version, etc).
Are you using the current main
branch?
While this is might be more of a work-around than a solution and I don't know if there are any other differences between your setup and our expected setup, you can try the following:
Here is my message:
windows version: Windows 11 64bits;
current branch:
architecture: What does this mean by architecture? My computer or the hardware board I need to test?
I will modify and test according to your instructions, and I will send out the test results later.
@arctic-alpaca Thank you. Now it build ok.
and the tricore-pribe.exe generated.
In addition, I would like to ask:
The removed code seems to be used to determine the system environment. Do I need to configure the 'CARGO_CFG_TARGET_OS' variable in the if branch?
windows version: Windows 11 64bits;
As far as I'm aware, we have not tested the setup on Windows 11, we might need to investigate this.
What does this mean by architecture?
I meant the architecture of the processor, x86(_64) or ARM. But I realized this was visible in your first screenshot.
The removed code seems to be used to determine the system environment. Do I need to configure the 'CARGO_CFG_TARGET_OS' variable in the if branch?
You do not need to configure anything, this is done by the Cargo build system. The removed code should build the bindings on Windows machines or use pre-built bindings on Linux. For some reason the bindings generated on your system differ from what is generated on our systems. With the code removed, it now uses the pre-built bindings.
Now it build ok.
Very happy to hear! Let us know if you encounter any other issues.
@arctic-alpaca ok. Thank you for your help. I have no more questions about this issue.
I followed the link to download the project, and then installed the tools according to the instructions in GitHub. https://github.com/veecle/tricore-probe?tab=readme-ov-file#requirements The following error occurred when compiling:
![image](https://github.com/veecle/tricore-probe/assets/68260096/45b61167-1ed1-4577-ab4c-cafb432ed3a1)