Codelite 9.1 Make error

CodeLite installation/troubleshooting forum
silentenigma
CodeLite Curious
Posts: 6
Joined: Wed Feb 17, 2016 11:20 am
Genuine User: Yes
IDE Question: C++
Contact:

Codelite 9.1 Make error

Post by silentenigma »

Hello i use the steps that explained in the wiki page bu i got this error and unfortunately i can't figure it out :/

Code: Select all

[ 37%] Building CXX object Plugin/CMakeFiles/plugin.dir/SFTPBrowserDlg.cpp.o
[ 37%] Building CXX object Plugin/CMakeFiles/plugin.dir/stringsearcher.cpp.o
[ 37%] Building CXX object Plugin/CMakeFiles/plugin.dir/wxCodeCompletionBoxBase.cpp.o
[ 37%] Building CXX object Plugin/CMakeFiles/plugin.dir/DevCppImporter.cpp.o
/home/silentenigma/Kaynaklar/codelite-9.1/Plugin/stringsearcher.cpp: In static member function ‘static bool StringFindReplacer::DoRESearch(const wxString&, int, const wxString&, size_t, int&, int&)’:
/home/silentenigma/Kaynaklar/codelite-9.1/Plugin/stringsearcher.cpp:96:20: error: ‘wxRE_ADVANCED’ was not declared in this scope
     int re_flags = wxRE_ADVANCED;
                    ^
