[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] STLport build fails



Hi John,

Thanks for the quick reply. No, there's no special reason to use STLport.
I only need some kind of STL support. The problem is that g++ can't locate
the supplied STL. Here's a snippet of the build process of our application
when placed in the petalinux user/ tree:

ucfront-g++ microblaze-uclinux-g++  -c
-I/home/grim/petalinux-v0.20-rc3/software/petalinux-dist/user/ccu5 -Os -g
-fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall 
-mno-xl-soft-mul -mno-xl-soft-div -mxl-barrel-shift -mcpu=v4.00.a  
-DEMBED -Dlinux -D__linux__ -Dunix -D__uClinux__ -DLINUX  -o
CMessageException.o CMessageException.cpp
In file included from CMessageException.cpp:28:
CMessageException.h:28:21: exception: No such file or directory
CMessageException.h:29:18: string: No such file or directory

The errors come from
#include <exception>
#include <string>

I can't figure out how to specify the correct location.

Regards,

Kristoffer

> Hi Kristoffer,
>
> Kristoffer Hedberg wrote:
>
>> I am using petalinux-v0.20-rc3 trying to build STLport for C++ stdlib
>> support, but the build fails with
>>
>> make[2]: Entering directory
>
> [snip]
>
>> See <URL:http://developer.petalogix.com> for instructions.
>> make[4]: *** [obj/gcc/shared/dll_main.o] Error 1
>> make[4]: Leaving directory
>> `/home/grim/petalinux-v0.20-rc3/software/petalinux-dist/lib/STLport/build/lib'
>> make[3]: *** [all] Error 2
>> make[3]: Leaving directory
>> `/home/grim/petalinux-v0.20-rc3/software/petalinux-dist/lib/STLport'
>> make[2]: *** [STLport] Error 2
>> make[2]: Leaving directory
>> `/home/grim/petalinux-v0.20-rc3/software/petalinux-dist/lib'
>> make[1]: *** [all] Error 2
>> make[1]: Leaving directory
>> `/home/grim/petalinux-v0.20-rc3/software/petalinux-dist/lib'
>> make: *** [subdirs] Error 1
>>
>> Has anyone else experienced this problem?
>
> We've never been able to get STLport to build properly, which is why
> instead we have built the stdlibc++ and bundled it with the
> microblaze-uclinux-* tools.
>
> In the PetaLinux environment you can just do
>
> microblaze-uclinux-g++ -o hello hello.cpp
>
> and it will produce a ready-to-run binary.  You can use iostreams, STL,
> and pretty much everything else that you would expect.
>
> Is there a specific reason you want to use STLport, or are you just
> trying to build a C++ app?
>
> Regards,
>
> John
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@xxxxxxxxxxxxxx
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive :
> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>
>


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/