Build codelite10 fail in win7 by -lssh
Posted: Tue Feb 14, 2017 6:51 am
1.Install CodeLite 10.0 for Windows 64 bit
2.Download CodeLite 10.0 tar.gz from GitHub
3.Install TDM-GCC-64
4.Install wxWidgets by wxMSW-3.0.0-Setup.exe, setup in "C:\wxWidgets"
5.Use TDM-GCC-64 build wxWidgets:
mingw32-make -f makefile.gcc BUILD=release SHARED=1
then, show error like this: recipe for target 'gcc_mswudll\basedll_any.o' failed
check forward, say "must be enabled with the -std=c++11 or -std=gnu++11 compiler options"
so open config.gcc, and edit CXXFLAGS ?= "-std=gnu++11" then go on
mingw32-make -f makefile.gcc BUILD=release SHARED=1
at last, build
mingw32-make -f makefile.gcc BUILD=release
6.Use CodeLite10.0 open its source code by LiteEditor
7.select Win_x86_release, all configuration are default, eg. CodeLiteIDE project:
Compiler options: -O2;$(shell wx-config --debug=no --cxxflags --unicode=yes);-Winvalid-pch
Link options: -s;$(shell wx-config --debug=no --unicode=yes --libs std,stc,propgrid);-Wl,--subsystem,windows -mwindows;-O2
8.Select CodeLite project, and build, then error come up:
D:/TDM-GCC-64/bin/g++.exe -shared -fPIC -o ../lib/gcc_lib/libcodeliteu.dll @"libCodeLite.txt" -L. -L../lib/gcc_lib -L../sdk/libssh/lib -lwxsqlite3u -lssh -s -mthreads -LC:/wxWidgets/lib/gcc_dll -lwxmsw30u_stc -lwxmsw30u_richtext -
lwxmsw30u_xrc -lwxmsw30u_aui -lwxmsw30u_html -lwxmsw30u_adv -lwxmsw30u_core -lwxbase30u_xml -lwxbase30u_net -lwxbase30u -lwxscintilla -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -
lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
D:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ../sdk/libssh/lib/libssh.dll.a when searching for -lssh
D:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ../sdk/libssh/lib/libssh.a when searching for -lssh
D:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ../sdk/libssh/lib/libssh.dll when searching for -lssh
D:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ../sdk/libssh/lib\libssh.a when searching for -lssh
D:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ../sdk/libssh/lib/libssh.dll.a when searching for -lssh
D:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ../sdk/libssh/lib/libssh.a when searching for -lssh
D:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ../sdk/libssh/lib/libssh.dll when searching for -lssh
D:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lssh
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [../lib/gcc_lib/libcodeliteu.dll] Error 1
At last I could not pass here. I miss something or make errors? What should I do? Look forward to reply
2.Download CodeLite 10.0 tar.gz from GitHub
3.Install TDM-GCC-64
4.Install wxWidgets by wxMSW-3.0.0-Setup.exe, setup in "C:\wxWidgets"
5.Use TDM-GCC-64 build wxWidgets:
mingw32-make -f makefile.gcc BUILD=release SHARED=1
then, show error like this: recipe for target 'gcc_mswudll\basedll_any.o' failed
check forward, say "must be enabled with the -std=c++11 or -std=gnu++11 compiler options"
so open config.gcc, and edit CXXFLAGS ?= "-std=gnu++11" then go on
mingw32-make -f makefile.gcc BUILD=release SHARED=1
at last, build
mingw32-make -f makefile.gcc BUILD=release
6.Use CodeLite10.0 open its source code by LiteEditor
7.select Win_x86_release, all configuration are default, eg. CodeLiteIDE project:
Compiler options: -O2;$(shell wx-config --debug=no --cxxflags --unicode=yes);-Winvalid-pch
Link options: -s;$(shell wx-config --debug=no --unicode=yes --libs std,stc,propgrid);-Wl,--subsystem,windows -mwindows;-O2
8.Select CodeLite project, and build, then error come up:
D:/TDM-GCC-64/bin/g++.exe -shared -fPIC -o ../lib/gcc_lib/libcodeliteu.dll @"libCodeLite.txt" -L. -L../lib/gcc_lib -L../sdk/libssh/lib -lwxsqlite3u -lssh -s -mthreads -LC:/wxWidgets/lib/gcc_dll -lwxmsw30u_stc -lwxmsw30u_richtext -
lwxmsw30u_xrc -lwxmsw30u_aui -lwxmsw30u_html -lwxmsw30u_adv -lwxmsw30u_core -lwxbase30u_xml -lwxbase30u_net -lwxbase30u -lwxscintilla -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -
lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
D:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ../sdk/libssh/lib/libssh.dll.a when searching for -lssh
D:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ../sdk/libssh/lib/libssh.a when searching for -lssh
D:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ../sdk/libssh/lib/libssh.dll when searching for -lssh
D:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ../sdk/libssh/lib\libssh.a when searching for -lssh
D:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ../sdk/libssh/lib/libssh.dll.a when searching for -lssh
D:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ../sdk/libssh/lib/libssh.a when searching for -lssh
D:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ../sdk/libssh/lib/libssh.dll when searching for -lssh
D:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lssh
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [../lib/gcc_lib/libcodeliteu.dll] Error 1
At last I could not pass here. I miss something or make errors? What should I do? Look forward to reply