[ 37%] Building CXX object Plugin/CMakeFiles/plugin.dir/filepicker.cpp.o
Plugin/CMakeFiles/plugin.dir/build.make:3494: recipe for target 'Plugin/CMakeFiles/plugin.dir/stringsearcher.cpp.o' failed
make[2]: *** [Plugin/CMakeFiles/plugin.dir/stringsearcher.cpp.o] Error 1
make[2]: *** Bitmemiş işler için bekliyor....
CMakeFiles/Makefile2:340: recipe for target 'Plugin/CMakeFiles/plugin.dir/all' failed
make[1]: *** [Plugin/CMakeFiles/plugin.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
PS: --with-regex=builtin doesn't work?
silentenigma
CodeLite Curious
Posts: 6
Joined: Wed Feb 17, 2016 11:20 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite 9.1 Make error

Post by silentenigma »

and i also get these errors during make -j4 process:

Code: Select all

[ 17%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/clIniFile.cpp.o
[ 17%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/cpp_func_parser.cpp.o
[ 17%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/JSLexer.cpp.o
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/cpp_func_parser.cpp: In function ‘int cl_func_parse()’:
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/cpp_func_parser.cpp:692:27: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     yyerror("syntax error");
                           ^
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/cpp_func_parser.cpp:1044:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     yyerror("yacc stack overflow");
                                  ^
[ 17%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/TerminalEmulator.cpp.o
[ 17%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/winprocess_impl.cpp.o
[ 17%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/PHPLookupTable.cpp.o
[ 17%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/performance.cpp.o
[ 17%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/asyncprocess.cpp.o
[ 17%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/CxxPreProcessorExpression.cpp.o
[ 17%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/expression_result.cpp.o
[ 17%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/readtags.cpp.o
[ 17%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/parsedtoken.cpp.o
[ 18%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/cpp_expr_parser.cpp.o
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/cpp_expr_parser.cpp: In function ‘int cl_expr_parse()’:
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/cpp_expr_parser.cpp:598:27: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     yyerror("syntax error");
                           ^
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/cpp_expr_parser.cpp:971:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     yyerror("yacc stack overflow");
                                  ^
[ 18%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/cJSON.cpp.o
[ 18%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/cl_standard_paths.cpp.o
[ 18%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/CxxPreProcessor.cpp.o
[ 18%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/cpp_expr_lexer.cpp.o
[ 18%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/PHPEntityClass.cpp.o
[ 18%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/cl_calltip.cpp.o
[ 18%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/tag_tree.cpp.o
[ 18%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/function.cpp.o
[ 18%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/setters_getters_data.cpp.o
[ 18%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/CxxLexer.cpp.o
[ 18%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/cppwordscanner.cpp.o
[ 19%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/parse_thread.cpp.o
[ 19%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/PHPDocComment.cpp.o
[ 19%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/ctags_manager.cpp.o
[ 19%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/TerminalEmulatorFrame.cpp.o
[ 19%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/clprogressdlgbase.cpp.o
[ 19%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/ZombieReaperPOSIX.cpp.o
[ 19%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/dirtraverser.cpp.o
[ 19%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/tags_storage_sqlite3.cpp.o
[ 19%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/unixprocess_impl.cpp.o
[ 19%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/pptable.cpp.o
[ 19%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/fileentry.cpp.o
[ 19%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/fc_fileopener.cpp.o
[ 19%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/StdToWX.cpp.o
[ 20%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/CxxUsingNamespaceCollector.cpp.o
[ 20%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/archive.cpp.o
[ 20%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/lex.yy.cpp.o
[ 20%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/language.cpp.o
[ 20%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/xor_string.cpp.o
[ 20%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/cpp_scanner.cpp.o
[ 20%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/var_parser.cpp.o
[ 20%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/cl_config.cpp.o
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/var_parser.cpp: In function ‘int cl_var_parse()’:
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/var_parser.cpp:814:27: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     yyerror("syntax error");
                           ^
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/var_parser.cpp:1418:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     yyerror("yacc stack overflow");
                                  ^
[ 20%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/TerminalEmulatorUI.cpp.o
[ 20%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/clFontHelper.cpp.o
[ 20%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/PHPEntityKeyword.cpp.o
[ 20%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/XmlLexer.cpp.o
[ 20%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/worker_thread.cpp.o
[ 21%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/comment_parser.cpp.o
[ 21%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/CxxTemplateFunction.cpp.o
[ 21%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/PHPEntityBase.cpp.o
[ 21%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/TerminalEmulatorUI_codelite_bitmaps.cpp.o
[ 21%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/tags_options_data.cpp.o
[ 21%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/CIncludeStatementCollector.cpp.o
[ 21%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/cl_command_event.cpp.o
[ 21%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/entry.cpp.o
[ 21%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/cl_process.cpp.o
[ 21%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/symbol_tree.cpp.o
[ 21%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/variable.cpp.o
[ 21%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/event_notifier.cpp.o
[ 21%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/procutils.cpp.o
[ 22%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/cl_ssh.cpp.o
[ 22%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/json_node.cpp.o
[ 22%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/PHPEntityNamespace.cpp.o
[ 22%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/clSFTPEvent.cpp.o
[ 22%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/cpptoken.cpp.o
[ 22%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/scope_optimizer.cpp.o
[ 22%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/TerminalEmulatorUIBase.cpp.o
[ 22%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/fileextmanager.cpp.o
[ 22%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/cl_sftp_attribute.cpp.o
[ 22%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/compiler_command_line_parser.cpp.o
[ 22%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/fileutils.cpp.o
[ 22%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/PHPEntityVisitor.cpp.o
[ 23%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/scope_parser.cpp.o
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/scope_parser.cpp: In function ‘int cl_scope_parse()’:
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/scope_parser.cpp:900:27: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     yyerror("syntax error");
                           ^
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/scope_parser.cpp:1355:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     yyerror("yacc stack overflow");
                                  ^
[ 23%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/PHPDocVisitor.cpp.o
[ 23%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/stringaccessor.cpp.o
[ 23%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/pp.cpp.o
[ 23%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/crawler_lexer.cpp.o
[ 23%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/clFileSystemEvent.cpp.o
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/pp.cpp: In function ‘int pp_parse()’:
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/pp.cpp:373:27: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     yyerror("syntax error");
                           ^
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/pp.cpp:580:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     yyerror("yacc stack overflow");
                                  ^
[ 23%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/include_finder.cpp.o
[ 23%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/pp_lexer.cpp.o
[ 23%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/comment.cpp.o
[ 23%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/refactorengine.cpp.o
[ 23%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/refactoring_storage.cpp.o
[ 23%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/PHPIndex.cpp.o
[ 23%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/CxxScannerBase.cpp.o
[ 24%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/PHPExpression.cpp.o
[ 24%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/PhpLexer.cpp.o
[ 24%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/codelite_events.cpp.o
[ 24%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/CxxPreProcessorScanner.cpp.o
[ 24%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/CxxPreProcessorCache.cpp.o
[ 24%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/PHPEntityVariable.cpp.o
[ 24%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/winprocess.cpp.o
[ 24%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/progress_dialog.cpp.o
[ 24%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/clCommandProcessor.cpp.o
[ 24%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/file_logger.cpp.o
[ 24%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/typedef_parser.cpp.o
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/typedef_parser.cpp: In function ‘int cl_typedef_parse()’:
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/typedef_parser.cpp:596:27: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     yyerror("syntax error");
                           ^
/home/silentenigma/Kaynaklar/codelite-9.1/CodeLite/typedef_parser.cpp:933:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
     yyerror("yacc stack overflow");
                                  ^
[ 24%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/cl_sftp.cpp.o
[ 24%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/tokenizer.cpp.o
[ 25%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/processreaderthr
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Codelite 9.1 Make error

Post by DavidGH »

Hi,

It would help if you said which platform you're on and, if Linux, which distro/version. Are you building the CodeLite 9.1 tarball or the latest git version?

Please tell us about your wxWidgets installation. Is it self-built? If so, which version and how did you configure it? Or is it installed from somewhere (and if so, from where)?
What is the output of doing, in a terminal:
wx-config --list

Regards,

David
evstevemd
CodeLite Guru
Posts: 352
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite 9.1 Make error

Post by evstevemd »

Also to add there I've found that in TDM GCC 5 the - j4 does not work correctly. I tried when compiling wxwidgets

CodeLite 15.x
CodeLite is awesome, I just Love it!

silentenigma
CodeLite Curious
Posts: 6
Joined: Wed Feb 17, 2016 11:20 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite 9.1 Make error

Post by silentenigma »

Hello;
I am using Pisi Linux 2.0 alpha7. My aim is to make a PiSi package for PisiLinux distribution, like a .deb package for debian/ubuntu.
http://www.pisilinux.org/en/

wx-config --list output is:

Code: Select all

~ $ wx-config --list                                                                                                                                        
                                                                                                                                                                                   
Default config is gtk2-unicode-3.0

Default config will be used for output
I downloaded codelite from:

Code: Select all

https://github.com/eranif/codelite/archive/9.1.tar.gz
In Pisi Linux repo there is wxWidgets (version 3.0.2) and its development package. I have installed them.

Thanks for reply
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Codelite 9.1 Make error

Post by DavidGH »

I am using Pisi Linux 2.0 alpha7.
I see. That's not a distro I have any experience with.
My aim is to make a PiSi package for PisiLinux distribution
Good :)

There's a comment in <wxWidgets install dir>/lib/wx/include/gtk2-unicode-3.0/wx/setup.h, the controller file that shows what that wxWidgets build supplies:

Code: Select all

/*
 * The built-in regex supports advanced REs in additional to POSIX's basic
 * and extended. Your system regex probably won't support this, and in this
 * case WX_NO_REGEX_ADVANCED should be defined.
 */
/* #undef WX_NO_REGEX_ADVANCED */
I'd guess that the official Pisi wxWidgets package was built using the system regex lib, not the built-in one, and that lib doesn't provide advanced REs. Checking my local builds (debian and ubuntu) I see that they are missing those dependencies, so default to using the wx built-in one. That would explain why CodeLite compilation works here, but fails for you.

Are you one of the Pisi devs? Do you know anything about how the wxWidgets package was configured?
PS: --with-regex=builtin doesn't work?
Do you mean that you tried passing --with-regex=builtin to CodeLite, or did you try making your own wxWidgets build?
silentenigma
CodeLite Curious
Posts: 6
Joined: Wed Feb 17, 2016 11:20 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite 9.1 Make error

Post by silentenigma »

@DavidGH
I tried passing --with-regex=builtin to CodeLite, but doesn't work.

In PisiLinux wxWidgets was configured by :

Code: Select all

--with-regex=sys
So what should i do now? Rebuilding wxWidgets with-regex=builtin? Or is there any chance for me to make codelite without touching default wxWidgets?
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Codelite 9.1 Make error

Post by DavidGH »

I tried passing --with-regex=builtin to CodeLite, but doesn't work.
Right. It's a wx thing, not a CodeLite thing. And it's passed to wx at the ./configure stage; once wx is built, you can't change its mind.
is there any chance for me to make codelite without touching default wxWidgets?
CodeLite uses advanced REs is several places, so there's no easy way for you to fix things at CodeLite level.
So what should i do now? Rebuilding wxWidgets with-regex=builtin?
It depends on your aims, and on your situation.

The correct answer, both for CodeLite and for other wxWidgets programs, is to fix the bug in the official Pisi wx packages. It would have been very reasonable to use regex=sys if the system regex lib could cope with advanced REs, but it clearly can't. So either that lib needs to be upgraded or, easier, the wx package rebuilt with --with-regex=builtin. If you're in charge of Pisi Linux that's easy; if not, you could ask :) .

Less-correct answers:
1) you can easily build your own wx with --with-regex=builtin. The safest way to do that is to configure also with --prefix=$(pwd), which creates a 'local' wx build i.e. you don't 'make install'. To use it instead of the wx package, in the terminal where you are going to build Codelite, first do: PATH=/full/path/to/your/wx/build:$PATH. CodeLite will then find and build against your 'local' wx.
2) start as in 1), but also tell CodeLite to grab those wx libraries and always link to them. The way to do that is to pass the -DCOPY_WX_LIBS=1 option to cmake in the CodeLite build line. That's what I do when packaging for distros which don't supply a suitable wx version; you can do it for your own use or to supply a Pisi package, though it's a much less elegant solution than fixing the real problem.
silentenigma
CodeLite Curious
Posts: 6
Joined: Wed Feb 17, 2016 11:20 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite 9.1 Make error

Post by silentenigma »

Hello;
After your advice i have rebuild wxWidgets with: "--with-regex=builtin"
So i dont get the previous errors :)
Thanks


But, i have new error:
[ 66%] Linking CXX executable ../bin/PHPUnitTests
[ 66%] Building CXX object DatabaseExplorer/CMakeFiles/DatabaseExplorer.dir/dbconnection.cpp.o
[ 66%] Building CXX object Subversion2/CMakeFiles/Subversion.dir/svn_props_dialog.cpp.o
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetInsertionPoint() const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::SetSelection(long, long)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrlBase::SetDefaultStyle(wxTextAttr const&)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::HitTest(wxPoint const&, long*) const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::IsEditable() const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::DoPositionToCoords(long) const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxGenericListCtrl::GetSizeAvailableForScrollTarget(wxSize const&)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::Cut()'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrlBase::SetHint(wxString const&)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::ShowPosition(long)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::SetStyle(long, long, wxTextAttr const&)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetValue() const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetLastPosition() const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GTKIMFilterKeypress(_GdkEventKey*) const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetLineLength(long) const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetNumberOfLines() const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::Paste()'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetSelection(long*, long*) const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::WriteText(wxString const&)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::SetEditable(bool)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::SetInsertionPoint(long)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetStyle(long, wxTextAttr&)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetLineText(long) const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::Copy()'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::IsModified() const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::DoSetValue(wxString const&, int)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::MarkDirty()'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::XYToPosition(long, long) const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetValue() const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetEditable() const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetEntry() const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::DiscardEdits()'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::EnableTextChangedEvents(bool)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::PositionToXY(long, long*, long*) const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrlBase::overflow(int)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::Remove(long, long)'
collect2: error: ld returned 1 exit status
codelitephp/CMakeFiles/PHPUnitTests.dir/build.make:140: recipe for target 'bin/PHPUnitTests' failed
make[2]: *** [bin/PHPUnitTests] Error 1
CMakeFiles/Makefile2:1884: recipe for target 'codelitephp/CMakeFiles/PHPUnitTests.dir/all' failed
make[1]: *** [codelitephp/CMakeFiles/PHPUnitTests.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 66%] Building CXX object Subversion2/CMakeFiles/Subversion.dir/svn_overlay_tool.cpp.o
[ 66%] Building CXX object DatabaseExplorer/CMakeFiles/DatabaseExplorer.dir/PostgreSqlDbAdapter.cpp.o
[ 66%] Building CXX object git/CMakeFiles/git.dir/gitentry.cpp.o
[ 66%] Building CXX object git/CMakeFiles/git.dir/gitSettingsDlg.cpp.o
[ 66%] Building CXX object Subversion2/CMakeFiles/Subversion.dir/svn_local_properties.cpp.o
[ 66%] Building CXX object SFTP/CMakeFiles/SFTP.dir/SFTPTreeView.cpp.o
[ 66%] Building CXX object Subversion2/CMakeFiles/Subversion.dir/SvnLogDialog.cpp.o
[ 66%] Building CXX object Subversion2/CMakeFiles/Subversion.dir/SvnInfoDialog.cpp.o
[ 66%] Building CXX object DatabaseExplorer/CMakeFiles/DatabaseExplorer.dir/DbViewerPanel.cpp.o
[ 66%] Building CXX object DatabaseExplorer/CMakeFiles/DatabaseExplorer.dir/CreateForeignKey.cpp.o
[ 66%] Building CXX object git/CMakeFiles/git.dir/gitDiffDlg.cpp.o
[ 66%] Building CXX object Subversion2/CMakeFiles/Subversion.dir/svn_sync_dialog.cpp.o
[ 66%] Building CXX object SFTP/CMakeFiles/SFTP.dir/SFTPStatusPage.cpp.o
[ 67%] Building CXX object SFTP/CMakeFiles/SFTP.dir/SFTPManageBookmarkDlg.cpp.o
[ 67%] Building CXX object Subversion2/CMakeFiles/Subversion.dir/svn_copy_dialog.cpp.o
[ 67%] Building CXX object git/CMakeFiles/git.dir/gitCommitDlg.cpp.o
[ 67%] Building CXX object DatabaseExplorer/CMakeFiles/DatabaseExplorer.dir/DbSettingDialog.cpp.o
[ 67%] Building CXX object DatabaseExplorer/CMakeFiles/DatabaseExplorer.dir/ErdForeignKey.cpp.o
[ 67%] Building CXX object SFTP/CMakeFiles/SFTP.dir/SFTPBookmark.cpp.o
[ 67%] Building CXX object Subversion2/CMakeFiles/Subversion.dir/wxcrafter_subversion2_bitmaps.cpp.o
[ 67%] Linking CXX shared library ../lib/SFTP.so
[ 68%] Building CXX object Subversion2/CMakeFiles/Subversion.dir/wxcrafter.cpp.o
[ 68%] Built target SFTP
[ 68%] Building CXX object Subversion2/CMakeFiles/Subversion.dir/svn_command_handlers.cpp.o
[ 68%] Building CXX object DatabaseExplorer/CMakeFiles/DatabaseExplorer.dir/dbitem.cpp.o
[ 68%] Linking CXX shared library ../lib/git.so
[ 68%] Building CXX object DatabaseExplorer/CMakeFiles/DatabaseExplorer.dir/imageexportdialog.cpp.o
[ 68%] Built target git
[ 68%] Linking CXX shared library ../lib/DatabaseExplorer.so
[ 68%] Linking CXX shared library ../lib/Subversion.so
[ 68%] Built target Subversion
[ 68%] Built target DatabaseExplorer
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
DEBUG: return value for "make -j5" is 2
And i use these configurations:
shelltools.export("CXXFLAGS", "%s -fno-devirtualize" % get.CXXFLAGS())
cmaketools.configure("-G 'Unix Makefiles' \
--without-wx-static \
--with-wx-config=/usr/bin/wx-config \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_CLANG=1 \
-DENABLE_LLDB=1 \
-DWITH_MYSQL=0 \
-DCOPY_WX_LIBS=0 \
-DCMAKE_INSTALL_LIBDIR=lib ..", installPrefix="/usr")
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Codelite 9.1 Make error

Post by DavidGH »

After your advice i have rebuild wxWidgets with: "--with-regex=builtin"
...and it took you only a month ;)
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetInsertionPoint() const'
etc
I've seen similar errors in the past, but I forget exactly where. It might have been on openSUSE, which for some strange reason builds its default wxWidgets with --enable-stl.
What configure options did you pass to your new wx build?
And i use these configurations:
Strange options often seem to cause strange errors. I suggest you try again using the fewest possible ones; in particular without -fno-devirtualize and --without-wx-static
Post Reply