RoEdAl / asterisk-chan-quectel

Asterisk channel driver for Quectel and SimCOM modules
GNU General Public License v2.0
22 stars 7 forks source link

Openwrt 23.05.3: Cannot build missing files? #23

Closed mpmc closed 4 months ago

mpmc commented 4 months ago

Hey,

Thanks for continuing to work on this module!


There appears to be an issue building for Openwrt 23.05.3 for use on a GL-XE300. I've tried building from openwrt git, and the SDK. I finally followed the instructions in https://github.com/RoEdAl/asterisk-chan-quectel/discussions/4 (Obviously using 23.05.3 SDK)

It also failed, so I ran it again after modifying build-opk with the verbose lines

    ./scripts/feeds install ${PKG_NAME}

    cp diffconfig .config
    make defconfig
fi

make V=sc package/${PKG_NAME}/compile "$@"
make V=sc package/index

IPK=$(ls bin/packages/*/strskx/*.ipk)
echo "Package: $IPK"

And this is the debug output.

-- Asterisk header directory: /mnt/500GB7200/mark/Development/openwrt/git/asterisk-chan-quectel/install/openwrt/sdk-ath79/staging_dir/target-mips_24kc_musl/usr/include/
CMake Error at /mnt/500GB7200/mark/Development/openwrt/git/asterisk-chan-quectel/install/openwrt/sdk-ath79/build_dir/target-mips_24kc_musl/asterisk-chan-quectel-2023.12.13-55-g578b5b/AST_BUILDOPT_SUM/CMakeFiles/CMakeTmp/CMakeLists.txt:22 (target_sources):
  Cannot find source file:

    /mnt/500GB7200/mark/Development/openwrt/git/asterisk-chan-quectel/install/openwrt/sdk-ath79/build_dir/target-mips_24kc_musl/asterisk-chan-quectel-2023.12.13-55-g578b5b/test/asterisk/AST_BUILDOPT_SUM.c

CMake Error at /mnt/500GB7200/mark/Development/openwrt/git/asterisk-chan-quectel/install/openwrt/sdk-ath79/build_dir/target-mips_24kc_musl/asterisk-chan-quectel-2023.12.13-55-g578b5b/AST_BUILDOPT_SUM/CMakeFiles/CMakeTmp/CMakeLists.txt:21 (add_executable):
  No SOURCES given to target: cmTC_3164d

CMake Error at CMakeLists.txt:114 (TRY_RUN):
  Failed to generate test project build system.
Call Stack (most recent call first):
  CMakeLists.txt:324 (ShowAstBuildOptSum)

-- Configuring incomplete, errors occurred!
make[2]: *** [Makefile:74: /mnt/500GB7200/mark/Development/openwrt/git/asterisk-chan-quectel/install/openwrt/sdk-ath79/build_dir/target-mips_24kc_musl/asterisk-chan-quectel-2023.12.13-55-g578b5b/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
make[2]: Leaving directory '/mnt/500GB7200/mark/Development/openwrt/git/asterisk-chan-quectel/install/openwrt/feed/net/asterisk-chan-quectel'
time: package/feeds/strskx/asterisk-chan-quectel/compile#0.46#0.55#0.63
    ERROR: package/feeds/strskx/asterisk-chan-quectel failed to build.
make[1]: *** [package/Makefile:129: package/feeds/strskx/asterisk-chan-quectel/compile] Error 1
make[1]: Leaving directory '/mnt/500GB7200/mark/Development/openwrt/git/asterisk-chan-quectel/install/openwrt/sdk-ath79'
make: *** [/mnt/500GB7200/mark/Development/openwrt/git/asterisk-chan-quectel/install/openwrt/sdk-ath79/include/toplevel.mk:225: package/asterisk-chan-quectel/compile] Error 2

Any ideas please?

TIA.

RoEdAl commented 4 months ago

Try to (re-)build using clang-format branch.

mpmc commented 4 months ago

Try to (re-)build using clang-format branch.

It built!

make[1] package/index
Package: bin/packages/mips_24kc/strskx/asterisk-chan-quectel_2024.5.20-1628-unversioned_mips_24kc.ipk

Many many thanks!