Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Compiling NetXMS

Compiling NetXMS

Scheduled Pinned Locked Moved Support
8 Posts 2 Posters 33.8k 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.
  • S
    S
    Sch.Donat
    wrote on last edited by
    #1

    Hi!

    I have 2 questions regarding compiling NetXMS.

    The first question is about compiling the 2.2.10 version NetXMS management console in Eclipse 4.7 (Oxygen) for RCP and RAP Developers. I tried to install the Eclipse addons listed in eclipse_addons.txt, but Target Managment Terminal doesn't have 3.5 version anymore, so I installed a more recent version, but it doesn't have org.eclipse.tm.terminal_VERSION.jar file. I had some problems with the Birt Charting as well, but I could install that from the oxygen site.
    There are a few imports that cannot be resolved:

    • org.eclipse.ui.internal.presentations.defaultpresentation
    • org.eclipse.ui.internal.presentations.util
    • org.eclipse.ui.internal.tweaklets.WorkbenchImplementation
    • org.eclipse.ui.presentations

    I tried to get the last from a previous Eclipse version, but without a success.
    I could build the 3.0.M0 console wit the above setup.

    The second question is building the server with the make command. The Administrator Guide says run configuration script  ./configure -with-server --with-pgsql--with-agent but there is no such script (I found reconf script witch seems to work fine and configure.ac but it fails to run in bash and sh with syntax error on line 7). I tried to run make nonetheless, but it says "No target secified and no makefile found". If I specify the Makefile.am (with -f switch) it says "./tools/updatetag.sh" so I'm guessing it runs that script, but doesn't build NetXMS. If I specify a target, i.e. install, it says "No rule to make target install". I have no experience with make, I don't know that I'm missing.

    So my questions would be, is it still possibly to build the 2.2.10 management console? How can I build the server?

    Best regards,
    Sch.Donat

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi,

      for compiling desktop UI in 2.2 branch you need Eclipse 3.8. UI version 3.0 (master branch) already switched to Eclipse Photon. For TM use the following: "TM Terminal Control SDK" from "Target Management Project 4.4". Update site: http://download.eclipse.org/tm/terminal/updates/4.4milestones/20180611.

      For server build reconf script should be run first. Please provide exact error you are getting - but most likely you miss one of the required tools. Make sure that you have installed: automake, autoconf, libtool. For the build itself you'll also need flex and bison. If you provide Linux distribution you are using I can post full list of necessary packages to be installed.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • S
        S
        Sch.Donat
        wrote on last edited by
        #3

        Hi!

        I have Ubuntu server 18 LTS.
        I installed the mentioned packages, I ran reconf script, then configure srcipt (when the script had an error I installed the packages it missed), and now if I run make, it terminates with error jni.h not found (see picture). I have JDK 11 installed.
        I haven't looked into eclipse yet.

        Best regards,
        Sch.Donat


        configure.png

        1 Reply Last reply
        0
        • S
          S
          Sch.Donat
          wrote on last edited by
          #4

          Hi!

          I setup Eclipse 3.8 and I could export NetXMS console with nxmc.product, but when I try to run nxmc.exe, it terminates with exception (see attached log).
          I'm doing this on Windows 10, and I already have a NetXMS (with server and console; 2.2.10 version) installation, maybe that could be cousing this?

          Best regards,
          Sch.Donat


          1542220648177.log

          1 Reply Last reply
          0
          • V
            V
            Victor Kirhenshtein
            wrote on last edited by
            #5

            Hi,

            it says that application cannot be found. Check plugins directory of exported application - do you have all org.netxms.* plugins here?

            Best regards,
            Victor

            1 Reply Last reply
            0
            • S
              S
              Sch.Donat
              wrote on last edited by
              #6

              Hi!

              I only have these org.netxms.* plugins:

              • org.netxms.gef4.zest.core_2.0.6.jar
              • org.netxms.gef4.zest.jface_2.0.6.jar
              • org.netxms.gef4.zest.layouts_2.0.6.jar
              • org.netxms.nebula.widgets.gallery_0.5.3.201811141928.jar
              • org.netxms.ui.base_2.2.10.jar
              • org.netxms.ui.eclipse.clientlibrary_2.2.10.jar

              Compared to my NetXMS installation I miss a lot. Maybe I haven't imported the projects into eclipse properly?

              Best regards,
              Sch.Donat

              1 Reply Last reply
              0
              • S
                S
                Sch.Donat
                wrote on last edited by
                #7

                Hi

                Before I imported the whole netxms-eclipse directory into workspace and eclipse considered it to be 1 project (I think this was the problem). Now I imported the projects one-by-one under netxms-eclipse (scripting directory was not recognizned as a project by eclipse) and I have errors about TM Terminal: "bundle org.eclipse.tm.terminal cannot be resolved" and I don't have org.eclipse.tm.terminal_VERSION.jar in eclipse/plugins, only a few org.eclipse.tm.terminal.SOMETHING_VERSION.jar. I have installed "TM Terminal Control, SDK" from "TM Terminal Main Features" (update suite http://download.eclipse.org/tm/terminal/updates/4.4milestones/20180611). Do I need some older versions?
                I attached eclipse error list, maybe something else is cousing the error?

                Best regards,
                Sch.Donat


                Errorlist.txt

                1 Reply Last reply
                0
                • S
                  S
                  Sch.Donat
                  wrote on last edited by
                  #8

                  Hi!

                  I successfully compiled Netxms console in eclipse. I had to rename org.eclipse.tm.terminal to org.eclipse.tm.terminal.control in bundle imports and I missed a project while importing into eclipse and one file got somehow overwritten. 😄

                  Thank you very much for your help, Victor!

                  Best regards,
                  Sch.Donat

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  Powered by NodeBB Contributors
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups