Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Error by compiling Superloop SimpleSocketServer

I patched the simple socket server into a superloop application under 9.0SP2. "building_3c120_superloop_simple_socket_server_plu s.pdf". The patch finished successfully http://www.alteraforum.com/images/smilies/smile.gif :)

In NIOS-IDE i started a new project and edited the system.stf.

If i build the project than i get the following errors:http://www.alteraforum.com/images/smilies/confused.gif

The Simple Socket Server example requires the

NicheStack TCP/IP Stack Software Component.

But the NicheStack is added, just ALT_INICHE is not defined. If i comment this lines then, or i define ALT_INICHE then i get the following errors: :mad:

../network_utilities.c:22:28: alt_iniche_dev.h: No such file or directory

../network_utilities.c:24:20: ipport.h: No such file or directory

../network_utilities.c:25:21: tcpport.h: No such file or directory

../network_utilities.c:70: error: syntax error before "net"

../network_utilities.c: In function `get_mac_addr':

../network_utilities.c:72: error: `mac_addr' undeclared (first use in this function)

../network_utilities.c:72: error: (Each undeclared identifier is reported only once

../network_utilities.c:72: error: for each function it appears in.)

../network_utilities.c: At top level:

../network_utilities.c:87: error: syntax error before '*' token

../network_utilities.c: In function `get_ip_addr':

../network_utilities.c:95: warning: implicit declaration of function `strcmp'

../network_utilities.c:95: error: `p_dev' undeclared (first use in this function)

../network_utilities.c:95: error: syntax error before "INICHE_DEFAULT_IF"

../network_utilities.c:109: error: `ipaddr' undeclared (first use in this function)

../network_utilities.c:109: warning: implicit declaration of function `htonl'

../network_utilities.c:110: error: `gw' undeclared (first use in this function)

../network_utilities.c:111: error: `netmask' undeclared (first use in this function)

../network_utilities.c:112: error: `use_dhcp' undeclared (first use in this function)

I can not find the header-files ipport.h, alt_iniche_dev.h and tcpport.h. What is wrong?

Great thanks if anybody can help me!

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    I had tried too to compile this example.

    I think NIOS II IDE is not the environnement where this example is designed (a lot of patches, deep modifications, relative path, risky commands ..... that makes me crazy :-) ).

    I think you have to employ nios ii shell to build this application :

    Go to WindowsStartMenu > Altera > Nios II IDE ...> NIOS II shell command

    go to example app directory by a command like this (to adapt):

    cd /cygdrive/d/other_designs/20090611_superloop_sss_plus_neek_90sp1/superloop_sss_plus_neek_90sp1/software_example/superloop_simple_socket_server_plus/app/

    and enter

    ./create-this-app
    to build this application example.

    nb : you can change this last command by
    ./create-this-app > results_create_this_app.txt
    in order to create results_create_this_app.txt that contains all messages.

    And then (after 3 minutes for me) follow the instructions to download FPGA sof and Software application.

    Good Luck !

    Note : I don't success in importing in NIOS II IDE even after doing all above.

    NIOS II IDE Build command do nothing. No system library tied, etc....
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I got the similar problems as yours, but my trial is simple socket server. When built, several error appear, they are unresolved inlcusion :alt_dev_inich.h

    not define the ALT_INICHE that showing error and others I solved by adding some paths.

    How to define ALT_INICHE since I have already select it in BSP editor? Please tell me if you know.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    Here we are talking about superloop SimpleSocketServer (that means a simple socket server without any Operating System like ucOS II).

    Maybe you might search in an other thread.

    And NIOS II 9.1 comes with BSP which could have been better to work with than "system libraries" of NIOS II version <9.1

    May the force be with you ! :-)