Jason Kingan
2003-02-24 15:53:14 UTC
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
viewml-***@viewml.com mailing list instead of the nanogui list. For ViewML
specific questions, it's probably the better place.
Thanks,
Jason Kingan
Century Software
This message is sent to you because you are subscribed to
the mailing list <viewml-***@viewml.com>.
To unsubscribe, E-mail to: <viewml-devel-***@viewml.com>
To switch to the DIGEST mode, E-mail to <viewml-devel-***@viewml.com>
To switch to the INDEX mode, E-mail to <viewml-devel-***@viewml.com>
Send administrative queries to <viewml-devel-***@viewml.com>
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
viewml-***@viewml.com mailing list instead of the nanogui list. For ViewML
specific questions, it's probably the better place.
Thanks,
Jason Kingan
Century Software
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
#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.
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,
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
---------------------------------------------------------------------
#############################################################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
#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.
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,
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
---------------------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <viewml-***@viewml.com>.
To unsubscribe, E-mail to: <viewml-devel-***@viewml.com>
To switch to the DIGEST mode, E-mail to <viewml-devel-***@viewml.com>
To switch to the INDEX mode, E-mail to <viewml-devel-***@viewml.com>
Send administrative queries to <viewml-devel-***@viewml.com>