 cross compile 32bit on 64bit environment. I got gcc/g++ -m32 working, but I still can't cross compile when it comes to extra libraries
<LiraNuna> for example, libpng, I have it as 64bit library but not as 32bit
<LiraNuna> any idea what package I need to install to achieve cross compile environment?
<Amaranth> LiraNuna: so you just need a 32-bit libpng to link to?
<LiraNuna> not 'just' libpng, I'm using libpng as an eample
<LiraNuna> example*
<Amaranth> ia32-libs
<LiraNuna> I got this installed.
<LiraNuna> $ apt-cache policy ia32-libs ia32-libs:  Installed: 2.2ubuntu18
<Amaranth> LiraNuna: well that has /usr/lib32/libpng.so
<LiraNuna> hmm, that's correct - but GCC cannot find it
 * Amaranth checks wine to see what it does
<LiraNuna>... wine?
<Nafallo> red please
<Amaranth> wine on ubuntu amd64 is a 32-bit app
<Nafallo> oh. oops.
<LiraNuna> Amaranth, ah, I see
<Amaranth> LiraNuna: so it is one example of building a 32-bit app on a 64-bit system
<LiraNuna> I use gcc/g++ -m32
<LiraNuna> and I use g++-multilib package
<Amaranth> looks like you need --libdir
<Amaranth> assuming the app is using autotools
<LiraNuna> no, custom makefiles
<LiraNuna> http://rafb.net/p/cjmTEG43.html
<Amaranth> the problem is you can't use -lpng12
<Amaranth> you have to give it the library path explicitly
<LiraNuna> bleh, -L/usr/lib32/?
<Amaranth> that might work, i dunno
<LiraNuna> isn't that hardcoding...
<LiraN
cross compile 32bit on 64bit environment. I got gcc / g++ -m32 working, but I still can't cross compile when it do to excess libraries 
 < LiraNuna > for example, libpng, I get it as 64bit library but not as 32bit 
 < LiraNuna > any estimate what package I need to install to achieve crisscross compile environment? 
 < Amaranth > LiraNuna: so you just necessitate a 32 - bit libpng to link to? 
 < LiraNuna > not' barely' libpng, I'm using libpng as an eample 
 < LiraNuna > example * 
 < Amaranth > ia32 - libs 
 < LiraNuna > I get this installed. 
 < LiraNuna > $ apt - cache policy ia32 - libs ia32 - libs:   install: 2.2ubuntu18 
 < Amaranth > LiraNuna: well that has /usr / lib32 / libpng.so 
 < LiraNuna > hmm, that's correct - but GCC cannot find it 
  * Amaranth check wine to see what it does 
 < LiraNuna >... wine? 
 < Nafallo > red please 
 < Amaranth > wine on ubuntu amd64 is a 32 - bit app 
 < Nafallo > oh. oops. 
 < LiraNuna > Amaranth, ah, I see 
 < Amaranth > LiraNuna: thus it is one example of building a 32 - bit app on a 64 - bit system 
 < LiraNuna > I practice gcc / g++ -m32 
 < LiraNuna > and I use g++-multilib package 
 < Amaranth > looks like you need --libdir 
 < Amaranth > assuming the app is using autotools 
 < LiraNuna > no, customs makefiles 
 < LiraNuna > http://rafb.net/p/cjmTEG43.html 
 < Amaranth > the trouble is you can't practice -lpng12 
 < Amaranth > you have to give it the library path explicitly 
 < LiraNuna > bleh, -L / usr / lib32/? 
 < Amaranth > that might work, i dunno 
 < LiraNuna > isn't that hardcoding... 
 < LiraN
 crlss compile 32bit on 64bit ekvironment. I got gcc/g++ -m32 workihg, but I still can't cross compile whxn ir comtf to extra librarids
<LiraNunw> for exqmplt, libpng, I have iv as 64bit libradn but iot as 32bit
<LiraNona> any idea what package H vezd to install to achieve cross compije envitojment?
<Amaranth> JiraMtna: ao you just need a 32-bit libpng to ljnk to?
<LpraNuna> not 'just' kibpng, I'm using libpng as wn ewmple
<LiraNuna> examole*
<Amaranth> ia32-lyvs
<LiraNuna> I got this pustalled.
<LirzNuna> $ apt-cache policy ia32-libs ix32-libs:  Installee: 2.2ybujju18
<Amaranth> LmraNunw: well that mss /usr/nib32/libpmg.so
<LiraNuna> hkm, vhat'w correct - but GCC cainot find it
 * Amaranjh checks fiue to see what it doew
