Compiling on Debian Wheezy
Output of gcc -v
Code: Select all
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.1-7' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.1 (Debian 4.7.1-7)
1) I had used -std=c++11 in the CXXFLAGS
2) I used "--enable-stl --enable-std_string_conv_in_wxstring"
Getting CodeLite configured and to compile was "entertaining".
The configure went without a hitch. But make would immediately fail with an error message complaining about the missing "-std=" tag that had been used on wx294 compile. Each time make would fail, I would end up changing the configure file to include the "-std=" directive for a particular component of CodeLite (changes in configure were made in gcc, clang, indexer sections).
The compile would also halt on error complaining about missing a reference to wxPrintf and wxFPrintf. I think these missing references are a consequence of the changes upstream in wx294 (inclusion of Unicode - see wxW Unicode Overview) and my enabling std::string. I could find no references to wxPrintf/wxFPrintf in the wx294 documentation (but wxprintf.cpp exists in the source). I ended up changing the CodeLite sources by replacing the wxPrintf/wxFPrintf statement with its C equivalent in a few places to complete the compile:
- codelite/CodeLite/cpptoken.cpp (line 52),
codelite/CodeLite/file_logger.cpp (line 68),
codelite/Plugin/macrosdlg.cpp (line175),
codelite/codelite_clang/clang.cpp (4x line 24,220,251,300)
codelite/UnitTestCPP/unittestcppoutputparser.cpp (lines 150 - 152)
codelite/sdk/wxshapeframework/src/wxxmlserializer/PropertyIO.cpp (line 165)
Code: Select all
if( wxIsNaN(value) )
I ended up changing this line to
Code: Select all
if( std::isnan(value) )
So far, the compile has proceed with only a few warnings here and there (unused or uninitialized variables).
Let's see what happens when the compile finishes and can it execute?
--- more to follow ---