Parameters of my environment:

  • Windows 7
  • qbs 1.5.1
  • g++ 4.9.2
  • стандартный cmd

Here is a link to the library itself on the git: https://github.com/alekseysidorov/vreen

At first, I tried to compile, as written here: https://habrahabr.ru/post/157081/ I quote:

 $ git clone git://github.com/gorthauer/vreen.git $ cd vreen $ git submodule update --init $ mkdir build $ cd build $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr $ make $ make install (sudo) 

But cmake says that there is no CMakeLists.txt, which is expected. I looked at the very gita, how to compile - I quote:

Dependencies:

C++11 compliant compiler qbs 1.4 - http://doc.qt.io/qbs/ Qt 5.2.0 - http://qt.io

Compilation:

 qbs install --clean-install-root --install-root $LOCAL_PREFIX release 

I have Qt 5.7.0 . I used qbs from the tools folder of my Qt 5.7.0 . I inserted the copy / paste into the compilation line and pressed enter, being in the vreen folder (the root folder of the project downloaded from the github. qbs informed me the following:

 ERROR: No profile specified and no default profile exists. To set a default profile, run 'qbs config defaultProfile <profile name>'. 

I followed his recommendations and did a qbs config defaultProfile prof

 ERROR: Unknown or empty profile 'prof'. 

Maybe someone faced this problem, or am I doing something wrong? Help compile libu.

    1 answer 1

    In order to specify Qbs the location of Qt build or the required version of Qt, they must be registered. For the version it will look like this:

     qbs setup-qt /usr/bin/qmake myqt 

    The above command will create a profile myqt , which you can then use:

     qbs profile:myqt 

    then make it the default profile and optionally set the build path:

     qbs config defaultProfile myqt qbs install --clean-install-root --install-root $LOCAL_PREFIX release 

    PS: True, I get an error:

    RROR: /home/qq/vreen/vreen.qbs:9:43 Value assigned to property 'vreen_version_major' does not have type 'string'.