Edge Software Catalog
Support for issues related to Edge Software Catalog
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
485 Discussions

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

junjuns
New Contributor I
2,004 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,998 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,999 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,905 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,873 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
1,403 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