View previous topic :: View next topic |
Author |
Message |
jbailey
Joined: 02 Mar 2008 Posts: 127
|
Posted: Thu May 08, 2008 6:21 pm Post subject: |
|
|
The error your getting is due to a missing separator character at the
beginning of the line most likely, and can try and change that and re-upload
the altered makefile. As for the compiler generating the wrong type
of executable image goes, this makefile was created on a windows
based pc, therefore that's all it knows about, it was a bit of a miracle I
got *ANY* makefile created. A possible option is to figure out exactly
what type of execution image a real linux-based system expects and
manually edit the makefile, I could try to do that once I figure that out,
but even if these 2 problems are corrected, you still have to change
what compiler is called, find this line (toward the top of the file):
CPP=cl.exe
change to:
CPP=gcc.exe (or whatever compiler your linux system uses).
cl.exe is a microsoft windows based compiler, it will not generate
linux images as far as I know....
Once enough changes are made to this file, there's a reasonable
chance it might just work properly...
|
|
|
|
|
dopefish7590
Joined: 06 Oct 2007 Posts: 324
|
Posted: Thu May 08, 2008 6:37 pm Post subject: |
|
|
@jBailey:
As a general note, unix programs have no extention... its just gcc not gcc.exe
Also the cl.exe can be safely changed to just cl on some systems.
UFO_WARVIPER wrote: | !MESSAGE No configuration specified. Defaulting to GL_WinRott - Win32 Release.
How is the compiler ever going to know I want a Linux Release? |
That just simply means that you didn't specify a config so it defaulted to the GL_WinROTT Windows 32 bit config...
The config says, and I quote:
Quote: | NMAKE /f "GL_WinRott.mak" CFG="GL_WinRott - Win32 Release" |
First thing nmake is a Windows C compiler. and the switches will not wirk in *nix with the "/" because that means to point to the root directory.
So:
make -f GL_Winrott.mak CFG=put the desired config here
So far all I have found was the default config, I will attempt to edit this if I don't find something else...
I will tell you if I find more. _________________ -Swim, swim, hungry
Last edited by dopefish7590 on Thu May 08, 2008 6:44 pm; edited 2 times in total |
|
|
|
|
jbailey
Joined: 02 Mar 2008 Posts: 127
|
Posted: Thu May 08, 2008 6:42 pm Post subject: |
|
|
Sounds good, if you can't, I'll try editing the makefile by hand and
re-upload... |
|
|
|
|
dopefish7590
Joined: 06 Oct 2007 Posts: 324
|
Posted: Thu May 08, 2008 6:44 pm Post subject: |
|
|
Hey jBailey, could you possibly tell me what "Midl.exe" is? Is this for Midi or something?
Edit: Also what is bscmake.exe?
Sorry, I am not familiar with the Windows dev tools. Granted I know a few things on Windows development... But not a lot. _________________ -Swim, swim, hungry |
|
|
|
|
dopefish7590
Joined: 06 Oct 2007 Posts: 324
|
Posted: Thu May 08, 2008 7:11 pm Post subject: |
|
|
Heh, this may take a while... Google reveals some of these items but some don't have *nix equivalents...
Only if there was a Unix coder around here. =\ _________________ -Swim, swim, hungry |
|
|
|
|
admin Site Admin Joined: 30 Oct 2006 Posts: 406
|
Posted: Thu May 08, 2008 7:27 pm Post subject: |
|
|
Midl.exe is a Visual Studio compiler tool i think. bscmake.exe, from a link to
msdn:
http://msdn.microsoft.com/en-us/library/87x7wc99(VS.80).aspx
Yea, a *nix coder would certainly help. What if we ask icculus? _________________ ROTT lives! |
|
|
|
|
dopefish7590
Joined: 06 Oct 2007 Posts: 324
|
Posted: Thu May 08, 2008 7:43 pm Post subject: |
|
|
I dunno, that would be sweet though... Icculus is who I got most of my ports off of. _________________ -Swim, swim, hungry |
|
|
|
|
jbailey
Joined: 02 Mar 2008 Posts: 127
|
Posted: Thu May 08, 2008 10:48 pm Post subject: |
|
|
Unfortunatly, I don't know of any unix equivalents to these compiler tools,
My best advice at the moment is to talk to the guys over at icculus... |
|
|
|
|
jbailey
Joined: 02 Mar 2008 Posts: 127
|
Posted: Thu May 08, 2008 10:54 pm Post subject: |
|
|
Here's the help txt from midl.exe:
------------------------
-MIDL COMPILER OPTIONS-
-MODE-
/ms_ext Microsoft extensions to the IDL language (default)
/c_ext Allow Microsoft C extensions in the IDL file (default)
/osf OSF mode - disables /ms_ext and /c_ext options
/app_config Allow selected ACF attributes in the IDL file
/mktyplib203 MKTYPLIB Version 2.03 compatiblity mode
-INPUT-
/acf filename Specify the attribute configuration file
/I directory-list Specify one or more directories for include path
/no_def_idir Ignore the current and the INCLUDE directories
-OUTPUT FILE GENERATION-
/client none Do not generate client files
/client stub Generate client stub file only
/out directory Specify destination directory for output files
/server none Generate no server files
/server stub Generate server stub file only
/syntax_check Check syntax only; do not generate output files
/Zs Check syntax only; do not generate output files
/oldtlb Generate old format type libraries
/newtlb Generate new format type libraries
-OUTPUT FILE NAMES-
/cstub filename Specify client stub file name
/dlldata filename Specify dlldata file name
/h filename Specify header file name
/header filename Specify header file name
/iid filename Specify interface UUID file name
/proxy filename Specify proxy file name
/sstub filename Specify server stub file name
/tlb filename Specify type library file name
-C COMPILER AND PREPROCESSOR OPTIONS-
/cpp_cmd cmd_line Specify name of C preprocessor
/cpp_opt options Specify additional C preprocessor options
/D name[=def] Pass #define name, optional value to C preprocessor
/no_cpp Turn off the C preprocessing option
/nocpp Turn off the C preprocessing option
/U name Remove any previous definition (undefine)
-ENVIRONMENT-
/char signed C compiler default char type is signed
/char unsigned C compiler default char type is unsigned
/char ascii7 Char values limited to 0-127
/dos obsolete: Target environment is MS-DOS client
/env dos obsolete: Target environment is MS-DOS client
/env mac obsolete: Target environment is Apple Macintosh
/env powermac Target environment is Apple PowerMac
/env win16 obsolete: Target env is Microsoft Windows 16-bit (Win 3.x)
/env win32 Target environment is Microsoft Windows 32-bit (NT)
/lcid Locale id for international locales
/mac obsolete: Target environment is Apple Macintosh
/ms_union Use Midl 1.0 non-DCE wire layout for non-encapsulated unions
/ms_conf_struct Use Midl 3.x and earlier non-DCE wire layout for complex structures
/oldnames Do not mangle version number into names
/powermac Target environment is Apple PowerMac
/rpcss Automatically activate rpc_sm_enable_allocate
/use_epv Generate server side application calls via entry-pt vector
/no_default_epv Do not generate a default entry-point vector
/prefix client str Add "str" prefix to client-side entry points
/prefix server str Add "str" prefix to server-side manager routines
/prefix switch str Add "str" prefix to switch routine prototypes
/prefix all str Add "str" prefix to all routines
/win16 obsolete: Target env is Microsoft Windows 16-bit (Win 3.x)
/win32 Target environment is Microsoft Windows 32-bit (NT)
-RUNTIME ERROR CHECKING BY STUBS-
/error none Turn off all error checking options
/error allocation Check for out of memory errors
/error bounds_check Check size vs transmission length specification
/error enum Check enum values to be in allowable range
/error ref Check ref pointers to be non-null
/error stub_data Emit additional check for server side stub data validity
/robust Generate additonal information to validate parameters
-OPTIMIZATION-
/align {1|2|4|8} Designate packing level of structures
/pack {1|2|4|8} Designate packing level of structures
/Zp{1|2|4|8} Designate packing level of structures
/no_format_opt Skip format string reusage optimization
/Oi Generate fully interpreted stubs, old style
-Oicf is usually better
/Oic Generate fully interpreted stubs for standard interfaces and
stubless proxies for object interfaces as of NT 3.51 release
using -Oicf istead is usually better
/Oicf Generate fully interpreted stubs with extensions and
stubless proxies for object interfaces as of NT 4.0 release
/Oif Same as -Oicf
/Os Generate inline stubs
/hookole Generate HookOle debug info for local object interfaces
-MISCELLANEOUS-
@response_file Accept input from a response file
/? Display a list of MIDL compiler switches
/confirm Display options without compiling MIDL source
/help Display a list of MIDL compiler switches
/nologo Supress displaying of the banner lines
/o filename Redirects output from screen to a file
/W{0|1|2|3|4} Specify warning level 0-4 (default = 1)
/WX Report warnings at specified /W level as errors
/no_warn Suppress compiler warning messages
--------------------- |
|
|
|
|
UFO_WARVIPER
Joined: 08 May 2008 Posts: 26
|
Posted: Tue May 13, 2008 6:46 am Post subject: |
|
|
Thanks for posting that. That might be helpful when I'm able to make more sense of the code. Man, I barely remember that the cin and cout commands exists, much less how to do functions, loops, and search trees. Good thing I'm taking a refresher course this fall. |
|
|
|
|
dopefish7590
Joined: 06 Oct 2007 Posts: 324
|
Posted: Tue May 13, 2008 10:12 am Post subject: |
|
|
Cool... You too? _________________ -Swim, swim, hungry |
|
|
|
|
admin Site Admin Joined: 30 Oct 2006 Posts: 406
|
Posted: Tue May 13, 2008 9:00 pm Post subject: |
|
|
me too. I was supposed to take programming this semester but due to some error in the registration (POS school system) i wont be taking it until next semester. I'm dying over here with all the shit general courses. _________________ ROTT lives! |
|
|
|
|
dopefish7590
Joined: 06 Oct 2007 Posts: 324
|
Posted: Wed May 14, 2008 1:45 am Post subject: |
|
|
Haha, wow, that must suck... _________________ -Swim, swim, hungry |
|
|
|
|
UFO_WARVIPER
Joined: 08 May 2008 Posts: 26
|
Posted: Wed May 14, 2008 3:33 pm Post subject: |
|
|
That makes 3 of us! Anyway, did you run into more time to play with the soruce code Dopefish? |
|
|
|
|
dopefish7590
Joined: 06 Oct 2007 Posts: 324
|
Posted: Wed May 14, 2008 7:05 pm Post subject: |
|
|
Yea, but I didn't get very far... :p _________________ -Swim, swim, hungry |
|
|
|
|
|