V3.0 Compilation
-
dsteines
- Posts: 16
- Joined: 23 Jan 2010, 17:19
V3.0 Compilation
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
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
-
mellinger
- Posts: 1341
- Joined: 12 Feb 2003, 11:06
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
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
-
dsteines
- Posts: 16
- Joined: 23 Jan 2010, 17:19
Still having errors
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
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
-
mellinger
- Posts: 1341
- Joined: 12 Feb 2003, 11:06
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
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
Code: Select all
SET( USE_STD_QT TRUE )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
-
mellinger
- Posts: 1341
- Joined: 12 Feb 2003, 11:06
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
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
-
fapplin
- Posts: 10
- Joined: 15 Jun 2010, 08:06
Visual Studio compilation
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
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
Who is online
Users browsing this forum: No registered users and 0 guests
