Compiling DD-WRT

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3 ... 9, 10, 11, 12, 13, 14  Next
Author Message
fzn0268
DD-WRT Novice


Joined: 28 Feb 2015
Posts: 2

PostPosted: Sat Feb 28, 2015 7:06    Post subject: Reply with quote
Quote:
If using igs/emf you need to comment stripping in Makefile in order to avoid unresolved symbols in wireless driver.

But how to modify Makefile in detail?
Sponsor
tsynik
DD-WRT User


Joined: 18 Apr 2014
Posts: 151

PostPosted: Sat Feb 28, 2015 8:33    Post subject: Reply with quote
fzn0268 wrote:
Quote:
If using igs/emf you need to comment stripping in Makefile in order to avoid unresolved symbols in wireless driver.

But how to modify Makefile in detail?

Current Makefile.brcm3x (mips) and Makefile.northstar (arm) doesn't need commenting modules stripping anymore, it was fixed and wl will work stripped too.
Or, if you want loose some space, find and comment these lines there
Code:
   export STRIP_KMOD="$(LINUXDIR)/scripts/strip-kmod.sh" && \
   export STRIP="sstrip" && \
   $(LINUXDIR)/scripts/rstrip.sh $(TARGETDIR)
nathulal
DD-WRT Novice


Joined: 22 Jan 2008
Posts: 39

PostPosted: Mon Mar 02, 2015 2:39    Post subject: common.js, removewhitespace & webgui Reply with quote
How are you guys getting the webgui to work with the default Kromo Makefile? I have been looking at this for a while and could not get it to work without commenting out optimize step in the Kromo Makefile.

With the default Makefile the webgui is always broken. Has errors in optimized common.js. I looked at the removewhitespace.c file and don't see how it could be working with the copy of common.js that is currently in svn.

Take a look at the following in removewhitespace.c

Code:
if (mem[i] != '\r' && mem[i] != '\n' && mem[i] != '\t' && mem[i] != '\f')
                           putc(mem[i], fp);


These lines remove all new line characters when optimizing the common.js. Based on the fact that the first line is a comment in the common.js and the second line has not ';' at the end this will most certainly break the js code and in turn the webgui.

Can anyone else who has this working confirm this for me please?
tsynik
DD-WRT User


Joined: 18 Apr 2014
Posts: 151

PostPosted: Mon Mar 02, 2015 17:27    Post subject: Re: common.js, removewhitespace & webgui Reply with quote
nathulal wrote:

Can anyone else who has this working confirm this for me please?

Nope, removewhitespace is complete mess, which breaks other parts of the code too, not only common.js. So I disabled it completely in Makefile and WebUI is fine.
nathulal
DD-WRT Novice


Joined: 22 Jan 2008
Posts: 39

PostPosted: Mon Mar 02, 2015 18:21    Post subject: Re: common.js, removewhitespace & webgui Reply with quote
tsynik wrote:
nathulal wrote:

Can anyone else who has this working confirm this for me please?

Nope, removewhitespace is complete mess, which breaks other parts of the code too, not only common.js. So I disabled it completely in Makefile and WebUI is fine.


Thanks for the confirmation. I guess the devs have not checked in the latest changes to removewhitespace.
tsynik
DD-WRT User


Joined: 18 Apr 2014
Posts: 151

PostPosted: Tue Mar 10, 2015 1:30    Post subject: Reply with quote
If anyone want to built for Northstar targets without a hassle and digging and patching all day long ) I setup a fork on github.

It includes building fixes for main makefiles, build script itself, list of needed packages for Ubuntu 14.04 LTS, optional USB audio support with control from UI, user switchable dark interface, entware-setup.sh script, properly displayed pages in Safari, and many CSS bugfixes for dd-wrt web UI.

Have fun!

https://github.com/tsynik/dd-wrt


Last edited by tsynik on Wed Mar 11, 2015 13:05; edited 1 time in total
fzn0268
DD-WRT Novice


Joined: 28 Feb 2015
Posts: 2

PostPosted: Wed Mar 11, 2015 7:17    Post subject: characters on web ui missing Reply with quote
compiled src/router/tools/jsformat, tools/strip, but characters on web ui are missing, what's wrong?


shot.PNG
 Description:
 Filesize:  62.8 KB
 Viewed:  16332 Time(s)

shot.PNG


nathulal
DD-WRT Novice


