05-22-2012 11:30 AM
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/81D1172E3C2
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
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/81D1172E3C2
To be clear, the setup-gcc.bat file should read:
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
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,
05-24-2012 11:25 AM
Please extract to C:\vxworks61gccdist not C:\gccdist, next, please change the red box line:
Give that a try and let me know if it works, thanks!
05-24-2012 02:51 PM
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
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
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?
05-25-2012 04:00 PM
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:
05-29-2012 11:02 AM
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)