Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Sample example for control Galil motion controller Using Qt Programs
Forum Update on Monday, May 27th 2025

Sample example for control Galil motion controller Using Qt Programs

Scheduled Pinned Locked Moved Unsolved General and Desktop
19 Posts 5 Posters 5.0k 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.
  • V Offline
    V Offline
    Vijay Lamkane
    wrote on 19 Oct 2016, 06:11 last edited by
    #1

    i m new to this topic can any ane help me to send or receive data from galilPCI controller to Qt program and Qt program to Gallil Controller

    J 1 Reply Last reply 19 Oct 2016, 07:12
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 19 Oct 2016, 07:10 last edited by mrjj
      #2

      Hi
      Maybe from here ?
      http://www.galilmc.com/downloads/api
      Download the SDK for your platform.
      There should be samples for c++.
      It seems not to have direct support for Qt but the c++
      should work.

      The quick start seems good place to start ;)
      http://www.galilmc.com/learn/api-examples

      V 1 Reply Last reply 21 Oct 2016, 05:21
      4
      • V Vijay Lamkane
        19 Oct 2016, 06:11

        i m new to this topic can any ane help me to send or receive data from galilPCI controller to Qt program and Qt program to Gallil Controller

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 19 Oct 2016, 07:12 last edited by
        #3

        @Vijay-Lamkane said in Sample example for control Galil motion controller Using Qt Programs:

        galilPCI

        See here: http://www.galilmc.com/downloads/api
        You can use their gclib C library to access the controller. There are examples.
        See here how to use shared libraries with QtCreator: http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        V 1 Reply Last reply 21 Oct 2016, 05:26
        4
        • M mrjj
          19 Oct 2016, 07:10

          Hi
          Maybe from here ?
          http://www.galilmc.com/downloads/api
          Download the SDK for your platform.
          There should be samples for c++.
          It seems not to have direct support for Qt but the c++
          should work.

          The quick start seems good place to start ;)
          http://www.galilmc.com/learn/api-examples

          V Offline
          V Offline
          Vijay Lamkane
          wrote on 21 Oct 2016, 05:21 last edited by
          #4

          @mrjj
          thanks for yor kind reply , i already tried to this link for download and install gclib but url is not working .also i had gone through the getting url mannulay from their website and but it not works

          1 Reply Last reply
          0
          • J jsulm
            19 Oct 2016, 07:12

            @Vijay-Lamkane said in Sample example for control Galil motion controller Using Qt Programs:

            galilPCI

            See here: http://www.galilmc.com/downloads/api
            You can use their gclib C library to access the controller. There are examples.
            See here how to use shared libraries with QtCreator: http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html

            V Offline
            V Offline
            Vijay Lamkane
            wrote on 21 Oct 2016, 05:26 last edited by
            #5

            @jsulm thanks
            but i fail to downlod gclib library ,i used http://www.galilmc.com/sw/pub/all/doc/gclib/html/ubuntu.html
            but the url is not working

            1 Reply Last reply
            0
            • V Offline
              V Offline
              Vijay Lamkane
              wrote on 21 Oct 2016, 05:30 last edited by
              #6

              currently i am using Galil.h file
              but stuck here
              #include <QCoreApplication>
              #include <Galil.h>

              int main(int argc, char *argv[])
              {
              QCoreApplication a(argc, argv);

              Galil g("192.168.1.100");
              
              return a.exec();
              

              }

              gives errors like
              error: undefined reference to `Galil::Galil(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

              /home/system/Qt_Programs/galilConnection3/main.cpp:8: error: undefined reference to `Galil::~Galil()'

              how can i solve it

              J 1 Reply Last reply 21 Oct 2016, 05:35
              0
              • V Vijay Lamkane
                21 Oct 2016, 05:30

                currently i am using Galil.h file
                but stuck here
                #include <QCoreApplication>
                #include <Galil.h>

                int main(int argc, char *argv[])
                {
                QCoreApplication a(argc, argv);

                Galil g("192.168.1.100");
                
                return a.exec();
                

                }

                gives errors like
                error: undefined reference to `Galil::Galil(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

                /home/system/Qt_Programs/galilConnection3/main.cpp:8: error: undefined reference to `Galil::~Galil()'

                how can i solve it

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 21 Oct 2016, 05:35 last edited by
                #7

                @Vijay-Lamkane The URL is working for me.
                It is not enough to include the header file: you have to link against the library (*.so).

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                V 1 Reply Last reply 21 Oct 2016, 05:53
                0
                • J jsulm
                  21 Oct 2016, 05:35

                  @Vijay-Lamkane The URL is working for me.
                  It is not enough to include the header file: you have to link against the library (*.so).

                  V Offline
                  V Offline
                  Vijay Lamkane
                  wrote on 21 Oct 2016, 05:53 last edited by
                  #8

                  @jsulm

                  .pro file

                  QT += core
                  QT -= gui

                  TARGET = galilConnection3
                  CONFIG += console
                  CONFIG -= app_bundle

                  TEMPLATE = app

                  SOURCES += main.cpp

                  unix:!macx: LIBS += -L$$PWD/../../../../usr/lib/ -lGalil

                  INCLUDEPATH += $$PWD/../../../../usr/include
                  DEPENDPATH += $$PWD/../../../../usr/include

                  :-1: error: skipping incompatible /home/system/Qt_Programs/galilConnection3/../../../../usr/lib//libGalil.so when searching for -lGalil
                  :-1: error: skipping incompatible /usr/lib/../lib/libGalil.so when searching for -lGalil
                  :-1: error: cannot find -lGalil

                  J 1 Reply Last reply 21 Oct 2016, 06:00
                  0
                  • V Vijay Lamkane
                    21 Oct 2016, 05:53

                    @jsulm

                    .pro file

                    QT += core
                    QT -= gui

                    TARGET = galilConnection3
                    CONFIG += console
                    CONFIG -= app_bundle

                    TEMPLATE = app

                    SOURCES += main.cpp

                    unix:!macx: LIBS += -L$$PWD/../../../../usr/lib/ -lGalil

                    INCLUDEPATH += $$PWD/../../../../usr/include
                    DEPENDPATH += $$PWD/../../../../usr/include

                    :-1: error: skipping incompatible /home/system/Qt_Programs/galilConnection3/../../../../usr/lib//libGalil.so when searching for -lGalil
                    :-1: error: skipping incompatible /usr/lib/../lib/libGalil.so when searching for -lGalil
                    :-1: error: cannot find -lGalil

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 21 Oct 2016, 06:00 last edited by
                    #9

                    @Vijay-Lamkane Are you building for x86 or x86_64? Is the library built for x86 or x86_64? You can check calling

                    file /usr/lib/../lib/libGalil.so
                    

                    on the command line.
                    Post here what file /usr/lib/../lib/libGalil.so prints.

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    V 1 Reply Last reply 21 Oct 2016, 06:13
                    0
                    • V Offline
                      V Offline
                      Vijay Lamkane
                      wrote on 21 Oct 2016, 06:06 last edited by
                      #10

                      ile /usr/lib/../lib/libGalil.so

                      /usr/lib/../lib/libGalil.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=43f20bd8e5cbb6aff96819c8376887d030ac4f19, stripped

                      1 Reply Last reply
                      0
                      • J jsulm
                        21 Oct 2016, 06:00

                        @Vijay-Lamkane Are you building for x86 or x86_64? Is the library built for x86 or x86_64? You can check calling

                        file /usr/lib/../lib/libGalil.so
                        

                        on the command line.
                        Post here what file /usr/lib/../lib/libGalil.so prints.

                        V Offline
                        V Offline
                        Vijay Lamkane
                        wrote on 21 Oct 2016, 06:13 last edited by
                        #11

                        @jsulm
                        is there need of controller to be connected while testing the given program ?

                        J 1 Reply Last reply 21 Oct 2016, 06:18
                        0
                        • V Vijay Lamkane
                          21 Oct 2016, 06:13

                          @jsulm
                          is there need of controller to be connected while testing the given program ?

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 21 Oct 2016, 06:18 last edited by
                          #12

                          @Vijay-Lamkane For testing yes but not to build it. You're current problem isn't related to connected/not connected controller.

                          The lib is x86, so I guess you're building for x86_64, is that correct? In this case you should either build for x86 or check whether this library is available as x86_64.

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          V 1 Reply Last reply 21 Oct 2016, 11:19
                          0
                          • J jsulm
                            21 Oct 2016, 06:18

                            @Vijay-Lamkane For testing yes but not to build it. You're current problem isn't related to connected/not connected controller.

                            The lib is x86, so I guess you're building for x86_64, is that correct? In this case you should either build for x86 or check whether this library is available as x86_64.

                            V Offline
                            V Offline
                            Vijay Lamkane
                            wrote on 21 Oct 2016, 11:19 last edited by
                            #13

                            @jsulm
                            i had reinstalled lib file

                            #include <QCoreApplication>
                            #include <Galil.h>

                            #include <iostream> //cout
                            #include <sstream> //ostringstream istringstream
                            #include <vector>
                            #include <iostream>.h>
                            using namespace std;
                            int main(int argc, char *argv[])
                            {

                            //string address = "";
                            Galil g();
                            Galil *q;

                            cout << Galil::libraryVersion() << endl;

                            }

                            Output Error

                            /home/system/Qt_Programs/galilConnection3/main.cpp:17: error: undefined reference to `Galil::libraryVersionabi:cxx11'

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on 21 Oct 2016, 22:06 last edited by
                              #14

                              Hi,

                              Looks like you are not linking to the library.

                              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
                              • V Offline
                                V Offline
                                Vijay Lamkane
                                wrote on 22 Oct 2016, 03:53 last edited by
                                #15

                                after building only galilConnection4.pro file

                                :-1: error: No rule to make target 'galilConnection4.o'. Stop.

                                1 Reply Last reply
                                0
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on 22 Oct 2016, 19:44 last edited by
                                  #16

                                  What's in that .pro file ?

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

                                  V 1 Reply Last reply 23 Oct 2016, 03:39
                                  0
                                  • SGaistS SGaist
                                    22 Oct 2016, 19:44

                                    What's in that .pro file ?

                                    V Offline
                                    V Offline
                                    Vijay Lamkane
                                    wrote on 23 Oct 2016, 03:39 last edited by
                                    #17

                                    @SGaist

                                    QT += core
                                    QT -= gui

                                    TARGET = galilConnection3
                                    CONFIG += console
                                    CONFIG -= app_bundle

                                    TEMPLATE = app

                                    SOURCES += main.cpp

                                    unix:!macx: LIBS += -L$$PWD/../../../../usr/lib/ -lGalil

                                    INCLUDEPATH += $$PWD/../../../../usr/include
                                    DEPENDPATH += $$PWD/../../../../usr/include

                                    1 Reply Last reply
                                    0
                                    • SGaistS Offline
                                      SGaistS Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on 23 Oct 2016, 15:31 last edited by
                                      #18

                                      Where's galilConnection4.cpp ?

                                      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
                                      • N Offline
                                        N Offline
                                        nhat
                                        wrote on 24 Oct 2016, 07:22 last edited by
                                        #19

                                        thanks for sharing !

                                        [url=http://www.axaengineers.com/] Civil Engineering Outsourcing[/url]

                                        1 Reply Last reply
                                        0

                                        3/19

                                        19 Oct 2016, 07:12

                                        topic:navigator.unread, 16
                                        • Login

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