Coder Social home page Coder Social logo

Comments (4)

Ho-Ro avatar Ho-Ro commented on June 8, 2024

I don't use QtCreator, but maybe this helps: OpenHantek/openhantek#203

from openhantek6022.

apollotsantos avatar apollotsantos commented on June 8, 2024

How do you compile the code? I was just using QtCreator because I saw it has being used in the original OpenHantek page.

from openhantek6022.

Ho-Ro avatar Ho-Ro commented on June 8, 2024

For Linux it is just the easy way, open the source files in an editor of choice, in my case kate (Linux / KDE editor) or kdevelop (Linux / KDE IDE).
And then as written in the build instructions:

mkdir build
cd build
cmake ../
make -j2

For Windows (as well as MacOSX and Linux for deployment) I don't build anything on my own, it is done by the CI tools appveyor (Windows) and travis (Linux, MacOSX), please have a look at the script and the build log for Windows. The configuration is managed by the tool CMake (as in the original openhantek).

set qtpath64="C:\Qt\5.11\msvc2015_64"
set arch64=x64
set dir64=build_x64
md %dir64%
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %arch64%
cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_PREFIX_PATH=%qtpath64% -DCMAKE_BUILD_TYPE=%configuration% -B%dir64% -H.

from openhantek6022.

Ho-Ro avatar Ho-Ro commented on June 8, 2024

QtCreator: Do not import the project, just open the project, i.e. the CmakeLists.txt in the project's top directory. QtCreator will parse this file and create a project. Select the build directory accordingly and you're done.

Quick googling found this page: How to import CMake project in Qt Creator.

A quick test on my debian system looked similar but I didn't have time to follow this topic as I don't want to use another IDE/editor - I'm just happy with console / mc / mcedit for small single file edits, kate for larger edits on multiple files and kdevelop as an IDE with project integration; the last two share the same editor component with identical look'n'feel.
Nevertheless the import into kdevelop ran smoothly and reflects all classes and declaration-definition links etc. Also makefile creation (automatically via cmake ../ and build (after defining make -j2 as build command) work. git and github integration was not yet tested.

from openhantek6022.

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.