Hello,

i downloaded and installed the XDK-Workbench and some Demos like the XDK Demo Data Logger according to their getting started. I also updated the XDK-Workbench to the newest version and inserted an FAT32-formatted microSD card with the necessary .ini files into the XDK (for the Demo Data Logger).

When i tried to flash the Data Logger i got two errors (see picture):
Program "g++" not found in PATH
Program "gcc" not found in PATH


After doing some research on the internet i could remove those errors by installing MinGW - is that the right way?

Although i could remove those errors, i still get a warning (see picture) when i flash or build the Data Logger:
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\...)

After flashing the Data Logger the XDK goes into application mode and stays with a permanently red led - which means "internal error".

By the way: with the Sensor Monitor Demo i get 11 similar warnings (see picture) while the VirtualXDK Demo doesn't bring up warnings.

How could i solve this? Are there missing files?

Thanks for your help!
Philipp Roth
0 (0 Stimmen)
g++/gcc not found in PATH & Invalid project path
Antwort
17.09.15 05:33 als Antwort auf Philipp Roth.
Philipp,

generally we have encountered quite some problems with the DataLogger Demo before which have been reported and mostly fixed here in the community.

One thing to start with to get the DataLogger Demo to work (at least that works for most people) is to reformat the SD card to FAT32 using Windows and only put the necessary logger.ini file on the SD card. Nothing else.

If that doesn't work for you, we can look more detailed into it and see how we can solve your problem.

About those warnings:
It looks to me like there's something seriously messed up with your XDK Workbench installation. You shouldn't have to install MinGW to have the g++ and gcc paths existing, these things should be included in the workbench.
For the rest of your warning, it seems like the XDK Workbench can't find the includes within your SDK. Again, this looks to me like your installation got messed up somehow.

Could you try to reinstall the XDK Workbenach and see if you still got those errors?

- Florian
0 (0 Stimmen)
g++/gcc not found in PATH & Invalid project path
Antwort
17.09.15 06:07 als Antwort auf Florian Harr.
Florian,

thanks for your answer.

The SD-Card should be OK - it was formatted to FAT32 using Windows and there are just the necessary .ini-files on it - nothing else. Also it doesn't seem to be a problem with the SD card because the XDK shows "internal error" and my problems occur while building/flashing the project, not during operation of the XDK.

I installed the XDK-Workbench on two different computers - always the same problem. I also updated the XDK-Workbench to it's newest vesion. I am actually not sure if there's just a missing path/reference or if the files it wants to reference to doesn't physically exist.

For example the warning: "Include path not found (C:\XDK-Workbench\SDK\lib\BSXlite\inc)" 
-> When i go into the specified SDK/lib folder, there is no BSXlite folder. Same for the other warnings. The folders it wants to include doesn't seem to exist.

Maybe it would help if someone sends me the missing folders separately?

Philipp
0 (0 Stimmen)
g++/gcc not found in PATH & Invalid project path
Antwort
18.09.15 02:30 als Antwort auf Philipp Roth.
Philipp,

what bothers me is that you're saying "necessary .ini-file s", while it is really one the logger.ini. We had several people that put both the logger.ini and the custlog.ini on the SD and that caused errors. 

The internal error indicator doesn't necessarily mean that it can't be a SD card failure. Basically anything outside two small use cases that are described in the getting started will cause the internal error state. 

What wonders me even more is that if those warnings would be important for the compilation and upload to your XDK, they wouldn't be warnings but errors keeping you from conituning to use the XDK Workbench.

To find out how to better assist you, could you provide me with the version number of your XDK workbench and further test the Data Logger demo again following the steps I mentioned before?

Thanks,
Florian
0 (0 Stimmen)
g++/gcc not found in PATH & Invalid project path
Antwort
18.09.15 06:31 als Antwort auf Florian Harr.
Florian,

again, thanks for your answer.
I really had both .ini-files on the SD card, but it doesn't work either when i remove the custlog.ini.

I now reinstalled the XDK-Workbench completely and updated it to the newest version again:

Version        : 1.3.0-SNAPSHOT
Build date    : 2015-06-03T13:11:20Z
Build ID        : B-392


Nothing has changed. Still the same errors and warnings. Again, the "g++/gcc not found in PATH" error can be removed by putting the MinGW installation folder to "C:\".

We will need the DataLogger Demo to get working as soon as possible, because we have an mechanical application on which we need to log some accelerations etc.

Thanks,
Philipp
 
0 (0 Stimmen)
g++/gcc not found in PATH & Invalid project path
Antwort
20.09.15 04:24 als Antwort auf Philipp Roth.
Philipp,

If all what I've suggested so far didn't work for you, the only thing that's left is to offer you remote support and look over these issues together with you.

If that's a solution to you, post your email address here and I'll be happy to get into contact with you.

I understand that you need immediate support and it's our goal to give you the best support possible, normally we reply to all request in less than 24 hrs.

- Florian
0 (0 Stimmen)
g++/gcc not found in PATH & Invalid project path
Antwort
22.09.15 05:43 als Antwort auf Florian Harr.
Florian,

yes that would be nice. My email adress is: fixed-term.philipp.roth@bosch.com

Thanks,
Philipp
0 (0 Stimmen)
g++/gcc not found in PATH & Invalid project path
Antwort
22.09.15 08:40 als Antwort auf Philipp Roth.
Florian,

I have two problems,

1. I am also still getting the 11 warnings when I build the demo sensor monitor_v3 application. But I can able to monitor the sensor readings. Is there any solution to discard these warnings. I have tried all the steps you mentioned but nothing helps me, even I installed in another PC and also I updated to the newest version but still same warnings exist.

