That did the trick. I was able to complete the to create both the debug and release libraries. I was also able to build the demo applications. However when I run ./demo_mn_console. I got a "oplk_create() failed". See below for details.
openPOWERLINK console MN DEMO application
Using openPOWERLINK stack: V2.5.2
2017/04/25-12:26:27 INFO GENERIC demo_mn_console: Stack version:V2.5.2 Stack configuration:0x0000001B
2017/04/25-12:26:27 INFO GENERIC Using CDC file: mnobd.cdc
Initializing openPOWERLINK stack...
2017/04/25-12:26:27 INFO CONTROL Initializing openPOWERLINK stack
2017/04/25-12:26:27 INFO GENERIC Using libpcap for network access
List of Ethernet cards found in this system:
enp0s25
Pseudo-device that captures on all interfaces
any
lo
Linux netfilter log (NFLOG) interface
nflog
Linux netfilter queue (NFQUEUE) interface
nfqueue
wlo1
USB bus number 1
usbmon1
USB bus number 2
usbmon2
Select the interface to be used for POWERLINK (1-8):1
oplk_create() failed with "Resource could not be created (Windows, PxROS, ...)" (0x0008)
oplk_freeProcessImage() failed with "API called but stack is not initialized/running" (0x014e)
oplk_execNmtCommand() failed with "API called but stack is not initialized/running" (0x014e)
Stack is in state off ... Shutdown
2017/04/25-12:26:38 INFO CONTROL Stack is in state off ... Shutdown openPOWERLINK
Segmentation fault (core dumped)
syssw@roller:~/workspace/openPOWERLINK_V2.5.2/bin/linux/x86_64/demo_mn_console$
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please disregard my previous post. I ran "demo_mn_console" with sudo and the "oplk_create() failed" problem went away. The MN under Linux is now communicating with one of the CN under Windows.
Thanks for all your help,
Simon
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I am trying to bulld the openpowerlink stack on linux (x86 platform). I followed the instructions:
I completed the "cmake" step without errors. However, when I did "make", I encounter the following:
"fatal error: pcap.h: No such file or directory"
Does anybody know why that is happening?
Thanks,
Simon
Hi Simon,
you're missing libpcap (which is a dependency of openPOWERLINK) on your system. If you use Ubuntu do that:
sudo apt-get install libpcap-dev
Regards,
Norman
Hi Norman,
That did the trick. I was able to complete the to create both the debug and release libraries. I was also able to build the demo applications. However when I run ./demo_mn_console. I got a "oplk_create() failed". See below for details.
Any ideas why this happening? and how to fix it?
Thanks,
Simon
syssw@roller:~/workspace/openPOWERLINK_V2.5.2/bin/linux/x86_64/demo_mn_console$ ./demo_mn_console
openPOWERLINK console MN DEMO application
Using openPOWERLINK stack: V2.5.2
2017/04/25-12:26:27 INFO GENERIC demo_mn_console: Stack version:V2.5.2 Stack configuration:0x0000001B
2017/04/25-12:26:27 INFO GENERIC Using CDC file: mnobd.cdc
Initializing openPOWERLINK stack...
2017/04/25-12:26:27 INFO CONTROL Initializing openPOWERLINK stack
2017/04/25-12:26:27 INFO GENERIC Using libpcap for network access
List of Ethernet cards found in this system:
any
nflog
nfqueue
usbmon1
usbmon2
Select the interface to be used for POWERLINK (1-8):1
oplk_create() failed with "Resource could not be created (Windows, PxROS, ...)" (0x0008)
oplk_freeProcessImage() failed with "API called but stack is not initialized/running" (0x014e)
oplk_execNmtCommand() failed with "API called but stack is not initialized/running" (0x014e)
Stack is in state off ... Shutdown
2017/04/25-12:26:38 INFO CONTROL Stack is in state off ... Shutdown openPOWERLINK
Segmentation fault (core dumped)
syssw@roller:~/workspace/openPOWERLINK_V2.5.2/bin/linux/x86_64/demo_mn_console$
Hi Norman,
Please disregard my previous post. I ran "demo_mn_console" with sudo and the "oplk_create() failed" problem went away. The MN under Linux is now communicating with one of the CN under Windows.
Thanks for all your help,
Simon