Giter VIP home page Giter VIP logo

Comments (3)

yoh-there avatar yoh-there commented on August 23, 2024

OK, after a nights sleep and some poking around on the interpipes I think I have solved my problem BUT I am stressing that I am not sure instaling th qt5-default package is the best thing to do. After

sudo apt-get install qtdeclarative5-dev libqt5serialport5-dev

The command

qmake

ran fine. However

make

After doing a lot of great compiling aborted on

ui_scriptingwindow.h:23:32: fatal error: Qsci/qsciscintilla.h: No such file or directory
#include "Qsci/qsciscintilla.h

Qsciscintilla unfortunately needs to be downloaded and compiled. Head over to https://www.riverbankcomputing.com/software/qscintilla/download download the tar.gz of the production version (right now 2.9.1) and extract it somewhere. Head over where you extracted it and then to folder Qt4Qt5, there type

qmake qscintilla.pro
make
sudo make install

Head back to where you cloned Savvycan and type

qmake
make

Now the linker balked about ldev not being there. OK, so

sudo apt-get install libudev-dev

And try again. Oops......

scriptingwindow.o: In function ScriptingWindow::recompileScript()': scriptingwindow.cpp:(.text+0x264): undefined reference toQsciScintilla::text() const'
scriptingwindow.o: In function ScriptingWindow::ScriptingWindow(QVector<CANFrame> const*, QWidget*)': scriptingwindow.cpp:(.text+0xfb2): undefined reference toQsciLexerJavaScript::QsciLexerJavaScript(QObject_)'
scriptingwindow.o: In function ScriptingWindow::saveScript()': scriptingwindow.cpp:(.text+0x21f9): undefined reference toQsciScintilla::text() const'
scriptingwindow.o: In function Ui_ScriptingWindow::setupUi(QDialog_)': scriptingwindow.cpp:(.text._ZN18Ui_ScriptingWindow7setupUiEP7QDialog[_ZN18Ui_ScriptingWindow7setupUiEP7QDialog]+0x3f6): undefined reference to QsciScintilla::QsciScintilla(QWidget*)'

After which I gave up. Seems like some QScintilla things are missing. Bleeding edge needed?

from savvycan.

yoh-there avatar yoh-there commented on August 23, 2024

OK OK, so I didn't give up. After adding

LIBS += -lqscintilla2

to SavvyCAN.pro it all compiles and runs. Can I kindly suggest to add that in the repositry @collin80 ?

So quick condensed version to get & compile SavvyCan on a virgin Ubuntu 14.04 LTS

sudo apt-get install qt5-default qtdeclarative5-dev libqt5serialport5-dev libudev-dev
[download and extract QScintilla (see above for link), assume it is extracted in QScintilla-gpl-2.9.1]
cd ~/QScintilla-gpl-2.9.1/Qt4Qt5
qmake qscintilla.pro
make
sudo make install
[Optionally remove ~/QScintilla-gpl-2.9.1]
cd ~
git clone https://github.com/collin80/SavvyCAN.git
cd SavvyCAN
qmake
make

Now run SavvyCAN

./SavvyCAN

from savvycan.

collin80 avatar collin80 commented on August 23, 2024

Thanks, yes, a better explanation of how to compile is a very good idea. I'll get your text added to the readme file.

from savvycan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.