Ryan Mansfield(deleted)
|
Re: How to correctly install the gcc 4.6.1 toolchain
|
Ryan Mansfield(deleted)
08/08/2011 12:49 PM
post87899
|
Re: How to correctly install the gcc 4.6.1 toolchain
On 11-08-08 11:24 AM, Andreas Beschorner wrote:
> Greetings Ryan,
>
> I downloaded a file named
>
> win32-gcc-4.6.1
>
> which included two compressed folders, "host" and "target".
>
> I was already feeling strange having a lot of linux/qnx type libraries
> in the host directory.
>
> I attached the higher levels of directory structure in an image.
There isn't any usr/local/lib in the win32-gcc-4.6.1.zip, or the png.
but the directory structure in the png looks correct. The files in the
canonically named directories (i.e.
$QNX_HOST/usr/lib/gcc/arm-unknown-nto-qnx6.5.0) on the host directories
are mainly host specific (e.g. cc1.exe/cc1plus.exe) with the exception
of a few target files such libgcc.a, libgcov.a and crtbegin/crtend.o
which are specific to the version of gcc. If you're using a Windows
host, you only need to download win32-gcc-4.6.1.zip and you don't need
to download the linux/nto tarballs. unless you are developing using
those as your hosts as well.
If you extract the win32-gcc-4.6.1.zip at the base qnx directory e.g.
C:/QNX650, then everything should extract into the host/target
directories and then you shouldn't have to copy anything else around on
your host side to correct install it.
As your developing from a Windows host, and targeting an Neutrino x86
target you'll have to update your target with the updated libraries.
Copy the $QNX_TARGET/x86/lib/libstdc++.so.6.0.16 on your host to the
target, and make sure /lib/libstdc++.so.6 sym link points at new
library. If you have libstdc++ as part of the IFS, then you'd have to
rebuild it to pick up the updated library.
> Where do you get your tool chain? I downloaded mine here from the
> Momentics homepage...
Yes, that's the right location to download the libraries from.
Regards,
Ryan Mansfield
|
|
|