digitalmars.D.learn - Buliding DSFML2? (64-bit Linux)
- Sean Eskapp (5/5) Mar 18 2011 I've been trying for weeks to build the D bindings of SFML2, but with li...
- Jonathan M Davis (5/11) Mar 18 2011 Just glancing at it, it looks like you might be missing pthreads, though...
- Sean Eskapp (9/20) Mar 18 2011 errors
- Jonathan M Davis (8/41) Mar 18 2011 Well, as of dmd 2.052, if you pass -m64 to dmd, it'll compile in 64-bit ...
- Sean Eskapp (12/53) Mar 18 2011 linker
I've been trying for weeks to build the D bindings of SFML2, but with little success. The main issue is that I get a myriad of linker errors (documented at out what linking options would solve them. Can anybody shed some light on this?
Mar 18 2011
On Friday, March 18, 2011 17:56:44 Sean Eskapp wrote:I've been trying for weeks to build the D bindings of SFML2, but with little success. The main issue is that I get a myriad of linker errors but I can't figure out what linking options would solve them. Can anybody shed some light on this?Just glancing at it, it looks like you might be missing pthreads, though that would be pretty weird. You don't normally need to specify -lpthread. But those symbols sure look like they're likely pthread-related. - Jonathan M Davis
Mar 18 2011
== Quote from Jonathan M Davis (jmdavisProg gmx.com)'s articleOn Friday, March 18, 2011 17:56:44 Sean Eskapp wrote:withI've been trying for weeks to build the D bindings of SFML2, buterrorslittle success. The main issue is that I get a myriad of linker(documented at http://www.sfml-dev.org/forum/viewtopic.php?though thatbut I can't figure out what linking options would solve them. Can anybody shed some light on this?Just glancing at it, it looks like you might be missing pthreads,would be pretty weird. You don't normally need to specify -lpthread. But thosesymbols sure look like they're likely pthread-related. - Jonathan M DavisI've tried -lpthread and -lm, and neither seemed to help. Is it possible there are platform issues, since D (to my knowledge) is 32- bit, and I'm 64-bit?
Mar 18 2011
On Friday, March 18, 2011 18:58:49 Sean Eskapp wrote:== Quote from Jonathan M Davis (jmdavisProg gmx.com)'s articleWell, as of dmd 2.052, if you pass -m64 to dmd, it'll compile in 64-bit on Linux, but if you don't pass it -m64 (or if you explicitly pass it -m32), it will compile in 32-bit. And if it's compiling in 32-bit, then you need the 32- bit versions of whatever libraries that you're using. pthread is one of them. So, if you don't have a 32-bit version of pthread installed, then that would explain it. - Jonathan M DavisOn Friday, March 18, 2011 17:56:44 Sean Eskapp wrote:withI've been trying for weeks to build the D bindings of SFML2, buterrorslittle success. The main issue is that I get a myriad of linker(documented at http://www.sfml-dev.org/forum/viewtopic.php?though thatbut I can't figure out what linking options would solve them. Can anybody shed some light on this?Just glancing at it, it looks like you might be missing pthreads,would be pretty weird. You don't normally need to specify -lpthread. But thosesymbols sure look like they're likely pthread-related. - Jonathan M DavisI've tried -lpthread and -lm, and neither seemed to help. Is it possible there are platform issues, since D (to my knowledge) is 32- bit, and I'm 64-bit?
Mar 18 2011
== Quote from Jonathan M Davis (jmdavisProg gmx.com)'s articleOn Friday, March 18, 2011 18:58:49 Sean Eskapp wrote:but== Quote from Jonathan M Davis (jmdavisProg gmx.com)'s articleOn Friday, March 18, 2011 17:56:44 Sean Eskapp wrote:I've been trying for weeks to build the D bindings of SFML2,linkerwithlittle success. The main issue is that I get a myriad ofthem.errors(documented at http://www.sfml-dev.org/forum/viewtopic.php?but I can't figure out what linking options would solvepthreads,Can anybody shed some light on this?Just glancing at it, it looks like you might be missing32-though thatwould be pretty weird. You don't normally need to specify -lpthread. But thosesymbols sure look like they're likely pthread-related. - Jonathan M DavisI've tried -lpthread and -lm, and neither seemed to help. Is it possible there are platform issues, since D (to my knowledge) is64-bit onbit, and I'm 64-bit?Well, as of dmd 2.052, if you pass -m64 to dmd, it'll compile inLinux, but if you don't pass it -m64 (or if you explicitly pass it-m32), itwill compile in 32-bit. And if it's compiling in 32-bit, then youneed the 32-bit versions of whatever libraries that you're using. pthread isone of them.So, if you don't have a 32-bit version of pthread installed, thenthat wouldexplain it. - Jonathan M DavisPerfect, thanks!
Mar 18 2011