Sample Runtime with Eclipse

Dear Sir, Can I get steps to run Sample Runtime with eclipse on AXC F1152. Agenda is to run simple c++ Program on AXC F 2152 Regards Chetan

Hello Chetan, I’ll clarify your question by development and give you an answer asap. Best Regards Eduard

Hello Chetan, yesterday we talked about, how to use the SDK to build a simple C++ program for a PLCnext control device, in Eclipse. As discussed, It must be possible to create a project with Template “Consumable Lbrary” and adapt the CMakeLists.txt to compile the project as executable:

                                             1. Add a main() program in project
                                             2. disable the command "add_library"
                                             3. Add the command "add_executable"

################# create target ######################################################################## create target #######################################################
set (WILDCARD_SOURCE *.cpp)set (WILDCARD_HEADER *.h *.hpp *.hxx)
file(GLOB_RECURSE Headers CONFIGURE_DEPENDS src/${WILDCARD_HEADER})
file(GLOB_RECURSE PublicHeaders CONFIGURE_DEPENDS include/${WILDCARD_HEADER})
file(GLOB_RECURSE Sources CONFIGURE_DEPENDS src/${WILDCARD_SOURCE})
#add_library(TestProject SHARED ${Headers} ${PublicHeaders} ${Sources})
add_executable(TestProject ${Headers} ${Sources}) Best Regards Eduard