rockowitz / ddcui

Graphical user interface for ddcutil - control monitor settings
http://www.ddcutil.com
GNU General Public License v2.0
147 stars 2 forks source link

Hint for release 0.0.3alpha: How to install new ddcutil version (compile error "ddca_free_feature_metadata not declared") #6

Open aryoda opened 5 years ago

aryoda commented 5 years ago

This is not a bug report but a "first aid" hint for build error (if you forgot to update the required ddcutil version).

@rockowitz I suggest to close this issue + maybe extend the building.md file with alink to how to build ddcutil...

Symptom:

If you compile using the Qt Creator .pro file you will see an compiler error:

src/nongui/feature_value.cpp:50:4: error: ‘ddca_free_feature_metadata’ was not declared in this scope

Reason

The new ddcui version 0.0.3alpha is based on a new ddcutil version:

This ddcui release reflects API changes in ddcutil release 0.9.3 and requires that release. https://github.com/rockowitz/ddcui/releases/tag/v0.0.3

The C include files must be installed "globally" (e. g. in /usr/local/include), also the shared library...

See the release notes for the API changes: http://www.ddcutil.com/c_api_93/

To solve the problem

rockowitz commented 5 years ago

Thanks for the post. Even though the requirement for ddcutil 0.9.3 is stated, some folks may miss that and simply try to build ddcui 0.0.3 and see what breaks. The files for ddcui 0.0.3 are fixed at this point, but I'll consider your comments for BUILDING.md in 0.0.4. It will also likely find a home as I add ddcui documentation to www.ddcutil.com

Sanford

On 11/26/2018 03:32 PM, aryoda wrote:

This is not a bug report but a "first aid" hint for build error (if you forgot to update the required |ddcutil| version).

@rockowitz https://github.com/rockowitz I suggest to close this issue + maybe extend the |building.md| file with alink to how to build |ddcutil| http://www.ddcutil.com/building/...

Symptom:

If you compile using the Qt Creator |.pro| file you will see an compiler error:

src/nongui/feature_value.cpp:50:4: error:
‘ddca_free_feature_metadata’ was not declared in this scope

Reason

The new |ddcui| version 0.0.3alpha is based on a new |ddcutil| version:

This ddcui release reflects API changes in ddcutil release 0.9.3
and requires that release.
https://github.com/rockowitz/ddcui/releases/tag/v0.0.3

The C include files must be installed "globally" (e. g. in |/usr/local/include|), also the shared library...

See the release notes for the API changes: http://www.ddcutil.com/c_api_93/

To solve the problem
  • install the new version of |ddcutil| according to the installation instructions at http://www.ddcutil.com/building/ (e. g. via git clone)
  • Don't forget to |sudo make install| to install the library + include files in |/usr/local/include|

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rockowitz/ddcui/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/ANhsbuY_el-5D3Qg3izlqZ_KSadGJcseks5uzE_tgaJpZM4Yzxu9.