Page 1 of 1
V3.0 Compilation
Posted: 04 May 2010, 16:28
by dsteines
Hello,
I downloaded the most recent version of v3.0 from the SVN and was unable to successfully compile it under Visual Studio 2008 running on Windows XP. I was able to eliminate a few of the errors, but am still getting an LNK2019 error for JoystickLogger.obj, WavePlayer.obj, and many other object files. I know that v3.0 is still in beta, but is it not in a position to be compiled at the moment? What number is the most recent compilable revision of it? I've successfully compiled it several times in the past.
Thanks,
David
Posted: 05 May 2010, 11:05
by mellinger
David,
thanks for reporting the build failure. I did a clean checkout of v3, and found only three compiler/linker errors, which I fixed in
r2803.
When you update to that latest revision, and do a clean rebuild, there should not be any compiler or linker errors remaining.
Regards,
Juergen
Still having errors
Posted: 06 May 2010, 16:33
by dsteines
Juergen,
Thanks for the response. I updated to r2803 and did a clean rebuild, but am still having some trouble. I think I might have some path issues with the latest Qt build.
I get several errors related to moc_DisplayWindow.cxx and various other moc object files. The description says "This file was generated using the moc from 4.5.2." I switched the include path references for the Qt headers from the BCI2000 local directory to my Qt 4.6.2 directories, so I suspect that might explain the version difference description. However, I was getting various moc related errors even when I referenced the BCI2000 Qt include folders (QtCore, QtGUI).
I also still have JoystickLogger.obj errors for SignalGenerator, gUSBampsource, gmobilab, and gmobilabplus.
Thanks,
David
Posted: 07 May 2010, 08:04
by mellinger
David,
if you want to link against a Qt installation outside the BCI2000 source tree, please edit the file build/cmake/FindQt.cmake, such that line 10 reads
Then, remove the file build/CMakeCache.txt, and re-generate the solution file by running build/Make VS2008 Project Files.bat.
To fix build errors, it might also help to remove all "moc_" and ".obj" files from the BCI2000/build directory tree before doing a rebuild.
I don't have any build errors when doing a clean checkout and build of BCI2000 v3.
Regards,
Juergen
Posted: 17 May 2010, 08:45
by mellinger
David,
another user posted a similar problem
in this thread.
I identified and fixed a problem that occurred when creating project files with CMake 2.8.1, so building BCI2000 against the Qt distribution inside its source tree should work for you now as well.
Thanks again for reporting,
Juergen
Posted: 27 May 2010, 11:37
by dsteines
Juergen,
Everything works perfectly now. Thanks for looking into this problem.
David
Visual Studio compilation
Posted: 22 Jun 2010, 09:34
by fapplin
Hi,
I followed the steps outlined in the documentation for compiling v. 3 of BCI2000, but when I try to build the source in Visual Studio I get the following errors and warnings:
Error 1 error C2664: 'OSThread::OSThread(const OSThread &)' : cannot convert parameter 1 from 'bool' to 'const OSThread &' f:\bci related stuff\3.0\src\core\signalsource\g.usbamp\gUSBampADC.h 77 gUSBampSource
Error 2 error C2039: 'Suspend' : is not a member of 'gUSBampADC::AcquireThread' f:\BCI Related Stuff\3.0\src\core\SignalSource\g.USBamp\gUSBampADC.cpp 371 gUSBampSource
Error 3 error C2039: 'Resume' : is not a member of 'gUSBampADC::AcquireThread' f:\BCI Related Stuff\3.0\src\core\SignalSource\g.USBamp\gUSBampADC.cpp 608 gUSBampSource
Warning 4 warning C4200: nonstandard extension used : zero-sized array in struct/union f:\bci related stuff\3.0\src\contrib\signalsource\ripple\XippLegacy.h 367 Grapevine
Warning 5 warning C4200: nonstandard extension used : zero-sized array in struct/union f:\bci related stuff\3.0\src\contrib\signalsource\ripple\XippLegacy.h 407 Grapevine
Warning 6 warning C4200: nonstandard extension used : zero-sized array in struct/union f:\bci related stuff\3.0\src\contrib\signalsource\ripple\XippLegacy.h 441 Grapevine
Warning 7 warning C4200: nonstandard extension used : zero-sized array in struct/union f:\bci related stuff\3.0\src\contrib\signalsource\ripple\XippLegacy.h 450 Grapevine
Warning 8 warning C4200: nonstandard extension used : zero-sized array in struct/union f:\bci related stuff\3.0\src\contrib\signalsource\ripple\XippLegacy.h 461 Grapevine
Warning 9 warning C4018: '<' : signed/unsigned mismatch f:\BCI Related Stuff\3.0\src\contrib\SignalSource\Ripple\GrapeVineADC.cpp 137 Grapevine
Posted: 23 Jun 2010, 10:39
by mellinger
Hi,
thanks for reporting the build errors. Please update to the most recent version of the BCI2000 source tree, and try again.
--Juergen
Posted: 24 Jun 2010, 10:17
by fapplin
OK. The errors are gone. Thanks. It still has the 6 warnings, but the tests all work.