View previous topic :: View next topic |
Author |
Message |
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Sat Jun 24, 2006 10:44 pm Post subject: Build script changes |
|
|
I just checked in some more build script changes.
It was suggested some time ago that release mode be the default instead of debug. That is now the case. I also added the -inline switch for release mode. Maybe some of the converted macros will be inlined with that.
As a result of the discussion with DMINATOR, the script now pauses on errors. Pressing a key will continue building the remaining libraries (unless it is the last library that errored, or you were only building one, in which case the script will exit). I'm not going to add a pause at the end of the script. Succesful builds will always cause the script to complete without a pause. If, like DMINATOR, you insist on compiling buildme.d into an executable and running it outside of a command prompt, you'll just have to accept that a window that pops up briefly and closes indicates a successful build.
Because of the above two changes, I commented out the DerelictFT hack. This means that if you build the library in debug mode it will report forward reference errors. I didn't remove it entirely so that anyone who wants to can uncomment it. If you find yourself regularly building Derelict in debug mode, this can help you. |
|
Back to top |
|
|
JJR
Joined: 22 Feb 2004 Posts: 1104
|
Posted: Sat Jun 24, 2006 11:58 pm Post subject: |
|
|
This FT forward reference thing is an unusual problem. I'm not sure how it can be fixed. Are there other projects that suffer the same problem in debug mode?
-JJR |
|
Back to top |
|
|
Crispy
Joined: 26 Nov 2005 Posts: 67
|
|
Back to top |
|
|
sylverpyro
Joined: 23 May 2006 Posts: 28
|
Posted: Mon Jun 26, 2006 11:10 am Post subject: sh: @rm: command not found |
|
|
I just sat down at my linux box to build Derelict. Pulled the new build utility (3.02) and ran the dmd script. The result was a bit disheartening
Code: |
~/Software/Linux/D/Derelict/Derelict$ dmd -run buildme.d release
Scanning for buildable packages...
Preparing to build package DerelictOgg in Release mode...
Reading build arguments...
Creating temporary build response file...
Building package...
/usr/bin/ar: creating lib/libDerelictOgg.a
/usr/bin/ar: DerelictOgg/derelict/ogg/ogg.o: No such file or directory
DerelictOgg failed to build.
sh: pause: command not found
Deleting temporary build response file...
sh: @rm: command not found
Preparing to build package DerelictVorbis in Release mode...
Reading build arguments...
Creating temporary build response file...
Building package...
/usr/bin/ar: creating lib/libDerelictVorbis.a
/usr/bin/ar: DerelictVorbis/derelict/ogg/vorbis.o: No such file or directory
DerelictVorbis failed to build.
sh: pause: command not found
Deleting temporary build response file...
sh: @rm: command not found
Preparing to build package DerelictSDLNet in Release mode...
Reading build arguments...
Creating temporary build response file...
Building package...
/usr/bin/ar: creating lib/libDerelictSDLNet.a
/usr/bin/ar: DerelictSDLNet/derelict/sdl/net.o: No such file or directory
DerelictSDLNet failed to build.
sh: pause: command not found
Deleting temporary build response file...
sh: @rm: command not found
Preparing to build package DerelictSDLttf in Release mode...
Reading build arguments...
Creating temporary build response file...
Building package...
/usr/bin/ar: creating lib/libDerelictSDLttf.a
/usr/bin/ar: DerelictSDLttf/derelict/sdl/ttf.o: No such file or directory
DerelictSDLttf failed to build.
sh: pause: command not found
Deleting temporary build response file...
sh: @rm: command not found
Preparing to build package DerelictSDL in Release mode...
Reading build arguments...
Creating temporary build response file...
Building package...
/usr/bin/ar: creating lib/libDerelictSDL.a
/usr/bin/ar: DerelictSDL/derelict/sdl/sdl.o: No such file or directory
DerelictSDL failed to build.
sh: pause: command not found
Deleting temporary build response file...
sh: @rm: command not found
Preparing to build package DerelictUtil in Release mode...
Reading build arguments...
Creating temporary build response file...
Building package...
/usr/bin/ar: creating lib/libDerelictUtil.a
/usr/bin/ar: DerelictUtil/derelict/util/loader.o: No such file or directory
DerelictUtil failed to build.
sh: pause: command not found
Deleting temporary build response file...
sh: @rm: command not found
Preparing to build package DerelictILUT in Release mode...
Reading build arguments...
Creating temporary build response file...
Building package...
/usr/bin/ar: creating lib/libDerelictILUT.a
/usr/bin/ar: DerelictILUT/derelict/devil/ilut.o: No such file or directory
DerelictILUT failed to build.
sh: pause: command not found
Deleting temporary build response file...
sh: @rm: command not found
Preparing to build package DerelictIL in Release mode...
Reading build arguments...
Creating temporary build response file...
Building package...
/usr/bin/ar: creating lib/libDerelictIL.a
/usr/bin/ar: DerelictIL/derelict/devil/il.o: No such file or directory
DerelictIL failed to build.
sh: pause: command not found
Deleting temporary build response file...
sh: @rm: command not found
Preparing to build package DerelictSDLImage in Release mode...
Reading build arguments...
Creating temporary build response file...
Building package...
/usr/bin/ar: creating lib/libDerelictSDLImage.a
/usr/bin/ar: DerelictSDLImage/derelict/sdl/image.o: No such file or directory
DerelictSDLImage failed to build.
sh: pause: command not found
Deleting temporary build response file...
sh: @rm: command not found
Preparing to build package DerelictGL in Release mode...
Reading build arguments...
Creating temporary build response file...
Building package...
/usr/bin/ar: creating lib/libDerelictGL.a
/usr/bin/ar: DerelictGL/derelict/opengl/gl.o: No such file or directory
DerelictGL failed to build.
sh: pause: command not found
Deleting temporary build response file...
sh: @rm: command not found
Preparing to build package DerelictFT in Release mode...
Reading build arguments...
Creating temporary build response file...
Building package...
/usr/bin/ar: creating lib/libDerelictFT.a
/usr/bin/ar: DerelictFT/derelict/freetype/ft.o: No such file or directory
DerelictFT failed to build.
sh: pause: command not found
Deleting temporary build response file...
sh: @rm: command not found
Preparing to build package DerelictSDLMixer in Release mode...
Reading build arguments...
Creating temporary build response file...
Building package...
/usr/bin/ar: creating lib/libDerelictSDLMixer.a
/usr/bin/ar: DerelictSDLMixer/derelict/sdl/mixer.o: No such file or directory
DerelictSDLMixer failed to build.
sh: pause: command not found
Deleting temporary build response file...
sh: @rm: command not found
Preparing to build package DerelictGLFW in Release mode...
Reading build arguments...
Creating temporary build response file...
Building package...
/usr/bin/ar: creating lib/libDerelictGLFW.a
/usr/bin/ar: DerelictGLFW/derelict/glfw/glfw.o: No such file or directory
DerelictGLFW failed to build.
sh: pause: command not found
Deleting temporary build response file...
sh: @rm: command not found
Preparing to build package DerelictAL in Release mode...
Reading build arguments...
Creating temporary build response file...
Building package...
DerelictAL/derelict/openal/alctypes.d(56): alias derelict.openal.alctypes.ALCdevice conflicts with derelict.openal.alctypes.ALCdevice at DerelictAL/derelict/openal/alctypes.d(39)
DerelictAL/derelict/openal/alctypes.d(40): alias derelict.openal.alctypes.ALCcontext conflicts with derelict.openal.alctypes.ALCcontext at DerelictAL/derelict/openal/alctypes.d(57)
DerelictAL failed to build.
sh: pause: command not found
Deleting temporary build response file...
sh: @rm: command not found
Preparing to build package DerelictILU in Release mode...
Reading build arguments...
Creating temporary build response file...
Building package...
/usr/bin/ar: creating lib/libDerelictILU.a
/usr/bin/ar: DerelictILU/derelict/devil/ilu.o: No such file or directory
DerelictILU failed to build.
sh: pause: command not found
Deleting temporary build response file...
sh: @rm: command not found
Preparing to build package DerelictGLU in Release mode...
Reading build arguments...
Creating temporary build response file...
Building package...
/usr/bin/ar: creating lib/libDerelictGLU.a
/usr/bin/ar: DerelictGLU/derelict/opengl/glu.o: No such file or directory
DerelictGLU failed to build.
sh: pause: command not found
Deleting temporary build response file...
sh: @rm: command not found
Finished!
|
Any idea what this means? |
|
Back to top |
|
|
h3r3tic
Joined: 30 Mar 2004 Posts: 261 Location: Torun, Poland
|
Posted: Mon Jun 26, 2006 12:37 pm Post subject: |
|
|
// 1. Mike is currently hacking the buildme script
1. Mike is hacking the buildme script on Windows
2. Build >2.09 doesn't seem to work right in linux (at least with 3.02 being the most recent version)
3. You could try following the instructions from this page: http://dmedia.dprogramming.com/Tutorials/SdlGlTutorial1
Thanks for reporting |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Tue Jun 27, 2006 1:52 am Post subject: |
|
|
I have no idea what's causing ar not to find the object files. This is most likely an issue with Build and not with the script.
I am curious about the missing pause command. I was under the impression that system("pause") worked on Linux. What is the correct way to pause execution on Linux if not that? |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Tue Jun 27, 2006 3:35 am Post subject: |
|
|
aldacron wrote: | I have no idea what's causing ar not to find the object files. This is most likely an issue with Build and not with the script.
|
Can you modify the buildme.d file to not remove the temp.brf file and show me what it contains. That will help me work out whats happening. Also, if you could run the temp.brf file with the -V switch it will show me even more detail (but first recompile Build with the
-version=BuildVerbose switch.)
Quote: |
I am curious about the missing pause command. I was under the impression that system("pause") worked on Linux. What is the correct way to pause execution on Linux if not that? |
I suspect that the system() function does not scan the PATH environment to find the program. That's why I've got a function in Build to do that for me and I provide the full path to the program in system() calls. _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Tue Jun 27, 2006 7:19 am Post subject: |
|
|
This is what temp.brf looks like for OpenGL:
Code: |
-clean
-allobj
--Xderelict-release
-inline
-O
-IDerelictGL
-IDerelictUtil
-XDerelictUtil/derelict/util
-Tlib/DerelictGL.lib
DerelictGL/derelict/opengl/gl.d
|
This is from the Windows version, but the output will be the same on Linux. |
|
Back to top |
|
|
sclytrack
Joined: 14 Jul 2006 Posts: 14
|
Posted: Fri Jul 14, 2006 2:17 pm Post subject: (failed) build Derelict. |
|
|
dmd v0.160
build v3.01
Derelict revision 160
Everything actually compiles it generates the o file, but ar doesn't seem
to find it. All the .o files are in the trunk directory.
Preparing to build package DerelictGL in Release mode...
Reading build arguments...
Creating temporary build response file...
Building package...
/usr/bin/ar: creating lib/libDerelictGL.a
/usr/bin/ar: DerelictGL/derelict/opengl/gl.o: No such file or directory
DerelictGL failed to build.
Deleting temporary build response file...
Finished!
sclytrack@sclytrack-desktop:~/temporary/checkout/derelict/trunk$ ls
active.o build_release.txt DerelictIL DerelictUtil ft.o il.o intrinsic.o mutex.o stddef.o vorbisfile.o
alctypes.o byteorder.o DerelictILU DerelictVorbis fttypes.o iltypes.o joystick.o net.o stdio.o vorbis.o
almanual.o cdrom.o DerelictILUT docs glfuncs.o ilufuncs.o keyboard.o ogg.o syswm.o vorbistypes.o
al.o cpuinfo.o DerelictOgg endian.o glfw.o ilu.o keysym.o oggtypes.o thread.o
altypes.o DerelictAL DerelictSDL error.o gl.o ilutfuncs.o lib README timer.o
audio.o DerelictFT DerelictSDLImage events.o gltypes.o ilut.o loader.o rwops.o ttf.o
build_common.txt DerelictGL DerelictSDLMixer examples glu.o iluttypes.o loadso.o sdl.o types.o
build_debug.txt DerelictGLFW DerelictSDLNet exception.o glx.o ilutypes.o mixer.o sdlversion.o video.o
buildme.d DerelictGLU DerelictSDLttf ftfuncs.o ilfuncs.o image.o mouse.o stdarg.o vorbiscodec.o _________________ AMD Athlon 1800+
Debian Etch 4.0 (stable)
Geforce 2 MX
Please no comments about me passing a 4x4 matrix by value. |
|
Back to top |
|
|
JJR
Joined: 22 Feb 2004 Posts: 1104
|
Posted: Fri Jul 14, 2006 3:10 pm Post subject: |
|
|
If you look in the "Build" forum, you'll see that there that (1) Build is at version 3.02 now and (2) Build is still not working on linux correctly. Your problem is unrelated to Derelict at this point.
There is a fix available in the Build forum... You might like to look there first.
Also, you might like to make certain that you are using the most up to date compiler and build version before posting problems.
Thanks.
-JJR |
|
Back to top |
|
|
|