Joined: 22 Jan 2008
Posts: 39

PostPosted: Wed Mar 11, 2015 11:04    Post subject: Re: characters on web ui missing Reply with quote
You have to disable "optimizefiles" in the Kromo Makefile

fzn0268 wrote:
compiled src/router/tools/jsformat, tools/strip, but characters on web ui are missing, what's wrong?
prasad222
DD-WRT Novice


Joined: 11 Mar 2015
Posts: 24

PostPosted: Fri Mar 13, 2015 14:42    Post subject: Reply with quote
Hi,
Tried to compile using following link on page 3:
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=269372&postdays=0&postorder=asc&start=30

However, am getting following errors while executing "make -f Makefile.northstar minidlna-configure"

/home/dir868l/source/DD-WRT/src/router/minidlna/lib/libid3tag.a(frame.o): In function `id3_frame_new':
frame.cSad.text.id3_frame_new+0x24): undefined reference to `id3_frametype_lookup'
frame.cSad.text.id3_frame_new+0x78): undefined reference to `id3_compat_lookup'
frame.cSad.text.id3_frame_new+0x140): undefined reference to `id3_frametype_text'
frame.cSad.text.id3_frame_new+0x144): undefined reference to `id3_frametype_experimental'
frame.cSad.text.id3_frame_new+0x148): undefined reference to `id3_frametype_unknown'
frame.cSad.text.id3_frame_new+0x14c): undefined reference to `id3_frametype_obsolete'
frame.cSad.text.id3_frame_new+0x150): undefined reference to `id3_frametype_url'
/home/dir868l/source/DD-WRT/src/router/minidlna/lib/libid3tag.a(frame.o): In function `id3_frame_parse':
frame.cSad.text.id3_frame_parse+0x48): undefined reference to `id3_compat_lookup'
frame.cSad.text.id3_frame_parse+0xa0): undefined reference to `id3_compat_lookup'
/home/dir868l/source/DD-WRT/src/router/minidlna/lib/libid3tag.a(tag.o): In function `id3_tag_findframe':
tag.cSad.text.id3_tag_findframe+0x70): undefined reference to `id3_compat_lookup'
/home/dir868l/source/DD-WRT/src/router/minidlna/lib/libid3tag.a(tag.o): In function `id3_tag_parse':
tag.cSad.text.id3_tag_parse+0x65c): undefined reference to `id3_compat_fixup'
collect2: error: ld returned 1 exit status
Makefile:81: recipe for target 'minidlna' failed
make[2]: *** [minidlna] Error 1
make[2]: Leaving directory '/home/dir868l/source/DD-WRT/src/router/minidlna/minidlna'
Makefile:49: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/dir868l/source/DD-WRT/src/router/minidlna'
rules/minidlna.mk:2: recipe for target 'minidlna-configure' failed
make: *** [minidlna-configure] Error 2


Can somebody help me.

Thanks and Regards,
Prasad
tsynik
DD-WRT User


Joined: 18 Apr 2014
Posts: 151

PostPosted: Fri Mar 13, 2015 16:19    Post subject: Reply with quote
prasad222 wrote:

Code:

collect2: error: ld returned 1 exit status
Makefile:81: recipe for target 'minidlna' failed
make[2]: *** [minidlna] Error 1
make[2]: Leaving directory '/home/dir868l/source/DD-WRT/src/router/minidlna/minidlna'
Makefile:49: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/dir868l/source/DD-WRT/src/router/minidlna'
rules/minidlna.mk:2: recipe for target 'minidlna-configure' failed
make: *** [minidlna-configure] Error 2

Can somebody help me.

Thanks and Regards,
Prasad


This mean not all dependent libraries was built or exist. Error is earlier in log (you can see there which one). In my case it was libvorbis. And the fix was add missing folder lib in minidlna dir.
prasad222
DD-WRT Novice


Joined: 11 Mar 2015
Posts: 24

PostPosted: Fri Mar 13, 2015 19:43    Post subject: Reply with quote
Thank you tsynik.
I solved it by taking latest minidlna package.

However now, am getting another following errors:
/home/dir868l/source/DD-WRT/src/router/glib20/gettext/gettext-tools/gnulib-lib/.libs/libgettextlib.so: undefined reference to `libiconv'
/home/dir868l/source/DD-WRT/src/router/glib20/gettext/gettext-tools/gnulib-lib/.libs/libgettextlib.so: undefined reference to `libiconv_open'
/home/dir868l/source/DD-WRT/src/router/glib20/gettext/gettext-tools/gnulib-lib/.libs/libgettextlib.so: undefined reference to `libiconv_close'

Could you please help me.

Thanks and Regards,
Prasad
tsynik
DD-WRT User


Joined: 18 Apr 2014
Posts: 151

PostPosted: Fri Mar 13, 2015 21:05    Post subject: Reply with quote
for gettext, you need to reconfigure it before configure.
try autoconf first (autoreconf -ivf as last resort) in gettext dir. Also note this patches.
then run make -f Makefile.northstar glib20-clean
then run make -f Makefile.northstar glib20-configure again.

p.s. Which toolchain you use for build?
prasad222
DD-WRT Novice


Joined: 11 Mar 2015
Posts: 24

PostPosted: Fri Mar 13, 2015 22:12    Post subject: Reply with quote
Thanks for your continues help. I fixed them.

Am sorry for publishing more errors.
In next step: it was stopped at nocat-configure.

cd glib && ./config.sh "ccache arm-linux-uclibc-gcc" "-Os -pipe -march=armv7-a -mcpu=cortex-a9 -mtune=cortex-a9 -msoft-float -mfloat-abi=soft -fno-caller-saves " ac_cv_host=arm-uclibc-linux --target=arm-linux --host=arm
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
configure: creating cache config.cache
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for mipsel-linux-strip... arm-linux-uclibc-strip
checking build system type... x86_64-redhat-linux-gnu
checking host system type... mipsel-unknown-linux-gnu
checking for style of include used by make... GNU
checking for mipsel-linux-gcc... mipsel-linux-uclibc-gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
rules/nocat.mk:2: recipe for target 'nocat-configure' failed

Please help me.

Thanks and Regards,
Prasad
tsynik
DD-WRT User


Joined: 18 Apr 2014
Posts: 151

PostPosted: Fri Mar 13, 2015 22:17    Post subject: Reply with quote
you don't need glib at all. It hardcoded to mips build. just disable nocat in router .config. Or change all mipsel to arm in glib/config.sh

btw, this patch will fix nocat build for arm
prasad222
DD-WRT Novice


Joined: 11 Mar 2015
Posts: 24

PostPosted: Mon Mar 16, 2015 16:10    Post subject: Reply with quote
Hi Tsynik,
Thank you for continuous support.

I got following errors, could you please help me out.

checking for ccache arm-linux-uclibc-gcc option to produce PIC... -fPIC -DPIC
checking if ccache arm-linux-uclibc-gcc PIC flag -fPIC -DPIC works... yes
checking if ccache arm-linux-uclibc-gcc static flag -static works... yes
checking if ccache arm-linux-uclibc-gcc supports -c -o file.o... yes
checking if ccache arm-linux-uclibc-gcc supports -c -o file.o... (cached) yes
checking whether the ccache arm-linux-uclibc-gcc linker (arm-linux-uclibc-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... ccache arm-linux-uclibc-g++ -E
checking for ld used by ccache arm-linux-uclibc-g++... arm-linux-uclibc-ld
checking if the linker (arm-linux-uclibc-ld) is GNU ld... yes
checking whether the ccache arm-linux-uclibc-g++ linker (arm-linux-uclibc-ld) supports shared libraries... yes
checking for ccache arm-linux-uclibc-g++ option to produce PIC... -fPIC -DPIC
checking if ccache arm-linux-uclibc-g++ PIC flag -fPIC -DPIC works... yes
checking if ccache arm-linux-uclibc-g++ static flag -static works... yes
checking if ccache arm-linux-uclibc-g++ supports -c -o file.o... yes
checking if ccache arm-linux-uclibc-g++ supports -c -o file.o... (cached) yes
checking whether the ccache arm-linux-uclibc-g++ linker (arm-linux-uclibc-ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
./configure: line 15409: syntax error near unexpected token `libxml2,'
./configure: line 15409: `PKG_CHECK_MODULES(libxml2, libxml-2.0 >= $LIBXML2_VERSION)'
rules/ipeth.mk:4: recipe for target 'ipeth-configure' failed
make: *** [ipeth-configure] Error 2
Goto page Previous  1, 2, 3 ... 9, 10, 11, 12, 13, 14  Next Display posts from previous:    Page 10 of 14
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum