build error
Moderator: Moderators
Re: build error
Summary: files missing from /www/i18n folder in my build break the web UI--does anyone have any ideas what might cause this?
I finally got the build working, but the language files were missing from the /www/i18n folder--does anyone know what might be the cause of that? Are there new env variables or build options that now need to be set when building? The router seems to work but the web UI cannot be loaded.
Here's what I had to do to get this far:
Build environment: ubuntu server 12.04 x32 in VMWare Fusion on intel i7
git clone https://github.com/ericpaulbishop/gargoyle.git
sudo apt-get install build-essential asciidoc binutils bzip2 gawk gettext git git-core libncurses5-dev zlib1g-dev patch unzip subversion flex node-uglify xsltproc libssl-dev quilt libxml-parser-perl mercurial bzr ecj cvs
Edit line17 of gargoyle/package/gargoyle-mjpg-streamer/Makefile:
Change: PKG_SOURCE_URL:=https://mjpg-streamer.svn.sourceforge.n ... -streamer/
To: PKG_SOURCE_URL:=https://svn.code.sf.net/p/mjpg-streamer ... g-streamer
make ar71xx
I ended up reverting the firmware via ssh using these steps:
ssh into the router and run these commands:
1) cd /tmp
2) wget http://www.gargoyle-router.com/download ... pgrade.bin
3) md5sum gargoyle_...-squashfs-sysupgrade.bin
4) Make sure the md5sum matches the one listed on the gargoyle download page
5) mtd -r write gargoyle_...-sysupgrade.bin firmware
This should flash the firmware to flash memory and reset everything to defaults.
I finally got the build working, but the language files were missing from the /www/i18n folder--does anyone know what might be the cause of that? Are there new env variables or build options that now need to be set when building? The router seems to work but the web UI cannot be loaded.
Here's what I had to do to get this far:
Build environment: ubuntu server 12.04 x32 in VMWare Fusion on intel i7
git clone https://github.com/ericpaulbishop/gargoyle.git
sudo apt-get install build-essential asciidoc binutils bzip2 gawk gettext git git-core libncurses5-dev zlib1g-dev patch unzip subversion flex node-uglify xsltproc libssl-dev quilt libxml-parser-perl mercurial bzr ecj cvs
Edit line17 of gargoyle/package/gargoyle-mjpg-streamer/Makefile:
Change: PKG_SOURCE_URL:=https://mjpg-streamer.svn.sourceforge.n ... -streamer/
To: PKG_SOURCE_URL:=https://svn.code.sf.net/p/mjpg-streamer ... g-streamer
make ar71xx
I ended up reverting the firmware via ssh using these steps:
ssh into the router and run these commands:
1) cd /tmp
2) wget http://www.gargoyle-router.com/download ... pgrade.bin
3) md5sum gargoyle_...-squashfs-sysupgrade.bin
4) Make sure the md5sum matches the one listed on the gargoyle download page
5) mtd -r write gargoyle_...-sysupgrade.bin firmware
This should flash the firmware to flash memory and reset everything to defaults.
Re: build error
o.k. it looks like there may be some issue with the i18n defaults.
I found the About-i18n-2013.txt in packages/gargoyle-i18n, and based on the info their I tried a build with the options listed below, and it worked, and can be loaded onto the router and the web interfaces works. YAY!!!
I found the About-i18n-2013.txt in packages/gargoyle-i18n, and based on the info their I tried a build with the options listed below, and it worked, and can be loaded onto the router and the web interfaces works. YAY!!!
Code: Select all
make ar71xx TRANSLATION=localize FALLBACK_LANG=English-EN ACTIVE_LANG=English-EN
-
- Moderator
- Posts: 250
- Joined: Thu Jan 17, 2013 11:43 pm
Re: build error
> it looks like there may be some issue with the i18n defaults
Do you want me to switch on my psychic powers?
>make ar71xx TRANSLATION=localize FALLBACK_LANG=English-EN ACTIVE_LANG=English-EN
Technically, you leveraged the existing internationalization efforts to build a localized (L10n) build. There are no specific defaults in L10n builds - i18n builds have 2 extra gargoyle.global preference variables... Maybe that's what you are thinking of?
The default variables present in the Makefile is to build an i18n build with the English language as the default language. So 'make ar71xx.usb_large' is an i18n build. You have to werk it to get an L10n build - as your make command shows.
In any event, congratulations of the successful build.
Do you want me to switch on my psychic powers?
>make ar71xx TRANSLATION=localize FALLBACK_LANG=English-EN ACTIVE_LANG=English-EN
Technically, you leveraged the existing internationalization efforts to build a localized (L10n) build. There are no specific defaults in L10n builds - i18n builds have 2 extra gargoyle.global preference variables... Maybe that's what you are thinking of?
The default variables present in the Makefile is to build an i18n build with the English language as the default language. So 'make ar71xx.usb_large' is an i18n build. You have to werk it to get an L10n build - as your make command shows.
In any event, congratulations of the successful build.
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)
https://github.com/BashfulBladder/gargoyle-plugins/wiki
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)
https://github.com/BashfulBladder/gargoyle-plugins/wiki
-
- Moderator
- Posts: 250
- Joined: Thu Jan 17, 2013 11:43 pm
Re: build error
In your build environment, there is a /ar71xx-src/.config file. That config file should end with an i18n section. One of the packages there (probably English) should have a y at the end of the line:ooker wrote:Summary: files missing from /www/i18n folder in my build break the web UI--does anyone have any ideas what might cause this?
I finally got the build working, but the language files were missing from the /www/i18n folder--does anyone know what might be the cause of that?
Code: Select all
CONFIG_PACKAGE_plugin-gargoyle-i18n-English-EN=y
A little earlier on in the i18n process a file is modified:
- package-prepare/gargoyle-i18n/files/etc/uci-defaults/zzz-gargoyle-i18n
I don't suppose you saw any error messages early on in the build process.
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)
https://github.com/BashfulBladder/gargoyle-plugins/wiki
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)
https://github.com/BashfulBladder/gargoyle-plugins/wiki
Re: build error
Here are the relevant lines in the /ar71xx-src/.config file
After a fresh pull and build here are the contents of the zzz-gargoyle-i18n from /package-prepare/gargoyle-i18n/files/etc/uci-defaults
Code: Select all
CONFIG_PACKAGE_gargoyle=y
# CONFIG_PACKAGE_gargoyle-i18n is not set
# CONFIG_PACKAGE_plugin-gargoyle-i18n-Arabic-AR is not set
# CONFIG_PACKAGE_plugin-gargoyle-i18n-English-EN is not set
# CONFIG_PACKAGE_plugin-gargoyle-i18n-Polish-PL is not set
# CONFIG_PACKAGE_plugin-gargoyle-i18n-Portuguese-BR is not set
# CONFIG_PACKAGE_plugin-gargoyle-i18n-Russian-RU is not set
# CONFIG_PACKAGE_plugin-gargoyle-i18n-Spanish-ES is not set
Code: Select all
#!/bin/sh
uci set gargoyle.global.fallback_lang=English-EN
uci set gargoyle.global.language=English-EN
uci commit
mv /www/firstboot.i18n.sh /www/firstboot.sh
. /usr/lib/gargoyle/i18nServices.sh
change_menu_language "English-EN"
restart_lang_services
-
- Moderator
- Posts: 250
- Joined: Thu Jan 17, 2013 11:43 pm
Re: build error
ooker wrote:Here are the relevant lines in the /ar71xx-src/.config fileCode: Select all
CONFIG_PACKAGE_gargoyle=y # CONFIG_PACKAGE_gargoyle-i18n is not set # CONFIG_PACKAGE_plugin-gargoyle-i18n-Arabic-AR is not set # CONFIG_PACKAGE_plugin-gargoyle-i18n-English-EN is not set # CONFIG_PACKAGE_plugin-gargoyle-i18n-Polish-PL is not set # CONFIG_PACKAGE_plugin-gargoyle-i18n-Portuguese-BR is not set # CONFIG_PACKAGE_plugin-gargoyle-i18n-Russian-RU is not set # CONFIG_PACKAGE_plugin-gargoyle-i18n-Spanish-ES is not set[/code[/quote] This is from the failed i18n build, correct? The script that is used to set the language appends at the end of the ar71xx-src/.config file. What you posted is the config file generated by Eric, and those i18n variables are in the middle of the file, commented out and not set by the script that went MIA. Hopefully, with the fresh pull, you'll get the expected ar71xx-src/.config file with the tail properly set.
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)
https://github.com/BashfulBladder/gargoyle-plugins/wiki
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)
https://github.com/BashfulBladder/gargoyle-plugins/wiki
Re: build error
This was a clean pull & build--a clone into a new directory and a build:
Code: Select all
git clone https://github.com/ericpaulbishop/gargoyle.git
cd gargoyle
make ar71xx
-
- Moderator
- Posts: 250
- Joined: Thu Jan 17, 2013 11:43 pm
Re: build error
Zip up the .config file & upload it here.
I commented out all the compiling in the build.sh script - I don't see that problem in a 10 second cycling through the profiles.
I commented out all the compiling in the build.sh script - I don't see that problem in a 10 second cycling through the profiles.
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)
https://github.com/BashfulBladder/gargoyle-plugins/wiki
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)
https://github.com/BashfulBladder/gargoyle-plugins/wiki