Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Raspberry forte 's debugging problem
Raspberry forte 's debugging problem [message #1818712] Tue, 24 December 2019 11:34 Go to next message
joy woo is currently online joy wooFriend
Messages: 79
Registered: May 2019
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 &quot;/usr/local/software/forte/bin/src/Makefile&quot; VERBOSE=1 forte" />
<CompileFile command="/usr/bin/make -f &quot;/usr/local/software/forte/bin/src/Makefile&quot; VERBOSE=1 &quot;$file&quot;" />
<Clean command="/usr/bin/make -f &quot;/usr/local/software/forte/bin/src/Makefile&quot; VERBOSE=1 clean" />
<DistClean command="/usr/bin/make -f &quot;/usr/local/software/forte/bin/src/Makefile&quot; VERBOSE=1 clean" />
</MakeCommands>
</Target>

[Updated on: Tue, 24 December 2019 11:41]

Report message to a moderator

Re: Raspberry forte 's debugging problem [message #1818713 is a reply to message #1818712] Tue, 24 December 2019 11:53 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 932
Registered: January 2014
Senior Member
I haven't worked with codeblocks yet. However if you are invoking CMake I would recommend to set the CMAKE_BUILD_TYPE to DEBUG (all caps). With that I normally activate all the debug options.
Re: Raspberry forte 's debugging problem [message #1818715 is a reply to message #1818713] Tue, 24 December 2019 12:53 Go to previous messageGo to next message
joy woo is currently online joy wooFriend
Messages: 79
Registered: May 2019
Member
God, that cost me one day to solve it, Mr. Zoitl, you are always the iron man :)
Re: Raspberry forte 's debugging problem [message #1818738 is a reply to message #1818715] Thu, 26 December 2019 10:09 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 932
Registered: January 2014
Senior Member
I'm happy that I could help.
Previous Topic:Problems to compile FORTE+Modbus
Next Topic:Subscrible on raspberry
Goto Forum:
  


Current Time: Mon Jan 27 10:52:20 GMT 2020

Powered by FUDForum. Page generated in 0.01598 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top