Closed baerwang closed 2 years ago
code:
package main import ( "fmt" "github.com/intel-go/nff-go/flow" ) func main() { fmt.Println(111) flow.SystemInit(nil) flow.SystemStart() }
internal/low/low.go:
/* #cgo CFLAGS: -std=c99 -march=native #cgo LDFLAGS: -L/opt/nff-go/dpdk/dpdk/x86_64-native-linuxapp-gcc-install/lib -lrte_distributor -lrte_reorder -lrte_kni -lrte_pipeline -lrte_table -lrte_port -lrte_timer -lrte_jobstats -lrte_lpm -lrte_power -lrte_acl -lrte_meter -lrte_sched -lrte_vhost -lrte_ip_frag -lrte_cfgfile -Wl,--whole-archive -Wl,--start-group -lrte_kvargs -lrte_mbuf -lrte_hash -lrte_ethdev -lrte_mempool -lrte_ring -lrte_mempool_ring -lrte_eal -lrte_cmdline -lrte_net -lrte_bus_pci -lrte_pci -lrte_bus_vdev -lrte_timer -lrte_pmd_bond -lrte_pmd_vmxnet3_uio -lrte_pmd_virtio -lrte_pmd_cxgbe -lrte_pmd_enic -lrte_pmd_i40e -lrte_pmd_fm10k -lrte_pmd_ixgbe -lrte_pmd_e1000 -lrte_pmd_ena -lrte_pmd_ring -lrte_pmd_af_packet -lrte_pmd_null -Wl,--end-group -Wl,--no-whole-archive -lrt -lm -ldl -lnuma #include "low.h" */
error info:
# github.com/intel-go/nff-go/internal/low /usr/bin/ld: cannot find -lrte_distributor /usr/bin/ld: cannot find -lrte_reorder /usr/bin/ld: cannot find -lrte_kni /usr/bin/ld: cannot find -lrte_pipeline /usr/bin/ld: cannot find -lrte_table /usr/bin/ld: cannot find -lrte_port /usr/bin/ld: cannot find -lrte_timer /usr/bin/ld: cannot find -lrte_jobstats /usr/bin/ld: cannot find -lrte_lpm /usr/bin/ld: cannot find -lrte_power /usr/bin/ld: cannot find -lrte_acl /usr/bin/ld: cannot find -lrte_meter /usr/bin/ld: cannot find -lrte_sched /usr/bin/ld: cannot find -lrte_vhost /usr/bin/ld: cannot find -lrte_ip_frag /usr/bin/ld: cannot find -lrte_cfgfile /usr/bin/ld: cannot find -lrte_kvargs /usr/bin/ld: cannot find -lrte_mbuf /usr/bin/ld: cannot find -lrte_hash /usr/bin/ld: cannot find -lrte_ethdev /usr/bin/ld: cannot find -lrte_mempool /usr/bin/ld: cannot find -lrte_ring /usr/bin/ld: cannot find -lrte_mempool_ring /usr/bin/ld: cannot find -lrte_eal /usr/bin/ld: cannot find -lrte_cmdline /usr/bin/ld: cannot find -lrte_net /usr/bin/ld: cannot find -lrte_bus_pci /usr/bin/ld: cannot find -lrte_pci /usr/bin/ld: cannot find -lrte_bus_vdev /usr/bin/ld: cannot find -lrte_timer /usr/bin/ld: cannot find -lrte_pmd_bond /usr/bin/ld: cannot find -lrte_pmd_vmxnet3_uio /usr/bin/ld: cannot find -lrte_pmd_virtio /usr/bin/ld: cannot find -lrte_pmd_cxgbe /usr/bin/ld: cannot find -lrte_pmd_enic /usr/bin/ld: cannot find -lrte_pmd_i40e /usr/bin/ld: cannot find -lrte_pmd_fm10k /usr/bin/ld: cannot find -lrte_pmd_ixgbe /usr/bin/ld: cannot find -lrte_pmd_e1000 /usr/bin/ld: cannot find -lrte_pmd_ena /usr/bin/ld: cannot find -lrte_pmd_ring /usr/bin/ld: cannot find -lrte_pmd_af_packet /usr/bin/ld: cannot find -lrte_pmd_null
sorry, the file path is wrong
code:
internal/low/low.go:
error info: