×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Client on Windows, server on Linux?

  • Posts: 41
  • Thank you received: 7
It's the wrong path ;),
not
/home/oleh/PixInsightINDIclient/module/linux/g++/x64/Release
but
/home/oleh/PCL//module/linux/g++/x64/Release"

The compiler tries to write the shared library to the directory /home/oleh/PCL//module/linux/g++/x64/Release" but it does not exists.
8 years 9 months ago #4388

Please Log in or Create an account to join the conversation.

  • Posts: 314
  • Thank you received: 95
Ok. I changed the line in makefile-x64 in directory /home/oleh/PixInsightINDIclient/module/linux/g++:
OBJ_DIR="/home/oleh/PCL//module/linux/g++/x64/Release"

and run commands:
cd /home/oleh/PixInsightINDIclient/module/linux/g++
make -f makefile-x64

and got this:

oleh@oleh:~/PixInsightINDIclient/module/linux/g++$ make -f makefile-x64
g++ -m64 -fPIC -Wl,-z,noexecstack -Wl,-O1 -shared -L"/home/oleh/PCL/lib" -L"/home/oleh/PCL/bin" -o "/home/oleh/PCL//module/linux/g++/x64/Release"/PixInsightINDIclient-pxm.so ./x64/Release/BaseClientImpl.o ./x64/Release/CCDFrameInstance.o ./x64/Release/CCDFrameInterface.o ./x64/Release/CCDFrameProcess.o ./x64/Release/IINDIProperty.o ./x64/Release/INDIPropertyBuilder.o ./x64/Release/PixInsightINDIInstance.o ./x64/Release/PixInsightINDIInterface.o ./x64/Release/PixInsightINDIModule.o ./x64/Release/PixInsightINDIParameters.o ./x64/Release/PixInsightINDIProcess.o ./x64/Release/PixInsightINDIclient.o ./x64/Release/PropertyNode.o ./x64/Release/base64.o ./x64/Release/basedevice.o ./x64/Release/indicom.o ./x64/Release/indiproperty.o ./x64/Release/lilxml.o -lz -lpthread -lPCL-pxi
/usr/bin/ld: cannot find -lPCL-pxi
collect2: error: ld returned 1 exit status
makefile-x64:99: recipe for target '"/home/oleh/PCL//module/linux/g++/x64/Release"/PixInsightINDIclient-pxm.so' failed
make: *** ["/home/oleh/PCL//module/linux/g++/x64/Release"/PixInsightINDIclient-pxm.so] Error 1
oleh@oleh:~/PixInsightINDIclient/module/linux/g++$
You can try my open project Astronomy Linux
Last edit: 8 years 9 months ago by Oleg.
8 years 9 months ago #4389

Please Log in or Create an account to join the conversation.

  • Posts: 314
  • Thank you received: 95
oleh@oleh:~$ cat ~/.bashrc | grep PCL
# PCL path
export PCLLIBDIR64=/home/oleh/PCL/lib
export PCLINCDIR=/home/oleh/PCL/include
export PCLBINDIR64=/home/oleh/PCL/bin
export PCLSRCDIR=/home/oleh/PCL/src
export PCLDIR=/home/oleh/PCL/
You can try my open project Astronomy Linux
8 years 9 months ago #4390

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 7
The linker does not find the libPCL-pxi.a library. The PCLLIBDIR64 has to be set to the path to this library
Try export PCLLIBDIR64=/home/oleh/PCL/lib/linux/x64
8 years 9 months ago #4391

Please Log in or Create an account to join the conversation.

  • Posts: 314
  • Thank you received: 95

