Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12745 Discussions

Error while building the "Hello World" Project

Altera_Forum
Honored Contributor II
2,154 Views

Hy, 

 

I recently installed the Developement Kit for NIOSII (InternetEvalVersion) and tried to make the "hello world" tutorial with the std_1c20 core (also tutorial code). 

When I try to build it I get the error:  

 

>make -s all  

>Creating generated_all.mk... 

>Can't locate sh_launch.pm in @INC (@INC contains: /cygdrive/c/altera/kits/nios2/bin .) at - line 2. 

>BEGIN failed--compilation aborted at - line 2. 

>make: *** [system_description/../obj/generated_all.mk-t] Error 2 

 

 

the sh_launch is in the correct directory, so I don't know what is the problem. 

I reinstalled it, again, but it didnot help. 

 

When i have a look in the .workspace directory, it tells me, that :  

 

!ENTRY org.eclipse.core.runtime 2 1 Oct 05, 2004 11:48:19.07 

!MESSAGE Problems encountered loading the plug-in registry. 

!SUBENTRY 1 org.eclipse.core.runtime 2 1 Oct 05, 2004 11:48:19.07 

!MESSAGE Plug-in "com.altera.ide.lwip4ucos" was disabled due to missing or disabled prerequisite plug-in "com.altera.ide.nios2sdk". 

!SUBENTRY 1 org.eclipse.core.runtime 2 1 Oct 05, 2004 11:48:19.07 

!MESSAGE Unknown extension point "org.eclipse.pde.core.source" specified in plug-in "org.eclipse.cdt.source". 

!SUBENTRY 1 org.eclipse.core.runtime 2 1 Oct 05, 2004 11:48:19.07 

!MESSAGE Unknown extension point "org.eclipse.pde.core.source" specified in plug-in "org.eclipse.platform.source". 

!SUBENTRY 1 org.eclipse.core.runtime 2 1 Oct 05, 2004 11:48:19.07 

!MESSAGE Unknown extension point "org.eclipse.pde.core.source" specified in plug-in "org.eclipse.platform.win32.source". 

 

So there are several plug-ins missing.  

I had a look at the eclipse homepage, but there is no download section. 

Had anyone the same problem?  

Thank you very much for every suggestion what the problem could be. 

best regards
0 Kudos
9 Replies
Altera_Forum
Honored Contributor II
907 Views

Do you have any other eclipse plugins installed. Not many people do, but it's a possibility. 

Also, did you install the Microtronix Linux kit? 

 

any install information would be helpful.
0 Kudos
Altera_Forum
Honored Contributor II
907 Views

thanks a lot for the answer, 

 

I have installed on my system: 

 

Quartus II (latest version, full license), 

Microtronix Stratix Developement Kit, 

Microsim_ Altera 5.8c, 

a view Altera MegaCores, 

Altera NIOS II Evaluation Kit v1.0, 

and Cygwin (when I installed NIOSII Eval, it was also installed) 

 

 

I didnot install any other eclipse plugins consciously 

and I dont have the Microtronix Linux kit, is it required?
0 Kudos
Altera_Forum
Honored Contributor II
907 Views

no, not required, there's another thread that I thought might apply here.  

 

Can you build any other program?
0 Kudos
Altera_Forum
Honored Contributor II
907 Views

No, I tried it with the other templates (binary count, another CPU-Template, another Selfmade-CPU). there is always the same error.  

 

I can make my own NIOSII-CPU with peripherial in the SOPC-Builder. 

The funny thing is, another colleage installed it on his PC, and it worked. maybe there is some registry garbage left from the NIOS-SDK and HDK. 

Do you know a good Registry cleaner? I tried WinWasher and regclean. 

But when I reinstall the whole Software (QuartusII, NiosII) , there is the error again.  

 

Do you have any other suggestion for me? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/unsure.gif  

 

best regards 

Roman Leitner
0 Kudos
Altera_Forum
Honored Contributor II
907 Views

