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

Attempting to compile

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



Joined: 28 Jan 2007
Posts: 10

PostPosted: Sun Dec 02, 2007 7:51 pm    Post subject: Attempting to compile Reply with quote

I've been attempting to compile the development version of the library on windows. I used dsss to build arclib, but when I try to compile the hello world example it gives me these errors.

Code:

usergdi32.lib
 Warning 2: File Not Found usergdi32.lib
dsss_objs\D\tango-util-log-Log.obj(tango-util-log-Log)
 Error 42: Symbol Undefined _D6object6Object6toUtf8MFZAa
dsss_objs\D\tango-util-log-Appender.obj(tango-util-log-Appender)
 Error 42: Symbol Undefined _D6object9Exception5_ctorMFAaC9ExceptionZC9Exception

dsss_objs\D\tango-util-log-Hierarchy.obj(tango-util-log-Hierarchy)
 Error 42: Symbol Undefined _D5tango4core9Exception24IllegalArgumentException7__
ClassZ
dsss_objs\D\tango-util-log-Hierarchy.obj(tango-util-log-Hierarchy)
 Error 42: Symbol Undefined _D5tango4core9Exception24IllegalArgumentException5_c
torMFAaZC5tango4core9Exception24IllegalArgumentException
dsss_objs\D\tango-text-convert-Utf.obj(tango-text-convert-Utf)
 Error 42: Symbol Undefined _onUnicodeError
dsss_objs\D\tango-io-FilePath.obj(tango-io-FilePath)
 Error 42: Symbol Undefined _D5tango4core9Exception11IOException5_ctorMFAaZC5tan
go4core9Exception11IOException
dsss_objs\D\tango-io-FilePath.obj(tango-io-FilePath)
 Error 42: Symbol Undefined _D5tango4core9Exception11IOException7__ClassZ
C:\D\dsss\lib\\arc.lib(input)
 Error 42: Symbol Undefined _D6object9Exception6toUtf8MFZAa
C:\D\dsss\lib\\DerelictGL.lib(gl)
 Error 42: Symbol Undefined _GetPixelFormat@4
--- errorlevel 9
Command C:\D\dsss\bin\rebuild.exe returned with code -1, aborting.
Error: Command failed, aborting.



Lots of undefined symbols and whatnot. Any help would be appreciated. Thanks
Back to top
View user's profile Send private message
Dima-san



Joined: 25 Mar 2007
Posts: 33
Location: Almaty, Kazakhstan

PostPosted: Mon Dec 03, 2007 11:06 am    Post subject: Reply with quote

Are you compiling with Tango? It looks like tango.lib is not getting linked in.
Back to top
View user's profile Send private message
genericdave



Joined: 28 Jan 2007
Posts: 10

PostPosted: Mon Dec 03, 2007 2:31 pm    Post subject: Reply with quote

I am. I wonder if that's the problem then. I did have quite a bit of trouble getting tango installed. Installing it from dsss doesn't work at all for me, and I had to deviate a bit from the tango installation article in order to get it to work. Has anyone had success getting all this to work on windows? Unfortunately I have a strong aversion to resolving compilation issues.
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Mon Dec 03, 2007 8:42 pm    Post subject: Reply with quote

I have it working on windows, with the following setup.

DMD 1.015
Tango Keep Release

I'm personally using arclib-tango-stable for my personal project, and for that you also need a beta oplink compiler. For the latest stable release, the beta linker should not be necessary.

Also, DSSS install for tango windows used to work, but it does not anymore, so I just use the Windows binaries.

~ Clay
Back to top
View user's profile Send private message AIM Address
genericdave



Joined: 28 Jan 2007
Posts: 10

PostPosted: Mon Dec 03, 2007 9:38 pm    Post subject: Reply with quote

Thanks Clay. Part of the problem was that I was using the newest version of tango. It was giving me various problems that the keep version doesn't seem to have. Still not compiling but it's down to one error.

Code:
 Error 42: Symbol Undefined _GetPixelFormat@4
--- errorlevel 1
Command C:\D\dsss\bin\rebuild.exe returned with code -1, aborting.
Error: Command failed, aborting.


Is arclib trying to call a function that doesn't exist? Is this an error that can be muted? Or is this another problem entirely?
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Tue Dec 04, 2007 3:56 am    Post subject: Reply with quote

This might be because of a derelict change that was attempting to fix the problem in the first place, which I'm guessing is a change in the latest compiler or tango release. 'GetPixel' function is a function derelict uses. Do...

'dsss uninstall derelictgl'
'svn co http://svn.dsource.org/projects/derelict/trunk derelict'
'cd derelict/derelictGL'

in derelictGL/derelict/opengl/gl.d, inside version(DigitalMars), change

Code:

107                version(Tango)
108                {
109                    pragma(lib, "usergdi32.lib");
110                }
111                else
112                {
113                    pragma(lib, "gdi32.lib");
114                }


to

Code:

113                    pragma(lib, "gdi32.lib");


'dsss build'
'dsss install'

and see if that works.
Back to top
View user's profile Send private message AIM Address
genericdave



Joined: 28 Jan 2007
Posts: 10

PostPosted: Tue Dec 04, 2007 1:19 pm    Post subject: Reply with quote

Unfortunately that didn't help the situation. I've tried a bunch of different versions of tango and dmd and ended up getting different errors with each setup. Ugh. I think I'll just wait a bit until everything arclib depends on settles down a bit. As I said, I have a strong aversion to dealing with compilation issues so this is quite infuriating for me. I'm impressed though. After spending so much time with it I haven't yet had a problem with arclib itself, just tango and the dmd (and a little sprinkling of derelict). If nothing else that should make you feel good about yourself Clay. Thanks again.
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Tue Dec 04, 2007 2:14 pm    Post subject: Reply with quote

Thanks for giving it a try. In the future, sometime soon, it should just be as simple as

dsss net install tango
dsss net install arclib

Until then...

~ Clay
Back to top
View user's profile Send private message AIM Address
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Tue Dec 04, 2007 10:04 pm    Post subject: Reply with quote

clayasaurus wrote:
This might be because of a derelict change that was attempting to fix the problem in the first place,


FYI, the fix for the "fix" is now in the trunk. Sorry about my brain cramp Smile
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
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