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

Can not compile samples

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



Joined: 10 Jan 2008
Posts: 63

PostPosted: Wed Jan 21, 2009 7:37 pm    Post subject: Can not compile samples Reply with quote

Hi,

I installed Arc following the instruction at below links:(dsss net install arclib-core)
http://dmedia.dprogramming.com/?n=Tutorials.ArcIntro
and no error found.But when I try to compile the samples \\Examples\arc
I got below error message:

D:\Laguage\laguangeD\Arc\Examples\arc>dsss build
artifact.d => artifact
+ c:\bigd\dsss\bin\rebuild.exe -Idsss_imports\ -I. -S.\ -Ic:\bigd\dsss\include\d
-Sc:\bigd\dsss\lib\ -Ic:\bigd\dsss\include\d -Sc:\bigd\dsss\lib -oqdsss_objs\
D -I../arclib -full artifact.d -ofartifact
WARNING: Module artifact.d does not have a module declaration. This can cause pr
oblems
with rebuild's -oq option. If an error occurs, fix this first.
OPTLINK (R) for Win32 Release 8.00.1
Copyright (C) Digital Mars 1989-2004 All rights reserved.
c:\bigd\dsss\lib\\arc.lib(font)
Error 42: Symbol Undefined _D8derelict8freetype7fttypes14FT_HAS_KERNINGFPS8dere
lict8freetype7fttypes10FT_FaceRecZi
c:\bigd\dsss\lib\\arc.lib(font)
Error 42: Symbol Undefined _FT_Get_Char_Index
c:\bigd\dsss\lib\\arc.lib(font)
Error 42: Symbol Undefined _FT_Get_Kerning
c:\bigd\dsss\lib\\arc.lib(font)
Error 42: Symbol Undefined _D8derelict8freetype7fttypes15FT_LOAD_TARGET_FiZi
c:\bigd\dsss\lib\\arc.lib(font)
Error 42: Symbol Undefined _FT_Load_Glyph
c:\bigd\dsss\lib\\arc.lib(font)
Error 42: Symbol Undefined _FT_Get_Glyph
c:\bigd\dsss\lib\\arc.lib(font)
Error 42: Symbol Undefined _FT_Done_Glyph
c:\bigd\dsss\lib\\arc.lib(font)
Error 42: Symbol Undefined _FT_Library_SetLcdFilter
c:\bigd\dsss\lib\\arc.lib(font)
Error 42: Symbol Undefined _FT_Render_Glyph
--- errorlevel 9
Command c:\bigd\dsss\bin\rebuild.exe returned with code -1, aborting.
Error: Command failed, aborting.

D:\Laguage\laguangeD\Arc\Examples\arc>

I have no idea what the problem is.All my other d libaraies are all fine to do everything,below is the d folder structure:
c:\
----bigd\
-----------dsss\
-----------tango\ =====>tango dmd
-----------dmc\
-----------dwt\
-----------dwt-addons\
-----------dwt-samples\
-----------gtkD\
The version of d compiler and dsss is 0.997 and 0.75 respectively.

Pleaes help.Thanks.

Regards,
Sam
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Wed Jan 21, 2009 11:23 pm    Post subject: Reply with quote

I may need more information.

Can you tell me what's in your dsss/lib folder?

Also, can you do...

dsss uninstall arclib

dsss net install arclib-core > text.txt

and post the text?

Also, after that's done, can you go to the examples folder and try

dsss distclean
dsss build

and tell me if you are still having the same errors?

It looks like the linker can't find the freetype library, perhaps try

dsss net install derelictft

but the initial dsss net install arclib-core should be installing derelictft automatically.
Back to top
View user's profile Send private message AIM Address
samsam698



Joined: 10 Jan 2008
Posts: 63

PostPosted: Wed Jan 21, 2009 11:59 pm    Post subject: Reply with quote

Thanks.

1.In my dsss\lib folder:
DD-dwt.lib
DD-dwtx.lib
sqlite3.lib
DD-atk.lib
DD-cairo.lib
DD-gdk.lib
DD-gdkpixbuf.lib
DD-gio.lib
DD-glade.lib
DD-glib.lid
DD-gobject.lib
DD-gthread.lib
DD-gtk.lib
DD-gtkc.lib
DD-pango.lib
DerelictAL.lib
DerelictFT.lib
DerelictGL.lib
DerelictGLU.lib
DerelictOgg.lib
DerelictSDL.lib
DerelictSDLImage.lib
DerelictUtil.lib
DerelictVorbis.lib
arc.lib

2.following all your instruction but failed all the same;

3.dsss net install arclib-core>text.txt:
Synchronizing...
+ curl -s -S -k http://svn.dsource.org/projects/dsss/sources/source.list -o c:\bigd\dsss\share\dsss\sources\source.list -z c:\bigd\dsss\share\dsss\sources\source.list
+ curl -s -S -k http://svn.dsource.org/projects/dsss/sources/pkgs.list -o c:\bigd\dsss\share\dsss\sources\pkgs.list -z c:\bigd\dsss\share\dsss\sources\pkgs.list
+ curl -s -S -k http://svn.dsource.org/projects/dsss/sources/mirrors.list -o c:\bigd\dsss\share\dsss\sources\mirrors.list -z c:\bigd\dsss\share\dsss\sources\mirrors.list

