LongDirtyAnimAlf / fpcupdeluxe

A GUI based installer for FPC and Lazarus
490 stars 89 forks source link

Error: /home/h/fpcupdeluxe/cross/bin/arm-linux/arm-linux-gnueabihf-ld.bfd: cannot find -lpangocairo-1.0 #686

Closed han-k59 closed 4 months ago

han-k59 commented 4 months ago

Cross compiling under Linux works fine for me but now I tried to compile my second application and I get this link problem at the end of compiling:

Verbose: Linking /home/h/hnsky.fpc/hnsky Error: /home/h/fpcupdeluxe/cross/bin/arm-linux/arm-linux-gnueabihf-ld.bfd: cannot find -lpangocairo-1.0 hnsky.lpr(81,1) Error: Error while linking

I found a fix at at a Chines webpage I could not translate: https://www-khcloud-net.translate.goog/?thread-668.htm&_x_tr_sch=http&_x_tr_port=4082&_x_tr_sl=zh-CN&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=sc

This is the solution: ln -s /home/h/fpcupdeluxe/cross/lib/arm-linux/libpangocairo-1.0.so.0 /home/h/fpcupdeluxe/cross/lib/arm-linux/libpangocairo-1.0.so ln -s /home/h/fpcupdeluxe/cross/lib/aarch64-linux/libpangocairo-1.0.so.0 /home/h/fpcupdeluxe/cross/lib/aarch64-linux/libpangocairo-1.0.so ln -s /home/h/fpcupdeluxe/cross/lib/i386-linux/libpangocairo-1.0.so.0 /home/h/fpcupdeluxe/cross/lib/i386-linux/libpangocairo-1.0.so

LongDirtyAnimAlf commented 4 months ago

I have updated the library archives. Should be solved. Thanks for reporting.