oleh@oleh:~$ cd /home/oleh/PixInsightINDIclient/module/linux/g++
oleh@oleh:~/PixInsightINDIclient/module/linux/g++$ make -f makefile-x64
g++ -m64 -fPIC -Wl,-z,noexecstack -Wl,-O1 -shared -L"/home/oleh/PCL/lib/linux/x64" -L"/home/oleh/PCL/bin" -o "/home/oleh/PCL//module/linux/g++/x64/Release"/PixInsightINDIclient-pxm.so ./x64/Release/BaseClientImpl.o ./x64/Release/CCDFrameInstance.o ./x64/Release/CCDFrameInterface.o ./x64/Release/CCDFrameProcess.o ./x64/Release/IINDIProperty.o ./x64/Release/INDIPropertyBuilder.o ./x64/Release/PixInsightINDIInstance.o ./x64/Release/PixInsightINDIInterface.o ./x64/Release/PixInsightINDIModule.o ./x64/Release/PixInsightINDIParameters.o ./x64/Release/PixInsightINDIProcess.o ./x64/Release/PixInsightINDIclient.o ./x64/Release/PropertyNode.o ./x64/Release/base64.o ./x64/Release/basedevice.o ./x64/Release/indicom.o ./x64/Release/indiproperty.o ./x64/Release/lilxml.o -lz -lpthread -lPCL-pxi
lto1: fatal error: bytecode stream generated with LTO version 2.2 instead of the expected 3.0
compilation terminated.
lto-wrapper: g++ returned 1 exit status
/usr/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status
makefile-x64:99: recipe for target '"/home/oleh/PCL//module/linux/g++/x64/Release"/PixInsightINDIclient-pxm.so' failed
make: *** ["/home/oleh/PCL//module/linux/g++/x64/Release"/PixInsightINDIclient-pxm.so] Error 1
oleh@oleh:~/PixInsightINDIclient/module/linux/g++$
You can try my open project Astronomy Linux
8 years 9 months ago #4392

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 7
can you check the gcc version? Looks like that your gcc version is newer than the one which was used to compile the PCL library ...
8 years 9 months ago #4393

Please Log in or Create an account to join the conversation.

  • Posts: 314
  • Thank you received: 95
gcc version 4.9.1 (Ubuntu 4.9.1-16ubuntu6)
You can try my open project Astronomy Linux
8 years 9 months ago #4394

Please Log in or Create an account to join the conversation.

  • Posts: 314
  • Thank you received: 95
Hurrah! I've solved this problem!

Where I must to move files from directory /home/oleh/PixInsightINDIclient/javascript?

oleh@oleh:~$ cd /home/oleh/PixInsightINDIclient/javascript
oleh@oleh:~/PixInsightINDIclient/javascript$ ls
AstronomicalCatalogs.jsh INDIFrame.js INDITelescope.js
ImageSolver.js INDIProperties-gui.jsh SearchCoordinatesDialog.js
IndiClient.jsh INDISynch.js WCSmetadata.jsh
You can try my open project Astronomy Linux
Last edit: 8 years 9 months ago by Oleg.
8 years 9 months ago #4396

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 7
Great!You don't need the javascript files for the INDI client module. To load the plugin you have to install the PixInsightINDIclient module via

1. PROCESS -> Modules->Install modules ...
2. Choose the directory where the PixInsightINDIclient-pxm.so shared libraray was copied to (in your cas /home/oleh/PCL/bin )
3. Press search, the new module should be found now
4. Press install and check the PixInsight Console

If the module was correctly installed you should see in the PROCESS menu a new entry INDI under which you can find two new processes: INDIClient and CCDFrame. Use INDIClient to connect to the indiserver and control INDI properties. Use CCDFrame to aquire CCD images.
Klaus
The following user(s) said Thank You: Oleg
8 years 9 months ago #4397

Please Log in or Create an account to join the conversation.

  • Posts: 314
  • Thank you received: 95
Button "Start Exposure" doesn't work in INDI CCD Controller.
It doesn't react at my clicking.
You can try my open project Astronomy Linux
The following user(s) said Thank You: Klaus Kretzschmar
8 years 9 months ago #4398
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 7
Ah, cool, you made it. ;) ,OK, something I've to fix, thanks for remembering me.

You need another environment variable TMPDIR pointing to a directory where the transfered image is stored. Unfortunately you have to pu it into the PixInsight.sh start script, which is usually stored in /opt/PixInsight/bin/ :

$ cat /opt/PixInsight/bin/PixInsight.sh
#!/bin/bash
appname=`basename $0 | sed s,\.sh$,,`
dirname=`dirname $0`
if [ "${dirname:0:1}" != "/" ]; then
dirname=$PWD/$dirname
fi
LD_LIBRARY_PATH=$dirname/lib:$dirname
export LD_LIBRARY_PATH
export TMPDIR=/home/klaus/data/tmp
$dirname/$appname $*

Just add the TMPDIR env variable (red line) and start PixInsight again ...
The following user(s) said Thank You: Oleg
8 years 9 months ago #4399

Please Log in or Create an account to join the conversation.

  • Posts: 314
  • Thank you received: 95
Yes, it works!
See my first test:
You can try my open project Astronomy Linux
The following user(s) said Thank You: Klaus Kretzschmar
Last edit: 8 years 9 months ago by Oleg.
8 years 9 months ago #4400
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.749 seconds