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. /usr/lib/x86_64-linux-gnu/libdl.so:-1: error: error adding symbols: DSO missing from command line

/usr/lib/x86_64-linux-gnu/libdl.so:-1: error: error adding symbols: DSO missing from command line

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 2.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.
  • Naveen_DN Offline
    Naveen_DN Offline
    Naveen_D
    wrote on last edited by
    #1

    Hello everyone,

    While compling my Qt code I am getting this error..can anyone tell what is this error and what i need to do?

    error: /home/ubuntu/bin/julius-4.2.2/SimpleJulius/.//libjulius.a(plugin.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
    /usr/lib/x86_64-linux-gnu/libdl.so:-1: error: error adding symbols: DSO missing from command line
    error: collect2: error: ld returned 1 exit status

    My code is as follows,

    #-------------------------------------------------
    #
    # Project created by QtCreator 2016-10-28T11:51:01
    #
    #-------------------------------------------------
    
    QT       += core gui
    
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    
    TARGET = SimpleJulius
    TEMPLATE = app
    
    LIBS += -lpg
    
    SOURCES += main.cpp\
            juliuswidget.cpp
    
    HEADERS  += juliuswidget.h \
        julius/juliuslib.h \
        julius/callback.h \
        julius/config.h \
        julius/jconf.h \
        julius/julius.h \
        julius/recog.h \
        julius/acconfig.h \
        julius/beam.h \
        julius/define.h \
        julius/extern.h \
        julius/global.h \
        julius/graph.h \
        julius/jfunc.h \
        julius/misc.h \
        julius/multi-gram.h \
        julius/plugin.h \
        julius/search.h \
        julius/trellis.h \
        julius/useropt.h \
        julius/wchmm.h
    
    unix:!macx: LIBS += -L$$PWD/./ -ljulius
    
    INCLUDEPATH += $$PWD/.
    DEPENDPATH += $$PWD/.
    
    unix:!macx: PRE_TARGETDEPS += $$PWD/./libjulius.a
    
    
    

    .h file

    #ifndef JULIUSWIDGET_H
    #define JULIUSWIDGET_H
    
    #include <QWidget>
    #include <QPushButton>
    #include <QDebug>
    #include <QVBoxLayout>
    #include <QFile>
    #include <QTextEdit>
    #include <QDir>
    
    
    extern "C" {
    
    #include "julius/juliuslib.h"
    
    }
    
    class Juliuswidget : public QWidget
    {
        Q_OBJECT
    
    public:
        Juliuswidget(QWidget *parent = 0);
        ~Juliuswidget();
    
    private:
        QPushButton *m_Startbtn;
        QVBoxLayout *m_MainLyt;
    
    
    
    public slots:
        void VstartRecordingAudio();
    };
    
    #endif // JULIUSWIDGET_H
    
    

    .cpp file

    #include "juliuswidget.h"
    
    Juliuswidget::Juliuswidget(QWidget *parent)
        : QWidget(parent)
    {
        m_Startbtn=  new QPushButton("Start Recording");
        m_MainLyt =new QVBoxLayout;
    
        m_MainLyt->addWidget(m_Startbtn);
    
        this->setLayout(m_MainLyt);
    
        connect(m_Startbtn,SIGNAL(clicked()),this,SLOT(VstartRecordingAudio()));
    }
    
    
    void Juliuswidget::VstartRecordingAudio()
    {
        qDebug()<<"Started Recording"<<endl;
    
        QFile* file = new QFile();
        QDir::setCurrent("/home/ubuntu/bin/julius-4.2.2/SampleTest");
        file->setFileName("julian.jconf");
    
        file->open(QIODevice::ReadWrite);
    
        QString strFile1(file->readAll());
        QByteArray b_Array= strFile1.toLatin1();
        file->close();
    
        char *JconfFile=b_Array.data();
    //    qDebug()<<"file loaded is"<<JconfFile<<endl;
        Jconf *jconf=j_config_load_file_new(JconfFile);
        qDebug()<<"jconf file is"<<jconf<<endl;
    }
    
    Juliuswidget::~Juliuswidget()
    {
    
    }
    

    Thanks

    Naveen_D

    1 Reply Last reply
    0

    • Login

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