Compiling Asterisk for ASUS Platforms
A comparison of ASUS Routers shows that the
* RT-N16 uses the BCM 4716 CPU
* WL500G uses the BCM 4710 CPU
I am hoping that the the process used to compile \ make an application is the same or at least very similar, because I can not find info on how to compile Asterisk for the RT-N16. Fortunately there is a large and knowledgable WL500 community.
I am forced to compile Asterisk (running on an ASUS RT-N16) because Google made a change to the Gtalk service. Details regarding this change can be found by clicking on this URL.
If anyone has a success story compiling Asterisk (for ASUS platforms) and any lessons learned, I look forward to your posting. Bonus round if you can point to a good process & make file. Thank you.
Removed quotes from directory name and retried (unsuccessful)
Quote:
Originally Posted by
wpte
should be
I guess?
the ' is not required as far as I'm aware
I'm at work currently and I have no linux to check it atm:)
I tried the suggestion to remove the single quote character ['] around the directory:
Quote:
./configure --prefix=/opt --host=mipsel-linux --disable-xmldoc --srcdir=/opt/brcm/Asterisk 1.8.5.0/asterisk-1.8.5.0
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: 1.8.5.0/asterisk-1.8.5.0
configure: error: cannot find sources (main/asterisk.c) in /opt/brcm/Asterisk
Unfortunately, the same error persists. I also tried not use the ' and adding a \ before the space in the directory. This made things worse:
Quote:
[root@mythtv asterisk-1.8.5.0]# ./configure --prefix=/opt --host=mipsel-linux --disable-xmldoc --srcdir=/opt/brcm/Asterisk\ 1.8.5.0/asterisk-1.8.5.0
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.
checking build system type... i686-pc-linux-gnu
checking host system type... mipsel-unknown-linux-gnu
configure: error: cannot find install-sh, install.sh, or shtool in `pwd` "."/`pwd`
I think that you are right and that the single quotes are not needed.
I noticed that having a space in the directory name can causes interesting problems. This can be resolved by placing the directory in single quotes or placing a \ before a space character:
Quote:
[root@mythtv asterisk-1.8.5.0]# cd /
[root@mythtv /]# cd /opt/brcm/Asterisk 1.8.5.0/asterisk-1.8.5.0
-bash: cd: /opt/brcm/Asterisk: No such file or directory
[root@mythtv /]# cd '/opt/brcm/Asterisk 1.8.5.0/asterisk-1.8.5.0'
[root@mythtv asterisk-1.8.5.0]# pwd
/opt/brcm/Asterisk 1.8.5.0/asterisk-1.8.5.0
[root@mythtv asterisk-1.8.5.0]# cd /
[root@mythtv /]# cd /opt/brcm/Asterisk\ 1.8.5.0/asterisk-1.8.5.0
[root@mythtv asterisk-1.8.5.0]# pwd
/opt/brcm/Asterisk 1.8.5.0/asterisk-1.8.5.0
I also tried adding a / to the end of the directory but this only made things worse:
Quote:
[root@mythtv asterisk-1.8.5.0]# ./configure --prefix=/opt --host=mipsel-linux --disable-xmldoc --srcdir='/opt/brcm/Asterisk 1.8.5.0/asterisk-1.8.5.0/'
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.
checking build system type... i686-pc-linux-gnu
checking host system type... mipsel-unknown-linux-gnu
configure: error: cannot find install-sh, install.sh, or shtool in `pwd` "."/`pwd`
[root@mythtv asterisk-1.8.5.0]# ./configure --prefix=/opt --host=mipsel-linux --disable-xmldoc --srcdir=/opt/brcm/Asterisk\ 1.8.5.0/asterisk-1.8.5.0/
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.
checking build system type... i686-pc-linux-gnu
checking host system type... mipsel-unknown-linux-gnu
configure: error: cannot find install-sh, install.sh, or shtool in `pwd` "."/`pwd`
[root@mythtv asterisk-1.8.5.0]# ./configure --prefix=/opt --host=mipsel-linux --disable-xmldoc --srcdir=/opt/brcm/Asterisk 1.8.5.0/asterisk-1.8.5.0/
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: 1.8.5.0/asterisk-1.8.5.0/
configure: error: cannot find sources (main/asterisk.c) in /opt/brcm/Asterisk
@wpte: in your first reponse, you recommended:
Quote:
this configure is probably a good start for compiling, but you need a lot of libraries...
I'd recommend you just use ipkg packages to get the correct header files, otherwise it's madness to compile everything yourself
I did not do this (because I have not figured out how): could this (lack of correct header files) be the cause of the configure errors?
Any suggestions would be appreciated.
@wpte: I appreciate you taking the time to look at my questions.