Cmake build error [message #1847378] |
Mon, 25 October 2021 17:13 |
Naser Bekhiet Messages: 8 Registered: October 2021 |
Junior Member |
|
|
Hello,
I'm strugging with Cmake building for the Forte sorces v2.0.0 or older.
I dod the procedure as per the documentation with Cmake latest version "cmake-3.22.0-rc1-windows-x86_64.msi" with mingw64.
When I click generte I get this error:
detecting cxx compiler abi info - failed
I select the ruired oprion and generte again without errors.
When I try to make from the generted src folder under Bin/Win32 , the mae command start to generte until 50% and then stops with the following error:
[ 50%] Linking CXX static library libforte_stringlist_externals.a
[ 50%] Built target forte_stringlist_externals
[ 50%] Building CXX object src/CMakeFiles/FORTE_LITE.dir/arch/win32/serlayer/cwin32sercomlayer.cpp.obj
In file included from d:\forte_dev\forte_2.0.0\src\core\resource.h:18:0,
from d:\forte_dev\forte_2.0.0\src\core\device.h:16,
from D:/FORTE_dev/forte_2.0.0/src/core/utils/extevhandlerhelper.h:17,
from d:\forte_dev\forte_2.0.0\src\core\cominfra\comlayer.h:21,
from d:\forte_dev\forte_2.0.0\src\core\cominfra\serialcomlayerbase.h:16,
from D:/FORTE_dev/forte_2.0.0/src/arch/win32/serlayer/cwin32sercomlayer.h:16,
from D:/FORTE_dev/forte_2.0.0/src/arch/win32/serlayer/cwin32sercomlayer.cpp:12:
D:/FORTE_dev/forte_2.0.0/src/arch/win32/forte_sync.h:51:5: error: 'SRWLOCK' does not name a type
SRWLOCK mLock;
^~~~~~~
D:/FORTE_dev/forte_2.0.0/src/arch/win32/serlayer/cwin32sercomlayer.cpp: In member function 'virtual forte::com_infra::EComResponse CWin32SerComLayer::openSerialConnection(const CSerialComLayerBase<void*>::SSerialParameters&, void**)':
D:/FORTE_dev/forte_2.0.0/src/arch/win32/serlayer/cwin32sercomlayer.cpp:79:8: error: 'ERROR_FILE_NOT_FOUND' was not declared in this scope
if(ERROR_FILE_NOT_FOUND == GetLastError()){
^~~~~~~~~~~~~~~~~~~~
src/CMakeFiles/FORTE_LITE.dir/build.make:76: recipe for target 'src/CMakeFiles/FORTE_LITE.dir/arch/win32/serlayer/cwin32sercomlayer.cpp.obj' failed
MAKE[2]: *** [src/CMakeFiles/FORTE_LITE.dir/arch/win32/serlayer/cwin32sercomlayer.cpp.obj] Error 1
CMakeFiles/Makefile2:1700: recipe for target 'src/CMakeFiles/FORTE_LITE.dir/all' failed
MAKE[1]: *** [src/CMakeFiles/FORTE_LITE.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
MAKE: *** [all] Error 2
Please advice
Thanks
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03423 seconds