error from eclipse Launching scracth-simulator has encountered a problem

1,222 views
Skip to first unread message

Giuseppe Ferrante

unread,
May 11, 2012, 4:57:16 AM5/11/12
to ns-3-...@googlegroups.com
Hi everybody,
i'm trying to launch my first application in eclipse, but it doesn't work, 
each application i tried to run got the same error 

Error starting process.
Exec_tty error:Cannot run program "/home/giuseppe/workspace/lena/scratch/scratch-simulator.cc": Unknown reason
Exec_tty error:Cannot run program "/home/giuseppe/workspace/lena/scratch/scratch-simulator.cc": Unknown reason
Exec_tty error:Cannot run program "/home/giuseppe/workspace/lena/scratch/scratch-simulator.cc": Unknown reason

from ubuntu terminal everything works.
i configured my eclipse following the guide on nsnam.org 
i tried also to configure the external running tool, but in this case i got this errorWaf: Run from a directory containing a file named 'wscript'
please help me..

Giuseppe Ferrante

unread,
May 11, 2012, 5:46:24 AM5/11/12
to ns-3-...@googlegroups.com
there was a grammatical error when i pass the argument in the external tool but now i got this error

No function /scratch/scratch-simulator.cc defined in /home/giuseppe/workspace/lena/wscript

Giuseppe Ferrante

unread,
May 11, 2012, 6:16:33 AM5/11/12
to ns-3-...@googlegroups.com
i missing --run in the argument now i get:

