digitalmars.D.dwt - Using DWT on Linux x86_64
- JohnnyK (13/13) Aug 10 2013 I don't need 64bit executables I just want to be able to compile
- Jacob Carlborg (13/24) Aug 11 2013 You need the 32bit versions of those libraries. If you have a 64bit
- JohnnyK (3/35) Aug 12 2013 Hmmm maybe I will just build a virtual with 32bit Linux. I have
I don't need 64bit executables I just want to be able to compile as 32bit. Anyway here I am getting some errors when I try to compile dwt on x86_64 Ubuntu I get /usr/bin/ld: cannot find -l<libnamehere> for all the dependencies. I did install the dev packages using the following "sudo apt-get install libcairo2-dev libglib2.0-dev libpango1.0-dev libxfixes-dev libxdamage-dev libxcomposite-dev libxcursor-dev libxrandr-dev libxi-dev libxinerama-dev libxtst-dev libgtk2.0-dev libgnomeui-dev" Everything seemed to install ok. What am I missing? I have installed other pachages where I had to do symlinks and such to make ld happy would that be the same case here? Anyway I was able to build the base without issue but I cannot build the snippets.
Aug 10 2013
On 2013-08-10 15:45, JohnnyK wrote:I don't need 64bit executables I just want to be able to compile as 32bit. Anyway here I am getting some errors when I try to compile dwt on x86_64 Ubuntu I get /usr/bin/ld: cannot find -l<libnamehere> for all the dependencies. I did install the dev packages using the following "sudo apt-get install libcairo2-dev libglib2.0-dev libpango1.0-dev libxfixes-dev libxdamage-dev libxcomposite-dev libxcursor-dev libxrandr-dev libxi-dev libxinerama-dev libxtst-dev libgtk2.0-dev libgnomeui-dev" Everything seemed to install ok. What am I missing? I have installed other pachages where I had to do symlinks and such to make ld happy would that be the same case here? Anyway I was able to build the base without issue but I cannot build the snippets.You need the 32bit versions of those libraries. If you have a 64bit system it will only install the 64bit libraries. You need to install "gcc-multilib" and possibly some other libraries as well. I had some problems with that because not all the necessary libraries were available. There are instructions available here: http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/StartingWithD/Compiler/DMD#AMD64 Have a look at this as well: http://askubuntu.com/questions/107230/what-happened-to-the-ia32-libs-package Note, when you compile for a non-native platform pass the -m32 or the -m64 flag to the compiler. -- /Jacob Carlborg
Aug 11 2013
On Sunday, 11 August 2013 at 19:53:38 UTC, Jacob Carlborg wrote:On 2013-08-10 15:45, JohnnyK wrote:Hmmm maybe I will just build a virtual with 32bit Linux. I have other needs for a 32bit Linux anyway.I don't need 64bit executables I just want to be able to compile as 32bit. Anyway here I am getting some errors when I try to compile dwt on x86_64 Ubuntu I get /usr/bin/ld: cannot find -l<libnamehere> for all the dependencies. I did install the dev packages using the following "sudo apt-get install libcairo2-dev libglib2.0-dev libpango1.0-dev libxfixes-dev libxdamage-dev libxcomposite-dev libxcursor-dev libxrandr-dev libxi-dev libxinerama-dev libxtst-dev libgtk2.0-dev libgnomeui-dev" Everything seemed to install ok. What am I missing? I have installed other pachages where I had to do symlinks and such to make ld happy would that be the same case here? Anyway I was able to build the base without issue but I cannot build the snippets.You need the 32bit versions of those libraries. If you have a 64bit system it will only install the 64bit libraries. You need to install "gcc-multilib" and possibly some other libraries as well. I had some problems with that because not all the necessary libraries were available. There are instructions available here: http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/StartingWithD/Compiler/DMD#AMD64 Have a look at this as well: http://askubuntu.com/questions/107230/what-happened-to-the-ia32-libs-package Note, when you compile for a non-native platform pass the -m32 or the -m64 flag to the compiler.
Aug 12 2013