CPqD / ofsoftswitch13

OpenFlow 1.3 switch.
http://cpqd.github.com/ofsoftswitch13
304 stars 192 forks source link

error compiling ofsoftswitch13 for openwrt image #206

Open hardmachine opened 9 years ago

hardmachine commented 9 years ago

Environment : Ubuntu 14.04 64 bit version run on virtual machine. I followed :https://github.com/CPqD/ofsoftswitch13/wiki/OpenFlow-1.3-for-OpenWRT Im still new on openwrt and im trying to build an image for TL-WR1043nd v2 with enabled openflow 1.3.But after adding a package openflow into it, I got the following problems.Below the last path from make V=s which show the error.

make[6]: * [lib/netdev.o] Error 1
make[6]: Leaving directory `/home/user/openwrt/trunk/build_dir/target-mips_34kc_musl-1.1.11/ofsoftswitch13-

open_wrt'
make[5]: * [all-recursive] Error 1
make[5]: Leaving directory `/home/user/openwrt/trunk/build_dir/target-mips_34kc_musl-1.1.11/ofsoftswitch13-

open_wrt'
make[4]: * [all] Error 2
make[4]: Leaving directory `/home/user/openwrt/trunk/build_dir/target-mips_34kc_musl-1.1.11/ofsoftswitch13-

open_wrt'
make[3]: * [/home/user/openwrt/trunk/build_dir/target-mips_34kc_musl-1.1.11/ofsoftswitch13-open_wrt/.built] 

Error 2
make[3]: Leaving directory `/home/user/openwrt/openflow-openwrt/openflow-1.3'
make[2]: * [package/openflow-1.3/compile] Error 2
make[2]: Leaving directory `/home/user/openwrt/trunk'
make[1]: * [/home/user/openwrt/trunk/staging_dir/target-mips_34kc_musl-1.1.11/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/user/openwrt/trunk'
make: * [world] Error 2 
ghost commented 8 years ago

https://github.com/CPqD/openflow-openwrt Put this file into openwrt/package folder and select Openflow in 'make menuconfig' ; then compile.

surfoor commented 7 years ago

still getting the compile error any solution ?

marcopgordillo commented 2 years ago

Hi, folks I have the same problem, maybe someone have a solution to this compilation problem?

Currently I am compiling in a debian11, with openwrt-22.03, my target is a Mikrotik 750gr3.

time: package/network/services/ppp/default/compile#0.18#0.04#0.22
make[3]: Entering directory '/home/mgordillo/openwrt/openflow-openwrt/openflow-1.3'
mkdir -p /home/mgordillo/openwrt/dl
SHELL= flock /home/mgordillo/openwrt/tmp/.open_wrt.zip.flock -c '   /home/mgordillo/openwrt/scripts/download.pl "/home/mgordillo/openwrt/dl" "open_wrt.zip" "x" "" "https://github.com/CPqD/ofsoftswitch13/archive/"    '
Cannot find appropriate hash command, ensure the provided hash is either a MD5 or SHA256 checksum.
make[3]: *** [Makefile:104: /home/mgordillo/openwrt/dl/open_wrt.zip] Error 255
make[3]: Leaving directory '/home/mgordillo/openwrt/openflow-openwrt/openflow-1.3'
time: package/openflow-1.3/compile#0.10#0.04#0.13
    ERROR: package/openflow-1.3 failed to build.
make[2]: *** [package/Makefile:116: package/openflow-1.3/compile] Error 1
make[2]: Leaving directory '/home/mgordillo/openwrt'
make[1]: *** [package/Makefile:110: /home/mgordillo/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/mgordillo/openwrt'
make: *** [/home/mgordillo/openwrt/include/toplevel.mk:231: world] Error 2