pivasoftware / easycwmp

EasyCwmp:
http://www.easycwmp.org/
GNU General Public License v2.0
73 stars 59 forks source link

bulild in openwrt with "*** No targets specified and no makefile found. Stop." error #50

Open kitecn opened 1 month ago

kitecn commented 1 month ago

I followed the step by https://easycwmp.org/tutorial/, openwrt/package dowload openwrt package tar -xzvf easycwmp-openwrt-{x}.{y}.{z}.tar.gz make menuconfig checked easycmwp make package/easycwmp/compile PKG_HASH=skip V=s 64-openwrt-linux-musl-gcc" GCC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" RANLIB="x86_64-openwrt-linux-musl-gcc-ranlib" STRIP=x86_64-openwrt-linux-musl-strip OBJCOPY=x86_64-openwrt-linux-musl-objcopy OBJDUMP=x86_64-openwrt-linux-musl-objdump SIZE=x86_64-openwrt-linux-musl-size CROSS="x86_64-openwrt-linux-musl-" ARCH="x86_64" ; make[3]: Entering directory '/home/kite/lede/build_dir/target-x86_64_musl/easycwmp/easycwmp-1.8.5' make[3]: No targets specified and no makefile found. Stop. make[3]: Leaving directory '/home/kite/lede/build_dir/target-x86_64_musl/easycwmp/easycwmp-1.8.5' make[2]: [Makefile:110: /home/kite/lede/build_dir/target-x86_64_musl/easycwmp/easycwmp-1.8.5/.built] Error 2 make[2]: Leaving directory '/home/kite/lede/package/easycwmp' time: package/easycwmp/compile#0.43#0.31#0.67 ERROR: package/easycwmp failed to build. make[1]: [package/Makefile:116: package/easycwmp/compile] Error 1 make[1]: Leaving directory '/home/kite/lede' make: [/home/kite/lede/include/toplevel.mk:231: package/easycwmp/compile] Error 2

what's wrong? how to solved?thanks very much ?

moonlight729 commented 1 month ago

Hi,have you fixed this problem ,I am encounting this problem now? thank you for your reply

kitecn commented 1 month ago

It's still error

kitecn

From: Chris Xing Date: 2024-05-15 17:46 To: pivasoftware/easycwmp CC: kitecn; Author Subject: Re: [pivasoftware/easycwmp] bulild in openwrt with " No targets specified and no makefile found. Stop." error (Issue #50) Hi,have you fixed this problem ,I am encounting this problem now? thank you for your reply — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

Anmol00004 commented 4 weeks ago

Create a directory in package/easycwmp/patches, here create a txt file with below patch and then compile

--- easycwmp-1.8.6/configure.ac 2019-12-17 12:03:19.000000000 +0100 +++ easycwmp-1.8.6.modified/configure.ac 2022-09-07 10:13:18.364877798 +0200 @@ -1,5 +1,4 @@ AC_INIT([easycwmpd], [1.8.6], [mohamed.kallel@pivasoftware.com]) -AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([src/easycwmp.c])

AM_INIT_AUTOMAKE([subdir-objects])

--- easycwmp-1.8.6/src/cwmp.h 2023-11-23 15:44:32.433809948 +0700 +++ easycwmp-1.8.6/src/cwmp.h 2023-11-23 15:44:13.021567998 +0700 @@ -145,7 +145,7 @@ extern struct cwmp_internal *cwmp; -struct event_code event_code_array[EVENT_MAX]; +extern struct event_code event_code_array[EVENT_MAX];

static void cwmp_periodic_inform(struct uloop_timeout timeout); static void cwmp_do_inform(struct uloop_timeout timeout); static void cwmp_do_inform_retry(struct uloop_timeout timeout);ut timeout);

Divint3 commented 2 days ago

Create a directory in package/easycwmp/patches, here create a txt file with below patch and then compile

--- easycwmp-1.8.6/configure.ac 2019-12-17 12:03:19.000000000 +0100 +++ easycwmp-1.8.6.modified/configure.ac 2022-09-07 10:13:18.364877798 +0200 @@ -1,5 +1,4 @@ AC_INIT([easycwmpd], [1.8.6], [mohamed.kallel@pivasoftware.com]) -AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([src/easycwmp.c])

AM_INIT_AUTOMAKE([subdir-objects])

--- easycwmp-1.8.6/src/cwmp.h 2023-11-23 15:44:32.433809948 +0700 +++ easycwmp-1.8.6/src/cwmp.h 2023-11-23 15:44:13.021567998 +0700 @@ -145,7 +145,7 @@ extern struct cwmp_internal *cwmp; -struct event_code event_code_array[EVENT_MAX]; +extern struct event_code event_code_array[EVENT_MAX];

static void cwmp_periodic_inform(struct uloop_timeout timeout); static void cwmp_do_inform(struct uloop_timeout timeout); static void cwmp_do_inform_retry(struct uloop_timeout timeout);ut timeout);

only need first patch that could pass

--- easycwmp-1.8.6/configure.ac 2024-07-02 20:18:06.354291944 +0800
+++ easycwmp-1.8.6/configure.ac 2024-07-02 20:18:00.502450372 +0800
@@ -1,5 +1,4 @@
 AC_INIT([easycwmpd], [1.8.6], [mohamed.kallel@pivasoftware.com])
-AM_INIT_AUTOMAKE
 AC_CONFIG_SRCDIR([src/easycwmp.c])

 AM_INIT_AUTOMAKE([subdir-objects])