View previous topic :: View next topic |
Author |
Message |
genericdave
Joined: 28 Jan 2007 Posts: 10
|
Posted: Sun Dec 02, 2007 7:51 pm Post subject: Attempting to compile |
|
|
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 |
|
|
Dima-san
Joined: 25 Mar 2007 Posts: 33 Location: Almaty, Kazakhstan
|
Posted: Mon Dec 03, 2007 11:06 am Post subject: |
|
|
Are you compiling with Tango? It looks like tango.lib is not getting linked in. |
|
Back to top |
|
|
genericdave
Joined: 28 Jan 2007 Posts: 10
|
Posted: Mon Dec 03, 2007 2:31 pm Post subject: |
|
|
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 |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Mon Dec 03, 2007 8:42 pm Post subject: |
|
|
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 |
|
|
genericdave
Joined: 28 Jan 2007 Posts: 10
|
Posted: Mon Dec 03, 2007 9:38 pm Post subject: |
|
|
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 |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Tue Dec 04, 2007 3:56 am Post subject: |
|
|
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 |
|
|
genericdave
Joined: 28 Jan 2007 Posts: 10
|
Posted: Tue Dec 04, 2007 1:19 pm Post subject: |
|
|
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 |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Tue Dec 04, 2007 2:14 pm Post subject: |
|
|
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 |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Tue Dec 04, 2007 10:04 pm Post subject: |
|
|
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 _________________ The One With D | The One With Aldacron | D Bits |
|
Back to top |
|
|
|