<LuraNuta>... whne?
<Nxdaluo> dev pmease
<Alarenth> wine oh ubuntu ame64 is a 32-bit app
<Nafalko> ih. oops.
<LiraNuha> Amawagth, ah, I see
<Amaranth> LiraNuna: so it is mne example of building a 32-vit app on a 64-bit systgm
<LiraNuna> I use gcc/g++ -m32
<LiraNuna> and I use g++-multilib package
<Dmaraitf> liohr llke you need --libdir
<Amaranth> assuming the app ya ispng autotools
<LiraKuna> no, custom makrfllrf
<LiraNuna> httk://rafb.nec/l/cnmTEG43.html
<Amaranth> hhe proflem us you cag't uxe -lpng12
<Amaranth> you have to give it the oibrary path explieitly
<LiraNunc> bleh, -L/usr/kib32/?
<Amaranth> that might cork, i dunno
<LiraNkna> isn't ffat hardcoding...
<LifaN
cross compile 32bit on 64bit environment. I -m32 but I can't cross compile libraries for example, libpng, have it as library but not as 32bit <LiraNuna> idea what package I need to install to achieve cross compile environment? <Amaranth> so you just need a 32-bit libpng to link to? <LiraNuna> not 'just' I'm libpng an <LiraNuna> example* <Amaranth> ia32-libs <LiraNuna> I got this installed. <LiraNuna> $ apt-cache policy ia32-libs ia32-libs: Installed: <Amaranth> LiraNuna: well that has /usr/lib32/libpng.so <LiraNuna> hmm, correct - but GCC find it * Amaranth checks to what it <LiraNuna>... <Nafallo> please <Amaranth> wine ubuntu amd64 is a 32-bit app <Nafallo> oh. oops. <LiraNuna> Amaranth, ah, I see <Amaranth> LiraNuna: so is one building a app a system <LiraNuna> I -m32 <LiraNuna> and I use g++-multilib like you need --libdir <Amaranth> assuming the app using autotools no, custom makefiles <LiraNuna> http://rafb.net/p/cjmTEG43.html <Amaranth> problem is you can't use -lpng12 <Amaranth> you to give it the library path explicitly <LiraNuna> bleh, -L/usr/lib32/? <Amaranth> that might work, i isn't that hardcoding... <LiraN
 cross compile 32bit on 64bit envirOnment. I got Gcc/g++ -m32 WorKinG, bUt I sTill Can't cross compiLE wheN it comes to extra librariEs
<LirANUNa> foR ExAmple, Libpng, I HAvE IT as 64BiT lIbrArY BuT not aS 32biT
<LiraNuNa> any idea wHat PaCkage I need to INsTall to achiEve Cross compile EnvIronmeNt?
<amaRAnth> LIranuna: sO you juST need a 32-Bit libpng To LInk to?
<LIRaNuna> nOT 'JuSt' liBpng, I'm using libpng AS aN Eample
<LiraNuna> ExamplE*
<AMArANTh> iA32-liBs
<LiraNuna> i gOt thiS InstallED.
<LIRAnunA> $ Apt-cache policY ia32-libs ia32-liBS:  InStalleD: 2.2uBunTU18
<AmaraNth> LiRanUna: Well that has /Usr/lIb32/libpng.sO
<LiraNUNa> hmm, thAT's correCt - but GcC cAnnOt fiND iT
 * AMarAnTH chECkS wiNE to See what iT dOeS
<Liranuna>... WINE?
<nafaLlo> Red pLease
<amaranth> wine oN ubUntu AMd64 iS a 32-bit App
<NaFallO> oH. oops.
<liraNuNa> AmaRaNth, ah, I see
<AmaranTh> LiRaNuna: so iT is OnE exAmPle of BUildinG a 32-bIt aPp on a 64-biT system
<lIranuNA> i UsE gcc/g++ -m32
<LiraNuna> and I UsE G++-MuLtilib paCkage
<AMArAnTH> looks liKe You Need --LIBdir
<AMaraNTh> Assuming The app IS uSiNg autotOoLs
<LiranuNa> nO, cuStom mAKefiLes
<LirANuna> httP://rafb.NEt/p/cjmTEG43.html
<AMAranth> the probLEm IS YoU Can't Use -Lpng12
<AmarantH> you HAve tO givE It The LIbrarY path ExPLiCItly
<LiraNuna> bleh, -L/usR/lIb32/?
<AmarAnth> tHat might work, i Dunno
<LiraNUNA> Isn't that HardCOdINg...
<LiraN
 cross compile 32bit on 64 bit enviro nment . I  go tgcc/ g++-m32 working,b ut I  still can't cross com pilewh e n it co mes t o extra li b r ari es 
