Building under Windows problem

Discussion about CodeLite development process and patches
coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Building under Windows problem

Post by coder99 »

I've downloaded the package from SVN and got a fair way towards building CL from source, but I'm stuck on this last error messages

I have ranlib on the system, and I ran it on lib/gcc_lib/libwxsqlite3ud.a, but without making any difference to the error message, as far as I could see.

PS: this is another case where the compile fails, but the final error message in the build window does not reflect that.

Code: Select all

Building: 
"mingw32-make.exe"  -j 2 -f "LiteEditor_wsp.mk"
----------Building project:[ wxscintilla - WinDebugUnicode ]----------
ar rcu ../../lib/gcc_lib/libwxscintillaud.a ./WinDebugUnicode/wxscintilla.o ./WinDebugUnicode/PlatWX.o ./WinDebugUnicode/ScintillaWX.o ./WinDebugUnicode/AutoComplete.o ./WinDebugUnicode/CallTip.o ./WinDebugUnicode/CellBuffer.o ./WinDebugUnicode/CharClassify.o ./WinDebugUnicode/ContractionState.o ./WinDebugUnicode/Document.o ./WinDebugUnicode/DocumentAccessor.o ./WinDebugUnicode/Editor.o ./WinDebugUnicode/ExternalLexer.o ./WinDebugUnicode/Indicator.o ./WinDebugUnicode/KeyMap.o ./WinDebugUnicode/KeyWords.o ./WinDebugUnicode/LexAda.o ./WinDebugUnicode/LexAPDL.o ./WinDebugUnicode/LexAsm.o ./WinDebugUnicode/LexAsn1.o ./WinDebugUnicode/LexAU3.o ./WinDebugUnicode/LexAVE.o ./WinDebugUnicode/LexBaan.o ./WinDebugUnicode/LexBash.o ./WinDebugUnicode/LexBasic.o ./WinDebugUnicode/LexBullant.o ./WinDebugUnicode/LexCaml.o ./WinDebugUnicode/LexCLW.o ./WinDebugUnicode/LexCmake.o ./WinDebugUnicode/LexConf.o ./WinDebugUnicode/LexCPP.o ./WinDebugUnicode/LexCrontab.o ./WinDebugUnicode/LexCsound.o ./WinDebugUnicode/LexCSS.o ./WinDebugUnicode/LexD.o ./WinDebugUnicode/LexEiffel.o ./WinDebugUnicode/LexErlang.o ./WinDebugUnicode/LexEScript.o ./WinDebugUnicode/LexFlagship.o ./WinDebugUnicode/LexForth.o ./WinDebugUnicode/LexFortran.o ./WinDebugUnicode/LexGui4Cli.o ./WinDebugUnicode/LexHaskell.o ./WinDebugUnicode/LexHTML.o ./WinDebugUnicode/LexInno.o ./WinDebugUnicode/LexKix.o ./WinDebugUnicode/LexLisp.o ./WinDebugUnicode/LexLout.o ./WinDebugUnicode/LexLua.o ./WinDebugUnicode/LexMatlab.o ./WinDebugUnicode/LexMetapost.o ./WinDebugUnicode/LexMMIXAL.o ./WinDebugUnicode/LexMPT.o ./WinDebugUnicode/LexMSSQL.o ./WinDebugUnicode/LexNsis.o ./WinDebugUnicode/LexOpal.o ./WinDebugUnicode/LexOthers.o ./WinDebugUnicode/LexPascal.o ./WinDebugUnicode/LexPB.o ./WinDebugUnicode/LexPerl.o ./WinDebugUnicode/LexPOV.o ./WinDebugUnicode/LexPS.o ./WinDebugUnicode/LexPython.o ./WinDebugUnicode/LexRebol.o ./WinDebugUnicode/LexRuby.o ./WinDebugUnicode/LexScriptol.o ./WinDebugUnicode/LexSmalltalk.o ./WinDebugUnicode/LexSpecman.o ./WinDebugUnicode/LexSpice.o ./WinDebugUnicode/LexSQL.o ./WinDebugUnicode/LexTADS3.o ./WinDebugUnicode/LexTCL.o ./WinDebugUnicode/LexTeX.o ./WinDebugUnicode/LexVB.o ./WinDebugUnicode/LexVerilog.o ./WinDebugUnicode/LexVHDL.o ./WinDebugUnicode/LexYAML.o ./WinDebugUnicode/LineMarker.o ./WinDebugUnicode/PropSet.o ./WinDebugUnicode/RESearch.o ./WinDebugUnicode/ScintillaBase.o ./WinDebugUnicode/Style.o ./WinDebugUnicode/StyleContext.o ./WinDebugUnicode/UniConversion.o ./WinDebugUnicode/ViewStyle.o ./WinDebugUnicode/WindowAccessor.o ./WinDebugUnicode/XPM.o ./WinDebugUnicode/Decoration.o ./WinDebugUnicode/LexGAP.o ./WinDebugUnicode/LexPLM.o ./WinDebugUnicode/LexProgress.o ./WinDebugUnicode/PositionCache.o ./WinDebugUnicode/RunStyles.o ./WinDebugUnicode/LexGCC.o ./WinDebugUnicode/LexFIF.o ./WinDebugUnicode/LexSVN.o ./WinDebugUnicode/LexAbaqus.o ./WinDebugUnicode/LexASY.o ./WinDebugUnicode/LexMagik.o ./WinDebugUnicode/LexPowerShell.o ./WinDebugUnicode/LexR.o 
----------Building project:[ sqlite3 - Common ]----------
mingw32-make[1]: Nothing to be done for `all'.
----------Building project:[ wxsqlite3 - WinDebugUnicode ]----------
ar rcu ../../lib/gcc_lib/libwxsqlite3ud.a ./WinDebugUnicode/wxsqlite3.o 
----------Building project:[ CodeLite - WinDebugUnicode ]----------
ar rcu ../lib/gcc_lib/libCodeLiteud.a ./WinDebugUnicode/worker_thread.o ./WinDebugUnicode/tokenizer.o ./WinDebugUnicode/tag_tree.o ./WinDebugUnicode/symbol_tree.o ./WinDebugUnicode/readtags.o ./WinDebugUnicode/progress_dialog.o ./WinDebugUnicode/procutils.o ./WinDebugUnicode/parse_thread.o ./WinDebugUnicode/lex.yy.o ./WinDebugUnicode/language.o ./WinDebugUnicode/fileutils.o ./WinDebugUnicode/dirtraverser.o ./WinDebugUnicode/ctags_manager.o ./WinDebugUnicode/cpp_scanner.o ./WinDebugUnicode/cl_process.o ./WinDebugUnicode/scope_parser.o ./WinDebugUnicode/cpp_lexer.o ./WinDebugUnicode/cpp_comment_creator.o ./WinDebugUnicode/tags_options_data.o ./WinDebugUnicode/setters_getters_data.o ./WinDebugUnicode/archive.o ./WinDebugUnicode/winprocess.o ./WinDebugUnicode/cl_calltip.o ./WinDebugUnicode/performance.o ./WinDebugUnicode/cpp_expr_lexer.o ./WinDebugUnicode/cpp_expr_parser.o ./WinDebugUnicode/cpp_func_parser.o ./WinDebugUnicode/expression_result.o ./WinDebugUnicode/function.o ./WinDebugUnicode/var_parser.o ./WinDebugUnicode/variable.o ./WinDebugUnicode/entry.o ./WinDebugUnicode/comment.o ./WinDebugUnicode/tags_database.o ./WinDebugUnicode/variable_entry.o ./WinDebugUnicode/tagcacheentry.o ./WinDebugUnicode/tagscache.o 
----------Building project:[ plugin_sdk - WinDebugUnicode ]----------
ar rcu ../lib/gcc_lib/libplugin_sdkud.a ./WinDebugUnicode/async_executable_cmd.o ./WinDebugUnicode/build_config.o ./WinDebugUnicode/buildmanager.o ./WinDebugUnicode/clean_request.o ./WinDebugUnicode/compile_request.o ./WinDebugUnicode/compiler_action.o ./WinDebugUnicode/configuration_mapping.o ./WinDebugUnicode/lexer_configuration.o ./WinDebugUnicode/optionsconfig.o ./WinDebugUnicode/project.o ./WinDebugUnicode/project_settings.o ./WinDebugUnicode/regex_processor.o ./WinDebugUnicode/search_thread.o ./WinDebugUnicode/workspace.o ./WinDebugUnicode/volumelocatorthread.o ./WinDebugUnicode/stringsearcher.o ./WinDebugUnicode/dockablepanemenumanager.o ./WinDebugUnicode/custombuildrequest.o ./WinDebugUnicode/queuecommand.o ./WinDebugUnicode/xmlutils.o ./WinDebugUnicode/sync_queue.o ./WinDebugUnicode/globals.o ./WinDebugUnicode/exelocator.o ./WinDebugUnicode/dynamiclibrary.o ./WinDebugUnicode/conffilelocator.o ./WinDebugUnicode/builder.o ./WinDebugUnicode/builder_gnumake.o ./WinDebugUnicode/vcimporter.o ./WinDebugUnicode/debuggermanager.o ./WinDebugUnicode/debuggersettings.o ./WinDebugUnicode/build_settings_config.o ./WinDebugUnicode/editor_config.o ./WinDebugUnicode/compiler.o ./WinDebugUnicode/build_system.o ./WinDebugUnicode/sessionmanager.o ./WinDebugUnicode/configtool.o ./WinDebugUnicode/debuggerconfigtool.o ./WinDebugUnicode/configurationtoolbase.o ./WinDebugUnicode/environmentconfig.o ./WinDebugUnicode/evnvarlist.o ./WinDebugUnicode/pluginconfig.o ./WinDebugUnicode/pluginsdata.o ./WinDebugUnicode/plugindata.o ./WinDebugUnicode/commentconfigdata.o ./WinDebugUnicode/quickdebuginfo.o ./WinDebugUnicode/windowattrmanager.o ./WinDebugUnicode/interactiveprocess.o ./WinDebugUnicode/pipedprocess.o ./WinDebugUnicode/consolefinder.o ./WinDebugUnicode/virtualdirtreectrl.o ./WinDebugUnicode/filepicker.o ./WinDebugUnicode/dirpicker.o ./WinDebugUnicode/splashscreen.o ./WinDebugUnicode/progressctrl.o ./WinDebugUnicode/virtualdirectoryselector.o ./WinDebugUnicode/virtualdirectoryselectorbase.o ./WinDebugUnicode/threebuttonbasedlg.o ./WinDebugUnicode/threebuttondlg.o ./WinDebugUnicode/open_type_dlg.o ./WinDebugUnicode/nameanddescbasedlg.o ./WinDebugUnicode/nameanddescdlg.o ./WinDebugUnicode/opentypevlistctrl.o ./WinDebugUnicode/macrosbasedlg.o ./WinDebugUnicode/macrosdlg.o ./WinDebugUnicode/custom_notebook.o ./WinDebugUnicode/custom_tab.o ./WinDebugUnicode/custom_tabcontainer.o ./WinDebugUnicode/drawingutils.o ./WinDebugUnicode/dropbutton.o ./WinDebugUnicode/notebooknavdialog.o ./WinDebugUnicode/dockablepane.o ./WinDebugUnicode/detachedpanesinfo.o ./WinDebugUnicode/tokendb.o ./WinDebugUnicode/cpptoken.o ./WinDebugUnicode/cppwordscanner.o ./WinDebugUnicode/stringaccessor.o ./WinDebugUnicode/jobqueue.o ./WinDebugUnicode/job.o 
----------Building project:[ CodeFormatter - WinDebugUnicode ]----------
g++ -shared -fPIC -o ../Runtime/plugins/CodeFormatter.dll ./WinDebugUnicode/codeformatter.o ./WinDebugUnicode/formatoptions.o ./WinDebugUnicode/astyle_main.o ./WinDebugUnicode/ASBeautifier.o ./WinDebugUnicode/ASEnhancer.o ./WinDebugUnicode/ASFormatter.o ./WinDebugUnicode/ASResource.o ./WinDebugUnicode/codeforammaterbasedlg.o ./WinDebugUnicode/codeformatterdlg.o  -L../lib/gcc_lib -L"d:/wxWidgetsEclipse2.8.9/lib/gcc_lib"  -lplugin_sdkud -lCodeLiteud -lwxsqlite3ud -lsqlite3 -lwxmsw28ud -lgdi32   -mthreads -Ld:\wxWidgetsEclipse2.8.9\lib\gcc_lib -lwxmsw28ud_html -lwxmsw28ud_adv -lwxmsw28ud_core -lwxbase28ud_xml -lwxbase28ud_net -lwxbase28ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32  
../lib/gcc_lib/libwxsqlite3ud.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
mingw32-make[1]: *** [../Runtime/plugins/CodeFormatter.dll] Error 1
mingw32-make.exe: *** [All] Error 2
0 errors, 0 warnings, total time: 00:00:03 seconds
----------Build Ended----------

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building under Windows problem

Post by eranif »

ar rcu ../../lib/gcc_lib/libwxsqlite3ud.a ./WinDebugUnicode/wxsqlite3.o
I dont have these problems, so I suspect the problem is related to the version of MinGW you are using.

Maybe this can help out:
settings -> build settings...

Select the 'gnu g++'' tab, and 'Tools' sub tab

in the 'Tools' tab, change the:
ar rcu --> ar rcus

and try to build again.
Eran
Make sure you have read the HOW TO POST thread
coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: Building under Windows problem

Post by coder99 »

My MinGW is 5.1.4

As it turns out, the compile for wzsqlite3 had failed; once I fixed it and recompiled, that error went away.

My new error is

Code: Select all

Building: 
"mingw32-make.exe"  -j 2 -f "LiteEditor_wsp.mk"
----------Building project:[ wxscintilla - WinDebugUnicode ]----------
mingw32-make[1]: Nothing to be done for `all'.
----------Building project:[ sqlite3 - Common ]----------
mingw32-make[1]: Nothing to be done for `all'.
----------Building project:[ wxsqlite3 - WinDebugUnicode ]----------
g++ -c  "D:/pkg/CodeLite/CodeLite/sdk/wxsqlite3/src/wxsqlite3.cpp" -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -Id:\wxWidgetsEclipse2.8.9\lib\gcc_lib\mswud -Id:\wxWidgetsEclipse2.8.9\include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0    -g -D__WX__ -DWXUSINGDLL  -o ./WinDebugUnicode/wxsqlite3.o -I. -I./include -I./sqlite3/include -Id:/wxWidgetsEclipse2.8.9/include -I"D:/wxWidgetsEclipse2.8.9/lib/gcc_dll/mswud" 
ar rcus ../../lib/gcc_lib/libwxsqlite3ud.a ./WinDebugUnicode/wxsqlite3.o 
----------Building project:[ CodeLite - WinDebugUnicode ]----------
mingw32-make[1]: Nothing to be done for `all'.
----------Building project:[ plugin_sdk - WinDebugUnicode ]----------
mingw32-make[1]: Nothing to be done for `all'.
----------Building project:[ CodeFormatter - WinDebugUnicode ]----------
g++ -shared -fPIC -o ../Runtime/plugins/CodeFormatter.dll ./WinDebugUnicode/codeformatter.o ./WinDebugUnicode/formatoptions.o ./WinDebugUnicode/astyle_main.o ./WinDebugUnicode/ASBeautifier.o ./WinDebugUnicode/ASEnhancer.o ./WinDebugUnicode/ASFormatter.o ./WinDebugUnicode/ASResource.o ./WinDebugUnicode/codeforammaterbasedlg.o ./WinDebugUnicode/codeformatterdlg.o  -L../lib/gcc_lib -L"d:/wxWidgetsEclipse2.8.9/lib/gcc_lib"  -lplugin_sdkud -lCodeLiteud -lwxsqlite3ud -lsqlite3 -lwxmsw28ud -lgdi32   -mthreads -Ld:\wxWidgetsEclipse2.8.9\lib\gcc_lib -lwxmsw28ud_html -lwxmsw28ud_adv -lwxmsw28ud_core -lwxbase28ud_xml -lwxbase28ud_net -lwxbase28ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32  
c:\mingw-3.4.5\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw28ud

collect2: ld returned 1 exit status
mingw32-make[1]: *** [../Runtime/plugins/CodeFormatter.dll] Error 1
mingw32-make.exe: *** [All] Error 2
0 errors, 0 warnings, total time: 00:00:05 seconds
----------Build Ended----------
Does that mean you use monolithic libs??

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building under Windows problem

Post by eranif »

Yes, I use monolithic lib
Eran
Make sure you have read the HOW TO POST thread
coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: Building under Windows problem

Post by coder99 »

After building the monolithic library, the error changes to:

Code: Select all

Building: 
"mingw32-make.exe"  -j 2 -f "LiteEditor_wsp.mk"
----------Building project:[ wxscintilla - WinDebugUnicode ]----------
ar rcus ../../lib/gcc_lib/libwxscintillaud.a ./WinDebugUnicode/wxscintilla.o ./WinDebugUnicode/PlatWX.o ./WinDebugUnicode/ScintillaWX.o ./WinDebugUnicode/AutoComplete.o ./WinDebugUnicode/CallTip.o ./WinDebugUnicode/CellBuffer.o ./WinDebugUnicode/CharClassify.o ./WinDebugUnicode/ContractionState.o ./WinDebugUnicode/Document.o ./WinDebugUnicode/DocumentAccessor.o ./WinDebugUnicode/Editor.o ./WinDebugUnicode/ExternalLexer.o ./WinDebugUnicode/Indicator.o ./WinDebugUnicode/KeyMap.o ./WinDebugUnicode/KeyWords.o ./WinDebugUnicode/LexAda.o ./WinDebugUnicode/LexAPDL.o ./WinDebugUnicode/LexAsm.o ./WinDebugUnicode/LexAsn1.o ./WinDebugUnicode/LexAU3.o ./WinDebugUnicode/LexAVE.o ./WinDebugUnicode/LexBaan.o ./WinDebugUnicode/LexBash.o ./WinDebugUnicode/LexBasic.o ./WinDebugUnicode/LexBullant.o ./WinDebugUnicode/LexCaml.o ./WinDebugUnicode/LexCLW.o ./WinDebugUnicode/LexCmake.o ./WinDebugUnicode/LexConf.o ./WinDebugUnicode/LexCPP.o ./WinDebugUnicode/LexCrontab.o ./WinDebugUnicode/LexCsound.o ./WinDebugUnicode/LexCSS.o ./WinDebugUnicode/LexD.o ./WinDebugUnicode/LexEiffel.o ./WinDebugUnicode/LexErlang.o ./WinDebugUnicode/LexEScript.o ./WinDebugUnicode/LexFlagship.o ./WinDebugUnicode/LexForth.o ./WinDebugUnicode/LexFortran.o ./WinDebugUnicode/LexGui4Cli.o ./WinDebugUnicode/LexHaskell.o ./WinDebugUnicode/LexHTML.o ./WinDebugUnicode/LexInno.o ./WinDebugUnicode/LexKix.o ./WinDebugUnicode/LexLisp.o ./WinDebugUnicode/LexLout.o ./WinDebugUnicode/LexLua.o ./WinDebugUnicode/LexMatlab.o ./WinDebugUnicode/LexMetapost.o ./WinDebugUnicode/LexMMIXAL.o ./WinDebugUnicode/LexMPT.o ./WinDebugUnicode/LexMSSQL.o ./WinDebugUnicode/LexNsis.o ./WinDebugUnicode/LexOpal.o ./WinDebugUnicode/LexOthers.o ./WinDebugUnicode/LexPascal.o ./WinDebugUnicode/LexPB.o ./WinDebugUnicode/LexPerl.o ./WinDebugUnicode/LexPOV.o ./WinDebugUnicode/LexPS.o ./WinDebugUnicode/LexPython.o ./WinDebugUnicode/LexRebol.o ./WinDebugUnicode/LexRuby.o ./WinDebugUnicode/LexScriptol.o ./WinDebugUnicode/LexSmalltalk.o ./WinDebugUnicode/LexSpecman.o ./WinDebugUnicode/LexSpice.o ./WinDebugUnicode/LexSQL.o ./WinDebugUnicode/LexTADS3.o ./WinDebugUnicode/LexTCL.o ./WinDebugUnicode/LexTeX.o ./WinDebugUnicode/LexVB.o ./WinDebugUnicode/LexVerilog.o ./WinDebugUnicode/LexVHDL.o ./WinDebugUnicode/LexYAML.o ./WinDebugUnicode/LineMarker.o ./WinDebugUnicode/PropSet.o ./WinDebugUnicode/RESearch.o ./WinDebugUnicode/ScintillaBase.o ./WinDebugUnicode/Style.o ./WinDebugUnicode/StyleContext.o ./WinDebugUnicode/UniConversion.o ./WinDebugUnicode/ViewStyle.o ./WinDebugUnicode/WindowAccessor.o ./WinDebugUnicode/XPM.o ./WinDebugUnicode/Decoration.o ./WinDebugUnicode/LexGAP.o ./WinDebugUnicode/LexPLM.o ./WinDebugUnicode/LexProgress.o ./WinDebugUnicode/PositionCache.o ./WinDebugUnicode/RunStyles.o ./WinDebugUnicode/LexGCC.o ./WinDebugUnicode/LexFIF.o ./WinDebugUnicode/LexSVN.o ./WinDebugUnicode/LexAbaqus.o ./WinDebugUnicode/LexASY.o ./WinDebugUnicode/LexMagik.o ./WinDebugUnicode/LexPowerShell.o ./WinDebugUnicode/LexR.o 
----------Building project:[ sqlite3 - Common ]----------
mingw32-make[1]: Nothing to be done for `all'.
----------Building project:[ wxsqlite3 - WinDebugUnicode ]----------
ar rcus ../../lib/gcc_lib/libwxsqlite3ud.a ./WinDebugUnicode/wxsqlite3.o 
----------Building project:[ CodeLite - WinDebugUnicode ]----------
mingw32-make[1]: Nothing to be done for `all'.
----------Building project:[ plugin_sdk - WinDebugUnicode ]----------
mingw32-make[1]: Nothing to be done for `all'.
----------Building project:[ CodeFormatter - WinDebugUnicode ]----------
g++ -shared -fPIC -o ../Runtime/plugins/CodeFormatter.dll ./WinDebugUnicode/codeformatter.o ./WinDebugUnicode/formatoptions.o ./WinDebugUnicode/astyle_main.o ./WinDebugUnicode/ASBeautifier.o ./WinDebugUnicode/ASEnhancer.o ./WinDebugUnicode/ASFormatter.o ./WinDebugUnicode/ASResource.o ./WinDebugUnicode/codeforammaterbasedlg.o ./WinDebugUnicode/codeformatterdlg.o  -L../lib/gcc_lib -L"d:/wxWidgetsEclipse2.8.9/lib/gcc_dll"  -lplugin_sdkud -lCodeLiteud -lwxsqlite3ud -lsqlite3 -lwxmsw28ud -lgdi32   -mthreads -Ld:\wxWidgetsEclipse2.8.9\lib\gcc_lib -lwxmsw28ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32  
----------Building project:[ DebuggerGDB - WinDebugUnicode ]----------
g++ -shared -fPIC -o ../Runtime/debuggers/Debugger.dll ./WinDebugUnicode/debuggergdb.o ./WinDebugUnicode/dbgcmd.o ./WinDebugUnicode/gdb_result.o  -L../lib/gcc_lib -L"d:/wxWidgetsEclipse2.8.9/lib/gcc_dll"  -lplugin_sdkud -lcodeliteud -lwxmsw28ud   -mthreads -Ld:\wxWidgetsEclipse2.8.9\lib\gcc_lib -lwxmsw28ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32  
----------Building project:[ Subversion - WinDebugUnicode ]----------
g++ -shared -fPIC -o ../Runtime/plugins/Subversion.dll ./WinDebugUnicode/svndriver.o ./WinDebugUnicode/subversion.o ./WinDebugUnicode/svnhandler.o ./WinDebugUnicode/svnoptions.o ./WinDebugUnicode/svnxmlparser.o ./WinDebugUnicode/svncommitmsgsmgr.o ./WinDebugUnicode/svniconrefreshhandler.o ./WinDebugUnicode/svnpostcmdaction.o ./WinDebugUnicode/svnreportgeneratoraction.o ./WinDebugUnicode/svntab.o ./WinDebugUnicode/updatepostcmdaction.o ./WinDebugUnicode/svnbasedlg.o ./WinDebugUnicode/svndlg.o ./WinDebugUnicode/svnoptionsbasedlg.o ./WinDebugUnicode/svnoptionsdlg.o ./WinDebugUnicode/svnlogbasedlg.o ./WinDebugUnicode/svnlogdlg.o ./WinDebugUnicode/svnadditemsbasedlg.o ./WinDebugUnicode/svnadditemsdlg.o ./WinDebugUnicode/logindlg.o ./WinDebugUnicode/logindlgbase.o  -L../lib/gcc_lib -L"d:/wxWidgetsEclipse2.8.9/lib/gcc_dll"  -lplugin_sdkud -lCodeLiteud -lwxsqlite3ud -lsqlite3 -lwxscintillaud -lwxmsw28ud   -mthreads -Ld:\wxWidgetsEclipse2.8.9\lib\gcc_lib -lwxmsw28ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32  
----------Building project:[ Gizmos - WinDebugUnicode ]----------
g++ -shared -fPIC -o ../Runtime/plugins/Gizmos.dll ./WinDebugUnicode/gizmos.o ./WinDebugUnicode/newplugindata.o ./WinDebugUnicode/pluginwizard_page1.o ./WinDebugUnicode/pluginwizard_pag2.o ./WinDebugUnicode/pluginwizard.o ./WinDebugUnicode/newclassbasedlg.o ./WinDebugUnicode/newclassdlg.o ./WinDebugUnicode/newinheritancebasedlg.o ./WinDebugUnicode/newinheritancedlg.o ./WinDebugUnicode/newwxprojectbasedlg.o ./WinDebugUnicode/newwxprojectdlg.o ./WinDebugUnicode/newwxprojectinfo.o  -L../lib/gcc_lib -L"d:/wxWidgetsEclipse2.8.9/lib/gcc_dll"  -lplugin_sdkud -lCodeLiteud -lwxsqlite3ud -lsqlite3 -lwxmsw28ud  -O2  -mthreads -Ld:\wxWidgetsEclipse2.8.9\lib\gcc_lib -lwxmsw28ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32  
----------Building project:[ Cscope - WinDebugUnicode ]----------
g++ -shared -fPIC -o ../Runtime/plugins/cscope.dll ./WinDebugUnicode/cscope.o ./WinDebugUnicode/cscopedbbuilderthread.o ./WinDebugUnicode/cscopeentrydata.o ./WinDebugUnicode/cscopestatusmessage.o ./WinDebugUnicode/csscopeconfdata.o ./WinDebugUnicode/cscopetab.o ./WinDebugUnicode/cscopetabbase.o  -L../lib/gcc_lib -L"d:/wxWidgetsEclipse2.8.9/lib/gcc_dll"  -lplugin_sdkud -lCodeLiteud -lwxsqlite3ud -lsqlite3 -lwxmsw28ud   -mthreads -Ld:\wxWidgetsEclipse2.8.9\lib\gcc_lib -lwxmsw28ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32  
----------Building project:[ Copyright - WinDebugUnicode ]----------
g++ -shared -fPIC -o ../Runtime/plugins/Copyright.dll ./WinDebugUnicode/copyright.o ./WinDebugUnicode/copyrightsconfigdata.o ./WinDebugUnicode/copyrights_options_base_dlg.o ./WinDebugUnicode/copyrights_options_dlg.o ./WinDebugUnicode/copyrights_proj_sel_base_dlg.o ./WinDebugUnicode/copyrights_proj_sel_dlg.o  -L../lib/gcc_lib -L"d:/wxWidgetsEclipse2.8.9/lib/gcc_dll"  -lplugin_sdkud -lCodeLiteud -lwxsqlite3ud -lsqlite3 -lwxmsw28ud  -O2  -mthreads -Ld:\wxWidgetsEclipse2.8.9\lib\gcc_lib -lwxmsw28ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32  
----------Building project:[ UnitTestPP - WinDebugUnicode ]----------
g++ -shared -fPIC -o ../Runtime/plugins/UnitTestPP.dll ./WinDebugUnicode/unittestpp.o ./WinDebugUnicode/unittestcppoutputparser.o ./WinDebugUnicode/newunittestbasedlg.o ./WinDebugUnicode/newunittestdlg.o ./WinDebugUnicode/testclassbasedlg.o ./WinDebugUnicode/testclassdlg.o ./WinDebugUnicode/unittestsbasereport.o ./WinDebugUnicode/unittestspage.o  -L../lib/gcc_lib -L"d:/wxWidgetsEclipse2.8.9/lib/gcc_dll"  -lplugin_sdkud -lCodeLiteud -lwxsqlite3ud -lsqlite3 -lwxmsw28ud  -O2  -mthreads -Ld:\wxWidgetsEclipse2.8.9\lib\gcc_lib -lwxmsw28ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32  
----------Building project:[ ExternalTools - WinDebugUnicode ]----------
g++ -shared -fPIC -o ../Runtime/plugins/ExternalTools.dll ./WinDebugUnicode/externaltools.o ./WinDebugUnicode/externaltoolsdata.o ./WinDebugUnicode/newtoolbase.o ./WinDebugUnicode/newtooldlg.o ./WinDebugUnicode/externaltooldlg.o ./WinDebugUnicode/externaltoolsbasedlg.o  -L../lib/gcc_lib -L"d:/wxWidgetsEclipse2.8.9/lib/gcc_dll"  -lplugin_sdkud -lCodeLiteud -lwxsqlite3ud -lsqlite3 -lwxmsw28ud  -O2  -mthreads -Ld:\wxWidgetsEclipse2.8.9\lib\gcc_lib -lwxmsw28ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32  
----------Building project:[ snipwiz - WinDebugUnicode ]----------
g++ -shared -fPIC -o ../Runtime/plugins/snipwiz.dll ./WinDebugUnicode/snipwiz.o ./WinDebugUnicode/wxSerialize.o ./WinDebugUnicode/swStringDb.o ./WinDebugUnicode/editsnippetsbasedlg.o ./WinDebugUnicode/editsnippetsdlg.o ./WinDebugUnicode/templateclassbasedlg.o ./WinDebugUnicode/templateclassdlg.o  -L../lib/gcc_lib -L"d:/wxWidgetsEclipse2.8.9/lib/gcc_dll"  -lplugin_sdkud -lCodeLiteud -lwxsqlite3ud -lsqlite3 -lwxmsw28ud  -O2  -mthreads -Ld:\wxWidgetsEclipse2.8.9\lib\gcc_lib -lwxmsw28ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32  
./WinDebugUnicode/swStringDb.o: In function `ZN10swStringDb4LoadERK8wxString':
D:/pkg/CodeLite/CodeLite/SnipWiz/swStringDb.cpp:276: undefined reference to `wxSerialize::wxSerialize(wxInputStream&, unsigned int, wxString const&, bool)'
D:/pkg/CodeLite/CodeLite/SnipWiz/swStringDb.cpp:280: undefined reference to `wxSerialize::~wxSerialize()'
D:/pkg/CodeLite/CodeLite/SnipWiz/swStringDb.cpp:280: undefined reference to `wxSerialize::~wxSerialize()'
D:/pkg/CodeLite/CodeLite/SnipWiz/swStringDb.cpp:280: undefined reference to `wxSerialize::~wxSerialize()'
D:/pkg/CodeLite/CodeLite/SnipWiz/swStringDb.cpp:284: undefined reference to `wxSerialize::wxSerialize(wxInputStream&, unsigned int, wxString const&, bool)'
D:/pkg/CodeLite/CodeLite/SnipWiz/swStringDb.cpp:288: undefined reference to `wxSerialize::~wxSerialize()'
D:/pkg/CodeLite/CodeLite/SnipWiz/swStringDb.cpp:288: undefined reference to `wxSerialize::~wxSerialize()'
D:/pkg/CodeLite/CodeLite/SnipWiz/swStringDb.cpp:288: undefined reference to `wxSerialize::~wxSerialize()'
./WinDebugUnicode/swStringDb.o: In function `ZN10swStringDb4SaveERK8wxString':
D:/pkg/CodeLite/CodeLite/SnipWiz/swStringDb.cpp:304: undefined reference to `wxSerialize::wxSerialize(wxOutputStream&, unsigned int, wxString const&, bool)'
D:/pkg/CodeLite/CodeLite/SnipWiz/swStringDb.cpp:308: undefined reference to `wxSerialize::~wxSerialize()'
D:/pkg/CodeLite/CodeLite/SnipWiz/swStringDb.cpp:308: undefined reference to `wxSerialize::~wxSerialize()'
D:/pkg/CodeLite/CodeLite/SnipWiz/swStringDb.cpp:308: undefined reference to `wxSerialize::~wxSerialize()'
D:/pkg/CodeLite/CodeLite/SnipWiz/swStringDb.cpp:312: undefined reference to `wxSerialize::wxSerialize(wxOutputStream&, unsigned int, wxString const&, bool)'
D:/pkg/CodeLite/CodeLite/SnipWiz/swStringDb.cpp:316: undefined reference to `wxSerialize::~wxSerialize()'
D:/pkg/CodeLite/CodeLite/SnipWiz/swStringDb.cpp:316: undefined reference to `wxSerialize::~wxSerialize()'
D:/pkg/CodeLite/CodeLite/SnipWiz/swStringDb.cpp:316: undefined reference to `wxSerialize::~wxSerialize()'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [../Runtime/plugins/snipwiz.dll] Error 1
mingw32-make.exe: *** [All] Error 2
0 errors, 0 warnings, total time: 00:00:29 seconds
----------Build Ended----------


