Announcement

Collapse
No announcement yet.

cygwin setup questions

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • cygwin setup questions

    This is the first one and I am sure there will be more to come.

    Trying to get setup in Windows XP here. Instruction says download gcc, but there are many difference gccs: C, C++, Fortran (anybody remember this?) ... Which one should I download? Thanks!

    Same question for subversion. Thanks!
    PriiDash(TM) open source software
    Enhanced Instrument Panel and Data Logger

  • #2
    *looks*

    Note: Each time you select one, you may additionally get others selected automatically. Leave those checked, too.

    The ones you want are "gcc-core" and "gcc-g++". Subversion, you just want "subversion".

    You also will want "X11/libfltk-devel" and "X11/libfltk1.1-gdi" for the GUI

    Oh! Hrm. I'm looking and I don't see gpsd in there. GPS isn't a requirement for my software, although obviously the google earth stuff won't work without it. That might be a separate compilation job, I'll look later.

    Gary (-;
    OBDGPSLogger, for logging OBDII and/or GPS data
    OBDSim, an OBDII/ELM327 software simulator
    mp3car forums: obdgpslogger, obdsim

    Comment


    • #3
      *looks*

      Note: Each time you select one, you may additionally get others selected automatically. Leave those checked, too.

      The ones you want are "gcc-core" and "gcc-g++". Subversion, you just want "subversion".

      You also will want "X11/libfltk-devel" and "X11/libfltk1.1-gdi" for the GUI

      Oh! Hrm. I'm looking and I don't see gpsd in there. GPS isn't a requirement for my software, although obviously the google earth stuff won't work without it. That might be a separate compilation job, I'll look later.

      Gary (-;
      OBDGPSLogger, for logging OBDII and/or GPS data
      OBDSim, an OBDII/ELM327 software simulator
      mp3car forums: obdgpslogger, obdsim

      Comment


      • #4
        Well I have a funny problem. I downloaded required packages and installed from the local directories. When I run
        cmake .. #
        it tried to invoke gmake.exe from a Matlab (Windows version) subdirectory and failed. I searched the disk and that's the only place that has gmake. I thought I would look into the install log but I only found the log of the downloading, not the installing. Any suggestions?
        PriiDash(TM) open source software
        Enhanced Instrument Panel and Data Logger

        Comment


        • #5
          Perhaps you need cygwin's "devel/make" aswell?

          Alternatively, "gmake" is gnu make usually, which is what you have. You could just symlink them:
          ln -s /usr/bin/make /usr/bin/gmake

          I think cmake might have an option to choose which "make" to use with the "Unix Makefiles" target but I can't remember what it is.

          Gary (-;
          OBDGPSLogger, for logging OBDII and/or GPS data
          OBDSim, an OBDII/ELM327 software simulator
          mp3car forums: obdgpslogger, obdsim

          Comment


          • #6
            Still struggling with building the project

            Sorry for my continuing stupid questions.

            I made a tiny little step forward:
            I found some parameters in the file "CMakeCache.txt" points to the Windows Matlab gmake.exe so I changed them to /usr/bin/make and that worked.

            But then there are some more things that were not found:

            $ cmake .. #
            ...
            -- Couldn't find libgps
            -- Couldn't find dbus
            -- Looking for ptsname_r
            -- Looking for ptsname_r - not found
            ...
            cygwin warning:
            MS-DOS style path detected: C:/msys/1.0/local/include/fftw3.h
            Preferred POSIX equivalent is: /cygdrive/c/msys/1.0/local/include/fftw3.h
            CYGWIN environment variable option "nodosfilewarning" turns off this warning.
            Consult the user's guide for more details about POSIX paths:
            http://cygwin.com/cygwin-ug-net/usin...sing-pathnames
            -- Couldn't find fftw3: required for building obdfft
            ...
            -- Looking for getaddrinfo
            -- Looking for getaddrinfo - not found.
            -- Looking for getaddrinfo
            -- Looking for getaddrinfo - found
            ...
            -- Looking for BTPROTO_RFCOMM
            -- Looking for BTPROTO_RFCOMM - not found.
            -- Couldn't find libftdi, required for building obdftdipty
            -- Configuring done
            -- Generating done
            -- Build files have been written to: /obdgpslogger-0.15/build
            and some of them generated new entries in the file again pointing to some items in the Windows Matlab directories:

            ...
            //Path to a file.
            FFTW3_INCLUDE_DIR:PATH=FFTW3_INCLUDE_DIR-NOTFOUND

            //Path to a library.
            FFTW3_LIBRARY:FILEPATH=/cygdrive/c/Program Files/MATLAB/R2008b/bin/win32/./libfftw3.dll

            ...
            I suppose the "libgps" is the missing gpsd you mentioned. How about others?
            PriiDash(TM) open source software
            Enhanced Instrument Panel and Data Logger

            Comment


            • #7
              Not stupid at all!

              libgps is missing gpsd, yeah. It's not necessary, at least to start.

              dbus you don't want, and is disabled by default in svn.

              fftw is used in only one of the tools I build, a little thing to do fourier transforms on data. This one's in the category of "if you have to ask, you don't want it".

              btproto_rfcomm is used for the obd simulator to simulate a bluetooth device. You may find it useful to see the obdsim doing something just so you don't have to walk out to your car, but you don't want the bluetooth bit.

              libftdi is used to build a tool so that linux machines with braindamaged or nonexisted ftdi drivers can communicate with ftdi devices.

              Overall... you don't need anything that you're missing. At its heart, obdgpslogger has almost zero actual, real, dependencies for core functionality.

              Just type "make" :-)

              I also recommend checking out the svn version. 0.15 is a bit old at this point, I really oughta do a new release. To do an svn checkout:
              svn co svn://svn.icculus.org/obdgpslogger/trunk obdgpslogger-trunk

              Gary (-;
              OBDGPSLogger, for logging OBDII and/or GPS data
              OBDSim, an OBDII/ELM327 software simulator
              mp3car forums: obdgpslogger, obdsim

              Comment


              • #8
                How to run it?

                Originally posted by chunkyks View Post
                Not stupid at all!

                libgps is missing gpsd, yeah. It's not necessary, at least to start.

                dbus you don't want, and is disabled by default in svn.

                fftw is used in only one of the tools I build, a little thing to do fourier transforms on data. This one's in the category of "if you have to ask, you don't want it".

                btproto_rfcomm is used for the obd simulator to simulate a bluetooth device. You may find it useful to see the obdsim doing something just so you don't have to walk out to your car, but you don't want the bluetooth bit.

                libftdi is used to build a tool so that linux machines with braindamaged or nonexisted ftdi drivers can communicate with ftdi devices.

                Overall... you don't need anything that you're missing. At its heart, obdgpslogger has almost zero actual, real, dependencies for core functionality.

                Just type "make" :-)
                Thanks for the explanations. Very helpful. "make" worked. I tried to run obdgui.exe and got this:

                $ ../bin/obdgui
                Can't open display:
                I also recommend checking out the svn version. 0.15 is a bit old at this point, I really oughta do a new release. To do an svn checkout:
                svn co svn://svn.icculus.org/obdgpslogger/trunk obdgpslogger-trunk

                Gary (-;
                Which directory should I run svn from?
                PriiDash(TM) open source software
                Enhanced Instrument Panel and Data Logger

                Comment


                • #9
                  That line is going to check out into a new directory called "obdgpslogger-trunk". So I usually create a directory called "src" in my home dir in cygwin and then run the command from within that, but whatever works for you

                  Gary (-;
                  OBDGPSLogger, for logging OBDII and/or GPS data
                  OBDSim, an OBDII/ELM327 software simulator
                  mp3car forums: obdgpslogger, obdsim

                  Comment


                  • #10
                    Thanks! How about the "Can't open display" problem?
                    PriiDash(TM) open source software
                    Enhanced Instrument Panel and Data Logger

                    Comment


                    • #11
                      Ugh. That was why I had you install fltk-gdi, so that you wouldn't need an x server. Erm, I'll look later at the "right" way to solve that. In the meantime, the hokey solution is to install the cygwin x server and just use that :-)

                      Gary (-;
                      OBDGPSLogger, for logging OBDII and/or GPS data
                      OBDSim, an OBDII/ELM327 software simulator
                      mp3car forums: obdgpslogger, obdsim

                      Comment


                      • #12
                        So what package(s) contain the x server? "X11/xorg-server"? Thanks!
                        PriiDash(TM) open source software
                        Enhanced Instrument Panel and Data Logger

                        Comment


                        • #13
                          Hrm. So I can't figure out the fltk-gdi thing from within cygwin.

                          From cygwin's setup, choose "xinit" which will install all the stuff you need. Then go into your start menu's "Cygwin X", and start the X server. You'll get a terminal window that you can use.

                          Whenever you want a new terminal window and cygwin/X is running, you'll want to click on the X in the system tray and choose Applications->Xterm [which is actually highly preferable to the default cygwin terminal anyway]

                          Gary (-;
                          OBDGPSLogger, for logging OBDII and/or GPS data
                          OBDSim, an OBDII/ELM327 software simulator
                          mp3car forums: obdgpslogger, obdsim

                          Comment


                          • #14
                            Xterm worked! next step...

                            Originally posted by chunkyks View Post
                            Hrm. So I can't figure out the fltk-gdi thing from within cygwin.

                            From cygwin's setup, choose "xinit" which will install all the stuff you need. Then go into your start menu's "Cygwin X", and start the X server. You'll get a terminal window that you can use.

                            Whenever you want a new terminal window and cygwin/X is running, you'll want to click on the X in the system tray and choose Applications->Xterm [which is actually highly preferable to the default cygwin terminal anyway]

                            Gary (-;
                            Xterm worked! Thanks so much!

                            Now how do I get obdgui to work with obdsim? I tried running obdsim from one xterm and then running obdgui from another one. All the gauges are grayed out. I was hoping to see some fake data being fed from the obdsim to obdgui...
                            PriiDash(TM) open source software
                            Enhanced Instrument Panel and Data Logger

                            Comment


                            • #15
                              Did you do "make install" ?

                              Assuming you did, when you run obdsim it says something like:
                              Code:
                              SimPort name: /dev/tty1
                              In obdgui, edit the "OBD Device" box to say the simport [yours is probably also /dev/tty1] and click "Go"

                              Gary (-;
                              OBDGPSLogger, for logging OBDII and/or GPS data
                              OBDSim, an OBDII/ELM327 software simulator
                              mp3car forums: obdgpslogger, obdsim

                              Comment

                              Working...
                              X