Page 1 of 1

Source

Posted: Mon Jun 03, 2013 7:23 pm
by BMWMPower
Hi,

What IDE did u use for Race Analyzer? I wanted to contribute as an Engineer. I have tried CDT in Eclipse. Are you developing in Windows or Linux?

Thanks

Posted: Mon Jun 03, 2013 9:13 pm
by decathect
Looks like they used eclipse CDT based on the presence and contents of the '.project' files.

It also looks like they're running dos2unix before commiting code, so I'm gonna guess Windows.

Dependencies

Posted: Mon Jun 03, 2013 10:27 pm
by BMWMPower
I have the project (with GIT) in Eclipse CDT. And I am using the MinGW environment. I have installed the wxWidget-2.9.4 dependency and imported the gaugeWorks project (master branche). I also installed sqlite for Windows.

But I am keeping the Warnings:
- Invalid project path: Include path not found (C:\wxWidgets-2.9.4\msw-debug\lib\wx\include\msw-ansi-static-2.9). raceAnalyzer pathentry Path Entry Problem
- Invalid project path: Include path not found (sqlite). raceAnalyzer pathentry Path Entry Problem
- Invalid project path: Duplicate path entries found (/raceAnalyzer [Include path] isSystemInclude:true includePath:C:/Users/Ben/Documents/GitHub/RaceAnalyzer/include), path: [/raceAnalyzer]. raceAnalyzer pathentry Path Entry Problem

And errors:
- Program "make" not found in PATH raceAnalyzer C/C++ Problem
Description Resource Path Location Type
- Fatal error: wx/wx.h: No such file or directory StripChart.h /gaugeWorks/include line 12 C/C++ Problem

Do I have too build it myself? What could be the problem? Anyone had this before?

Posted: Tue Jun 04, 2013 6:12 pm
by brentp
Hi,

Now that we just released the source we need to do a write up on how to get the development environment setup. Here's the short version for windows:

Dependencies:

wxWidgets 2.9.x
MinGW
MSYS

From the Autosport Labs github repo
The RaceAnalyzer project
The gaugeworks project

There are some hard coded paths in the RaceAnalyzer project we need to replace with environment variables.

We will follow up with a reply here when have additional instructions fleshed out!

Hi

Posted: Sat Jun 08, 2013 8:05 am
by BMWMPower
Trying to get it all configured. So Eclipse CDT is used as IDE.

May I ask why u choose for this development platform? And why not QT or any Java solution?

Posted: Sat Jun 08, 2013 6:43 pm
by BMWMPower
I have problems in:
- AngularMeter.cpp
- steppedSpinCtrl.cpp
- lesStatusBar.cpp


20:38:56 **** Incremental Build of configuration MinGW-Release for project raceAnalyzer ****
make -j4 all
Building file: ../src/util/stringUtil.cpp
Building file: ../src/controls/ledStatusBar.cpp
Building file: ../src/controls/steppedSpinCtrl.cpp
Building file: ../src/raceCapture/raceCaptureConfig.cpp
Invoking: GCC C++ Compiler
g++ -DWX_PRECOMP -D__WXMSW__ -DNO_GCC_PRAGMA -I../include -I../include/comm -I../resource -I"C:\Users\Documents\GitHub\gaugeWorks\releases\release_1.0.0" -I"C:\Users\Documents\GitHub\gaugeWorks\releases\release_1.0.0\include" -IC:/wxWidgets-2.9.4/include -O2 -Wall -c -fmessage-length=0 -mthreads -MMD -MP -MF"src/util/stringUtil.d" -MT"src/util/stringUtil.d" -o "src/util/stringUtil.o" "../src/util/stringUtil.cpp"
Invoking: GCC C++ Compiler
Invoking: GCC C++ Compiler
g++ -DWX_PRECOMP -D__WXMSW__ -DNO_GCC_PRAGMA -I../include -I../include/comm -I../resource -I"C:\Users\Documents\GitHub\gaugeWorks\releases\release_1.0.0" -I"C:\Users\Documents\GitHub\gaugeWorks\releases\release_1.0.0\include" -IC:/wxWidgets-2.9.4/include -O2 -Wall -c -fmessage-length=0 -mthreads -MMD -MP -MF"src/controls/steppedSpinCtrl.d" -MT"src/controls/steppedSpinCtrl.d" -o "src/controls/steppedSpinCtrl.o" "../src/controls/steppedSpinCtrl.cpp"
Invoking: GCC C++ Compiler
g++ -DWX_PRECOMP -D__WXMSW__ -DNO_GCC_PRAGMA -I../include -I../include/comm -I../resource -I"C:\Users\Documents\GitHub\gaugeWorks\releases\release_1.0.0" -I"C:\Users\Documents\GitHub\gaugeWorks\releases\release_1.0.0\include" -IC:/wxWidgets-2.9.4/include -O2 -Wall -c -fmessage-length=0 -mthreads -MMD -MP -MF"src/controls/ledStatusBar.d" -MT"src/controls/ledStatusBar.d" -o "src/controls/ledStatusBar.o" "../src/controls/ledStatusBar.cpp"
In file included from C:/wxWidgets-2.9.4/include/wx/defs.h:28:0,
from C:/wxWidgets-2.9.4/include/wx/wxprec.h:13,
from ../include/util/stringUtil.h:10,
g++ -DWX_PRECOMP -D__WXMSW__ -DNO_GCC_PRAGMA -I../include -I../include/comm -I../resource -I"C:\Users\Documents\GitHub\gaugeWorks\releases\release_1.0.0" -I"C:\Users\Documents\GitHub\gaugeWorks\releases\release_1.0.0\include" -IC:/wxWidgets-2.9.4/include -O2 -Wall -c -fmessage-length=0 -mthreads -MMD -MP -MF"src/raceCapture/raceCaptureConfig.d" -MT"src/raceCapture/raceCaptureConfig.d" -o "src/raceCapture/raceCaptureConfig.o" "../src/raceCapture/raceCaptureConfig.cpp"
from ../src/util/stringUtil.cpp:1:
C:/wxWidgets-2.9.4/include/wx/platform.h:154:22: fatale fout: wx/setup.h: No such file or directory
compilation terminated.
make: *** [src/util/stringUtil.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from C:/wxWidgets-2.9.4/include/wx/defs.h:28:0,
from C:/wxWidgets-2.9.4/include/wx/wxprec.h:13,
from ../include/raceCapture/raceCaptureConfig.h:10,
from ../src/raceCapture/raceCaptureConfig.cpp:7:
C:/wxWidgets-2.9.4/include/wx/platform.h:154:22: fatale fout: wx/setup.h: No such file or directory
compilation terminated.
Finished building: ../src/controls/ledStatusBar.cpp
make: *** [src/raceCapture/raceCaptureConfig.o] Error 1
Finished building: ../src/controls/steppedSpinCtrl.cpp



20:39:03 Build Finished (took 6s.316ms)

Posted: Sat Jun 08, 2013 7:46 pm
by brentp
Hello -

So the error is saying you are missing some built wxWidgets components. You need wxWidgets in the path and built per the instructions on the wxWidgets website. Google for building wxWidgets with MinGW.