Hi Alexey, Ray et al,

This is my first post so first a big thank you all for the magnificent work on 
MSYS2.
A truly great achievement.

I work on Embedded Hardware/software and Radio.
My favourite IDE is Codelite so I was delighted to see that msys2 supports it 
now.
I have been working on adapting it for embedded use for the ARM Cortex M series 
architecture.

First up I am learning how to build Codelite using msys2.
The build is failing when linking sqlite3 with the following error
E:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
 cannot find -lsqlite3lib

I notice that the library is called "-lsqlite3lib".
Should this be "-lsqlite3" instead?

See the attached output from the build script.

Appreciate any help.

Best regards.

Noel. 

Noel Diviney Ayrenet Pty Ltd, 24 Wadhurst Drive, Boronia, Victoria 3155, 
Australia. Phone +61 3 9887 1130 email [email protected] or [email protected]
                                          
user@user-PC MINGW64 /home/noel/repos/1-mingw-w64-codelite-git
$ MINGW_INSTALLS=mingw64 makepkg-mingw -sLf
==> Making package: mingw-w64-x86_64-codelite-git 8.1.195.g793846d-1 (Thu, Oct 
01, 2015 11:19:07 AM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating codelite git repo...
Fetching origin
  -> Found include-winsock-header.patch
  -> Found mingw-use-wx-manifests.patch
  -> Found use-gnu-extensions.patch
  -> Found windows-headers-conflict.patch
==> Validating source files with md5sums...
    codelite ... Skipped
    include-winsock-header.patch ... Passed
    mingw-use-wx-manifests.patch ... Passed
    use-gnu-extensions.patch ... Passed
    windows-headers-conflict.patch ... Passed
==> Extracting sources...
  -> Creating working copy of codelite git repo...
Reset branch 'makepkg'
==> Starting pkgver()...
==> Starting prepare()...
patching file CodeLite/SocketAPI/clSocketBase.h
patching file LiteEditor/code_parser.rc
patching file CMakeLists.txt
Hunk #1 succeeded at 230 with fuzz 2 (offset 12 lines).
patching file Outline/outline_tab.cpp
Hunk #1 succeeded at 25 with fuzz 2.
patching file CodeLite/SocketAPI/clSocketBase.h
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- BUILD_DIRECTORY is set to 
E:/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite
-- OS name WIN
-- wx-config used is: /mingw64/bin/wx-config
-- wxWidgets version is: 3.0.2
-- LIBSSH_LIB is set to E:/msys64/mingw64/lib/libssh.dll.a
-- PLUGINS_DIR is set to 
E:/msys64/home/noel/repos/1-mingw-w64-codelite-git/pkg/mingw-w64-x86_64-codelite-git/mingw64/lib/codelite
-- Using wxAuiNotebook
-- Building in Release mode
-- CMAKE_INSTALL_DO_STRIP is TRUE
-- Executables will be written into 
E:/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite/bin
-- Shared Objects will be written into 
E:/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite/lib
-- Adding -DNDEBUG to definitions
-- ARCH 64
-- ARCH_NAME x86_64
-- LLVM llvm-config found at: E:/msys64/mingw64/bin/llvm-config.exe
-- Clang libs: -lclang  -lclangAnalysis -lclangARCMigrate -lclangAST 
-lclangASTMatchers -lclangBasic -lclangCodegen -lclangDriver 
-lclangDynamicASTMatchers -lclangEdit -lclangFormat -lclangFrontend 
-lclangIndex -lclangLex -lclangParse -lclangRewrite -lclangRewriteFrontend 
-lclangSema -lclangSerialization -lclangStaticAnalyzerCheckers 
-lclangStaticAnalyzerCore -lclangStaticAnalyzerFrontend -lclangTooling 
-lclangToolingCore
-- Found Clang: E:/msys64/mingw64/include
-- clang link line -Wl,--start-group -lclang  -lclangAnalysis -lclangARCMigrate 
-lclangAST -lclangASTMatchers -lclangBasic -lclangCodegen -lclangDriver 
-lclangDynamicASTMatchers -lclangEdit -lclangFormat -lclangFrontend 
-lclangIndex -lclangLex -lclangParse -lclangRewrite -lclangRewriteFrontend 
-lclangSema -lclangSerialization -lclangStaticAnalyzerCheckers 
-lclangStaticAnalyzerCore -lclangStaticAnalyzerFrontend -lclangTooling 
-lclangToolingCore -lLLVMLTO -lLLVMObjCARCOpts -lLLVMLinker -lLLVMBitWriter 
-lLLVMMIRParser -lLLVMDebugInfoPDB -lLLVMTableGen -lLLVMLineEditor -lLLVMOrcJIT 
-lLLVMIRReader -lLLVMAsmParser -lLLVMCppBackendCodeGen -lLLVMCppBackendInfo 
-lLLVMARMDisassembler -lLLVMARMCodeGen -lLLVMARMAsmParser -lLLVMARMDesc 
-lLLVMARMInfo -lLLVMARMAsmPrinter -lLLVMLibDriver -lLLVMOption 
-lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG 
-lLLVMAsmPrinter -lLLVMX86Desc -lLLVMMCDisassembler -lLLVMX86Info 
-lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMMCJIT -lLLVMDebugInfoDWARF 
-lLLVMPasses -lLLVMipo -lLLVMVectorize -lLLVMInterpreter -lLLVMExecutionEngine 
-lLLVMRuntimeDyld -lLLVMCodeGen -lLLVMTarget -lLLVMScalarOpts -lLLVMProfileData 
-lLLVMObject -lLLVMMCParser -lLLVMBitReader -lLLVMInstCombine 
-lLLVMInstrumentation -lLLVMTransformUtils -lLLVMipa -lLLVMMC -lLLVMAnalysis 
-lLLVMCore -lLLVMSupport -Wl,--end-group -LE:\msys64\mingw64/lib -lpsapi 
-lshell32 -lole32
-- clang include path E:/msys64/mingw64/include
-- clang binary
-- CL_SRC_ROOT is set to => 
E:/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite
-- PREFIX      is set to => 
E:/msys64/home/noel/repos/1-mingw-w64-codelite-git/pkg/mingw-w64-x86_64-codelite-git/mingw64
-- PREFIX/LIB_DIR is set to => 
E:/msys64/home/noel/repos/1-mingw-w64-codelite-git/pkg/mingw-w64-x86_64-codelite-git/mingw64/lib
-- PLUGINS_DIR is set to => 
E:/msys64/home/noel/repos/1-mingw-w64-codelite-git/pkg/mingw-w64-x86_64-codelite-git/mingw64/lib/codelit
                         e
-- wx-config   is set to => /mingw64/bin/wx-config
-- USE_SFTP is set to 1
-- Found libhunspell: E:/msys64/mingw64/lib/libhunspell.dll.a, 
E:/msys64/mingw64/include/hunspell
-- Internal Web Browser is enabled
-- CL_SRC_ROOT is set to 
E:/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite
-- Including plugin.cmake module
-- CMAKE_SOURCE_DIR is set to 
E:/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite
-- Configuring done
-- Generating done
-- Build files have been written to: 
E:/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite
/E/msys64/mingw64/bin/cmake.exe 
-H/E/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite 
-B/E/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite 
--check-build-system CMakeFiles/Makefile.cmake 0
/E/msys64/mingw64/bin/cmake.exe -E cmake_progress_start 
/E/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite/CMakeFiles 
/E/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory 
'/home/noel/repos/1-mingw-w64-codelite-git/src/codelite'
make -f sdk/wxsqlite3/CMakeFiles/wxsqlite3.dir/build.make 
sdk/wxsqlite3/CMakeFiles/wxsqlite3.dir/depend
make[2]: Entering directory 
'/home/noel/repos/1-mingw-w64-codelite-git/src/codelite'
/E/msys64/mingw64/bin/cmake.exe -E cmake_depends "MSYS Makefiles" 
/E/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite 
/E/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite/sdk/wxsqlite3 
/E/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite 
/E/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite/sdk/wxsqlite3 
/E/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite/sdk/wxsqlite3/CMakeFiles/wxsqlite3.dir/DependInfo.cmake
 --color=
make[2]: Leaving directory 
'/home/noel/repos/1-mingw-w64-codelite-git/src/codelite'
make -f sdk/wxsqlite3/CMakeFiles/wxsqlite3.dir/build.make 
sdk/wxsqlite3/CMakeFiles/wxsqlite3.dir/build
make[2]: Entering directory 
'/home/noel/repos/1-mingw-w64-codelite-git/src/codelite'
[  1%] Linking CXX shared library ../../bin/libwxsqlite3.dll
cd 
/E/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite/sdk/wxsqlite3 
&& /E/msys64/mingw64/bin/cmake.exe -E remove -f 
CMakeFiles/wxsqlite3.dir/objects.a
cd 
/E/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite/sdk/wxsqlite3 
&& /E/msys64/mingw64/bin/ar.exe cr CMakeFiles/wxsqlite3.dir/objects.a 
"CMakeFiles/wxsqlite3.dir/src/wxsqlite3.cpp.obj"
cd 
/E/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite/sdk/wxsqlite3 
&& /E/msys64/mingw64/bin/g++.exe   -march=x86-64 -mtune=generic -O2 -pipe  
-std=gnu++11 -O2 -fpermissive  -pipe -shared -o ../../bin/libwxsqlite3.dll 
-Wl,--out-implib,../../lib/libwxsqlite3.dll.a 
-Wl,--major-image-version,0,--minor-image-version,0 -Wl,--whole-archive 
CMakeFiles/wxsqlite3.dir/objects.a -Wl,--no-whole-archive  -L/mingw64/lib 
-L/mingw64/lib -pipe -Wl,--subsystem,windows -mwindows -lwx_mswu_core-3.0 
-lwx_baseu-3.0 
-L"E:/msys64/home/noel/repos/1-mingw-w64-codelite-git/src/codelite/lib" 
-lsqlite3lib -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 
-loleaut32 -luuid -lcomdlg32 -ladvapi32
E:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
 cannot find -lsqlite3lib
collect2.exe: error: ld returned 1 exit status
sdk/wxsqlite3/CMakeFiles/wxsqlite3.dir/build.make:93: recipe for target 
'bin/libwxsqlite3.dll' failed
make[2]: *** [bin/libwxsqlite3.dll] Error 1
make[2]: Leaving directory 
'/home/noel/repos/1-mingw-w64-codelite-git/src/codelite'
CMakeFiles/Makefile2:117: recipe for target 
'sdk/wxsqlite3/CMakeFiles/wxsqlite3.dir/all' failed
make[1]: *** [sdk/wxsqlite3/CMakeFiles/wxsqlite3.dir/all] Error 2
make[1]: Leaving directory 
'/home/noel/repos/1-mingw-w64-codelite-git/src/codelite'
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

user@user-PC MINGW64 
------------------------------------------------------------------------------
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to