Description    Resource    Path    Location    Type
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\lib\ServalStack\src\inc).    DSM_demoSensorMonitor        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\core\OS\OS_sleepMgt\default_config).    DSM_demoSensorMonitor        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\platform\device\BST\BMA).    DSM_demoSensorMonitor        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\api\include\Network\IP).    DSM_demoSensorMonitor        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\api\include\Radio\WLAN).    DSM_demoSensorMonitor        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\api\src\Network\IP).    DSM_demoSensorMonitor        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\api\src\Radio\WLAN).    DSM_demoSensorMonitor        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\drv\SDC_sdCardDriver).    DSM_demoSensorMonitor        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\drv\WID_wifiDriver).    DSM_demoSensorMonitor        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\HWconfig\HW_Sample_C1).    DSM_demoSensorMonitor        pathentry    Path Entry Problem
Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\HWconfig\HW_Sample_C1\PDC_pinDefaultConfig).    DSM_demoSensorMonitor        pathentry    Path Entry Problem


2. When I created a new c project using XDK project template and build the project, I got these error. I can't able to run the program usinig run option. please give the solution as soon as possible.
**** Build of configuration Default for project Sample program ****
mingw32-make debug 
mingw32-make: *** No rule to make target 'debug'.  Stop.

Regards,
sarathkumar
0 (0 Stimmen)
g++/gcc not found in PATH & Invalid project path
Antwort
24.09.15 03:54 als Antwort auf Sarathkumar karunakaran.
Hi Sarathkumar,

thanks for your question.

Though, I think your question is not exactly the same problem Philipp had, therefore I would like to ask you to open a new thread for this problem so we can handle this separately and only the responsible people will be notified when new replies arrive.

Thanks,
Florian
0 (0 Stimmen)
g++/gcc not found in PATH & Invalid project path
Antwort
24.09.15 04:14 als Antwort auf Florian Harr.
 
created by Philipp Roth on 22.09.2015, 07:43 AM
Florian,

yes that would be nice. My email adress is: fixed-term.philipp.roth@bosch.com

Thanks,
Philipp

I just sent you an email. 

Once we have a solution for your problem, let's get back to this thread.
0 (0 Stimmen)
g++/gcc not found in PATH & Invalid project path
Antwort
25.09.15 16:16 als Antwort auf Florian Harr.
Hey Philipp,

for your errors, could you please try what's outlined here to fix it?

https://xdk.bosch-connectivity.com/xdk-community/category/warnings-in-dsm_demosenormonitor_v3-application/35140-t/35357#id35357

- Florian
0 (0 Stimmen)
g++/gcc not found in PATH & Invalid project path
Antwort
28.09.15 06:15 als Antwort auf Florian Harr.
Hi,

i added the project exactly the same way as sarathkumar - because that's the way we are told to in the getting started (e.g. getting started of the DataLogger page 12, see screenshot).

Anyway if i add the project as you described it in the other thread ("C/C++ -> Existing Code as Makefile Project") it doesn't work either - i get the error mingw32-make: *** No rule to make target 'debug'. Stop.

This error was already discussed in an other thread (https://xdk.bosch-connectivity.com/xdk-community/category/building-of-template-based-projects-in-130-fails/25878-t/25877#id25877), but what's described there doesn't work for me.

- Philipp
0 (0 Stimmen)
g++/gcc not found in PATH & Invalid project path
Antwort
28.09.15 10:20 als Antwort auf Philipp Roth.
Philipp,

mingw32-make: *** No rule to make target 'debug'. Stop. 

simply says that the make file isn't recognized under the path where the makefile actually is. 
Please try it again through "C/C++..." and adjust the path for the make file like I mentioned in sarathkumar's thread.

The "No rule to make target ..." is a known bug where the workaroudn I described definitely fixes this error.

- Florian

0 (0 Stimmen)
g++/gcc not found in PATH & Invalid project path
Antwort
28.09.15 11:36 als Antwort auf Florian Harr.
Florian,

thanks for your fast reply! I think we're getting closer...

I added the project as you described it with "C/C++.." and could remove the upcoming error "mingw32-make: *** No rule to make target 'debug'. Stop." by adding "make" to the build directory.

But i still get those " g++/gcc not found in PATH" errors (when i install MinGW those errors are gone).
And even with MinGW installed (no errors and no warnings while flashing) the application doesn't work (red led permanently on) - but that could be an issue with the microSD card, so i'll try to get another one for testing.

Is it worth it trying to remove those errors in an other way than by installing MinGW? Is that an problem, even if there occur no errors and warnings with MinGW installed?

-Philipp

 
0 (0 Stimmen)
g++/gcc not found in PATH & Invalid project path
Antwort
28.09.15 12:15 als Antwort auf Philipp Roth.
Philipp,

I'm still wondering about the need to install MinGW, those dependencies are normally automatically installed with the XDK Workbench installer. Anyway, if MinGW solves that for you, you should go with that.

For the error with the SDCard, we have a few issues with the DataLogger Demo and others regarding the "readability" of SDCards. You could try another one and read through the forums here what I wrote before about what to keep in mind regarding using SDCards. 
If you still don't get along, I'm more than happy to schedule a remote support session with you.

Let me know how it goes!

- Florian
0 (0 Stimmen)
g++/gcc not found in PATH & Invalid project path
Antwort
29.09.15 06:23 als Antwort auf Florian Harr.
Florian,

OK, so i will try to get anoher SD card for testing now. If i don't get along i will let you know. Thanks for your help so far!

-Philipp
0 (0 Stimmen)
g++/gcc not found in PATH & Invalid project path
Antwort
27.11.15 12:53 als Antwort auf Philipp Roth.
Just for everyone else who might be reading this thread.

We got this problem solved, it was basically the SD card that couldn't be read as needed.
0 (0 Stimmen)