Merci pour ta réponse Misugi95 , j'ai bien télécharger Tango D2 sur https://github.com/SiegeLord/Tango-D2 , mais je n'ai pas résolu mon problème.
Je dois avoir un souci dans l'utilisation de Tango.
Si j'utilise le dossier source de celui-ci et que je le colle dans mon répertoire /usr/share/dmd/src/, là où sont déjà présents ceux de dmd, druntime et phobos, et si je tentes de compiler de la sorte :
dmd -debug -gc "main.d" "-I/usr/share/dmd/src/tango" "-odobj/Debug" "-of/Users/amehat/Projects/D-test/D-test/bin/Debug/D-test"
j'obtiens l'erreur suivante :
1 2 3 4
| dwt/internal/cocoa/NSSize.d(16): Error: module Format is in file 'tango/text/convert/Format.d' which cannot be read
import path[0] = /usr/share/dmd/src/tango
import path[1] = /opt/local/include/druntime
import path[2] = /opt/local/include/phobos |
J'ai essayé en déponsant le dossier tango au même niveau que mon fichier main.d et de mon répertoire dwt, en compilant de la sorte :
dmd -debug -gc "main.d" "-I/Users/amehat/Projects/D-test/D-test/tango" "-odobj/Debug" "-of/Users/amehat/Projects/D-test/D-test/bin/Debug/D-test"
j'obtiens l'erreur suivante :
1 2 3 4 5 6 7
| tango/core/Exception.d(11): Error: module tango.core.Exception from file /Users/amehat/Projects/D-test/D-test/tango/core/exception.d conflicts with another module Exception from file tango/core/Exception.d
tango/core/Vararg.d(13): Error: module tango.core.Vararg from file /Users/amehat/Projects/D-test/D-test/tango/core/vararg.d conflicts with another module Vararg from file tango/core/Vararg.d
tango/core/Thread.d(17): Error: module tango.core.Thread from file /Users/amehat/Projects/D-test/D-test/tango/core/thread.d conflicts with another module Thread from file tango/core/Thread.d
tango/core/Time.d(10): Error: module tango.core.Time from file /Users/amehat/Projects/D-test/D-test/tango/core/time.d conflicts with another module Time from file tango/core/Time.d
dwt/internal/objc/cocoa/Cocoa.d(381): Error: import dwt.internal.objc.cocoa.Cocoa.bindings conflicts with import dwt.internal.objc.cocoa.Cocoa.bindings at dwt/internal/objc/cocoa/Cocoa.d(11)
tango/core/Memory.d(11): Error: module tango.core.Memory from file /Users/amehat/Projects/D-test/D-test/tango/core/memory.d conflicts with another module Memory from file tango/core/Memory.d
tango/core/Runtime.d(10): Error: module tango.core.Runtime from file /Users/amehat/Projects/D-test/D-test/tango/core/runtime.d conflicts with another module Runtime from file tango/core/Runtime.d |
Du coup, je me suis dit qu'il devait être plus raisonnable de suivre la procédure décrite par SiegeLord sur la page github de Tango D2 concernant le build.
Etant sur un Mac OS X 64bits, j'ai pris la procédure pour un linux64 :
./build/bin/linux64/bob -vu .
Mais sans succès :
-bash: ./build/bin/linux64/bob: cannot execute binary file
Mac OS pouvant travailler avec du 32bits aussi, j'ai tenté la même procédure avec linux32, mais le résultat fut le même.
J'ai aussi vérifié les droits et tenté des compilations en sudo, mais en vain.
Je dois manquer des étapes ou ne pas faire quelque chose correctement.
Si jamais l'un de vous comprend mon/mes erreur(s), je serais preneur de ses conseils.
Partager