plc4x-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christofer Dutz <christofer.d...@c-ware.de>
Subject C++ Driver-Base build working --> Was: Re: Push possible?
Date Tue, 26 Mar 2019 15:57:23 GMT
Ok ...

So I managed to get the code into a shape that I was able to build it with Maven and CLion
...

Chris


Am 25.03.19, 15:42 schrieb "Christofer Dutz" <christofer.dutz@c-ware.de>:

    That's already done ;-)
    Was the first thing I did ... 
    
    Chris
    
    Am 25.03.19, 15:38 schrieb "Markus Sommer" <sommer@isb-fn.de>:
    
        Hi Chris,
        
        yes the sources were pushed without pom.xml. We haven't done this yet because we are
still working on the assignment of the sources to the DLLs.
        
        Please push the Pom.xml, I would then make the changes for the pom.
        
        Best regards
        
        Markus
        
        Mit freundlichen Grüßen
        
        Markus Sommer
        Geschäftsführer
        
        isb innovative software businesses GmbH
        Otto-Lilienthal-Straße 2
        D 88046 Friedrichshafen
        
        Tel          +49 (0) 7541 3834-14
        Fax         +49 (0) 7541 3834-20
        Mobil    +49 (0) 171 537 8437
        
        Mail to  sommer@isb-fn.de
        http://www.isb-fn.de
        
        Geschäftsführer: Markus Sommer, Thomas Zeler
        Registergericht: Amtsgericht Ulm HRB-Nr. 631624
        Important Note: This e-mail and any attachments are confidential, may contain trade
secrets and may well also be legally privileged or otherwise protected from disclosure. If
you have received it in error, you are on notice of its status. Please notify us immediately
by reply e-mail and then delete this e-mail and any attachment from your system. If you are
not the intended recipient please understand that you must not copy this e-mail or any attachments
or disclose the contents to any other person. 
        Thank you.
        
        
        
        -----Ursprüngliche Nachricht-----
        Von: Christofer Dutz <christofer.dutz@c-ware.de> 
        Gesendet: Montag, 25. März 2019 15:10
        An: dev@plc4x.apache.org
        Betreff: Re: Push possible?
        
        Hi Markus,
        
        I noticed your code-drop had no pom.xml whatsoever so I took the liberty of creating
the maven pom files as well as the cmake files for building your latest additions with Maven.
        Unfortunately I'm getting errors. I am not that deep into C++, so maybe you know what
to do:
        
        Here's the output of the CLion build:
        
        [  2%] Building CXX object CMakeFiles/api.dir/Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/connection/ChannelFactory.cpp.o
        [  5%] Building CXX object CMakeFiles/api.dir/Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/connection/AbstractPlcConnection.cpp.o
        [  8%] Building CXX object CMakeFiles/api.dir/Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/connection/DefaultPlcFieldHandler.cpp.o
        [ 11%] Building CXX object CMakeFiles/api.dir/Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/connection/PlcFieldHandler.cpp.o
        [ 13%] Building CXX object CMakeFiles/api.dir/Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/events/ConnectedEvent.cpp.o
        [ 16%] Building CXX object CMakeFiles/api.dir/Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/events/ConnectEvent.cpp.o
        [ 19%] Building CXX object CMakeFiles/api.dir/Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/messages/items/BaseDefaultFieldItem.cpp.o
        [ 22%] Building CXX object CMakeFiles/api.dir/Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/messages/items/DefaultBigDecimalFieldItem.cpp.o
        In file included from /Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/connection/PlcFieldHandler.cpp:20:
        In file included from /Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/connection/PlcFieldHandler.h:30:
        /Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/connection/../messages/items/BaseDefaultFieldItem.h:115:54:
error: member reference base type 'BaseDefaultFieldItem<T> *' is not a structure or
union
                                                                        inline BaseDefaultFieldItem(T*
values) { this._values = values; }
                                                                                         
                       ~~~~^~~~~~~~ In file included from /Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/connection/DefaultPlcFieldHandler.cpp:20:
        In file included from /Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/connection/DefaultPlcFieldHandler.h:33:
        In file included from /Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/connection/PlcFieldHandler.h:30:
        /Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/connection/../messages/items/BaseDefaultFieldItem.h:115:54:
error: member reference base type 'BaseDefaultFieldItem<T> *' is not a structure or
union
                                                                        inline BaseDefaultFieldItem(T*
values) { this._values = values; }
                                                                                         
                       ~~~~^~~~~~~~
        1 error generated.
        1 error generated.
        make[3]: *** [CMakeFiles/api.dir/Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/connection/PlcFieldHandler.cpp.o]
Error 1
        make[3]: *** Waiting for unfinished jobs....
        make[3]: *** [CMakeFiles/api.dir/Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/connection/DefaultPlcFieldHandler.cpp.o]
Error 1 In file included from /Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/messages/items/BaseDefaultFieldItem.cpp:20:
        /Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/messages/items/BaseDefaultFieldItem.h:115:54:
error: member reference base type 'BaseDefaultFieldItem<T> *' is not a structure or
union
                                                                        inline BaseDefaultFieldItem(T*
values) { this._values = values; }
                                                                                         
                       ~~~~^~~~~~~~
        1 error generated.
        make[3]: *** [CMakeFiles/api.dir/Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/messages/items/BaseDefaultFieldItem.cpp.o]
Error 1 In file included from /Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/messages/items/DefaultBigDecimalFieldItem.cpp:20:
        In file included from /Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/messages/items/DefaultBigDecimalFieldItem.h:24:
        /Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/messages/items/BaseDefaultFieldItem.h:115:54:
error: member reference base type 'BaseDefaultFieldItem<T> *' is not a structure or
union
                                                                        inline BaseDefaultFieldItem(T*
values) { this._values = values; }
                                                                                         
                       ~~~~^~~~~~~~
        1 error generated.
        make[3]: *** [CMakeFiles/api.dir/Users/christofer.dutz/Projects/Apache/PLC4X/plc4cpp/protocols/driver-bases/base/src/main/cpp/org/apache/plc4x/cpp/base/messages/items/DefaultBigDecimalFieldItem.cpp.o]
Error 1
        make[2]: *** [CMakeFiles/api.dir/all] Error 2
        make[1]: *** [CMakeFiles/api.dir/rule] Error 2
        make: *** [api] Error 2
        
        
        You should be able to perform the build by going into the plc4x root directory and
executing the following command:
        
        ./mvnw -f plc4cpp/pom.xml clean install
        
        Or 
        
        mvnw -f plc4cpp/pom.xml clean install
        
        on Windows.
        
        Would be great if you could check out what's going on there.
        
        Chris
        
        
        
        
        Am 25.03.19, 13:10 schrieb "Markus Sommer" <sommer@isb-fn.de>:
        
            At the next push I use github.
            
            Markus
            
            Mit freundlichen Grüßen
            
            Markus Sommer
            Geschäftsführer
            
            isb innovative software businesses GmbH
            Otto-Lilienthal-Straße 2
            D 88046 Friedrichshafen
            
            Tel          +49 (0) 7541 3834-14
            Fax         +49 (0) 7541 3834-20
            Mobil    +49 (0) 171 537 8437
            
            Mail to  sommer@isb-fn.de
            http://www.isb-fn.de
            
            Geschäftsführer: Markus Sommer, Thomas Zeler
            Registergericht: Amtsgericht Ulm HRB-Nr. 631624
            Important Note: This e-mail and any attachments are confidential, may contain
trade secrets and may well also be legally privileged or otherwise protected from disclosure.
If you have received it in error, you are on notice of its status. Please notify us immediately
by reply e-mail and then delete this e-mail and any attachment from your system. If you are
not the intended recipient please understand that you must not copy this e-mail or any attachments
or disclose the contents to any other person. 
            Thank you.
            
            
            
            -----Ursprüngliche Nachricht-----
            Von: Christofer Dutz <christofer.dutz@c-ware.de> 
            Gesendet: Montag, 25. März 2019 12:54
            An: dev@plc4x.apache.org
            Betreff: Re: Push possible?
            
            Could you try pushing it to github instead?
            
            Chris
            
            Am 25.03.19, 12:49 schrieb "Markus Sommer" <sommer@isb-fn.de>:
            
                Hi Chris,
                
                I pushed the sources.
                
                I got the following error in the Git window for sending the notification mail
                
                remote: Syncing refs/heads/develop...
                remote: Error: 'NoneType' object has no attribute 'decode'
                remote: Sending notification emails to: ['"commits@plc4x.apache.org" <commits@plc4x.apache.org>']
                remote: Error running hook: /x1/gitbox/hooks/post-receive.d/01-sync-repo.py
                To https://gitbox.apache.org/repos/asf/incubator-plc4x.git
                cdb2e6d0f..74a23ad51  develop -> develop
                
                Best regards
                
                Markus 
                
                Mit freundlichen Grüßen
                
                Markus Sommer
                Geschäftsführer
                
                isb innovative software businesses GmbH
                Otto-Lilienthal-Straße 2
                D 88046 Friedrichshafen
                
                Tel          +49 (0) 7541 3834-14
                Fax         +49 (0) 7541 3834-20
                Mobil    +49 (0) 171 537 8437
                
                Mail to  sommer@isb-fn.de
                http://www.isb-fn.de
                
                Geschäftsführer: Markus Sommer, Thomas Zeler
                Registergericht: Amtsgericht Ulm HRB-Nr. 631624
                Important Note: This e-mail and any attachments are confidential, may contain
trade secrets and may well also be legally privileged or otherwise protected from disclosure.
If you have received it in error, you are on notice of its status. Please notify us immediately
by reply e-mail and then delete this e-mail and any attachment from your system. If you are
not the intended recipient please understand that you must not copy this e-mail or any attachments
or disclose the contents to any other person. 
                Thank you.
                
                
                
                -----Ursprüngliche Nachricht-----
                Von: Christofer Dutz <christofer.dutz@c-ware.de> 
                Gesendet: Montag, 25. März 2019 12:38
                An: dev@plc4x.apache.org
                Betreff: Re: Push possible?
                
                Feel free to push right now ...
                
                Chris
                
                Am 25.03.19, 12:34 schrieb "Markus Sommer" <sommer@isb-fn.de>:
                
                    Hi Chris,
                    
                    no problem, just let me know when I can push.
                    
                    Best regards
                    
                    Markus
                    
                    Mit freundlichen Grüßen
                    
                    Markus Sommer
                    Geschäftsführer
                    
                    isb innovative software businesses GmbH
                    Otto-Lilienthal-Straße 2
                    D 88046 Friedrichshafen
                    
                    Tel          +49 (0) 7541 3834-14
                    Fax         +49 (0) 7541 3834-20
                    Mobil    +49 (0) 171 537 8437
                    
                    Mail to  sommer@isb-fn.de
                    http://www.isb-fn.de
                    
                    Geschäftsführer: Markus Sommer, Thomas Zeler
                    Registergericht: Amtsgericht Ulm HRB-Nr. 631624
                    Important Note: This e-mail and any attachments are confidential, may
contain trade secrets and may well also be legally privileged or otherwise protected from
disclosure. If you have received it in error, you are on notice of its status. Please notify
us immediately by reply e-mail and then delete this e-mail and any attachment from your system.
If you are not the intended recipient please understand that you must not copy this e-mail
or any attachments or disclose the contents to any other person. 
                    Thank you.
                    
                    
                    
                    -----Ursprüngliche Nachricht-----
                    Von: Christofer Dutz <christofer.dutz@c-ware.de> 
                    Gesendet: Montag, 25. März 2019 09:26
                    An: dev@plc4x.apache.org
                    Betreff: Re: Push possible?
                    
                    Hi Markus
                    
                    They are still working on it … but I would say „Yes” … no use
in stalling the project too much.
                    So please just do pushes … I’ll try to stay on the topic to help infra
produce any situation they need to figure out what’s going wrong.
                    
                    And it would be particularly great, if you could add yourself to the “src/site/asciidoc/development/team.adoc”
:-)
                    
                    Chris
                    
                    Von: Markus Sommer <sommer@isb-fn.de>
                    Antworten an: "dev@plc4x.apache.org" <dev@plc4x.apache.org>
                    Datum: Montag, 25. März 2019 um 08:53
                    An: "dev@plc4x.apache.org" <dev@plc4x.apache.org>
                    Betreff: Push possible?
                    
                    Hello Chris,
                    
                    ist Push now possible?
                    
                    Best regards
                    
                    Markus
                    
                    Mit freundlichen Grüßen
                    
                    Markus Sommer
                    Geschäftsführer
                    
                    isb innovative software businesses GmbH
                    Otto-Lilienthal-Straße 2
                    D 88046 Friedrichshafen
                    
                    Tel          +49 (0) 7541 3834-14
                    Fax         +49 (0) 7541 3834-20
                    Mobil    +49 (0) 171 537 8437
                    
                    Mail to  sommer@isb-fn.de<mailto:sommer@isb-fn.de>
                    http://www.isb-fn.de<http://www.isb-fn.de/>
                    
                    Geschäftsführer: Markus Sommer, Thomas Zeler
                    Registergericht: Amtsgericht Ulm HRB-Nr. 631624 Important Note: This e-mail
and any attachments are confidential, may contain trade secrets and may well also be legally
privileged or otherwise protected from disclosure. If you have received it in error, you are
on notice of its status. Please notify us immediately by reply e-mail and then delete this
e-mail and any attachment from your system. If you are not the intended recipient please understand
that you must not copy this e-mail or any attachments or disclose the contents to any other
person.
                    Thank you.
                    
                    [cid:image001.png@01D028E3.34F96070]
                    
                    
                
                
            
            
        
        
    
    

Mime
View raw message