2009-02-11 21:43:59     Build uclinux with QTE problem

Document created by Aaronwu Employee on Aug 14, 2013
Version 1Show Document
  • View in full screen mode

2009-02-11 21:43:59     Build uclinux with QTE problem

Tony Wu (CHINA)

Message: 69300   

 

I download the uclinux-dist from the SVN. and I try to build the uclinux with QTE,

 

But It seems that there are some problem with the uclinux, or there are something wrong with my toolchain??

 

can anybody help me ??

 

the ERROR message while make the uclinux is as follow:

 

bfin-uclinux-g++ -c -pipe -DQT_LINUX_NOMMU -O2 -D_REENTRANT -Wall -W -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/tony/work/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.4.3/mkspecs/qws/linux-bfin-flat-g++ -I/home/tony/work/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.4.3/examples/richtext/syntaxhighlighter -I../../../include/QtCore -I../../../include/QtCore -I../../../include/QtNetwork -I../../../include/QtNetwork -I../../../include/QtGui -I../../../include/QtGui -I../../../include -I../../../include -I.moc/release-static-emb-bfin -I.uic/release-static-emb-bfin -I. -o .obj/release-static-emb-bfin/moc_highlighter.o .moc/release-static-emb-bfin/moc_highlighter.cpp

bfin-uclinux-g++ -c -pipe -DQT_LINUX_NOMMU -O2 -D_REENTRANT -Wall -W -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/tony/work/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.4.3/mkspecs/qws/linux-bfin-flat-g++ -I/home/tony/work/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.4.3/examples/richtext/syntaxhighlighter -I../../../include/QtCore -I../../../include/QtCore -I../../../include/QtNetwork -I../../../include/QtNetwork -I../../../include/QtGui -I../../../include/QtGui -I../../../include -I../../../include -I.moc/release-static-emb-bfin -I.uic/release-static-emb-bfin -I. -o .obj/release-static-emb-bfin/moc_mainwindow.o .moc/release-static-emb-bfin/moc_mainwindow.cpp

bfin-uclinux-g++ -elf2flt -Wl,-rpath,/usr/lib -Wl,-rpath,/usr/lib -o orderform .obj/release-static-emb-bfin/detailsdialog.o .obj/release-static-emb-bfin/main.o .obj/release-static-emb-bfin/mainwindow.o .obj/release-static-emb-bfin/moc_detailsdialog.o .obj/release-static-emb-bfin/moc_mainwindow.o    -L/home/tony/work/uclinux-dist/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.4.3/lib -lQtGui -L/home/tony/work/uclinux-dist/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.4.3/lib -lpng -lQtNetwork -lQtCore -lz -lm -lrt -ldl -lpthread

/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.2/../../../../bfin-uclinux/bin/ld.real: cannot find -ldl

collect2: ld returned 1 exit status

make[7]: *** [orderform] Error 1

make[7]: Leaving directory `/home/tony/work/uclinux-dist/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.4.3/examples/richtext/orderform'

make[6]: *** [sub-orderform-install_subtargets] Error 2

bfin-uclinux-g++ -elf2flt -Wl,-rpath,/usr/lib -Wl,-rpath,/usr/lib -o syntaxhighlighter .obj/release-static-emb-bfin/highlighter.o .obj/release-static-emb-bfin/mainwindow.o .obj/release-static-emb-bfin/main.o .obj/release-static-emb-bfin/moc_highlighter.o .obj/release-static-emb-bfin/moc_mainwindow.o    -L/home/tony/work/uclinux-dist/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.4.3/lib -lQtGui -L/home/tony/work/uclinux-dist/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.4.3/lib -lpng -lQtNetwork -lQtCore -lz -lm -lrt -ldl -lpthread

/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.2/../../../../bfin-uclinux/bin/ld.real: cannot find -ldl

collect2: ld returned 1 exit status

make[7]: *** [syntaxhighlighter] Error 1

make[7]: Leaving directory `/home/tony/work/uclinux-dist/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.4.3/examples/richtext/syntaxhighlighter'

make[6]: *** [sub-syntaxhighlighter-install_subtargets] Error 2

 

temp.txt

TranslateQuoteReplyEditDelete

 

 

2009-02-13 02:05:24     Re: Build uclinux with QTE problem

Yi Li (CHINA)

