tx2 動態庫編譯注意事項

2021-10-10 14:51:36 字數 1668 閱讀 1551

可能問題:

ubuntu上編譯的庫在tx2上(arm平台上)能否直接使用?

結果:

/usr/bin/ld: skipping incompatible /home/ginger/chenjun/libs_make/lib/libmegengine.so when searching for

-lmegengine

/usr/bin/ld: cannot find -lmegengine

collect2: error: ld returned 1 exit status

example/cmakefiles/segdemo.dir/build.make:

111: recipe for target '../segdemo' failed

make[2]

:***

[../segdemo] error 1

cmakefiles/makefile2:

124: recipe for target 'example/cmakefiles/segdemo.dir/all' failed

make[1]

:***

[example/cmakefiles/segdemo.dir/all] error 2

make[1]

:*** waiting for unfinished jobs...

./usr/bin/ld: skipping incompatible /home/ginger/chenjun/libs_make/lib/libmegengine.so when searching for

-lmegengine

/usr/bin/ld: cannot find -lmegengine

collect2: error: ld returned 1 exit status

example/cmakefiles/buildengine.dir/build.make:

111: recipe for target '../buildengine' failed

make[2]

:***

[../buildengine] error 1

cmakefiles/makefile2:

87: recipe for target 'example/cmakefiles/buildengine.dir/all' failed

make[1]

:***

[example/cmakefiles/buildengine.dir/all] error 2

makefile:

83: recipe for target 'all' failed

make:**

*[all] error 2

ubuntu上編譯的庫so不能直接給arm平台使用,需要在arm平台上重新編譯so庫

結果:直接編譯通過

[25%

] linking cxx executable ../

../segdemo[50

%] linking cxx executable ../

../buildengine[75

%] built target buildengine

[100

%] built target segdemo

Android編譯注意事項

1 make bootimage 編譯生成kernel.img和boot.img的整合 會在out目錄下生成以下檔案。target ram disk out target product em t8350 emmc ramdisk.img target boot image out target p...

PHP FPM編譯注意事項

configure prefix usr local php 32bit with apxs2 usr local apache2 32 bin apxs with zlib with gd enable mbstring with mysql usr local mysql5 32bit with...

G2O編譯注意事項

usr local include g2o solvers csparse csparse extension.h 27 16 fatal error cs.h 沒有那個檔案 直接用sudo apt install libsuitesparse dev就好了,g2o的cmakelist寫了在編譯時查...