Waf: Entering directory `/home/giuseppe/workspace/lena/build'
program '/scratch/scratch-simulator.cc' not found;
 available programs are: 


['aodv', 'src/aodv/examples/aodv', 'csma-bridge', 'src/bridge/examples/csma-bridge', 'csma-bridge-one-hop', 'src/bridge/examples/csma-bridge-one-hop', 'buildings-pathloss-profiler', 'src/buildings/examples/buildings-pathloss-profiler', 'config-store-save', 'src/config-store/examples/config-store-save', 'main-callback', 'src/core/examples/main-callback', 'sample-simulator', 'src/core/examples/sample-simulator', 'main-ptr', 'src/core/examples/main-ptr', 'main-random-variable', 'src/core/examples/main-random-variable', 'sample-random-variable', 'src/core/examples/sample-random-variable', 'main-test-sync', 'src/core/examples/main-test-sync', 'csma-one-subnet', 'src/csma/examples/csma-one-subnet', 'csma-broadcast', 'src/csma/examples/csma-broadcast', 'csma-packet-socket', 'src/csma/examples/csma-packet-socket', 'csma-multicast', 'src/csma/examples/csma-multicast', 'csma-raw-ip-socket', 'src/csma/examples/csma-raw-ip-socket', 'csma-ping', 'src/csma/examples/csma-ping', 'csma-star', 'src/csma-layout/examples/csma-star', 'dsdv-manet', 'src/dsdv/examples/dsdv-manet', 'emu-udp-echo', 'src/emu/examples/emu-udp-echo', 'emu-ping', 'src/emu/examples/emu-ping', 'li-ion-energy-source', 'src/energy/examples/li-ion-energy-source', 'main-simple', 'src/internet/examples/main-simple', 'lena-cqi-threshold', 'src/lte/examples/lena-cqi-threshold', 'lena-dual-stripe', 'src/lte/examples/lena-dual-stripe', 'lena-fading', 'src/lte/examples/lena-fading', 'lena-intercell-interference', 'src/lte/examples/lena-intercell-interference', 'lena-pathloss-traces', 'src/lte/examples/lena-pathloss-traces', 'lena-profiling', 'src/lte/examples/lena-profiling', 'lena-rem', 'src/lte/examples/lena-rem', 'lena-rem-sector-antenna', 'src/lte/examples/lena-rem-sector-antenna', 'lena-rlc-traces', 'src/lte/examples/lena-rlc-traces', 'lena-simple', 'src/lte/examples/lena-simple', 'lena-simple-epc', 'src/lte/examples/lena-simple-epc', 'mesh', 'src/mesh/examples/mesh', 'main-grid-topology', 'src/mobility/examples/main-grid-topology', 'main-random-topology', 'src/mobility/examples/main-random-topology', 'main-random-walk', 'src/mobility/examples/main-random-walk', 'simple-distributed', 'src/mpi/examples/simple-distributed', 'third-distributed', 'src/mpi/examples/third-distributed', 'nms-p2p-nix-distributed', 'src/mpi/examples/nms-p2p-nix-distributed', 'dumbbell-animation', 'src/netanim/examples/dumbbell-animation', 'grid-animation', 'src/netanim/examples/grid-animation', 'star-animation', 'src/netanim/examples/star-animation', 'wireless-animation', 'src/netanim/examples/wireless-animation', 'main-packet-header', 'src/network/examples/main-packet-header', 'main-packet-tag', 'src/network/examples/main-packet-tag', 'red-tests', 'src/network/examples/red-tests', 'droptail_vs_red', 'src/network/examples/droptail_vs_red', 'nix-simple', 'src/nix-vector-routing/examples/nix-simple', 'nms-p2p-nix', 'src/nix-vector-routing/examples/nms-p2p-nix', 'simple-point-to-point-olsr', 'src/olsr/examples/simple-point-to-point-olsr', 'olsr-hna', 'src/olsr/examples/olsr-hna', 'main-attribute-value', 'src/point-to-point/examples/main-attribute-value', 'main-propagation-loss', 'src/propagation/examples/main-propagation-loss', 'adhoc-aloha-ideal-phy', 'src/spectrum/examples/adhoc-aloha-ideal-phy', 'adhoc-aloha-ideal-phy-matrix-propagation-loss-model', 'src/spectrum/examples/adhoc-aloha-ideal-phy-matrix-propagation-loss-model', 'adhoc-aloha-ideal-phy-with-microwave-oven', 'src/spectrum/examples/adhoc-aloha-ideal-phy-with-microwave-oven', 'tap-csma', 'src/tap-bridge/examples/tap-csma', 'tap-csma-virtual-machine', 'src/tap-bridge/examples/tap-csma-virtual-machine', 'tap-wifi-virtual-machine', 'src/tap-bridge/examples/tap-wifi-virtual-machine', 'tap-wifi-dumbbell', 'src/tap-bridge/examples/tap-wifi-dumbbell', 'gnuplot-example', 'src/tools/examples/gnuplot-example', 'topology-read', 'src/topology-read/examples/topology-read', 'uan-cw-example', 'src/uan/examples/uan-cw-example', 'uan-rc-example', 'src/uan/examples/uan-rc-example', 'virtual-net-device', 'src/virtual-net-device/examples/virtual-net-device', 'wifi-phy-test', 'src/wifi/examples/wifi-phy-test', 'wimax-ipv4', 'src/wimax/examples/wimax-ipv4', 'wimax-multicast', 'src/wimax/examples/wimax-multicast', 'wimax-simple', 'src/wimax/examples/wimax-simple', 'socket-bound-static-routing', 'examples/socket/socket-bound-static-routing', 'socket-bound-tcp-static-routing', 'examples/socket/socket-bound-tcp-static-routing', 'udp-client-server', 'examples/udp-client-server/udp-client-server', 'udp-trace-client-server', 'examples/udp-client-server/udp-trace-client-server', 'realtime-udp-echo', 'examples/realtime/realtime-udp-echo', 'ns2-mobility-trace', 'examples/mobility/ns2-mobility-trace', 'object-names', 'examples/naming/object-names', 'energy-model-example', 'examples/energy/energy-model-example', 'simple-error-model', 'examples/error-model/simple-error-model', 'dynamic-global-routing', 'examples/routing/dynamic-global-routing', 'static-routing-slash32', 'examples/routing/static-routing-slash32', 'global-routing-slash32', 'examples/routing/global-routing-slash32', 'global-injection-slash32', 'examples/routing/global-injection-slash32', 'simple-global-routing', 'examples/routing/simple-global-routing', 'simple-alternate-routing', 'examples/routing/simple-alternate-routing', 'mixed-global-routing', 'examples/routing/mixed-global-routing', 'simple-routing-ping6', 'examples/routing/simple-routing-ping6', 'manet-routing-compare', 'examples/routing/manet-routing-compare', 'wifi-example-sim', 'examples/stats/wifi-example-sim', 'udp-echo', 'examples/udp/udp-echo', 'hello-simulator', 'examples/tutorial/hello-simulator', 'first', 'examples/tutorial/first', 'second', 'examples/tutorial/second', 'third', 'examples/tutorial/third', 'fourth', 'examples/tutorial/fourth', 'fifth', 'examples/tutorial/fifth', 'sixth', 'examples/tutorial/sixth', 'matrix-topology', 'examples/matrix-topology/matrix-topology', 'icmpv6-redirect', 'examples/ipv6/icmpv6-redirect', 'ping6', 'examples/ipv6/ping6', 'radvd', 'examples/ipv6/radvd', 'radvd-two-prefix', 'examples/ipv6/radvd-two-prefix', 'test-ipv6', 'examples/ipv6/test-ipv6', 'fragmentation-ipv6', 'examples/ipv6/fragmentation-ipv6', 'loose-routing-ipv6', 'examples/ipv6/loose-routing-ipv6', 'mixed-wireless', 'examples/wireless/mixed-wireless', 'wifi-clear-channel-cmu', 'examples/wireless/wifi-clear-channel-cmu', 'wifi-wired-bridging', 'examples/wireless/wifi-wired-bridging', 'simple-wifi-frame-aggregation', 'examples/wireless/simple-wifi-frame-aggregation', 'multirate', 'examples/wireless/multirate', 'wifi-blockack', 'examples/wireless/wifi-blockack', 'ofdm-validation', 'examples/wireless/ofdm-validation', 'wifi-hidden-terminal', 'examples/wireless/wifi-hidden-terminal', 'tcp-nsc-lfn', 'examples/tcp/tcp-nsc-lfn', 'tcp-nsc-zoo', 'examples/tcp/tcp-nsc-zoo', 'tcp-star-server', 'examples/tcp/tcp-star-server', 'star', 'examples/tcp/star', 'tcp-bulk-send', 'examples/tcp/tcp-bulk-send', 'subdir', 'scratch/subdir/subdir', 'scratch-simulator', 'scratch/scratch-simulator', 'myfirst', 'scratch/myfirst', 'test-runner', 'utils/test-runner', 'bench-simulator', 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', 'print-introspected-doxygen', 'utils/print-introspected-doxygen', 'emu-sock-creator', 'src/emu/emu-sock-creator', 'tap-creator', 'src/tap-bridge/tap-creator']



Mitch Watrous

unread,
May 11, 2012, 2:15:08 PM5/11/12
to ns-3-users
Try to run the program without the ".cc" on the end.

Mitch

Giuseppe Ferrante

unread,
May 11, 2012, 2:29:23 PM5/11/12
to ns-3-...@googlegroups.com
i also tried but it dosn't work...
the same commands by terminal work. 
i got the same error by terminal when i make just ./waf --run /scratch/scratch-simulator
but (always by terminal) if i run by first: ./waf configure
and by second:  ./waf --run /scratch/scratch-simulator everything works

so im guessing that eclipse before make the run command dosn't make the command ./waf,
the strange things is that the console shows alsìways buid succeful......
im confused...about this behavior

alex 13

unread,
Jun 17, 2012, 7:17:55 AM6/17/12
to ns-3-...@googlegroups.com
Hi Giuseppe, 

Did you finally find the solution? coz I'm having the same problem and I don't know how to solve it. It's working fine by terminal but in eclipse I got this error:

"No function run defined in /home/ale/Development/workspace/ns-3-dev/wscript"

any idea? 

Thanks

Lei Zhang

unread,
Oct 26, 2012, 2:06:44 AM10/26/12
to ns-3-...@googlegroups.com
did U guys fix the issue? I encountered it today, work fine in terminal, but failed at eclipse.



在 2012年5月11日星期五UTC+8下午4时57分16秒,Giuseppe Ferrante写道:

rahul hada

unread,
Nov 1, 2012, 12:41:08 AM11/1/12
to ns-3-...@googlegroups.com
Hello ,
Do you find the solution of this problem , as i m facing the same problem

Regards,

Rahul
India

Larissa Marinho Eglem de Oliveira

unread,
Feb 20, 2017, 2:29:26 PM2/20/17
to ns-3-users
Hello,

I'm running ns-3.26 on mac os El Captain and having exactly the same issue.

I can run scripts fine from the command prompt.

Any solutions?

Thank you.

Sincerely,
Larissa

Giuseppe Ferrante

unread,
Feb 21, 2017, 3:21:07 AM2/21/17
to ns-3-...@googlegroups.com
hi Larissa


thank you for emailing me.. but honestly has been a long time from my studies on NS3... i'm talking about 2008 during my thesis period and right now im out of all this world .. im really sorry but i cant help you

NS3 was something horrible for me.... it's a very complex system.. and it takes so much time..

good luck


Ing. Giuseppe Ferrante

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/Rgz30E84XEE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Larissa Marinho Eglem de Oliveira

unread,
Feb 22, 2017, 5:18:14 PM2/22/17
to ns-3-users
Hi Giuseppe,

Thank you for getting back to me so fast.

I was able to fix the problem. I had an extra space in the arguments field of the external tools configuration tab.

How it should be: --run "${string_prompt}" 
Error: -- run "${string_prompt}" 

Hopefully this might help other people.

All best,
Larissa
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages