Skip to main content
Dolence
Associate III
November 18, 2020
Solved

libtouchgfx-float-abi-hard.a error after importing existing project

  • November 18, 2020
  • 3 replies
  • 7006 views

I had to reinstall Windows on my PC. I made a backup of my projects and after everything was running I've downloaded and installed the latest STM32CubeIDE version. I'm trying to import my TouchGFX project back to the new workspace but it isn't compiling anymore. The reported error is:

cannot find -l:libtouchgfx-float-abi-hard.a

c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: cannot find -l:libtouchgfx-float-abi-hard.a

Any thoughts?

This topic has been closed for replies.
Best answer by Romain DIELEMAN

Hi,

What version of TouchGFX are you using ? Are you working with a custom project or are you using a TouchGFX Board Setup for one of ST's development kits ?

As Martin wrote, could you check your linker settings ? To do so right click on the project name in the Tree View in STM32CubeIDE, select "Properties". Then in the "C/C++ Build " tab go to "Settings" and check under the MCU G++ Linker that you have the correct library path.

Could you also check your library paths ? To do so right click on your project name in the Tree View in STM32CubeIDE, select "Properties". Then in the "C/C++ General" tab go to "Paths and Symbols" and check that you have the right includes and paths.

/Romain

3 replies

Martin KJELDSEN
Principal III
November 19, 2020

Please check the linker settings in CubeIDE - Are they pointing to the correct folder where the lib is located?

Jonathan O.
Visitor II
July 6, 2021

Hey there,

did you solve your issue?

I am having the same problem, but no clue how to solve this. I am very new to the CubeIDE.

Kind regards

Jonathan

Romain DIELEMAN
Romain DIELEMANBest answer
ST Employee
July 6, 2021

Hi,

What version of TouchGFX are you using ? Are you working with a custom project or are you using a TouchGFX Board Setup for one of ST's development kits ?

As Martin wrote, could you check your linker settings ? To do so right click on the project name in the Tree View in STM32CubeIDE, select "Properties". Then in the "C/C++ Build " tab go to "Settings" and check under the MCU G++ Linker that you have the correct library path.

Could you also check your library paths ? To do so right click on your project name in the Tree View in STM32CubeIDE, select "Properties". Then in the "C/C++ General" tab go to "Paths and Symbols" and check that you have the right includes and paths.

/Romain

Jonathan O.
Visitor II
July 7, 2021

Hi,

thanks for your help! It solved all my problems :)

Main problem was that the paths from my VM didn't match the paths on the Mac System. Fixed it and now it works fine!

Thanks!

Jonathan

Mkuma.5
Associate II
August 13, 2021

"simulator/gcc/Makefile:20: *** Spaces not allowed in path. Stop.

    Failed"

I get this issue while compiling or generating code. changed names but no luck yet. Any suggestions please.

DKhan.3
Visitor II
August 14, 2021

You can exclude simulator from build. Right click > Resource configuration > exclude from build.