I'm one of those crazy people who compile their own Linux via "Linux From Scratch" so the only way I'm going to be able to try your IDE is if I compile the source code. Since I've recently built my current Linux I'm running on, I'm using the newest compiler available (gcc 6.2.0). That may or may not be contributing to the problem. I'm also using the newest wxWidgets (3.1.0).
Attached is the results of the configure.
The compile didn't get to far before it error-ed out.
In file included from /usr/include/c++/6.2.0/type_traits:35:0,
from /usr/include/wx-3.1/wx/strvararg.h:22,
from /usr/include/wx-3.1/wx/string.h:37,
from /usr/include/wx-3.1/wx/memory.h:15,
from /usr/include/wx-3.1/wx/object.h:19,
from /usr/include/wx-3.1/wx/wx.h:15,
from /usr/include/wx-3.1/wx/wxprec.h:42,
from ./sdk_common.h:37,
from ./sdk_precomp.h:13:
/usr/include/c++/6.2.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \
^~~~~
In file included from /usr/include/wx-3.1/wx/string.h:37:0,
from /usr/include/wx-3.1/wx/memory.h:15,
from /usr/include/wx-3.1/wx/object.h:19,
from /usr/include/wx-3.1/wx/wx.h:15,
from /usr/include/wx-3.1/wx/wxprec.h:42,
from ./sdk_common.h:37,
from ./sdk_precomp.h:13:
/usr/include/wx-3.1/wx/strvararg.h:345:18: error: ‘is_enum’ in namespace ‘std’ does not name a template type
typedef std::is_enum<T> is_enum;
^~~~~~~
/usr/include/wx-3.1/wx/strvararg.h:349:54: error: ‘is_enum’ was not declared in this scope
enum { value = wxFormatStringSpecifierNonPodType<is_enum::value>::value };
^~~~~~~
/usr/include/wx-3.1/wx/strvararg.h:349:68: error: template argument 1 is invalid
enum { value = wxFormatStringSpecifierNonPodType<is_enum::value>::value };
^
make[2]: *** [Makefile:986: sdk_precomp.h.gch] Error 1
make[2]: Leaving directory '/root/Downloads/codeblocks-16.01.release/src/include'
make[1]: *** [Makefile:522: all-recursive] Error 1
make[1]: Leaving directory '/root/Downloads/codeblocks-16.01.release/src'
make: *** [Makefile:564: all-recursive] Error 1
Any help or patches would be appreciated. ;D
of both wx and Qt I came to the conclusion: "No, thanks".
Do you know that 90% of the code is wx code?
My apologies. My suggestion is purely out of frustration with trying to compile wxWidgets which is always a problem. I write games and game engines and don't use any GUI libraries so I have no biases.
Without the exact error message we are not able to help you...
Here is the Code::Blocks error message after I compile wxWidgets 2.8.12. I compile wxWidgets 2.8.12 with export CFLAGS=-std=c99 CXXFLAGS=-std=c++98. Without this, wxWidgets 2.8.12 throws up a bunch of repeating errors. (./src/gtk/bdiag.xbm:6:50: error: narrowing conversion of ‘128’ from ‘int’ to ‘char’ inside { } [-Wnarrowing])
menuitemsmanager.Tpo -c menuitemsmanager.cpp -fPIC -DPIC -o .libs/menuitemsmanager.o
macrosmanager.cpp: In member function ‘void MacrosManager::Reset()’:
macrosmanager.cpp:93:33: error: ‘wxRE_ADVANCED’ was not declared in this scope
wxRE_ADVANCED);
^~~~~~~~~~~~~
As I stated in my last post, I need wxWidgets 3.0 or greater for this other app I use. SVN tip of Code::Blocks with wxWidgets 3.1.0 compiles without a problem.
What is/are "abs"? Do you mean the function abs()
Yes. Apparently they were using abs() for floats instead of using fabs(). Here's the error message when trying to compile wxWidgets 3.0.2.
./src/stc/scintilla/src/Editor.cxx: In function ‘bool Close(Point, Point)’:
./src/stc/scintilla/src/Editor.cxx:5844:23: error: call of overloaded ‘abs(XYPOSITION)’ is ambiguous
if (abs(pt1.x - pt2.x) > 3
Again, what error message? The most things are fixable, and we are willing to help you, but we need the exact error messages...
Here is the error seen when starting up Code::Blocks for the first time after being compiled with wxWidgets 3.1.0.
(https://s20.postimg.org/mtpnj9irx/codeblocks_error.png)
This shows the tool bars that are blank which happen to be the "Code Completion" and "Compiler" tool bars.
(https://s20.postimg.org/4s6ilgor1/codeblocks.png)
If you disable the symbol browser codeblocks should run fine also with wx3.1
How do you do this? Where is the symbol browser?
After compilation you have to run the "update30" script in the src subfolder. This script will copy all needed resources (like images) to the right place. I think this is the reason for the missing symbols? I can't find a error in your screenshot... They are all disabled, because no project is loaded?
Here is the error seen when starting up Code::Blocks for the first time after being compiled with wxWidgets 3.1.0.
probably the same as: https://sourceforge.net/p/codeblocks/tickets/387/
@obfuscated:Does this come from the symol browser?
You can disable the symbol browser by Settings->Editor->Code Completion->Symbol browser->Disable symbol browser (this is only from memory, the actual names can alter, but this should give you a hint where to look)
menuitemsmanager.Tpo -c menuitemsmanager.cpp -fPIC -DPIC -o .libs/menuitemsmanager.o
macrosmanager.cpp: In member function ‘void MacrosManager::Reset()’:
macrosmanager.cpp:93:33: error: ‘wxRE_ADVANCED’ was not declared in this scope
wxRE_ADVANCED);
^~~~~~~~~~~~~
./src/stc/scintilla/src/Editor.cxx: In function ‘bool Close(Point, Point)’:
./src/stc/scintilla/src/Editor.cxx:5844:23: error: call of overloaded ‘abs(XYPOSITION)’ is ambiguous
if (abs(pt1.x - pt2.x) > 3
both errors come from codeblocks? So wxWidgets compiles fine? Funny, i never saw any errors like this on compiling codeblocks...
what is the command line you compiled wxWidgets with?
The wxRE_ADVANCED is because he failed to build wxWidgets using the builtin regex.
Add wxWidgets configure option
Note: The CB dev team should fix this so the option is NOT needed; because in the past, Mac users tended to NOT use wxWidgets with builtin regex.
The abs is fixed by a small patch. IIRC, a newer compiler causes the error.
Patch for abs issue under GCC 6.
diff -uNr wxWidgets-3.0.2.orig/src/stc/scintilla/src/Editor.cxx wxWidgets-3.0.2.mod/src/stc/scintilla/src/Editor.cxx
--- wxWidgets-3.0.2.orig/src/stc/scintilla/src/Editor.cxx 2016-07-22 11:35:57.000000000 +0500
+++ wxWidgets-3.0.2.mod/src/stc/scintilla/src/Editor.cxx 2016-07-22 11:30:51.000000000 +0500
@@ -11,6 +11,7 @@
#include <ctype.h>
#include <assert.h>
+#include <cmath>
#include <string>
#include <vector>
#include <map>
@@ -5841,9 +5842,9 @@
}
static bool Close(Point pt1, Point pt2) {
- if (abs(pt1.x - pt2.x) > 3)
+ if (std::abs(pt1.x - pt2.x) > 3)
return false;
- if (abs(pt1.y - pt2.y) > 3)
+ if (std::abs(pt1.y - pt2.y) > 3)
return false;
return true;
}
Tim S.