cancel
Showing results for 
Search instead for 
Did you mean: 

Project can't be built - CubeIDE Window → Preferences → C/C++ → Build → Environment list is empty.

PeterWangPTD
Associate II

Hi, 

Project can't be built - CubeIDE Window → Preferences → C/C++ → Build → Environment list is empty.

   My CubeIDE 1.18.0 was working fine for many weeks with Nucleo-H753ZI board and CubeMX.

   Two days ago, it stopped working after I upgraded it to version 1.19.0. The screen stayed in IDE home window.

  Then

 

  1, I deleted directories below

      C:\ST\STM32CubeIDE_1.19.0
       C:\Users\User\STM32CubeIDE
       C:\Users\User\.eclipse 
       C:\STM32\Workspace

   2, I Installed STM32CubeIDE 1.18.0 as administrator.

   However, the project can't be built. I found -
  1. Window → Preferences → C/C++ → Build → Environment list is empty.
  2. .C:\Users\User\.eclipse is missing.- was not regenerated.

   I repeated the above steps to install 1.19.0 as administrator. The result is the same.

  1. Window → Preferences → C/C++ → Build → Environment list is empty.
  2. .C:\Users\User\.eclipse is missing.- was not generated.

Thank you very much for your help,

Rong

5 REPLIES 5
Pavel A.
Super User

Have you created a new workspace and imported the project into it?

Window → Preferences → C/C++ → Build → Environment list is empty.

This is normal, unless you've set something in previous version.

C:\Users\User\.eclipse is missing

This may be if you run CubeIDE as administrator rather than as the normal user.

 

Hi, Pavel,

   I had my project imported before my reinstallation, it could not be compiled since  Window → Preferences → C/C++ → Build → Environment list is empty.

   Now there is another problem - when launch CubeIDE, it automatically creates the workspace in below even if I deleted it every time  "C:\Users\User\STM32CubeIDE\workspace_1.19.0"

  When I imported my project to this workspace, or switch to my workspace, CubeIDE Window  stays in its HOME page. (Welcome to STM32CubeIDE) - I am not able to work on my project.

   Thanks,

Rong

  

TDK
Super User

The welcome to CubeIDE page can be closed by clicking the X on the tab.

The problem with the project is because it wasn't imported properly.

If you feel a post has answered your question, please click "Accept as Solution".

 I had my project imported before my reinstallation, it could not be compiled since  Window → Preferences → C/C++ → Build → Environment list is empty.

This is the main problem. Project can't be built.

I am able to see the project screen now.

 

The problem is in CubeMX "Project Manager" - where is a check box - "Build from the root", if you don't select (check) it, you will get many crazy problems.