From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-22-2012 11:30 AM
Hi,
I developed a C++ code, and I would like to call it from a LabVIEW Real-Time application that has a VxWorks target. I downloaded the redistributable GNU tool chain and installed it based on the instructions explained in the literature with “Document ID: 4V1ACUAF” (http://digital.ni.com/public.nsf/allkb/81D1172E3C28A5E4862575CC0076A230). However, It cannot compile the C++ example file and the corresponding error message is as follows:
I will appreciate if someone guide me to overcome this problem.
Thank you in advance
Solved! Go to Solution.
05-24-2012 01:16 AM
Hi Davarpanah,
Looking at the KB, we might have a mistake. I performed "make" without making the changes to the setup-gcc.bat file and everything worked perfectly. In addition, this DevZone article http://www.ni.com/white-paper/5694/en tells us that the GCCPATH should be "GCCPATH=gccdist" which in your case gccdist will be "vxworks61gccdist". If you follow the instructions on your original KB http://digital.ni.com/public.nsf/allkb/81D1172E3C28A5E4862575CC0076A230 and just skip steps 4 and 5 in the "Installing the GNU Tool Chain" section, I believe you should be fine.
To be clear, the setup-gcc.bat file should read:
set GCCPATH=C:\vxworks61gccdist
which is the original version when you download it. Let me know if this is the case, I hope this info helps!
05-24-2012 09:12 AM
Hi Aldo,
Thank you very much for your answer.
I performed what you suggested; however, it has the same problem as shown in the below picture. Moreover, i change the GCCPATH in setup-gcc.bat and also copy all filein the C:\ , but it doesn't work and the same message appears.
Thank you in advance for your guidance,
Davarpanah
05-24-2012 11:25 AM
Hi Davarpanah,
Please extract to C:\vxworks61gccdist not C:\gccdist, next, please change the red box line:
to read:
set GCCPATH=C:\vxworks61gccdist
Give that a try and let me know if it works, thanks!
05-24-2012 02:51 PM
Hi Aldo,
Thank you for your reply
I am sure that this problem is not for a wring path. Because i have investigated many cases with both versions of vxworks61 and vxworks63. But, I examined your suggestion againa and as it is shown in the following figure, it doesn't work.
Have you installed any other C++ compiler or other softwares which is in related to this program?
Thank you in advance for your help
05-25-2012 01:02 PM
Hi Davarpanah,
I do not have any other C++ compiler installed. I noticed that you are running as user Administ but that may not mean that you are running the CMD prompt as an Administrator. I believe that when "make" tries to create "example.o", it does not have the privileges as Administrator to create it which causes the make to error out as "file not found". Please make sure that you are running the cmd prompt as an administrator (see attached screenshot) and that you have the ability to create files in the root C:\ directory. After checking for privileges, try the build one more time. Thanks!
05-25-2012 02:28 PM
Hi Also,
Thanks a lot for your support. Unfortunately your last suggestion does not apply to me since I am already the system administrator and can create files/folders in C:.
I suspect that this issue has to do with "Environment Variables" under System Properties/Advanced. I had a similar issue with another compiler and eventually it turned out that an environment variable had to be deleted.
Any more thoughts/suggestions?
Thanks
05-25-2012 04:00 PM
Hi Devarpanah,
Can you post your Makefile and your setup-gcc.bat files? I would like to see the paths being built which will shed some light into this behavior. In addition, please perform the following commands in the cmd prompt and take a screenshot of the results:
echo %GCCPATH%
echo %PATH%
echo %WIND_BASE%
echo %WIND_HOME%
Thanks!
05-25-2012 04:57 PM
Hi Adlo,
Thank you very much for your answers
Regards,
Davarpanah
05-29-2012 11:02 AM
Hi Davarpanah,
Would you be able to check if the example.o file is being generated withing the PPC603 folder? Are the rest of the files generated? (example.d, example.o, and example.out)