Message: 69375   

 

Tony,

 

The error message:

 

"/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.2/../../../../bfin-uclinux/bin/ld.real: cannot find -ldl"

 

indicates that you need to build it as FDPIC format, instead of FLAT.

 

Also it is better to use toolchain from the trunk to build uclinux-dist from trunk. You can download the snapshot at:

 

http://blackfin.uclinux.org/gf/project/toolchain/frs/?action=FrsReleaseBrowse&frs_package_id=127&br_pkgrlssort_by=release_date&br_pkgrlssort_order=desc

 

 

 

-Yi

QuoteReplyEditDelete

 

 

2009-02-13 03:14:35     Re: Build uclinux with QTE problem

Tony Wu (CHINA)

Message: 69378   

 

Hi Yi:

 

Thanks for your help.

 

So I have to build the entire userspace as FDPIC format , if I want to build the QTE,  right ????

 

Is it possible to build the QTE as FDPIC format only , and others as FLAT format ???

 

and I download the new toolchain from the snapshots. Would the file " toolchain-trunk-svn.src.tar.bz2" be OK??

 

Best Regards!!!

TranslateQuoteReplyEditDelete

 

 

2009-02-13 14:24:34     Re: Build uclinux with QTE problem

Mike Frysinger (UNITED STATES)

Message: 69427   

 

there's no point in downloading the toolchain source when there are binaries already

QuoteReplyEditDelete

 

 

2009-02-13 20:22:36     Re: Build uclinux with QTE problem

Mike Frysinger (UNITED STATES)

Message: 69432   

 

ive fixed trunk so building for FLAT should work again

QuoteReplyEditDelete

 

 

2009-02-15 22:22:55     Re: Build uclinux with QTE problem

Tony Wu (CHINA)

Message: 69469   

 

Mike :

 

Thanks for your reply very much. I will update the trunk and try it .

 

Best Regards!!!

TranslateQuoteReplyEditDelete

 

 

2009-02-23 03:29:37     Re: Build uclinux with QTE problem

Tony Wu (CHINA)

Message: 69735   

 

Hi Mile:

 

I have checked out the trunk uclinux-dist and my tools chanel is the newest version ( down from snapshot ) but It seem that the FLAT wouldn't work yet.

 

Are you sure Building for FLAT is OK now? or anything I have to do before I building for FLAT?

 

Waiting for you kindly help.

 

Best Regards.

 

 

 

Building Error Info:

 

 

bfin-uclinux-g++ -c -pipe -DQT_LINUX_NOMMU -DQT_NO_LIBRARY -O2 -D_REENTRANT -Wall -W -DQT_NO_LIBRARY -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/tony/work/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.4.3/mkspecs/qws/linux-bfin-flat-g++ -I/home/tony/work/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.4.3/examples/qtconcurrent/imagescaling -I../../../include/QtCore -I../../../include/QtCore -I../../../include/QtNetwork -I../../../include/QtNetwork -I../../../include/QtGui -I../../../include/QtGui -I../../../include -I../../../include -I/home/tony/work/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.4.3/examples/qtconcurrent/imagescaling -I.moc/release-static-emb-bfin -I.uic/release-static-emb-bfin -I. -o .obj/release-static-emb-bfin/moc_imagescaling.o .moc/release-static-emb-bfin/moc_imagescaling.cpp

/home/tony/opt/bfin-uclinux/bin/../lib/gcc/bfin-uclinux/4.1.2/../../../../bfin-uclinux/bin/ld.real: cannot find -ldl

collect2: ld returned 1 exit status

make[7]: *** [mapdemo] Error 1

make[7]: Leaving directory `/home/tony/work/uclinux-dist/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.4.3/examples/qtconcurrent/map'

make[6]: *** [sub-map-install_subtargets] Error 2

/home/tony/work/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.4.3/examples/qtconcurrent/imagescaling/imagescaling.cpp: In member function 鈜oid Images::open()?

/home/tony/work/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.4.3/examples/qtconcurrent/imagescaling/imagescaling.cpp:107: warning: converting to 鈏nt?from 鈊ouble?

/home/tony/opt/bfin-uclinux/bin/../lib/gcc/bfin-uclinux/4.1.2/../../../../bfin-uclinux/bin/ld.real: cannot find -ldl

collect2: ld returned 1 exit status

make[7]: *** [wordcount] Error 1

make[7]: Leaving directory `/home/tony/work/uclinux-dist/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.4.3/examples/qtconcurrent/wordcount'