SO it did find the library, but is still unhappy

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building under Windows problem

Post by eranif »

It looks like it fails only for this plugin, can u try to:

right click on snipwiz -> clean
right click on snipwiz -> build

and see if this error disappears?

Eran
Make sure you have read the HOW TO POST thread
coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: Building under Windows problem

Post by coder99 »

I thought I did a rebuild several times, but it did not seem to help. Cleaning and rebuilding this one sub project got it going a long way;
it now fails with a problem with the resources

Code: Select all

....
----------Building project:[ abbreviation - WinDebugUnicode ]----------
g++ -shared -fPIC -o ../Runtime/plugins/abbreviation.dll ./WinDebugUnicode/abbreviation.o ./WinDebugUnicode/abbreviationentry.o ./WinDebugUnicode/abbreviationssettingsbase.o ./WinDebugUnicode/abbreviationssettingsdlg.o  -L..//lib/gcc_lib -L"d:/wxWidgetsEclipse2.8.9/lib/gcc_dll"  -lplugin_sdkud -lCodeLiteud -lwxsqlite3ud -lsqlite3 -lwxmsw28ud  -O2  -mthreads -Ld:\wxWidgetsEclipse2.8.9\lib\gcc_lib -lwxmsw28ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32  
----------Building project:[ LiteEditor - WinDebugUnicode ]----------
windres -i "D:/pkg/CodeLite/CodeLite/LiteEditor/code_parser.rc" --use-temp-file --define __WXMSW__ --define __WXDEBUG__ --define _UNICODE --include-dir d:\wxWidgetsEclipse2.8.9\lib\gcc_lib\mswud --include-dir d:\wxWidgetsEclipse2.8.9\include    -o ./WinDebugUnicode/code_parser.rc.o 
c:\mingw-3.4.5\bin\windres.exe: CreateProcess (null): No such file or directory
mingw32-make[1]: *** [WinDebugUnicode/code_parser.rc.o] Error 1
mingw32-make[1]: *** Waiting for unfinished jobs....
mingw32-make.exe: *** [All] Error 2
0 errors, 0 warnings, total time: 00:00:34 seconds
----------Build Ended----------

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building under Windows problem

Post by eranif »

DO you have windres installed?

Eran
Make sure you have read the HOW TO POST thread
coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: Building under Windows problem

Post by coder99 »

yes, I have used it for some of my other CL projects

something rings a bell about a temporary directory or file??
What file or directory or where does CL project it??

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building under Windows problem

Post by eranif »

coder99 wrote:something rings a bell about a temporary directory or file??
What file or directory or where does CL project it??
I dont understand that.

Can u try and use MinGW that comes with CodeLite?

Eran
Make sure you have read the HOW TO POST thread
Post Reply