English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 10 January 2007, 00:32   #41
shd
Registered User
 
Join Date: Aug 2006
Location: Tampere / Finland
Age: 46
Posts: 21
Quote:
Originally Posted by andreas
Thanks ...
and here's the project file! Uses -Os in gcc to get the build a bit sized-down...also -march=i386 as we're on x86. (i586 will make the build bigger => pointless)
This looks a bit unworkable cause it contains hardcoded paths for a single system: e:/xdms132/src/cdata.h

Can you do anything about this?

We should have something that works for everyone. That is the reason for configure scripts on unix.
shd is offline  
Old 10 January 2007, 01:53   #42
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 50
Posts: 5,857
Send a message via ICQ to andreas Send a message via AIM to andreas
This should do the trick!
Please recheck.
Attached Files
File Type: zip xdmsnew.zip (4.1 KB, 153 views)
andreas is offline  
Old 10 January 2007, 02:11   #43
thor
Registered User
 
thor's Avatar
 
Join Date: Mar 2006
Location: Germany
Posts: 899
But there's still one problem if you would want to compile 1.3.3 with project files (of whatever IDE) as CVS version includes "xdmsconfig.h" in "xdms.c" and that is made by ./configure. So you would have to make one yourself. Easy to do, it just defines VERSION and for MinGW NO_MKSTEMP, but you can't just load the project into the IDE and compile.

I think the best solution is that the "xdmsconfig.h" would be omitted. The version number can be added as a compiler flag as it was in version up to 1.3.2. And that MinGW check is not done with that check in ./configure and defining NO_MKSTEMPS, but by using #ifdef __MINGW32__ in xdms.c.

Last edited by thor; 10 January 2007 at 02:50.
thor is offline  
Old 10 January 2007, 05:13   #44
thor
Registered User
 
thor's Avatar
 
Join Date: Mar 2006
Location: Germany
Posts: 899
Fix for not being able to write the temp file (for x and z commands) under Windows in xdms.c as there is no /tmp:

add (needs to be before #include "cdata.h")
Code:
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
because of that you'll need to change FILE_END to something else in your files (or try to get MS change it in theirs )

and replace
Code:
			strcpy(tname, "/tmp/xdmsXXXXXX");
with
Code:
#ifdef _WIN32
			DWORD ret = 0;
			DWORD bufsize = FNAME_MAXC-10;

			ret = GetTempPath(bufsize, tname);
    			if (!ret || ret > bufsize) {
				fprintf(stderr, "Couldn't get temp dir\n");
				exit(-1);
			}
			strcat(tname, "xdmsXXXXXX");
#else
			strcpy(tname, "/tmp/xdmsXXXXXX");
#endif

Last edited by thor; 11 January 2007 at 23:12.
thor is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dms Ian request.Apps 6 14 October 2008 16:43
fix or skip dms-errors Adderly support.Other 2 26 July 2006 02:39
dms problems otro support.Apps 12 26 October 2004 01:06
Read\Write Errors..... THX1138 support.Apps 10 13 October 2004 15:24
CD Read Write Errors Stom support.WinUAE 2 07 June 2002 18:46

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:10.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.16206 seconds with 16 queries