Re: [nanogui] error in cross-compiling viewml

Jason Kingan <[email protected]> Mon, 24 Feb 2003 08:53:14 -0700
Newsgroups gmane.comp.web.viewml.devel
Message-ID <[email protected]>
It very well may be that ViewML won't compile with the newer versions of gcc. 
It appears that you're using 3.2 for your cross compiler. I haven't 
personally used this version, so I couldn't say for certain. There is 
definitely some sort of problem with STL headers that is causing your errors 
below. Perhaps someone else who has tried this could speak up.

BTW, Barbra, you may want to post these questions to the 
[email protected] mailing list instead of the nanogui list. For ViewML 
specific questions, it's probably the better place.

Thanks,
Jason Kingan
Century Software


On Monday 24 February 2003 01:47 am, Barbra Jane Santos wrote:
> Hi,
>
>     I am trying to cross-compile viewml for assabet. I am using Redhat
> 7.3 and arm-linux-gcc 3.2. I have successfully compiled microwin-0.89,
> flnx-0.17 and w3c-libwww-5.2.8. I have searched the nanogui mailing list
> and found out that Xiaoyong  has successfully cross-compiled viewml for
> assabet. i followed the steps he said in the mail which are the following:
>
> 1) Cross-compiled ViewML:
> #PATH=/skiff/local/bin:$PATH
> #./configure
> --with-microwin=/home/yxy/microwin/src ( i set mine to
> --with-microwin=/home/armproj/webbrowser/microwin-0.89/src)
> --with-fltk=/home/yxy/flnx (i set this to
> --with-fltk=/home/armproj/webbrowser/flnx-0.17)
> --host=arm-linux
>
> 2) I modified the makeinclude file in the viewml directory
> CC=arm-linux-gcc
> CXX=arm-linux-g++
> RANLIB=arm-linux-ranlib
> LD=arm-linux-ld
> AR=arm-linux-ar
> STRIP=arm-linux-strip
>
> LIBS = -L/armdir/usr/local/arm/arm-linux/lib -lpthread
> -L/home/armproj/webbrowser/flnx-0.17/lib -lfltk
> -L/home/armproj/webbrowser/microwin-0.89/src/lib -lnano-X -lmwengine
> -lmwdrivers -lmwfonts `/usr/bin/libwww-config --libs`
> CFLAGS = -g `/usr/bin/libwww-config --cflags`
> CXXFLAGS = -g -Wno-deprecated --permissive -DNANOX -D_NANOX
> `/usr/bin/libwww-config --cflags`
> INCLUDES = -L${prefix}/include -INONE/include -I.
> -I/armdir/usr/local/arm/include -I../kdecore -I../kimgio -I../kdeui
> -I../jscript -I/home/armproj/webbrowser/flnx-0.17
> -I/home/armproj/webbrowser/flnx-0.17/FL -I./fltk
> -I/home/armproj/webbrowser/microwin-0.89/src/include
> -I${prefix}/include/microwin
>
> 3) after modifying the makeinclude file, i run make -e
>
> After doing those steps, i still encountered errors. Why is this
> so? Did i forget to modify or rather set something in the makeinclude
> file? Please help me.
>
> armproj@arwen viewml-0.22]$ make -e
> make[1]: Entering directory `/home/armproj/webbrowser/viewml-0.22/src'
> if [ ! -s .build_depends ]; then make -f build_depends.mk force-depends; fi
> make[1]: Leaving directory `/home/armproj/webbrowser/viewml-0.22/src'
> make[1]: Entering directory `/home/armproj/webbrowser/viewml-0.22/src'
> arm-linux-g++ -L/usr/local/include -INONE/include -I.
> -I/armdir/usr/local/arm/include -I../kdecore -I../kimgio -I../kdeui
> -I../jscript -I/home/armproj/webbrowser/flnx-0.17
> -I/home/armproj/webbrowser/flnx-0.17/FL -I./fltk
> -I/home/armproj/webbrowser/microwin-0.89/src/include
> -I/usr/local/include/microwin  -g -Wno-deprecated --permissive -DNANOX
> -D_NANOX `/usr/bin/libwww-config --cflags` -I.. -c -o html.o html.cpp
> In file included from ../kdecore/kurl.h:31,
>                  from html.cpp:24:
> fltk/qstring.h:16: parse error before `{' token
> fltk/qstring.h:21: parse error before `int'
> fltk/qstring.h:22: parse error before `const'
> fltk/qstring.h:22: warning: ISO C++ forbids declaration of `m_bNull' with
> no type
> .
> .
> .
> .
> .
> .
> /armdir/usr/local/arm/include/c++/3.2/bits/stl_deque.h:429: conflicts with
>    function declaration `int _Deque_base(const allocator_type&, unsigned
> int)'
> /armdir/usr/local/arm/include/c++/3.2/bits/stl_deque.h:430: only
> constructors
>    take base initializers
> /armdir/usr/local/arm/include/c++/3.2/bits/stl_deque.h:430: confused by
> earlier errors, bailing out
> make[1]: *** [html.o] Error 1
> make[1]: Leaving directory `/home/armproj/webbrowser/viewml-0.22/src'
> make: *** [viewml] Error 2
>
>
> -Barbra
>
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

#############################################################
This message is sent to you because you are subscribed to
  the mailing list <[email protected]>.
To unsubscribe, E-mail to: <[email protected]>
To switch to the DIGEST mode, E-mail to <[email protected]>
To switch to the INDEX mode, E-mail to <[email protected]>
Send administrative queries to  <[email protected]>