Raspberry forte 's debugging problem [message #1818712] |
Tue, 24 December 2019 11:34 |
joy woo Messages: 198 Registered: May 2019 |
Senior Member |
|
|
I generated codeblocks unix project under raspberry,
everything is fine, but i couldn't debug,
1. i have tried to set the cmake_CXX_FLAGS_DEBUG to "-g" in cmake-gui,
2. i have tried to check "Producing debugging symbols (-g)" in codeblocks,
3. i have tried to set option to "-g" in .cbp file manually
as the below, but none of the three could work
actually i can see -DFORTE_COMPILATION,-DLOGDEBUG ...
and so on in build log with codeblocks, but the -g is missing
<Target title="forte">
<Option output="/usr/local/software/forte/bin/src/forte" prefix_auto="1" extension_auto="1" />
<Option working_dir="/usr/local/software/forte/bin/src" />
<Option object_output="debug/" />
<Option type="2" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
<Add option="-DFORTE_COMPILATION" />
<Add option="-DLOGDEBUG" />
<Add option="-DFORTE_SUPPORT_QUERY_CMD" />
<Add option="-DFORTE_SUPPORT_BOOT_FILE" />
<Add option="-DFORTE_SUPPORT_MONITORING" />
<Add option="-DFORTE_USE_64BIT_DATATYPES" />
<Add option="-DFORTE_USE_REAL_DATATYPE" />
<Add option="-DFORTE_USE_LREAL_DATATYPE" />
<Add option="-DFORTE_SUPPORT_ARRAYS" />
<Add option="-DFORTE_USE_WSTRING_DATATYPE" />
<Add option="-DFORTE_UNICODE_SUPPORT" />
<Add option="-DFORTE_SUPPORT_CUSTOM_SERIALIZABLE_DATATYPES" />
<Add option="-DFORTE_ENABLE_GENERATED_SOURCE_CPP" />
<Add directory="/usr/arm-linux-gnueabihf/include/c++/4.8.4" />
<Add directory="/usr/arm-linux-gnueabihf/include/c++/4.8.4/arm-linux-gnueabihf" />
<Add directory="/usr/arm-linux-gnueabihf/include/c++/4.8.4/backward" />
<Add directory="/usr/include" />
<Add directory="/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/include" />
<Add directory="/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/include" />
<Add directory="/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/include-fixed" />
<Add directory="/usr/local/software/forte/bin" />
<Add directory="/usr/local/software/forte/bin/src_gen" />
<Add directory="/usr/local/software/forte/src/." />
<Add directory="/usr/local/software/forte/src/arch" />
<Add directory="/usr/local/software/forte/src/arch/posix" />
<Add directory="/usr/local/software/forte/src/core" />
<Add directory="/usr/local/software/forte/src/core/cominfra" />
<Add directory="/usr/local/software/forte/src/core/datatypes" />
<Add directory="/usr/local/software/forte/src/core/io" />
<Add directory="/usr/local/software/forte/src/core/utils" />
<Add directory="/usr/local/software/forte/src/modules/modbus-ng" />
<Add directory="/usr/local/software/forte/src/modules/mqtt_paho" />
<Add directory="/usr/local/software/forte/src/modules/opc_ua" />
<Add directory="/usr/local/software/forte/src/stdfblib" />
<Add directory="/usr/local/software/forte/src/stdfblib/events" />
</Compiler>
<MakeCommands>
<Build command="/usr/bin/make -f "/usr/local/software/forte/bin/src/Makefile" VERBOSE=1 forte" />
<CompileFile command="/usr/bin/make -f "/usr/local/software/forte/bin/src/Makefile" VERBOSE=1 "$file"" />
<Clean command="/usr/bin/make -f "/usr/local/software/forte/bin/src/Makefile" VERBOSE=1 clean" />
<DistClean command="/usr/bin/make -f "/usr/local/software/forte/bin/src/Makefile" VERBOSE=1 clean" />
</MakeCommands>
</Target>
[Updated on: Tue, 24 December 2019 11:41] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04149 seconds