Hy again, 

 

after all the trouble, I installed my pc new. (except the" document and setting"- files. They are stored on a server). 

I also installed the latest java version from http://java.sun.com/j2se/1.5.0/download.jsp (http://java.sun.com/j2se/1.5.0/download.jsp

After my reinstallation of NIOS2IDE I got another error message. 

 

 

>make -s all  

>Creating generated_all.mk... 

>Oct 11, 2004 6:59:22 PM - (SEVERE) generate: java.lang.IllegalStateException: java.lang.IllegalStateException: >java.lang.IllegalStateException: java.lang.IllegalStateException: java.lang.IllegalArgumentException: unexpected &#39;(&#39; in "ERROR in >function ptf_to_list: java.io.FileNotFoundException: \\ServerXXX.COM\Desktop_R\.sopc_builder\install.ptf (The system >cannot find the path specified)"f 

>make: *** [system_description/../obj/generated_all.mk-t] Error 1 

>Build completed 

 

I know that the path "\xxxxxServerxxx.COM\Desktop_R\.sopc_builder\install.ptf" does not excist, so the error message makes sense. 

But how can I change this path?  

The correct path would be local on my pc \\c:\document and settings\rleitner\.sopc_builder\install.ptf 

 

So my question is: How can I change the path? 

Or what is the correct path of the install.ptf on a working machine? 

 

 

Thank you for your help!! 

Roman
0 Kudos
Altera_Forum
Honored Contributor II
907 Views

rleitner, 

 

The ptf file is set in stage 4 of the tutorial after File->New->C/C++ Application you come to a dialog box, one of the fields is the SOPC Builder System. You need to point this to a valid design as per the text 

 

"Browse to the location of the standard example hardware design that corresponds to your Nios development board. For example, if you have the Nios development board, Cyclone Edition, browse to: 

 

 

<Nios II kit directory>\examples\verilog\niosII_cyclone_1c20\standard" 

 

My guess is you&#39;re not doing this step
0 Kudos
Altera_Forum
Honored Contributor II
907 Views

 

--- Quote Start ---  

originally posted by rugbybloke@Oct 12 2004, 04:09 AM 

rleitner, 

 

the ptf file is set in stage 4 of the tutorial after file->new->c/c++ application you come to a dialog box, one of the fields is the sopc builder system. you need to point this to a valid design as per the text 

 

"browse to the location of the standard example hardware design that corresponds to your nios development board. for example, if you have the nios development board, cyclone edition, browse to: 

 

 

<nios ii kit directory>\examples\verilog\niosii_cyclone_1c20\standard" 

 

my guess is you&#39;re not doing this step 

--- Quote End ---  

 

I am sorry, you missunderstood me, I wasnot clear enough. 

I am already pointing on this folder ( I use std_s140). I am able generate the libary, and so on, write my own c code in the IDE, but when I try to build the project the error occured. 

 

Is there any additional Softwarepack needed ?(e.g. Java, ......)
0 Kudos
Altera_Forum
Honored Contributor II
907 Views

no other software is needed. 

I&#39;ve asked someone else to take a look at this thread. Hopefully we can help you!
0 Kudos
Altera_Forum
Honored Contributor II
907 Views

Hi, 

 

The install.ptf file is discovered in your home directory, which on windows corresponds to the environment variable %USERPROFILE%. One thing to check is that this is set to where you expect, which by your description should be somewhere locally on your system versus the server location. You may be able to work around whatever problem is occuring by adjusting this variable, but note that this may have other effects (and should probably be tried in a subshell first rather than globally). Do you actually have a .sopc_builder directory with an install.ptf on your local system? It would probably be worth checking both locations to see where SOPC Builder, the creator of that file, is writing to as a first step before changing anything. 

 

If you can post what your %USERPROFILE% variable is set to and which of the two possible locations has the .sopc_builder file maybe we can figure something out from there.
0 Kudos
Reply