Error in cleaning and building the projects.
응답
18. 3. 7 오전 7:42

Hello, I am very new to XDK and the application XDK workbench. After watching a tutorial on youtube for the HelloWorld Tutorial, I decided to try it out for myself.

However after countless of hours searching for a solution to the below problem on google, I am still not able to solve it. 

The problems when I clean the project:

application.mk:338: *** mixed implicit and normal rules.  Stop.
Makefile:32: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2

I am still not sure how to solve this and I hope someone is able to help me out. Thank You.

My XDK version - 110

XDK Workbench 3.3.0

Regards, 

John

0 (0 투표)
RE: Error in cleaning and building the projects.
응답
18. 3. 7 오후 2:30 as a reply to John Tan.
Hello John,

the makefile is very sensitive when it comes to the directory the makefile itself or source and target files are located in. For example, it does not accept some special characters, such as % or whitespace, in its path.

As such, the Workbench itself and the Workspace should not be located on a directory path that contains spaces or special characters. Workbench 3.3.0 automatically creates the Workspace in your User's Directory. Something like mydirectory\XDK Workbench would not work, because of the space between XDK and Workbench

If this is not the case, did you perhaps make some changes within the makefile of your Project? Usually, cleaning should not produce any errors, if the clean rule of the makefile had not been changed. Have you tried creating a new project, to see if this still produces the same error?

Please tell me if this was helpful, and do not hesitate to ask further questions.

Kind regards,
Franjo
+1 (1 투표)
RE: Error in cleaning and building the projects.
응답
18. 3. 8 오전 1:33 as a reply to Franjo Stjepandic.

Dear Sir,

Thank you for your reply. I have tried out the solutions however the error still exists. I am not sure if i did change my clean settings. Below is the cleaning program found in my makefile.

clean: 
    $(MAKE) -C $(BCDS_BASE_DIR)/xdk110/Common -f application.mk clean

I tried to use the example found on the welcome page but when i clean it I still keep on meeting the same error of the makefile. As for the directory, it is stored in my XDK-Workspace - XDK Workbench. Is there a way i can omit the spacing between the XDK and Workbench? Also, I have experimented with a few other projects without changing anything in it. However, the outcome is still the same.

Regards,

John

 

0 (0 투표)
RE: Error in cleaning and building the projects.
응답
18. 3. 8 오전 7:51 as a reply to John Tan.
Do you think I should download an older version of the XDK workbench and clean function? I am thinking that my laptop is having some issues with the latest version of the workbench..
0 (0 투표)
RE: Error in cleaning and building the projects.
응답
18. 3. 8 오후 3:14 as a reply to John Tan.
Hello John,

I am not quite sure if I understand where your XDK-Workspace is located, but I assume that you do have spaces on that path.

As such, first of all, I would like you to verify that the build path is correct.

You find the path by right-clicking your project, select Properties , go to C/C++ Build and you will find the field Build location / Build directory there. This value should be ${workspace_loc:\YourProjectName} .

Now, the last point of the error may be the workspace_loc variable - this points to your Workspace directory. You can change this manually after opening your Workbench. For this, in the top menu bar, select File > Switch Workspace > Other... and then select your workspace appropriately.

But this will revert to the default workspace after every restart of the XDK-Workbench. To change the default, go to the directory: XDK-Workbench > XDK > configuration and open the file config.ini .

Inside that file, change the part osgi.instance.area.default=@user.home/XDK-Workbench to your desired path. As an example, you could change this to osgi.instance.area.default=./workspace , and afterwards, the workspace will be located in XDK-Workbench > XDK > workspace .

Please tell me if this was helpful, and do not hesitate to ask further questions.

Kind regards,
Franjo
0 (0 투표)
RE: Error in cleaning and building the projects.
응답
18. 3. 13 오후 1:07 as a reply to Franjo Stjepandic.

Hello John,

what you could try is to navigate to your workspace dir.

My was at "C:\Users\%YOUR_USERNAME%\XDK-Workspace\"

I'll find there your projects. Make a backup of those files and delete them. Aftrer that you could try the building with one of provided examples (at welcome screen). If error disappears, then there must be something with your project files.

 

Write down if it helped!

0 (0 투표)
RE: Error in cleaning and building the projects.
응답
19. 5. 8 오후 9:52 as a reply to Aleksandr Gorovoj.

Hi,

I am new to xdk and also having same issue.i create a project with template and it fails clean without any changes .

I am using in Mac and created Windows environment using VMWare.since i noticed there should not be space in path so i verified that .I have space in my username itself .will that impact ?how can i resolve this issue .Can i use XDK directly in MAC ?

 

Thank you. 

0 (0 투표)
RE: Error in cleaning and building the projects.
응답
19. 9. 16 오후 2:58 as a reply to Khajan Pandey.
I was getting the same error, it was happening because XDK Workbench was installed on "C:\Program Files", as you can see the path contains a space. I fixed it reinstalling XDK on the path "C:\XDK-Workbench"
0 (0 투표)