Edge Software Catalog
Support for issues related to Edge Software Catalog
441 Discussions

eci-ld-ethercat ld /usr/bin/ld ld run timessss

junjuns
New Contributor I
1,500 Views

eci ld ethercat : /usr/bin/ld : cannot find -lethercat:NO such file or directory 

 

-L /lib/x86_64-linux-gun -wl -rapth,/lib/x86_64-linux-gun \

not find ethercat.so lib 

Labels (1)
0 Kudos
1 Solution
junjuns
New Contributor I
1,494 Views

CC = gcc
CFLAGS = -Wall -O3 -g -D_GNU_SOURCE -D_REENTRANT -fasynchronous-unwind-tables
LIBS = -lm -lrt -lpthread -lethercat -Wl,--no-as-needed -L/usr/lib

TARGET = test
SRCS = $(wildcard *.c)

OBJS = $(SRCS:.c=.o)

$(TARGET):$(OBJS)
$(CC) -o $@ $^ $(LIBS)

clean:
rm -rf $(TARGET) $(OBJS)

%.o:%.c
$(CC) $(CFLAGS) -o $@ -c $<

 

Is there a sample project file for this demo, app link to ethercat for development

View solution in original post

0 Kudos
4 Replies
junjuns
New Contributor I
1,495 Views

CC = gcc
CFLAGS = -Wall -O3 -g -D_GNU_SOURCE -D_REENTRANT -fasynchronous-unwind-tables
LIBS = -lm -lrt -lpthread -lethercat -Wl,--no-as-needed -L/usr/lib

TARGET = test
SRCS = $(wildcard *.c)

OBJS = $(SRCS:.c=.o)

$(TARGET):$(OBJS)
$(CC) -o $@ $^ $(LIBS)

clean:
rm -rf $(TARGET) $(OBJS)

%.o:%.c
$(CC) $(CFLAGS) -o $@ -c $<

 

Is there a sample project file for this demo, app link to ethercat for development

0 Kudos
junjuns
New Contributor I
1,401 Views

Recompile ethercat lib to ethercat.so Ethercat.so.1 Ethercat.1.0.0

sudo cp ethercat.so /lib/x86.. /

0 Kudos
Iffa_Intel
Moderator
1,369 Views

Hi,

 

these documents might help regarding the EthercCAT use case:

1. IgH EtherCat Master Stack

2. Real Time Data Agent

 

 

Cordially,

Iffa

0 Kudos
Iffa_Intel
Moderator
899 Views

Hi,


Intel will no longer monitor this thread since we have provided a solution. If you need any additional information from Intel, please submit a new question. 



Cordially,

Iffa


0 Kudos
Reply