OpenWrt Forum Archive

Topic: compile error on ubuntu 16.04.01

The content of this topic has been archived on 29 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I build trunk code on ubuntu 16.04.1, I cant fix this error, someone can help on this build ?

make[6]: Entering directory '/home/kw/OpenWrt/trunk/build_dir/host/cmake-3.6.1'
[ 0%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/ProcessWin32.c.obj
/home/kw/OpenWrt/trunk/build_dir/host/cmake-3.6.1/Source/kwsys/ProcessWin32.c:36:39: fatal error: windows.h: No such file or directory compilation terminated.
Source/kwsys/CMakeFiles/cmsys.dir/build.make:62: recipe for target 'Source/kwsys/CMakeFiles/cmsys.dir/ProcessWin32.c.obj' failed
make[6]: *** [Source/kwsys/CMakeFiles/cmsys.dir/ProcessWin32.c.obj] Error 1
make[6]: Leaving directory '/home/kw/OpenWrt/trunk/build_dir/host/cmake-3.6.1'
CMakeFiles/Makefile2:1025: recipe for target 'Source/kwsys/CMakeFiles/cmsys.dir/all' failed
make[5]: *** [Source/kwsys/CMakeFiles/cmsys.dir/all] Error 2
make[5]: Leaving directory '/home/kw/OpenWrt/trunk/build_dir/host/cmake-3.6.1'
Makefile:160: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/kw/OpenWrt/trunk/build_dir/host/cmake-3.6.1'
Makefile:29: recipe for target '/home/kw/OpenWrt/trunk/build_dir/host/cmake-3.6.1/.built' failed
make[3]: *** [/home/kw/OpenWrt/trunk/build_dir/host/cmake-3.6.1/.built] Error 2
make[3]: Leaving directory '/home/kw/OpenWrt/trunk/tools/cmake'
tools/Makefile:134: recipe for target 'tools/cmake/compile' failed
make[2]: *** [tools/cmake/compile] Error 2
make[2]: Leaving directory '/home/kw/OpenWrt/trunk' 
tools/Makefile:133: recipe for target '/home/kw/OpenWrt/trunk/staging_dir/target-mips_34kc_musl-1.1.15/stamp/.tools_install_yynyynynynyyyyyyynyyyyyyyyyyyyynyyyyynnyynynyyyynnnyy' failed
make[1]: *** [/home/kw/OpenWrt/trunk/staging_dir/target-mips_34kc_musl-1.1.15/stamp/.tools_install_yynyynynynyyyyyyynyyyyyyyyyyyyynyyyyynnyynynyyyynnnyy] Error 2
make[1]: Leaving directory '/home/kw/OpenWrt/trunk' /home/kw/OpenWrt/trunk/include/toplevel.mk:192: recipe for target 'world' failed make: *** [world] Error 2

(Last edited by fjr115 on 1 Jan 2017, 16:20)

Try solving the problem by installing the wine-dev. Follow the steps below:

sudo apt-get update
sudo apt-get install wine1.6-dev
cd openwrt
make clean
make dirclean
make defconfig
make prereq
make menuconfig
make V=s

The discussion might have continued from here.