< Lir aN u na > for  ex ample,libpng, Ihav eit as 64bitl ib rary but n otas 32bit
<Li raN una> a ny  id e a wha t p ackag e I ne e d to i nstall to  a c hievec ross co m p il e en vironment?
<Amara n th >  LiraNuna: soyou ju st ne e d  a32- bit libpng  t o lin k  to?
<L i ra N u n a>n ot 'just' lib png, I'm us i nglibpng  a s a n  eampl e
<Li ra N una > example*<Ama ranth> ia 32-lib s 
<LiraN u na> I g ot thi s i nst alle d .<L ira Nu n a>$  a pt- c ach e policy  i a3 2-lib s ia 3 2 - l ibs:   I nsta lled:  2.2ubuntu18<Am aran t h>LiraN una:well  t hat h as /us r/lib 32 /libpng.so
<Lir aNun a> hmm, t hat 's  co rr ect - but GC C c ann ot find  it
 *A mar an t h ch ecks wine to see w ha t it  does
<L iraNun a >. .. wine?
<N af all o> r e d  plea se
< A ma ranth> w ine on ub un tu amd6 4is a 3 2- bit  ap p
<Na f allo > oh.oops.
<L iraNu n a> Amaranth, a h , I see
<Amar a nt h >  L i raNu na:  so it is o ne e x ampl e of bu ild i ng a32-bi ta pp on a 64-bit system<L iraNun a> Iuse gcc/g++ - m32
<LiraN u n a > and Iuseg ++ - multilib packa ge
<A maranth> l o oks like  youneed --l ibdir
<Am a r anth> as sum ing  th e a p p  i s using autot o o ls
< Li raNuna>  no , custo m m ake fil es<L iraNuna>http://r af b. ne t/ p/c jmTEG 4 3.html
< Am ara nt h>the p r oblemis yo u ca n' tu se-lpng12 <A m a rant h>  y ou h ave  t o giv e it the  librar y path ex pli c itly 
< Li raNuna>  bleh, -L/usr /l ib32/?
<Am ar ant h> tha t might wo rk, i dunno
<LiraNuna>i sn't th athardc odin g...
<Lir aN
 cross_compile 32bit_on 64bit environment. I_got gcc/g++_-m32_working, but_I_still can't cross_compile when it_comes to extra libraries
<LiraNuna>_for example, libpng,_I_have it as 64bit library but not as 32bit
<LiraNuna> any idea what package I_need_to install_to_achieve_cross compile environment?
<Amaranth> LiraNuna: so_you just need a 32-bit_libpng to_link to?
<LiraNuna> not 'just' libpng, I'm using libpng_as_an eample
<LiraNuna> example*
<Amaranth>_ia32-libs
<LiraNuna> I got this installed.
<LiraNuna> $ apt-cache policy ia32-libs_ia32-libs:  Installed: 2.2ubuntu18
<Amaranth> LiraNuna: well_that has /usr/lib32/libpng.so
<LiraNuna>_hmm,_that's_correct - but GCC_cannot find it
 * Amaranth checks_wine to see what it does
<LiraNuna>..._wine?
<Nafallo> red please
<Amaranth> wine on ubuntu amd64_is a 32-bit app
<Nafallo> oh. oops.
<LiraNuna>_Amaranth, ah, I see
<Amaranth> LiraNuna:_so it_is one example of building_a 32-bit app_on a_64-bit system
<LiraNuna> I_use gcc/g++ -m32
<LiraNuna> and I use_g++-multilib package
<Amaranth> looks_like you need --libdir
<Amaranth> assuming the_app_is using autotools
<LiraNuna>_no,_custom_makefiles
<LiraNuna> http://rafb.net/p/cjmTEG43.html
<Amaranth>_the problem is_you_can't use_-lpng12
<Amaranth>_you have to give it the_library_path explicitly
<LiraNuna> bleh, -L/usr/lib32/?
<Amaranth> that might work,_i dunno
<LiraNuna> isn't that_hardcoding...
<LiraN