Sysprogs forums › Forums › VisualGDB › Relative path to ESP-IDF toolchain
- This topic has 5 replies, 2 voices, and was last updated 2 years, 3 months ago by lzambonelli@axeltechnology.
-
AuthorPosts
-
August 5, 2022 at 05:25 #32948lzambonelli@axeltechnologyParticipant
Hi,
i’m testing your VisualGDB for different project.
Is there a way to set different toolchain path for different project? In pur company we usually git as main repo, and i would have toolchain going with the source code
Is that possible?
Thanks in advance
Leonardo Zambonelli
August 5, 2022 at 08:10 #32954supportKeymasterHi,
VisualGDB references toolchains using unique IDs and versions:
- Each project file contains a ToolchainID element with the toolchain ID and version
- VisualGDB matches it against a list of known toolchains on this computer (see this page) and automatically loads the correct toolchain
This mechanism allows having different toolchain locations on different machines while sharing the same project file between all users.
If you would like to check in your toolchain into the your repo, you can simply move the toolchain there, and then import it into VisualGDB on each computer (click the “locate existing toolchain” link in the toolchain selector and point it to the toolchain.xml file). VisualGDB will then automatically locate it using the usual ToolchainID reference.
You can also use the Team Settings to automatically install the same toolchain on multiple computers.
August 11, 2022 at 03:47 #32986lzambonelli@axeltechnologyParticipantHi,
i’ve tried your solution but not clear what happened.
I added my custom path as toolchain using the command “Locate an Existing SDK checkout”.
I worked but in the project file i have an absolute path, that does not allow to use on another machine
<ESPIDFExtension>
<IDFCheckout>
<Version>master</Version>
<Subdirectory>/c/Projects/AxelProjectGit/MrLightRGB/toolchain/v4.3.1</Subdirectory>
<Type>ESPIDF</Type>
</IDFCheckout>
<COMPort>COM3</COMPort>
<SuppressTestPrerequisiteChecks>false</SuppressTestPrerequisiteChecks>
<UseCCache>false</UseCCache>
</ESPIDFExtension>I’ve tried using relative path, but neither ../../toolchain/v4.3.1 nor ${ProjectPath}../../toolchain/v4.3.1 worked because it seems VisualGDB combine this path with the installed path
August 11, 2022 at 08:22 #32987supportKeymasterHi,
This is the ESP-IDF path, not the toolchain path. If you would like to change the toolchain path, please refer to the instructions from our previous reply.
The ESP-IDF always needs to be installed in a subdirectory under the toolchain directory and cannot be referenced via a relative path. If you would like to check it into source control, please consider putting it into a separate git repository and checking it out under the toolchain directory.
August 16, 2022 at 02:54 #33015lzambonelli@axeltechnologyParticipantHi, thanks for your reply.
Done steps forward but still have problem:
Attached my vgdbproj file
This is the error i get if i try to pull everything (source+toolchain+sdk) from git
Attached the error i get!I’ve already imported toolchain (selecting the toolchain.xml file) as well as the sdk
Any suggestion?
Thanks in advance for your kindly help
Leonardo Zambonelli
Attachments:
You must be logged in to view attached files.August 16, 2022 at 03:03 #33018lzambonelli@axeltechnologyParticipantFixed.
In my git repo all EXE, DLL and .O files have not been added to source control.
Now it works like a charm -
AuthorPosts
- You must be logged in to reply to this topic.