www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - build problem with 2.0.70

reply =?utf-8?B?U2HFoWEgSmFuacWha2E=?= <gour atmarama.com> writes:
Hello,

considering that DWT might be interesting option for writing GUI apps
with D, I've tried to build it on my Linux machine, but it fails with:

[gour atmarama ~/repos/external]$  git clone --recursive
git://github.com/d-widget-toolkit/dwt.git
Cloning into 'dwt'...
remote: Counting objects: 116, done.
remote: Total 116 (delta 0), reused 0 (delta 0), pack-reused 116
Receiving objects: 100% (116/116), 74.70 KiB | 0 bytes/s, done.
Resolving deltas: 100% (52/52), done.
Checking connectivity... done.
Submodule 'base' (git://github.com/d-widget-toolkit/base.git) registered for
path 'base'
Submodule 'org.eclipse.swt.gtk.linux.x86'
(git://github.com/d-widget-toolkit/org.eclipse.swt.gtk.linux.x86.git)
registered for path 'org.eclipse.swt.gtk.linux.x86'
Submodule 'org.eclipse.swt.snippets'
(git://github.com/d-widget-toolkit/org.eclipse.swt.snippets.git) registered for
path 'org.eclipse.swt.snippets'
Submodule 'org.eclipse.swt.win32.win32.x86'
(git://github.com/d-widget-toolkit/org.eclipse.swt.win32.win32.x86.git)
registered for path 'org.eclipse.swt.win32.win32.x86'
Cloning into 'base'...
remote: Counting objects: 973, done.
remote: Total 973 (delta 0), reused 0 (delta 0), pack-reused 973
Receiving objects: 100% (973/973), 364.04 KiB | 324.00 KiB/s, done.
Resolving deltas: 100% (484/484), done.
Checking connectivity... done.
Submodule path 'base': checked out 'adb0899abb5a8706a1e16c3c3a0a1dff4472cb41'
Cloning into 'org.eclipse.swt.gtk.linux.x86'...
remote: Counting objects: 2078, done.
remote: Total 2078 (delta 0), reused 0 (delta 0), pack-reused 2078
Receiving objects: 100% (2078/2078), 2.04 MiB | 501.00 KiB/s, done.
Resolving deltas: 100% (1254/1254), done.
Checking connectivity... done.
Submodule path 'org.eclipse.swt.gtk.linux.x86': checked out
'91fde2337132be7c680de298a4083448b71de387'
Cloning into 'org.eclipse.swt.snippets'...
remote: Counting objects: 540, done.
remote: Total 540 (delta 0), reused 0 (delta 0), pack-reused 540
Receiving objects: 100% (540/540), 203.36 KiB | 326.00 KiB/s, done.
Resolving deltas: 100% (308/308), done.
Checking connectivity... done.
Submodule path 'org.eclipse.swt.snippets': checked out
'4d3e76073e1901622dec80b6a3e24eebbaf6b68d'
Cloning into 'org.eclipse.swt.win32.win32.x86'...
remote: Counting objects: 1939, done.
remote: Total 1939 (delta 0), reused 0 (delta 0), pack-reused 1939
Receiving objects: 100% (1939/1939), 2.26 MiB | 484.00 KiB/s, done.
Resolving deltas: 100% (1071/1071), done.
Checking connectivity... done.
Submodule path 'org.eclipse.swt.win32.win32.x86': checked out
'424ce201865839b2aa8e0f5601ad063e6e71a054'
[gour atmarama ~/repos/external]$ cd dwt/
[gour atmarama ~/repos/external/dwt]$ rdmd build base swt -m64
(in /home/gour/repos/external/dwt)
Building dwt-base
workdir=>/home/gour/repos/external/dwt/base/src
cat /home/gour/repos/external/dwt/rsp | xargs dmd
cat /home/gour/repos/external/dwt/rsp | xargs ar >
/home/gour/repos/external/dwt/olog.txt
ar: two different operation options specified
object.Exception build.d(172): librarian error
----------------
??:? void build.main(immutable(char)[][]).createLib(const(immutable(char)[][]),
immutable(char)[]) [0x4952f3]
??:? void build.main(immutable(char)[][]).buildTree(immutable(char)[],
immutable(char)[], immutable(char)[], immutable(char)[][], immutable(char)[])
[0x4966ab]
??:? void build.main(immutable(char)[][]).__lambda14() [0x4977a5]
??:? _Dmain [0x494d86]
??:? _D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv [0x4b03fa]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) [0x4b0338]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll() [0x4b03b6]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) [0x4b0338]
??:? _d_run_main [0x4b0295]
??:? main [0x4abd05]
??:? __libc_start_main [0x495a660f]


Any hint?


Sincerely,
Gour

-- 
Whenever and wherever there is a decline in religious practice,
O descendant of Bharata, and a predominant rise of irreligion —
at that time I descend Myself.
Mar 15 2016
parent reply =?utf-8?B?U2HFoWEgSmFuacWha2E=?= <gour atmarama.com> writes:
Saša Janiška <gour atmarama.com> writes:

 Any hint?
It looks it's the following: https://github.com/d-widget-toolkit/dwt/issues/22 since it works when I do not specify '-m64' flag?
 Sincerely,
 Gour
-- What is night for all beings is the time of awakening for the self-controlled; and the time of awakening for all beings is night for the introspective sage.
Mar 15 2016
parent reply Jacob Carlborg <doob me.com> writes:
On 15/03/16 11:01, Saša Janiška wrote:
 Saša Janiška <gour atmarama.com> writes:

 Any hint?
It looks it's the following: https://github.com/d-widget-toolkit/dwt/issues/22 since it works when I do not specify '-m64' flag?
Seems to be the same issue. -- /Jacob Carlborg
Mar 15 2016
parent reply =?utf-8?B?U2HFoWEgSmFuacWha2E=?= <gour atmarama.com> writes:
Jacob Carlborg <doob me.com> writes:

 Seems to be the same issue.
OK. Here is another issue: $ dmd main.d -I/home/gour/repos/external/dwt/imp -J/home/gour/repos/external/dwt/org.eclipse.swt.gtk.linux.x86/res -L-L/home/gour/repos/external/dwt/lib -L-l:org.eclipse.swt.gtk.linux.x86 -L-l: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 /usr/bin/ld: cannot find -l:org.eclipse.swt.gtk.linux.x86 /usr/bin/ld: cannot find -l:dwt-base collect2: error: ld returned 1 exit status --- errorlevel 1 I cloned dwt repo in ~/repos/external/dwt. What's wrong? Sincerely, Gour -- While contemplating the objects of the senses, a person develops attachment for them, and from such attachment lust develops, and from lust anger arises.
Mar 16 2016
parent reply Jacob Carlborg <doob me.com> writes:
On 16/03/16 09:24, Saša Janiška wrote:

 OK.

 Here is another issue:

 $ dmd main.d -I/home/gour/repos/external/dwt/imp
-J/home/gour/repos/external/dwt/org.eclipse.swt.gtk.linux.x86/res
-L-L/home/gour/repos/external/dwt/lib -L-l:org.eclipse.swt.gtk.linux.x86
-L-l: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
 /usr/bin/ld: cannot find -l:org.eclipse.swt.gtk.linux.x86
 /usr/bin/ld: cannot find -l:dwt-base
 collect2: error: ld returned 1 exit status
 --- errorlevel 1

 I cloned dwt repo in ~/repos/external/dwt.

 What's wrong?
Currently I don't have access to a Linux machine so I can't try the above myself. But the easiest is to pass the full path of the libraries directly to DMD. It will to the right thing. -- /Jacob Carlborg
Mar 16 2016
parent reply =?utf-8?B?U2HFoWEgSmFuacWha2E=?= <gour atmarama.com> writes:
Jacob Carlborg <doob me.com> writes:

 But the easiest is to pass the full path of the libraries directly to
 DMD. It will to the right thing.
That helped. Thanks. I was able to build several snippets, but still have to decide how much I like DWT code. ;) Sincerely, Gour -- Just try to learn the truth by approaching a spiritual master. Inquire from him submissively and render service unto him. The self-realized souls can impart knowledge unto you because they have seen the truth.
Mar 16 2016
parent Jacob Carlborg <doob me.com> writes:
On 16/03/16 20:48, Saša Janiška wrote:

 That helped. Thanks.
Awesome :)
 I was able to build several snippets, but still have to decide how much
 I like DWT code. ;)
Hehe. -- /Jacob Carlborg
Mar 17 2016