<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CODESYS Control Extension package on QtCreator</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4f501defaa/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4f501defaa/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/4f501defaa/</id><updated>2022-05-31T15:23:09.454000Z</updated><subtitle>Recent posts to CODESYS Control Extension package on QtCreator</subtitle><entry><title>CODESYS Control Extension package on QtCreator</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4f501defaa/?limit=25#6543" rel="alternate"/><published>2022-05-31T15:23:09.454000Z</published><updated>2022-05-31T15:23:09.454000Z</updated><author><name>mondinmr</name><uri>https://forge.codesys.com/u/mondinmr/</uri></author><id>https://forge.codesys.combf70c8688c16a90007876c4784f340f3aa6d3cb0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I created a .pro file in QtCreator to simplify cross compilation and component developing for CODESYS Extendion Package SL.&lt;/p&gt;
&lt;p&gt;This can be used simply replacing TARGET variable to develop and compile inside QtCreator.&lt;br/&gt;
File must live in source library path, where makefile is created by the SDK.&lt;/p&gt;
&lt;p&gt;I tested it on direct AMD64 and cross ARM64, in 4.4 ARM 64Bit SL and 4.4.1 Linux SL and it's Working.&lt;/p&gt;
&lt;p&gt;This is a base version of this file useful to start a new library.&lt;/p&gt;
&lt;p&gt;I tested it with a C++ wrapper and many Qt Framework direct call from runtime.&lt;br/&gt;
I also tested creating a QCoreApplication in a separated thread and tested it with Qt event loop. &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;QT += core
QT -= gui

TARGET = ADVExternalFunction
TEMPLATE = lib

DEFINES += $${upper($$TARGET)}_LIBRARY
DEFINES += DEP_H=\\\"$${TARGET}Dep.h\\\"

CONFIG += $$lower($$TARGET)_lib
QMAKE_LFLAGS += -rdynamic
QMAKE_CFLAGS += -c -fPIC -g -O0 -Wall -Wextra -Wno-unused -DDEP_H="$${TARGET}Dep.h"

system(m4 -I$$PWD/../ExtensionSDK/m4 Exports.m4 - &lt;span class="err"&gt;&amp;lt;&lt;/span&gt; $${TARGET}Itf.m4 &amp;gt; out/$${TARGET}Itf.h)

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

INCLUDEPATH += out/ \
               ../ExtensionSDK/include

SOURCES += \
    ../ExtensionSDK/src/CmpFrame.c \
    $${TARGET}.c

HEADERS += \
    out/$${TARGET}Dep.h
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry></feed>