comile error, when compile the source file in arm-linux

robo_w
Posts: 1
Joined: Sun Aug 06, 2017 8:06 am

comile error, when compile the source file in arm-linux

Postby robo_w » Sun Aug 06, 2017 8:41 am

Hello,
I want to use the ARToolKit SDK(Version:5.3.2r) in the arm linux, but some troubles occured when i compile the source file. I use the configure you provided, and change the complier option to:
CC="arm-linux-gnueabihf-gcc-4.8"
CXX="arm-linux-gnueabihf-g++-4.8 -std=c++11"
CFLAG="-O1 -fPIC -march=armv7-a -DHAVE_NFT=1"
STDCXXLIB="-lstdc++"
When use these parameter to compile the source file, error occured, the detail list below:(the detail compile info is in the attachment)
//------------------------------------------------------
arm-linux-gnueabihf-gcc-4.8 -O1 -fPIC -march=armv7-a -DHAVE_NFT=1 -I/usr/include/i386-linux-gnu -I../../../include -c -o trackingSub.o trackingSub.c
arm-linux-gnueabihf-g++-4.8 -std=c++11 -c -I../../../include -O1 -fPIC -march=armv7-a -DHAVE_NFT=1 -I/usr/include/i386-linux-gnu VideoSource.cpp -o VideoSource.o
arm-linux-gnueabihf-gcc-4.8 -O1 -fPIC -march=armv7-a -DHAVE_NFT=1 -I/usr/include/i386-linux-gnu -I../../../include -L../../../lib/linux-armv7l -L../../../lib -L/usr/lib/i386-linux-gnu -L/usr/lib -shared -o ../../../lib/libARWrapper.so AndroidFeatures.o AndroidVideoSource.o ARController.o ARMarker.o ARMarkerMulti.o ARMarkerNFT.o ARMarkerSquare.o ARPattern.o ARToolKitVideoSource.o ARToolKitWrapperExportedAPI.o ColorConversion.o trackingSub.o VideoSource.o -lARgsub_lite -lARvideo -lAR -lARICP -lAR2 -lKPM -lARUtil -lARMulti -lEden -lAR -lglut -lGLU -lGL -lX11 -lm -lpthread -ljpeg
/usr/bin/ld: skipping incompatible ../../../lib/libAR2.a when searching for -lAR2
/usr/bin/ld: cannot find -lAR2
/usr/bin/ld: skipping incompatible ../../../lib/libARUtil.a when searching for -lARUtil
/usr/bin/ld: cannot find -lARUtil
collect2: error: ld returned 1 exit status
make[2]: *** [../../../lib/libARWrapper.so] Error 1
make[2]: Leaving directory `/home/ubuntu/SDK/ARToolKit5/lib/SRC/ARWrapper'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/ubuntu/SDK/ARToolKit5/lib/SRC'
make: *** [all] Error 2
------------------------------------------------------------------------------------------------//
and part of the comile information has been successed:
//--------------------------------------
arm-linux-gnueabihf-gcc-4.8 -O1 -fPIC -march=armv7-a -DHAVE_NFT=1 -I/usr/include/i386-linux-gnu -I../../../include -c -o arUtil.o arUtil.c
ar rs ../../../lib/libAR.a mAlloc.o mFree.o mAllocDup.o mDup.o mAllocTrans.o mTrans.o mAllocMul.o mMul.o mAllocInv.o mInv.o mSelfInv.o mAllocUnit.o mUnit.o mDisp.o mDet.o mPCA.o vAlloc.o vDisp.o vFree.o vHouse.o vInnerP.o vTridiag.o paramGetPerspective.o paramClear.o paramDecomp.o paramDistortion.o paramChangeSize.o paramFile.o paramLT.o paramDisp.o ar3DCreateHandle.o ar3DUtil.o arCreateHandle.o arDetectMarker.o arDetectMarker2.o arFilterTransMat.o arGetLine.o arGetMarkerInfo.o arGetTransMat.o arGetTransMatStereo.o arImageProc.o arLabeling.o arLabelingSub/arLabelingSubDBI3C.o arLabelingSub/arLabelingSubDBI3C565.o arLabelingSub/arLabelingSubDBI3CA.o arLabelingSub/arLabelingSubDBI3CA4444.o arLabelingSub/arLabelingSubDBI3CA5551.o arLabelingSub/arLabelingSubDBIA3C.o arLabelingSub/arLabelingSubDBIC.o arLabelingSub/arLabelingSubDBICY.o arLabelingSub/arLabelingSubDBIYC.o arLabelingSub/arLabelingSubDBR3C.o arLabelingSub/arLabelingSubDBR3C565.o arLabelingSub/arLabelingSubDBR3CA.o arLabelingSub/arLabelingSubDBR3CA4444.o arLabelingSub/arLabelingSubDBR3CA5551.o arLabelingSub/arLabelingSubDBRA3C.o arLabelingSub/arLabelingSubDBRC.o arLabelingSub/arLabelingSubDBRCY.o arLabelingSub/arLabelingSubDBRYC.o arLabelingSub/arLabelingSubDBZ.o arLabelingSub/arLabelingSubDWI3C.o arLabelingSub/arLabelingSubDWI3C565.o arLabelingSub/arLabelingSubDWI3CA.o arLabelingSub/arLabelingSubDWI3CA4444.o arLabelingSub/arLabelingSubDWI3CA5551.o arLabelingSub/arLabelingSubDWIA3C.o arLabelingSub/arLabelingSubDWIC.o arLabelingSub/arLabelingSubDWICY.o arLabelingSub/arLabelingSubDWIYC.o arLabelingSub/arLabelingSubDWR3C.o arLabelingSub/arLabelingSubDWR3C565.o arLabelingSub/arLabelingSubDWR3CA.o arLabelingSub/arLabelingSubDWR3CA4444.o arLabelingSub/arLabelingSubDWR3CA5551.o arLabelingSub/arLabelingSubDWRA3C.o arLabelingSub/arLabelingSubDWRC.o arLabelingSub/arLabelingSubDWRCY.o arLabelingSub/arLabelingSubDWRYC.o arLabelingSub/arLabelingSubDWZ.o arLabelingSub/arLabelingSubEBI3C.o arLabelingSub/arLabelingSubEBI3C565.o arLabelingSub/arLabelingSubEBI3CA.o arLabelingSub/arLabelingSubEBI3CA4444.o arLabelingSub/arLabelingSubEBI3CA5551.o arLabelingSub/arLabelingSubEBIA3C.o arLabelingSub/arLabelingSubEBIC.o arLabelingSub/arLabelingSubEBICY.o arLabelingSub/arLabelingSubEBIYC.o arLabelingSub/arLabelingSubEBR3C.o arLabelingSub/arLabelingSubEBR3C565.o arLabelingSub/arLabelingSubEBR3CA.o arLabelingSub/arLabelingSubEBR3CA4444.o arLabelingSub/arLabelingSubEBR3CA5551.o arLabelingSub/arLabelingSubEBRA3C.o arLabelingSub/arLabelingSubEBRC.o arLabelingSub/arLabelingSubEBRCY.o arLabelingSub/arLabelingSubEBRYC.o arLabelingSub/arLabelingSubEBZ.o arLabelingSub/arLabelingSubEWI3C.o arLabelingSub/arLabelingSubEWI3C565.o arLabelingSub/arLabelingSubEWI3CA.o arLabelingSub/arLabelingSubEWI3CA4444.o arLabelingSub/arLabelingSubEWI3CA5551.o arLabelingSub/arLabelingSubEWIA3C.o arLabelingSub/arLabelingSubEWIC.o arLabelingSub/arLabelingSubEWICY.o arLabelingSub/arLabelingSubEWIYC.o arLabelingSub/arLabelingSubEWR3C.o arLabelingSub/arLabelingSubEWR3C565.o arLabelingSub/arLabelingSubEWR3CA.o arLabelingSub/arLabelingSubEWR3CA4444.o arLabelingSub/arLabelingSubEWR3CA5551.o arLabelingSub/arLabelingSubEWRA3C.o arLabelingSub/arLabelingSubEWRC.o arLabelingSub/arLabelingSubEWRCY.o arLabelingSub/arLabelingSubEWRYC.o arLabelingSub/arLabelingSubEWZ.o arPattAttach.o arPattCreateHandle.o arPattGetID.o arPattLoad.o arPattSave.o arUtil.o
true ../../../lib/libAR.a
make[2]: Leaving directory `/home/ubuntu/SDK/ARToolKit5/lib/SRC/AR
//--------------------------------
(cd AR2; make -f Makefile)
make[2]: Entering directory `/home/ubuntu/SDK/ARToolKit5/lib/SRC/AR2'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/ubuntu/SDK/ARToolKit5/lib/SRC/AR2
//--------------------------

(the detail compile info in the attachment)

Who can help me, thanks!

the hardware i am using is the NVIDIA's Jetson TK1, and part of info about it is:
ubuntu14.0, 32bit, arm7l
Attachments
compileInfo.txt
(53.64 KiB) Downloaded 21 times

Return to “ARToolKit for Desktop v5.x”

Who is online

Users browsing this forum: No registered users and 1 guest