Working in c:\bigd\dsss\tmp\DSSS_arclib-core
+ svn export http://svn.dsource.org/projects/arclib/trunk/arclib/arc/
A arc
A arc\dsss.conf
A arc\arcmacros.ddoc
A arc\arc
A arc\arc\internals
A arc\arc\internals\input
A arc\arc\internals\input\joystick.d
A arc\arc\internals\input\keyboard.d
A arc\arc\internals\input\signals.d
A arc\arc\internals\input\all.d
A arc\arc\internals\input\mouse.d
A arc\arc\internals\input\constants.d
A arc\arc\internals\font
A arc\arc\internals\font\boxpacker.d
A arc\arc\internals\font\fontcache.d
A arc\arc\time.d
A arc\arc\input.d
A arc\arc\texture.d
A arc\arc\text
A arc\arc\text\all.d
A arc\arc\text\routines.d
A arc\arc\types.d
A arc\arc\font.d
A arc\arc\memory
A arc\arc\memory\freelist.d
A arc\arc\memory\all.d
A arc\arc\memory\routines.d
A arc\arc\math
A arc\arc\math\rect.d
A arc\arc\math\matrix.d
A arc\arc\math\angle.d
A arc\arc\math\all.d
A arc\arc\math\routines.d
A arc\arc\math\point.d
A arc\arc\math\size.d
A arc\arc\math\collision.d
A arc\arc\window.d
A arc\arc\all.d
A arc\arc\sound.d
A arc\arc\draw
A arc\arc\draw\color.d
A arc\arc\draw\shape.d
A arc\arc\draw\image.d
A arc\arc\draw\all.d
A arc\arc\templates
A arc\arc\templates\array.d
A arc\arc\templates\singleton.d
A arc\arc\templates\all.d
Exported revision 1484.
Creating imports for arc

arc => arc
+ c:\bigd\dsss\bin\rebuild.exe -Idsss_imports\ -I. -S.\ -Ic:\bigd\dsss\include\d -Sc:\bigd\dsss\lib\ -Ic:\bigd\dsss\include\d -Sc:\bigd\dsss\lib -oqdsss_objs\D arcmacros.ddoc -g -clean -full -explicit -lib arc\all.d arc\draw\all.d arc\draw\color.d arc\draw\image.d arc\draw\shape.d arc\font.d arc\input.d arc\internals\font\boxpacker.d arc\internals\font\fontcache.d arc\internals\input\all.d arc\internals\input\constants.d arc\internals\input\joystick.d arc\internals\input\keyboard.d arc\internals\input\mouse.d arc\internals\input\signals.d arc\math\all.d arc\math\angle.d arc\math\collision.d arc\math\matrix.d arc\math\point.d arc\math\rect.d arc\math\routines.d arc\math\size.d arc\memory\all.d arc\memory\freelist.d arc\memory\routines.d arc\sound.d arc\templates\all.d arc\templates\array.d arc\templates\singleton.d arc\text\all.d arc\text\routines.d arc\texture.d arc\time.d arc\types.d arc\window.d -ofarc.lib
Digital Mars Librarian Version 8.02n
Copyright (C) Digital Mars 2000-2007 All Rights Reserved
http://www.digitalmars.com/ctg/lib.html
Digital Mars Librarian complete.
arc.lib

Installing arc
+ copying arc.lib
+ making directory c:\bigd\dsss\include\d\arc
+ copying all.di
+ making directory c:\bigd\dsss\include\d\arc\draw
+ copying all.di
+ copying color.di
+ copying image.di
+ copying shape.di
+ copying font.di
+ copying input.di
+ making directory c:\bigd\dsss\include\d\arc\internals\font
+ copying boxpacker.di
+ copying fontcache.di
+ making directory c:\bigd\dsss\include\d\arc\internals\input
+ copying all.di
+ copying constants.di
+ copying joystick.di
+ copying keyboard.di
+ copying mouse.di
+ copying signals.di
+ making directory c:\bigd\dsss\include\d\arc\math
+ copying all.di
+ copying angle.di
+ copying collision.di
+ copying matrix.di
+ copying point.di
+ copying rect.di
+ copying routines.di
+ copying size.di
+ making directory c:\bigd\dsss\include\d\arc\memory
+ copying all.di
+ copying freelist.di
+ copying routines.di
+ copying sound.di
+ making directory c:\bigd\dsss\include\d\arc\templates
+ copying all.di
+ copying array.di
+ copying singleton.di
+ making directory c:\bigd\dsss\include\d\arc\text
+ copying all.di
+ copying routines.di
+ copying texture.di
+ copying time.di
+ copying types.di
+ copying window.di


PS:But I can follow below example :
http://dmedia.dprogramming.com/?n=Tutorials.ArcIntro
[main.d]
// import all arclib core modules
import arc.all;

int main()
{
// Window title + size
arc.window.open("Window Title", 800, 600, 0);

// Initialize font codes
arc.font.open();

// Load up new font with a height of 16
Font font = new Font("font.ttf", 16);

// start input
arc.input.open();

// font text to output
char[] text = "Hello\nWorld!";

// stay in loop until quit
while (!arc.input.keyPressed(ARC_QUIT))
{
// process user input
arc.input.process();

// clear the window
arc.window.clear();

// draw font text at mouse position with color white
font.draw(text, arc.input.mousePos, Color.White);

// flip to next frame
arc.window.swap();
}

// exit here even if there is a crash
scope(exit)
{
arc.window.close();
}

return 0;
}

It works fine.

And also below examples:
http://dmedia.dprogramming.com/?n=Tutorials.SdlGlTutorial1
http://dmedia.dprogramming.com/?n=Tutorials.SdlGlTutorial2
http://dmedia.dprogramming.com/?n=Tutorials.SdlGlTutorial3

They work fine ,too.

Please help.Thanks again.

Regards,
Sam
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Thu Jan 22, 2009 12:21 pm    Post subject: Reply with quote

Hrm... it looks like arclib is installing fine and compiling fine. You said you could compile the hello world example as well, which uses the font code.

Did you try moving into the examples/arc folder,

typing

dsss distclean

and

dsss build

does it still have the same problem?
Back to top
View user's profile Send private message AIM Address
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