On 2016-10-09 03:12, goo wrote:
hello!
I got this problem when i using DWT on lubuntu.
[ build.sh ] :
dmd app.d -I/home/osboxes/Downloads/build/dwt/imp
-J/home/osboxes/Downloads/build/dwt/org.eclipse.swt.gtk.linux.x86/res
-L-L/home/osboxes/Downloads/build/dwt/lib \
-L/home/osboxes/Downloads/build/dwt/lib/org.eclipse.swt.gtk.linux.x86 \
-L/home/osboxes/Downloads/build/dwt/lib/dwt-base \
-L-lgtk-x11-2.0 -L-lgdk-x11-2.0 -L-latk-1.0 -L-lgdk_pixbuf-2.0 \
-L-lgthread-2.0 -L-lpangocairo-1.0 -L-lfontconfig -L-lXtst -L-lXext
-L-lXrender \
-L-lXinerama -L-lXi -L-lXrandr -L-lXcursor -L-lXcomposite -L-lXdamage
-L-lX11 \
-L-lXfixes -L-lpango-1.0 -L-lgobject-2.0 -L-lgmodule-2.0 -L-ldl
-L-lglib-2.0 \
-L-lcairo -L-lgnomeui-2 -L-lgnomevfs-2
[ ls ] :
$ ls /home/osboxes/Downloads/build/dwt/lib/
dwt-base.a libdwt-base.a liborg.eclipse.swt.gtk.linux.x86.a
org.eclipse.swt.gtk.linux.x86.a
[ build result ] :
/usr/bin/ld: cannot find
/home/osboxes/Downloads/build/dwt/lib/org.eclipse.swt.gtk.linux.x86: No
such file or directory
/usr/bin/ld: cannot find /home/osboxes/Downloads/build/dwt/lib/dwt-base:
No such file or directory
collect2: error: ld returned 1 exit status
I don't think you're passing the libraries correctly to the linker. I
recommend you pass the full path directly to DMD instead.
--
/Jacob Carlborg