NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: Compiling NetXMS  (Read 543 times)

Sch.Donat

  • Newbie
  • *
  • Posts: 8
    • View Profile
Compiling NetXMS
« on: November 13, 2018, 09:58:30 pm »

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
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6473
    • View Profile
Re: Compiling NetXMS
« Reply #1 on: November 14, 2018, 02:35:42 pm »

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
 
Logged

Sch.Donat

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Compiling NetXMS
« Reply #2 on: November 14, 2018, 06:52:12 pm »

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
Logged

Sch.Donat

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Compiling NetXMS
« Reply #3 on: November 14, 2018, 08:55:49 pm »

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
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6473
    • View Profile
Re: Compiling NetXMS
« Reply #4 on: November 15, 2018, 11:05:27 am »

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
Logged

Sch.Donat

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Compiling NetXMS
« Reply #5 on: November 15, 2018, 12:09:57 pm »

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
Logged

Sch.Donat

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Compiling NetXMS
« Reply #6 on: November 15, 2018, 03:38:23 pm »

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
Logged

Sch.Donat

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Compiling NetXMS
« Reply #7 on: November 19, 2018, 10:25:58 am »

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. :D

Thank you very much for your help, Victor!

Best regards,
Sch.Donat
Logged