Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solved] Integrating and building WSO2 WSF/C++ using qmake
QtWS25 Last Chance

[Solved] Integrating and building WSO2 WSF/C++ using qmake

Scheduled Pinned Locked Moved Installation and Deployment
17 Posts 2 Posters 4.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    Did you add the necessary linking information ?

    e.g.

    @LIBS +=
    -Lpath_do_wso2
    -lwso2libname
    @

    ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • E Offline
      E Offline
      Elyas369
      wrote on last edited by
      #3

      Yes, I already specified that as you can see in my StackOverflow post.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        Check in what libraries the missing symbol can be found and add them to list

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • E Offline
          E Offline
          Elyas369
          wrote on last edited by
          #5

          Well the missing symbols are related to OMElement and OMText, both classes of the WSO2 framework, and they're supposed to be in wso2_wsf.lib
          Again, I successfully built the project both in Eclipse and in command line, but qmake just fails at it.

          For info, here are the command lines for Windows:
          @cl.exe /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "AXIS2_DECLARE_EXPORT" /D "AXIS2_SVR_MULTI_THREADED" /w /nologo /I %WSFCPP_HOME%\include /c hello.cpp@
          @link.exe /nologo /LIBPATH:%WSFCPP_HOME%\lib axutil.lib axiom.lib axis2_parser.lib axis2_engine.lib wso2_wsf.lib /DLL /OUT:hello.dll *.obj@

          1 Reply Last reply
          0
          • E Offline
            E Offline
            Elyas369
            wrote on last edited by
            #6

            Any ideas or suggestions?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #7

              Just to be on the safe side, are you sure you are using both libraries with the same architecture ? e.g. both are x86_64 ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • E Offline
                E Offline
                Elyas369
                wrote on last edited by
                #8

                There is only one version for the libraries. Plus, it compiles fine using Eclipse and/or command line. So it's definitely something else...

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  The question is still valid. Are you sure you are using the same architecture for Qt and WSO2. You could be have a 32bit Qt and a 64bit WSO2 or the other way around

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • E Offline
                    E Offline
                    Elyas369
                    wrote on last edited by
                    #10

                    Alright so I tried with Qt 32bits and it's building correctly now, thanks for the hint.
                    It's still weird though, I don't see why Qt 64bits doesn't get along so well with a 32 bits framework.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      It's not weird and has nothing to do with Qt. You can't mix libraries built for different architecture be it Qt, Boost or any other.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • E Offline
                        E Offline
                        Elyas369
                        wrote on last edited by
                        #12

                        Well, how come it compiled, linked and executed just fine using Eclipse and command lines?

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #13

                          Where you using Qt with eclipse ?

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0
                          • E Offline
                            E Offline
                            Elyas369
                            wrote on last edited by
                            #14

                            Nope not at all, there's no need for Qt to run the WSO2 samples.

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #15

                              The you have your answer: the samples are configured to build with the current WSO2 framework, which is 32bit, eclipse was configured to build it in 32bit.

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 Reply Last reply
                              0
                              • E Offline
                                E Offline
                                Elyas369
                                wrote on last edited by
                                #16

                                Alright I see, thanks again!

                                1 Reply Last reply
                                0
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #17

                                  You're welcome !

                                  Since everything is working now, please update the the thread title prepending [solved] so other forum users may know a solution has been found :)

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  1 Reply Last reply
                                  0

                                  • Login

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • Users
                                  • Groups
                                  • Search
                                  • Get Qt Extensions
                                  • Unsolved