Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Port dillo2 on uclinux with nios2

Hi,everyone.I have ported Dillo2 on my DE2-70 with uclinux,Although</SPAN></SPAN> there is still some problems.

dillo2 need:

libjpeg

libpng

libiconv

microwindows

nxlib-0.45

fltk2

libjpeg&#12289;libpng&#12289;microwindows&#12289;nxlib are already in nios2-linux-20090730.tar&#12290;

Libiconv&#65306;http://www.gnu.org/software/libiconv/

Libiconv port on nios may meet the problem&#65288;machine 'nios2' not recognized&#65289;. I don`t want to spend too much words on it,Anyone who wants to know how to fix it,plz give me a e-mail&#65288;pc21820002000@yahoo.com.cn&#65289;.

FLTK2:

CFLAGS="-G 0 –I /mynios/nios2-linux/uclinux/staging/usr/include" CXXFLAGS="-G 0 –I /mynios/nios2-linux/uclinux/staging/usr/include /.." LDFLAGS="-s –L /mynios/nios2-linux/uclinux/staging/usr/lib –elf2flt" ./configure --host=nios2-linux-uclibc --target= nios2-linux-uclibc –disable-shared --with-x --disable-gl --disable-cygwin --x-includes=../ --x-libraries= /mynios/nios2-linux/uclinux/staging/usr/lib --cache-file=/dev/null

modify fltk2-xonfig and makeinclude

replace all -lXi –lXext into -lX11 -lnano-X

then make

&#65288;maybe still some problems in nxlib, find stub.c in your nxlib,and use mine instead?&#65289;

DILLO2:

find libz.a libiconv.a libfltk2.a and move them to /usr/local/lib

Modify configure

{ echo "$as_me:$LINENO: checking FLTK2" >&5

echo $ECHO_N "checking FLTK2... $ECHO_C" >&6; }

if sh -c "$FLTK2_CONFIG --version" >/dev/null 2>&1

then { echo "$as_me:$LINENO: result: yes" >&5

echo "${ECHO_T}yes" >&6; }

LIBFLTK_CXXFLAGS=`$FLTK2_CONFIG --cxxflags`

LIBFLTK_CFLAGS=`$FLTK2_CONFIG --cflags`

LIBFLTK_LIBS=`$FLTK2_CONFIG --use-images --ldflags`

else { echo "$as_me:$LINENO: result: no" >&5

echo "${ECHO_T}no" >&6; }

{ { echo "$as_me:$LINENO: error: FLTK2 must be installed!" >&5

echo "$as_me: error: FLTK2 must be installed!" >&2;}

{ (exit 1); exit 1; }; }

fi

Replace all fork into unfork

FLTK2_CONFIG=/fltk2/fltk2-config PNG_CONFIG=/mynios/nios2-linux/uclinux/lib/libpng/libpng-config

LDFLAG=”-elf2flt” ./configure --host=nios2-linux-uclibc --target= nios2-linux-uclibc --cache-file=/dev/null

OK,now,have fun~~ ^_^
No RepliesBe the first to reply