codeblocks v3.0 problems
Posted: 23 Jul 2010, 09:21
Hello guys,
I have been trying to compile v3.0 with mingw under the codeblocks IDE and I have been facing some problems, some of which I solved some not.
To begin with I realized that I shouldn't have used the mingw that comes with the codeblocks binary because this is v4.x.x and your system doesn't support this. One must use the mingw-get.exe (download from the mingw webpage) to install a v3.x.x of mingw and put that in the system path variable as the mingw compiler.
Secondly when one uses codeblocks the 'Settings->Compiler and debugger settings-> Other settings->Compiler logging' must be set to 'Full command only'. This is something that the CB project created by your bat file doesn't set and if it is wrong the CMake will not properly see the source directories.
In src/core/tools/BCI2000LauncherQt/MainWindow.cpp in line 702 the compiler returns an error about not understanding the copy function. I am assuming you meant command instead of copy. With that change the code will compile. Of course I haven't followed your code in detail and I don't know if this is what you meant. the Launcher though seems to work in run-time.
Finally the problem I haven't managed to solve. Everything compiles ok but when I run the Launcher the Operator returns an error (encountered a problem and needs to close).
When I debug with gdb in CB I get
Program received signal SIGFPE, Arithmetic exception.
In msvcrt!_control87 () (C:\WINDOWS\system32\msvcrt.dll)
Can you please help me, since I need to have a working version of v3.0 compiled under mingw.
Thanks for your time
P.S. I run a win xp professional with SP2 system
I have been trying to compile v3.0 with mingw under the codeblocks IDE and I have been facing some problems, some of which I solved some not.
To begin with I realized that I shouldn't have used the mingw that comes with the codeblocks binary because this is v4.x.x and your system doesn't support this. One must use the mingw-get.exe (download from the mingw webpage) to install a v3.x.x of mingw and put that in the system path variable as the mingw compiler.
Secondly when one uses codeblocks the 'Settings->Compiler and debugger settings-> Other settings->Compiler logging' must be set to 'Full command only'. This is something that the CB project created by your bat file doesn't set and if it is wrong the CMake will not properly see the source directories.
In src/core/tools/BCI2000LauncherQt/MainWindow.cpp in line 702 the compiler returns an error about not understanding the copy function. I am assuming you meant command instead of copy. With that change the code will compile. Of course I haven't followed your code in detail and I don't know if this is what you meant. the Launcher though seems to work in run-time.
Finally the problem I haven't managed to solve. Everything compiles ok but when I run the Launcher the Operator returns an error (encountered a problem and needs to close).
When I debug with gdb in CB I get
Program received signal SIGFPE, Arithmetic exception.
In msvcrt!_control87 () (C:\WINDOWS\system32\msvcrt.dll)
Can you please help me, since I need to have a working version of v3.0 compiled under mingw.
Thanks for your time
P.S. I run a win xp professional with SP2 system