To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 2831
     
   
Subject: 
small patch to build dll on linux
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 5 Sep 2002 20:56:00 GMT
Viewed: 
1857 times
  

I had problems on Linux with building dll from CVS. Apparently, it thought
that I was running windows.

The simple patch below fixes the problem for me, but I don't know if it
leaves the cygwin build intact...

--- util/Makefile.common.old    Thu Sep  5 16:51:27 2002
+++ util/Makefile.common        Thu Sep  5 16:51:36 2002
@@ -22,7 +22,7 @@
#
# Windows/Cygnwin, test against several values:
#
-ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT Windows_NT)||,$(findstring CYGWIN,$(OSTYPE)))
+ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT Windows_NT CYGWIN))
        EXT=.exe
        CC =gcc
        CFLAGS+=-D_WIN32

   
         
     
Subject: 
Re: small patch to build dll on linux
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Fri, 6 Sep 2002 15:30:41 GMT
Viewed: 
1939 times
  

John,

It looks like my patch to catch all WindowsOS broke for Linux. Ooops. I see
an extra comma in there that should not be there.  Could you try the
following for me (or just remove the comma)?

--- util/Makefile.common.old    Thu Sep  5 16:51:27 2002
+++ util/Makefile.common        Thu Sep  5 16:51:36 2002
@@ -22,7 +22,7 @@
#
# Windows/Cygnwin, test against several values:
#
-ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT Windows_NT
CYGWIN))
+ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT
Windows_NT)||$(findstring CYGWIN,$(OSTYPE)))


I do need to get a second hard drive so I can put Linux on it and test out
across platforms. Sorry once again.

Ed

John Jorgensen <jjorgens@2gn.com> wrote in message
news:Pine.LNX.4.21.0209051650100.22896-100000@2gn.com...
I had problems on Linux with building dll from CVS. Apparently, it thought
that I was running windows.

The simple patch below fixes the problem for me, but I don't know if it
leaves the cygwin build intact...

--- util/Makefile.common.old    Thu Sep  5 16:51:27 2002
+++ util/Makefile.common        Thu Sep  5 16:51:36 2002
@@ -22,7 +22,7 @@
#
# Windows/Cygnwin, test against several values:
#
-ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT • Windows_NT)||,$(findstring CYGWIN,$(OSTYPE)))
+ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT Windows_NT • CYGWIN))
        EXT=.exe
        CC =gcc
        CFLAGS+=-D_WIN32



    
          
     
Subject: 
Re: small patch to build dll on linux
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Fri, 6 Sep 2002 23:01:46 GMT
Viewed: 
2031 times
  

This still doesn't work for me. Can you use a similar findstring as the
one in the root Makefile.common? The one that looks like this;

ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin CYGWIN_NT-4.0 CYGWIN_NT-5.0 CYGWIN_NT-5.1 WindowsNT Windows_NT))

J*

On Fri, 6 Sep 2002, Ed Manlove wrote:

John,

It looks like my patch to catch all WindowsOS broke for Linux. Ooops. I see
an extra comma in there that should not be there.  Could you try the
following for me (or just remove the comma)?

--- util/Makefile.common.old    Thu Sep  5 16:51:27 2002
+++ util/Makefile.common        Thu Sep  5 16:51:36 2002
@@ -22,7 +22,7 @@
#
# Windows/Cygnwin, test against several values:
#
-ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT Windows_NT
CYGWIN))
+ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT
Windows_NT)||$(findstring CYGWIN,$(OSTYPE)))

    
          
     
Subject: 
Re: small patch to build dll on linux
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sat, 7 Sep 2002 00:51:11 GMT
Viewed: 
2107 times
  

John,

There is another one in $(BRICKOS_ROOT)\Makefile.common.  It will below the
line you comment here but I don't see any typos

#
# Cygwin 1.1
#
ifneq (,$(findstring CYGWIN,$(OSTYPE)))


What do you get when you type uname at the prompt?

Ed

John Jorgensen <jjorgens@2gn.com> wrote in message
news:Pine.LNX.4.21.0209061859100.30441-100000@2gn.com...
This still doesn't work for me. Can you use a similar findstring as the
one in the root Makefile.common? The one that looks like this;

ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin CYGWIN_NT-4.0 CYGWIN_NT-5.0 • CYGWIN_NT-5.1 WindowsNT Windows_NT))

J*

On Fri, 6 Sep 2002, Ed Manlove wrote:

John,

It looks like my patch to catch all WindowsOS broke for Linux. Ooops. I • see
an extra comma in there that should not be there.  Could you try the
following for me (or just remove the comma)?

--- util/Makefile.common.old    Thu Sep  5 16:51:27 2002
+++ util/Makefile.common        Thu Sep  5 16:51:36 2002
@@ -22,7 +22,7 @@
#
# Windows/Cygnwin, test against several values:
#
-ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT Windows_NT
CYGWIN))
+ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT
Windows_NT)||$(findstring CYGWIN,$(OSTYPE)))


   
         
   
Subject: 
Re: small patch to build dll on linux
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 12 Sep 2002 15:38:47 GMT
Viewed: 
2231 times
  

John,

I believe I have a good solution.  I ran a test both under Win98 and a
forced Linux OS (set OSTYPE=LINUX in makefiles).  Below is a patch file for
the current CVS version of brickOS.  As soon as I get confirmation that this
does fix my bug I will check it into CVS. Once again I am sorry for the
inconvenience.

--- util/Makefile.common Thu Sep  5 12:19:24 2002
+++ util/Makefile.common Thu Sep 12 11:26:34 2002
@@ -22,7 +22,7 @@
#
# Windows/Cygnwin, test against several values:
#
-ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT
Windows_NT)||$(findstring CYGWIN,$(OSTYPE)))
+ifneq (,$(strip $(findstring $(OSTYPE),cygwin32 cygwin WindowsNT
Windows_NT) $(findstring CYGWIN,$(OSTYPE))))
  EXT=.exe
  CC =gcc
  CFLAGS+=-D_WIN32


Ed


John Jorgensen <jjorgens@2gn.com> wrote in message
news:Pine.LNX.4.21.0209051650100.22896-100000@2gn.com...
I had problems on Linux with building dll from CVS. Apparently, it thought
that I was running windows.

The simple patch below fixes the problem for me, but I don't know if it
leaves the cygwin build intact...

--- util/Makefile.common.old    Thu Sep  5 16:51:27 2002
+++ util/Makefile.common        Thu Sep  5 16:51:36 2002
@@ -22,7 +22,7 @@
#
# Windows/Cygnwin, test against several values:
#
-ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT • Windows_NT)||,$(findstring CYGWIN,$(OSTYPE)))
+ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT Windows_NT • CYGWIN))
        EXT=.exe
        CC =gcc
        CFLAGS+=-D_WIN32



 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR