FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can't compile Arclib. Tango, DMD and Linux

 
Post new topic   Reply to topic     Forum Index -> ArcLib
View previous topic :: View next topic  
Author Message
gvv.coder



Joined: 11 Jun 2008
Posts: 5

PostPosted: Fri Jun 13, 2008 6:18 am    Post subject: Can't compile Arclib. Tango, DMD and Linux Reply with quote

I install derelict with dsss:
Code:

$ dsss installed
derelict
derelictgl
derelictil
derelictogg
derelictsdl
derelictutil
dmd
dsss
examples
net-tango
tango


i get arclib-tango and try to compile, but have a issues:
Code:

$ dsss build
Creating imports for arc

arc => arc
+ /usr/bin/rebuild -Idsss_imports/ -I. -S./ -I/usr/include/d -S/usr/lib/  -I/usr/include/d -S/usr/lib -I/home/gvv/d/include/d -S/home/gvv/d/lib  -oqdsss_objs/D -O -release -inline  -explicit -lib arc/gui/all.d arc/gui/gui.d arc/gui/themes/all.d arc/gui/themes/theme.d arc/gui/themes/freeuniverse.d arc/gui/widgets/all.d arc/gui/widgets/label.d arc/gui/widgets/widget.d arc/gui/widgets/textbox.d arc/gui/widgets/types.d arc/gui/widgets/button.d arc/gui/widgets/image.d arc/gui/readxml.d arc/gui/layout.d arc/xml/all.d arc/xml/xml.d arc/xml/error.d arc/xml/misc.d arc/xml/xmlnode.d arc/xml/xmlstream.d arc/draw/color.d arc/draw/all.d arc/draw/shape.d arc/draw/image.d arc/math/all.d arc/math/collision.d arc/math/matrix.d arc/math/routines.d arc/math/rect.d arc/math/size.d arc/math/angle.d arc/math/arcfl.d arc/math/point.d arc/text/all.d arc/text/slicereader.d arc/text/slicewriter.d arc/text/routines.d arc/all.d arc/sound.d arc/scenegraph/drawable.d arc/scenegraph/all.d arc/scenegraph/animation.d arc/scenegraph/advancable.d arc/scenegraph/sprite.d arc/scenegraph/mousenotify.d arc/scenegraph/frame.d arc/scenegraph/node.d arc/scenegraph/root.d arc/scenegraph/text.d arc/scenegraph/transform.d arc/font.d arc/memory/all.d arc/memory/freelist.d arc/memory/routines.d arc/window.d arc/types.d arc/texture.d arc/time.d arc/physics/collide.d arc/physics/colliders/boxcircle.d arc/physics/colliders/all.d arc/physics/colliders/box.d arc/physics/colliders/circle.d arc/physics/joint.d arc/physics/all.d arc/physics/arbiter.d arc/physics/physics.d arc/physics/drawphysics.d arc/physics/quadtree.d arc/physics/shapes/all.d arc/physics/shapes/box.d arc/physics/shapes/line.d arc/physics/shapes/circle.d arc/physics/mybody.d arc/physics/world.d arc/input.d arc/internals/font/all.d arc/internals/font/FontCache.d arc/internals/font/BoxPacker.d arc/internals/input/constants.d arc/internals/input/all.d arc/internals/input/mouse.d arc/internals/input/joystick.d arc/internals/input/keyboard.d arc/internals/input/signals.d arc/templates/dlinkedlist.d arc/templates/all.d arc/templates/redblacktree.d arc/templates/flexsignal.d arc/templates/array.d arc/templates/singleton.d -oflibarc.a
arc/gui/gui.d(52): module gui.layout is in multiple packages gui.layout
arc/gui/layout.d(58): module widget cannot read file 'gui/widgets/widget.d'
Command /usr/bin/rebuild returned with code 256, aborting.
Error: Command failed, aborting.


how to install?
Back to top
View user's profile Send private message
gvv.coder



Joined: 11 Jun 2008
Posts: 5

PostPosted: Fri Jun 13, 2008 10:45 am    Post subject: Reply with quote

i found mistake:
in gui.d
where imports you call gui.layout, not arc.gui.layout
and the same mistakes. Maybe that is not mistakes, but dsss don't know about it.
I change and get more other errors:
Code:

arc/texture.d(146): Error: undefined identifier fromStringz
arc/texture.d(146): Error: function expected before (), not fromStringz of type int
arc/texture.d(146): Error: incompatible types for (("Failed to load image for texture " ~ texFileName ~ ": ") ~ (fromStringz((*SDL_GetError)()))): 'char[]' and 'int'
arc/texture.d(146): Error: Can only concatenate arrays, not (char[] ~ int)
arc/texture.d(146): function tango.util.log.Logger.Logger.error (char[]) does not match parameter types (int)
arc/texture.d(146): Error: cannot implicitly convert expression ("Failed to load image for texture " ~ texFileName ~ ": " ~ fromStringz((*SDL_GetError)())) of type int to char[]
arc/internals/input/joystick.d(90): Error: undefined identifier fromStringz
arc/internals/input/joystick.d(90): Error: function expected before (), not fromStringz of type int
arc/internals/input/joystick.d(90): Error: incompatible types for ((fromStringz((*SDL_JoystickName)((*SDL_JoystickIndex)(*(this + 16))))) ? ("")): 'int' and 'char[0u]'
arc/internals/input/joystick.d(90): Error: cannot implicitly convert expression ((*this).isOpen() ? fromStringz((*SDL_JoystickName)((*SDL_JoystickIndex)(*(this + 16)))) : "") of type int to char[]
Command /usr/bin/rebuild returned with code 256, aborting.
Error: Command failed, aborting.
gvv@gvv-desktop:~/dist/arclib_tango/arclib$ whereis rebuild
rebuild: /usr/bin/rebuild /etc/rebuild /usr/share/rebuild /usr/share/man/man1/rebuild.1

I not correctly install tango? Or what?
Back to top
View user's profile Send private message
gvv.coder



Joined: 11 Jun 2008
Posts: 5

PostPosted: Sat Jun 14, 2008 12:20 pm    Post subject: Reply with quote

All is good. I solved problem(Reinstall DMD, Tango and DSSS)
Back to top
View user's profile Send private message
HienTau



Joined: 16 Jun 2005
Posts: 12

PostPosted: Sat Jul 12, 2008 7:10 pm    Post subject: Reply with quote

Hm.. I got a very simlar error (also "module gui.layout is in multiple packages gui.layout ") with DMD/Tango 1.027/0.99.5 + DSSS 0.75. I reinstalled it over and over, installed DSSS to dm and then dmd, but that doesn't matter Confused

Btw. I think it would help noobs to have some compiler/precondition information (like from the front page: "Designed to work with D 1.0 Series and Phobos or Tango Version 0.99.5" and some info on DSSS) on the Getting Started page.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> ArcLib All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group