Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Compiling spatialite 4.1.1 for BB device: (9 Items)
   
Compiling spatialite 4.1.1 for BB device  
I am trying to build spatialite 4.1.1 for my BB device. I am currently following the instructions on this site (http://
www.qnx.com/developers/docs/6.3.0SP3/neutrino/prog/make_convent.html#GNU_configure). The addvariant is not working as 
the site says it would. It would not generate the proper directory structure or the proper makefiles. Does anyone know 
what the proper procedure is to build spatialite 4.1.1 for the BB device or compile source in general that uses 
configure for the BB device?
Re: Compiling spatialite 4.1.1 for BB device  
You can create files manually:

1. In your libspatialite directory, create Makefile:

$ cat Makefile
ifndef QCONFIG
QCONFIG=qconfig.mk
endif
include $(QCONFIG)

include $(MKFILES_ROOT)/qmake-cfg.mk


2. Then, create directory:

nto-arm-le-v7

3. In the directory, create GNUmakefile:
$ cat nto-arm-le-v7/GNUmakefile
ifndef QCONFIG
         QCONFIG=qconfig.mk
endif
include $(QCONFIG)

include $(MKFILES_ROOT)/qmake-cfg.mk



On 13-07-26 11:59 AM, Yicheng Sun wrote:
> I am trying to build spatialite 4.1.1 for my BB device. I am currently following the instructions on this site (http:/
/www.qnx.com/developers/docs/6.3.0SP3/neutrino/prog/make_convent.html#GNU_configure). The addvariant is not working as 
the site says it would. It would not generate the proper directory structure or the proper makefiles. Does anyone know 
what the proper procedure is to build spatialite 4.1.1 for the BB device or compile source in general that uses 
configure for the BB device?
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post103647
> To cancel your subscription to this discussion, please e-mail general-toolchain-unsubscribe@community.qnx.com
>

Re: Compiling spatialite 4.1.1 for BB device  
I created the directories and makefiles as you instructed. i tried to run the make command and get error 
makefile:4 qconfig.mk: No such file or directory
makefile:6 /qmake-cfg.mk: No such file or directory
make: *** No rule to make target '/qmake-cfg'. Stop.
Any suggestions?
Re: Compiling spatialite 4.1.1 for BB device  
You need to setup environment for your shell prior to running 'make'.

I am assuming you already have NDK so use the script in your install 
directory to setup env. vars.

On 13-07-26 04:37 PM, Yicheng Sun wrote:
> I created the directories and makefiles as you instructed. i tried to run the make command and get error
> makefile:4 qconfig.mk: No such file or directory
> makefile:6 /qmake-cfg.mk: No such file or directory
> make: *** No rule to make target '/qmake-cfg'. Stop.
> Any suggestions?
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post103678
> To cancel your subscription to this discussion, please e-mail general-toolchain-unsubscribe@community.qnx.com
>

Re: Compiling spatialite 4.1.1 for BB device  
I already set up environment
Re: Compiling spatialite 4.1.1 for BB device  
 From the output you posted, it does not look like your environment is 
setup.

Could you do:

$env | grep -e QNX -e MAKE -e ^PATH

and post the output here?




On 13-07-29 04:45 PM, Yicheng Sun wrote:
> I already set up environment
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post103724
> To cancel your subscription to this discussion, please e-mail general-toolchain-unsubscribe@community.qnx.com
>

Re: Compiling spatialite 4.1.1 for BB device  
i had to change 
$env | grep -e QNX -e MAKE -e ^PATH
to 
$env | grep -e QNX -e MAKE -e $PATH
is that correct?

for my command, i got output
grep: /cur/bbndk/host_127_0_1_1987/linux/x86/usr/bin:/home/yicsun/.rim/bbndk/bin:/cur/bbndk/features/com.qnx.tools.jre.
linux_1.6.0.43/jre/bin:/cur/bbndk/host_127_0_1_1987/linux/x86/usr/python32/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:
/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games: No such file or directory
Re: Compiling spatialite 4.1.1 for BB device  
On 13-07-30 11:05 AM, Yicheng Sun wrote:
> i had to change
> $env | grep -e QNX -e MAKE -e ^PATH

no, I wanted to see PATH:

$ env | grep -e QNX -e MAKE -e "^PATH"

or just:

echo $QNX_TARGET
echo $QNX_HOST
echo $MAKEFLAGS
echo $PATH



> to
> $env | grep -e QNX -e MAKE -e $PATH
> is that correct?
>
> for my command, i got output
> grep: /cur/bbndk/host_127_0_1_1987/linux/x86/usr/bin:/home/yicsun/.rim/bbndk/bin:/cur/bbndk/features/com.qnx.tools.jre
.linux_1.6.0.43/jre/bin:/cur/bbndk/host_127_0_1_1987/linux/x86/usr/python32/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin
:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games: No such file or directory
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post103742
> To cancel your subscription to this discussion, please e-mail general-toolchain-unsubscribe@community.qnx.com
>

Re: Compiling spatialite 4.1.1 for BB device  
$env | grep -e QNX -e MAKE -e "^PATH" did not give any output. Here is all the output i got, from the echo commands too

yicsun@yicsun-RIMNET:~/Downloads/libspatialite/libspatialite-4.1.1$ $env | grep -e QNX -e MAKE -e "^PATH"
yicsun@yicsun-RIMNET:~/Downloads/libspatialite/libspatialite-4.1.1$ echo $QNX_TARGET 
/ws/trunk/developer/target/qnx6
yicsun@yicsun-RIMNET:~/Downloads/libspatialite/libspatialite-4.1.1$ echo $QNX_HOST 
/cur/bbndk/host_127_0_1_1987/linux/x86
yicsun@yicsun-RIMNET:~/Downloads/libspatialite/libspatialite-4.1.1$ echo $MAKEFLAGS 
-I/cur/bbndk/target_127_0_1_6173/qnx6/usr/include
yicsun@yicsun-RIMNET:~/Downloads/libspatialite/libspatialite-4.1.1$ echo $PATH
/cur/bbndk/host_127_0_1_1987/linux/x86/usr/bin:/home/yicsun/.rim/bbndk/bin:/cur/bbndk/features/com.qnx.tools.jre.linux_1
.6.0.43/jre/bin:/cur/bbndk/host_127_0_1_1987/linux/x86/usr/python32/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/
local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
yicsun@yicsun-RIMNET:~/Downloads/libspatialite/libspatialite-4.1.1$