make[6]: *** [sub-wordcount-install_subtargets] Error 2

bfin-uclinux-g++ -elf2flt -Wl,-rpath,/usr/lib -Wl,-rpath,/usr/lib -o dropsite .obj/release-static-emb-bfin/droparea.o .obj/release-static-emb-bfin/dropsitewindow.o .obj/release-static-emb-bfin/main.o .obj/release-static-emb-bfin/moc_droparea.o .obj/release-static-emb-bfin/moc_dropsitewindow.o    -L/home/tony/work/uclinux-dist/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.4.3/lib -lQtGui -L/home/tony/work/uclinux-dist/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.4.3/lib -lpng -lQtNetwork -lQtCore -lz -lm -lrt -ldl -lpthread

bfin-uclinux-g++ -elf2flt -Wl,-rpath,/usr/lib -Wl,-rpath,/usr/lib -o progressdialog .obj/release-static-emb-bfin/main.o    -L/home/tony/work/uclinux-dist/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.4.3/lib -lQtGui -L/home/tony/work/uclinux-dist/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.4.3/lib -lpng -lQtNetwork -lQtCore -lz -lm -lrt -ldl -lpthread

/home/tony/opt/bfin-uclinux/bin/../lib/gcc/bfin-uclinux/4.1.2/../../../../bfin-uclinux/bin/ld.real: cannot find -ldl

collect2: ld returned 1 exit status

make[7]: *** [dropsite] Error 1

make[7]: Leaving directory `/home/tony/work/uclinux-dist/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.4.3/examples/draganddrop/dropsite'

make[6]: *** [sub-dropsite-install_subtargets] Error 2

/home/tony/opt/bfin-uclinux/bin/../lib/gcc/bfin-uclinux/4.1.2/../../../../bfin-uclinux/bin/ld.real: cannot find -ldl

collect2: ld returned 1 exit status

make[7]: *** [progressdialog] Error 1

make[7]: Leaving directory `/home/tony/work/uclinux-dist/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.4.3/examples/qtconcurrent/progressdialog'

bfin-uclinux-g++ -elf2flt -Wl,-rpath,/usr/lib -Wl,-rpath,/usr/lib -o imagescaling .obj/release-static-emb-bfin/main.o .obj/release-static-emb-bfin/imagescaling.o .obj/release-static-emb-bfin/moc_imagescaling.o    -L/home/tony/work/uclinux-dist/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.4.3/lib -lQtGui -L/home/tony/work/uclinux-dist/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.4.3/lib -lpng -lQtNetwork -lQtCore -lz -lm -lrt -ldl -lpthread

/home/tony/opt/bfin-uclinux/bin/../lib/gcc/bfin-uclinux/4.1.2/../../../../bfin-uclinux/bin/ld.real: cannot find -ldl

collect2: ld returned 1 exit status

make[7]: *** [imagescaling] Error 1

make[7]: Leaving directory `/home/tony/work/uclinux-dist/lib/qt-embedded/build-qt-embedded-linux-opensource-src-4.4.3/examples/qtconcurrent/imagescaling'

TranslateQuoteReplyEditDelete

 

 

2009-02-23 12:44:04     Re: Build uclinux with QTE problem

Mike Frysinger (UNITED STATES)

Message: 69763   

 

it builds fine for me with svn rev 7740.  you also need to delete the unpacked sources in order to apply the updated patches.

QuoteReplyEditDelete

 

 

2009-02-24 01:11:42     Re: Build uclinux with QTE problem

Tony Wu (CHINA)

Message: 69786   

 

Hi Mike:

 

So you mean I have to delete all the files I have check out from the trunk, and recheck out the uclinux?? or I just need to delete the unpacked sources in the ./uclinux-dist/lib/qt-embeded/ directory, and update the svn???

 

thanks for your reply.

 

Best Regards!

TranslateQuoteReplyEditDelete

 

 

2009-02-24 02:17:27     Re: Build uclinux with QTE problem

Mike Frysinger (UNITED STATES)

Message: 69789   

 

only the qt unpacked dir

Attachments

Outcomes