Wt openwrt

Added by Антон М about 1 month ago

Hello. I am newbie.
I decided to try "Wt" for my projects.
I tried it under "Ubuntu", it worked out for me.
Can you please tell me if it is possible to build the "Wt" library under "OpenWrt"?


Replies (6)

RE: Wt openwrt - Added by Wim Dumon about 1 month ago

Hello,

It's possible. The only dependency is boost (filesystem, thread, program options).

Wim.

RE: Wt openwrt - Added by Антон М about 1 month ago

I found "Makefile" https://gist.github.com/TheDZhon/f2dd02dfc797dfb00fc117940bc1d784, but it fails to build, it gives an error.
Share your experience.

RE: Wt openwrt - Added by Антон М about 1 month ago

-- Configuring incomplete, errors occurred!
See also "/home/rootlinux/TELEOFIS_SDK/openwrt-sdk-19.07.2-ramips-mt76x8_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-mipsel_24kc_musl/wt-3.3.6/CMakeFiles/CMakeOutput.log".
Makefile:161: recipe for target '/home/rootlinux/TELEOFIS_SDK/openwrt-sdk-19.07.2-ramips-mt76x8_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-mipsel_24kc_musl/wt-3.3.6/.configured_68b329da9893e34099c7d8ad5cb9c940' failed
make3: * [/home/rootlinux/TELEOFIS_SDK/openwrt-sdk-19.07.2-ramips-mt76x8_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-mipsel_24kc_musl/wt-3.3.6/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
make3: Leaving directory '/home/rootlinux/TELEOFIS_SDK/openwrt-sdk-19.07.2-ramips-mt76x8_gcc-7.5.0_musl.Linux-x86_64/package/wt'
time: package/wt/compile#1.15#7.62#44.84
package/Makefile:111: recipe for target 'package/wt/compile' failed
make2:
[package/wt/compile] Error 2
make2: Leaving directory '/home/rootlinux/TELEOFIS_SDK/openwrt-sdk-19.07.2-ramips-mt76x8_gcc-7.5.0_musl.Linux-x86_64'
package/Makefile:107: recipe for target '/home/rootlinux/TELEOFIS_SDK/openwrt-sdk-19.07.2-ramips-mt76x8_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed
make1:
[/home/rootlinux/TELEOFIS_SDK/openwrt-sdk-19.07.2-ramips-mt76x8_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make1: Leaving directory '/home/rootlinux/TELEOFIS_SDK/openwrt-sdk-19.07.2-ramips-mt76x8_gcc-7.5.0_musl.Linux-x86_64'
/home/rootlinux/TELEOFIS_SDK/openwrt-sdk-19.07.2-ramips-mt76x8_gcc-7.5.0_musl.Linux-x86_64/include/toplevel.mk:218: recipe for target 'world' failed
make: *
[world] Error 2

RE: Wt openwrt - Added by Wim Dumon about 1 month ago

There's no useful info in these logs, except that you should look in /home/rootlinux/TELEOFIS_SDK/openwrt-sdk-19.07.2-ramips-mt76x8_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-mipsel_24kc_musl/wt-3.3.6/CMakeFiles/CMakeOutput.log

Note that this particular file is old, and should be adapted for more recent Wt.

You no longer need these boost libraries:
+boost-date_time +boost-system +boost-thread +boost-signals +boost-regex +boost-random

Start with a recent Wt release, such as 4.4.0. Location changed to: https://github.com/emweb/wt/archive/4.4.0.tar.gz

Start with these options:
CMAKE_OPTIONS += \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DSHARED_LIBS:BOOL=ON \
-DBUILD_TESTS=OFF \
-DBUILD_EXAMPLES=OFF \
-DINSTALL_RESOURCES=ON

In addition, I don't know how openwrt's makefile system has changed in the last 10 years so that may require some tweaking too.

Br,
Wim.

RE: Wt openwrt - Added by Антон М about 1 month ago

Thanks for the help. I recently started working with linux os.
I tried to collect with your recommendations. Build an error.
I am attaching a new Makefile and CMakeOutput.log.

Makefile (3.51 KB)

CMakeOutput.log (126 KB)

RE: Wt openwrt - Added by Wim Dumon about 1 month ago

Hey,

sorry I don't have an openwrt dev environment now to try this out.

I couldn't see errors in CMakeOutput.log, I'm not sure what you're asking.

BR,
Wim.

(1-6/6)