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

Problems building current Derelict3 Master on Win 7 x64

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
ParticlePeter



Joined: 19 Nov 2011
Posts: 49
Location: Germany

PostPosted: Sat Feb 25, 2012 9:20 am    Post subject: Problems building current Derelict3 Master on Win 7 x64 Reply with quote

Hi,

I get build errors with all approaches suggested in the README. I am on Windos 7 x64.

Code:

cd $derelict\build
rdmd derelict.d

Errors:
../import/derelict/openal/al.d
../import/derelict/openal/functions.d
../import/derelict/openal/types.d
$PathToD\dmd2\windows\bin\..\..\src\phobos\std\file.d(233): Error: not a property GetLastError


Trying not to build OpenAL ( Tried also DerelictGL3, etc. )
Code:

rdmd DerelictUtil

Errors:
$derelict\build>rdmd DerelictUtil
Failed: dmd  -v -o- "DerelictUtil.d" -I"." >DerelictUtil.d.deps


In $derelict\build\Derelict\DerelictUtil.d.deps I read:
Quote:

binary $PathToD\dmd2\windows\bin\dmd.exe
version v2.056
config $PathToD\dmd2\windows\bin\sc.ini
parse DerelictUtil
Error: cannot read file DerelictUtil.d

so I try this:
Code:

rdmd -I"$derelict/import/derelict/util" DerelictUtil

Error:
Failed: dmd -I$derelict/import/derelict/util -v -o- "DerelictUtil.d" -I"." >DerelictUtil.d.deps


the DerelictUtil.d.deps did not change

The dmd way gives me the same error as rdmd derelict.d directly after ../import/derelict/openal/types.d

Where do I screw up ? And what is my issue with "phobos\std\file.d(233): Error: not a property GetLastError" ?

Thanks for any answer
_________________
Cheers, searching for the Pivot of my Soul, PP
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Sat Feb 25, 2012 7:13 pm    Post subject: Re: Problems building current Derelict3 Master on Win 7 x64 Reply with quote

ParticlePeter wrote:

I get build errors with all approaches suggested in the README. I am on Windos 7 x64.

Code:

cd $derelict\build
rdmd derelict.d

Errors:
../import/derelict/openal/al.d
../import/derelict/openal/functions.d
../import/derelict/openal/types.d
$PathToD\dmd2\windows\bin\..\..\src\phobos\std\file.d(233): Error: not a property GetLastError



Notice here that the error is in Phobos. I see from the output below that you are using DMD 2.056. The build script adds the -property switch to the DMD command line. Phobos in 2.056 was not 100% compliant with -property. That's where your error comes from.

To fix this, either upgrade to the latest DMD (highly recommended, given the number of bugfixes since 2.056) or remove -property from the build script (line 31). But if you take the latter route, you'll have to edit the build script every time you pull down any changes.

Quote:

Trying not to build OpenAL ( Tried also DerelictGL3, etc. )
Code:

rdmd DerelictUtil

Errors:
$derelict\build>rdmd DerelictUtil
Failed: dmd  -v -o- "DerelictUtil.d" -I"." >DerelictUtil.d.deps



Argg, you've uncovered a mistake in the Readme. The correct way to do this is:

Code:

rdmd derelict.d DerelictUtil

// Or, if you've compiled derelict.d with DMD
derelict DerelictUtil



The package name should be a command line parameter.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
ParticlePeter



Joined: 19 Nov 2011
Posts: 49
Location: Germany

PostPosted: Sun Feb 26, 2012 6:29 am    Post subject: Reply with quote

Hi Aldacron,

Thanks for your help I could have sworn I had dmd 2.058, but turns out I did't. I updated, and everything works now.
_________________
Cheers, searching for the Pivot of my Soul, PP
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict 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