Using DWT on Linux x86_64
Jacob Carlborg
doob at me.com
Sun Aug 11 12:53:38 PDT 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
More information about the Digitalmars-d-dwt
mailing list