Unsolved Sample example for control Galil motion controller Using Qt Programs
-
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
-
@jsulm
is there need of controller to be connected while testing the given program ? -
@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.
-
@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'
-
Hi,
Looks like you are not linking to the library.
-
after building only galilConnection4.pro file
:-1: error: No rule to make target 'galilConnection4.o'. Stop.
-
What's in that .pro file ?
-
QT += core
QT -= guiTARGET = galilConnection3
CONFIG += console
CONFIG -= app_bundleTEMPLATE = app
SOURCES += main.cpp
unix:!macx: LIBS += -L$$PWD/../../../../usr/lib/ -lGalil
INCLUDEPATH += $$PWD/../../../../usr/include
DEPENDPATH += $$PWD/../../../../usr/include -
Where's galilConnection4.cpp ?
-
thanks for sharing !