MorphOS Developer            
            
            
            
                             
             
                Posts: 1520 from 2003/2/24            
            
                From: Finland            
    
            
                            
                
			
				Quote:
I had forgotten, but -noixemul has no effect on AmiDevCpp, when compiling for MorphOS
Are you sure? Such compiler is seriously bugged and I recall jahc is using AmiDevCpp to build MorphOS executables.
Quote:
If you are able to try compiling it yourself, to see if it makes a difference, I have put the C++ code here:
It sort of works now. I had to add following lines to code:
Quote:
	} else if( StrCmp(pe_TargetOS, (char*) "MorphOS")) {
		tempFolder = (char*) "Executables/MorphOS/";
I also see you are using following subroutine to set an OS string:
Quote:
void new_base2()  {
	pe_TargetOS = (char*) "MorphOS";
	return ;
You can change this to:
Quote:
void new_base2()  {
        #if defined(__MORPHOS__)
	pe_TargetOS = (char*) "MorphOS";
        #else
        pe_TargetOS = /* ... */
        #endif
	return ;
}
There are defines to detect Windows, OS3, OS4 and AROS at compile time: WIN32, AMIGA (can mean OS3, OS4, AROS or MorphOS), __amigaos4__ and __AROS (IIRC).
There is also an error with installer code:
Quote:
Welcome to PortablE's basic installer.
Destination for executables is "ram:" (must be in command path).
Is this destination folder OK [Y/N]? y
Destination for PEmodules is "Work:PEmodules".
Is this destination folder OK [Y/N]? n
What folder do you want to use? ram:PEmodules
This folder does not exist. Do you want to create it [Y/N]? y
Destination for PEmodules is "ram:PEmodules".
Is this destination folder OK [Y/N]? y
Your installation choices are:
Destination for executables is "ram:" (must be in command path).
Destination for PEmodules is "ram:PEmodules".
Is it OK to proceed with installation [Y/N]? y
Copying executables, please wait...
WARNING: Failed to copy "Executables/MorphOS/PortablE" to "ram:/PortablE".
Copying PEmodules, please wait...
Added PEmodules: assignment to "S:User-Startup".
Checking for obsolete modules, please wait...
WARNING: Installation was not entirely successful.
The default dir suggested by installer was C: and C:/Portable would have worked in that case.
[ Edited by itix on 2009/11/28 12:26 ]
1 + 1 = 3 with very large values of 1