Bug 426385 - Unable to build Syntax Highlighting Engine on debian 10
Summary: Unable to build Syntax Highlighting Engine on debian 10
Status: RESOLVED INTENTIONAL
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: framework (show other bugs)
Version: 5.73.0
Platform: Debian stable Linux
: NOR major
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-10 20:45 UTC by Prajith
Modified: 2020-09-29 20:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
attachment-10188-0.html (1.53 KB, text/html)
2020-09-13 17:59 UTC, Prajith
Details
attachment-26170-0.html (1.49 KB, text/html)
2020-09-14 03:59 UTC, Prajith
Details
attachment-8230-0.html (911 bytes, text/html)
2020-09-14 11:40 UTC, Prajith
Details
image.png (41.10 KB, image/png)
2020-09-14 11:58 UTC, Prajith
Details
image.png (21.37 KB, image/png)
2020-09-14 11:58 UTC, Prajith
Details
attachment-25367-0.html (3.49 KB, text/html)
2020-09-14 19:15 UTC, Prajith
Details
attachment-26699-0.html (1.87 KB, text/html)
2020-09-14 19:58 UTC, Prajith
Details
attachment-10338-0.html (1.22 KB, text/html)
2020-09-15 03:50 UTC, Prajith
Details
attachment-2208-0.html (1.82 KB, text/html)
2020-09-28 16:28 UTC, Prajith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Prajith 2020-09-10 20:45:43 UTC
SUMMARY

I tried building Syntax Highlighting Engine after cloning from https://invent.kde.org/frameworks/syntax-highlighting. The cmake version is 5.54.0. After modifying the CMakeLists.txt file in the line
find_package(ECM 5.XX.X ...), I am getting qt version related issue.

STEPS TO REPRODUCE
1. clone from https://invent.kde.org/frameworks/syntax-highlighting
2. cmake 

I installed cmake and qt5 using 

sudo apt-get install cmake
sudo apt-get install qt5-default


OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 5.11.2

ADDITIONAL INFORMATION
Comment 1 Christoph Cullmann 2020-09-11 08:05:35 UTC
Hmm, actually, it would make more sense to build ECM, too, instead of patching the version.

Which Qt version do you use? We support Qt >= 5.12.
Comment 2 Prajith 2020-09-13 17:59:48 UTC
Created attachment 131603 [details]
attachment-10188-0.html

I use qt 5.11.3. This I have installed using apt-get on debian 10. This
seems to be the latest version for debian 10.

Thanks,
Prajith

On Fri, 11 Sep 2020, 13:35 Christoph Cullmann, <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=426385
>
> Christoph Cullmann <cullmann@kde.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |cullmann@kde.org
>
> --- Comment #1 from Christoph Cullmann <cullmann@kde.org> ---
> Hmm, actually, it would make more sense to build ECM, too, instead of
> patching
> the version.
>
> Which Qt version do you use? We support Qt >= 5.12.
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 3 Christoph Cullmann 2020-09-13 18:17:38 UTC
Then I am sorry, we need at least Qt 5.12 at the moment.

You could try to check out an older release that doesn't require this.

Greetings
Christoph
Comment 4 Prajith 2020-09-14 03:59:10 UTC
Created attachment 131623 [details]
attachment-26170-0.html

Hi Christoph,

How to get the older release? Where can I download the older release from?

Thanks,
Prajith

On Sun, Sep 13, 2020 at 11:47 PM Christoph Cullmann <
bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=426385
>
> Christoph Cullmann <cullmann@kde.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>              Status|REPORTED                    |RESOLVED
>          Resolution|---                         |INTENTIONAL
>
> --- Comment #3 from Christoph Cullmann <cullmann@kde.org> ---
> Then I am sorry, we need at least Qt 5.12 at the moment.
>
> You could try to check out an older release that doesn't require this.
>
> Greetings
> Christoph
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 5 Christoph Feck 2020-09-14 10:02:55 UTC
If you clone a git repository, you are also getting the complete history. There you can use 'git checkout' to switch to any branch. 'git branch -a' lists them.
Comment 6 Prajith 2020-09-14 11:40:13 UTC
Created attachment 131630 [details]
attachment-8230-0.html

Thanks Christoph

On Mon, Sep 14, 2020 at 3:32 PM Christoph Feck <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=426385
>
> --- Comment #5 from Christoph Feck <cfeck@kde.org> ---
> If you clone a git repository, you are also getting the complete history.
> There
> you can use 'git checkout' to switch to any branch. 'git branch -a' lists
> them.
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 7 Prajith 2020-09-14 11:58:45 UTC
Created attachment 131633 [details]
image.png

Hi Christoph,

Sorry to disturb you. As you suggested, I tried performing cmake on all the
branches listed using 'git branch -a'. It seems none of branches is
supporting 5.11.3 qt.

[image: image.png]

I tried all the above branches and all are giving the same error:

[image: image.png]
Is there any other alternate way.

Thanks for your patience.

Regards,
Prajith


On Mon, Sep 14, 2020 at 5:09 PM Prajith kumar <prajith936@gmail.com> wrote:

> Thanks Christoph
>
> On Mon, Sep 14, 2020 at 3:32 PM Christoph Feck <bugzilla_noreply@kde.org>
> wrote:
>
>> https://bugs.kde.org/show_bug.cgi?id=426385
>>
>> --- Comment #5 from Christoph Feck <cfeck@kde.org> ---
>> If you clone a git repository, you are also getting the complete history.
>> There
>> you can use 'git checkout' to switch to any branch. 'git branch -a' lists
>> them.
>>
>> --
>> You are receiving this mail because:
>> You reported the bug.
>
>
Comment 8 Prajith 2020-09-14 11:58:45 UTC
Created attachment 131634 [details]
image.png
Comment 9 Christoph Cullmann 2020-09-14 12:30:24 UTC
Sorry, the repository only has tags, you can see a list e.g. here

https://invent.kde.org/frameworks/syntax-highlighting/-/tags
Comment 10 Prajith 2020-09-14 19:15:50 UTC
Created attachment 131646 [details]
attachment-25367-0.html

Hi Christoph,

I am trying to build 'syntax-highlighting-v5.65.0-rc1' which requires qt
5.11.0 version but on performing cmake, I am getting below error:

-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
CMake Error at CMakeLists.txt:15 (include):
  include could not find load file:

    KDEClangFormat


-- Found Perl: /usr/local/apps/bat/perl/perl-5.20.2-mw-026/bin/perl (found
version "5.20.2")
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
CMake Error at CMakeLists.txt:141 (install):
  install FILES given no DESTINATION!


-- The following features have been enabled:

 * SYNTAX_RESOURCE, Bundle the syntax definition files inside the library
as resources

-- The following OPTIONAL packages have been found:

 * Qt5PrintSupport
   Example application.
 * Qt5Widgets
   Example application.

-- The following REQUIRED packages have been found:

 * ECM (required version >= 5.54.0)
 * Qt5Core
 * Qt5Network
 * Qt5Test
 * Qt5Gui
 * Qt5 (required version >= 5.11.0), <http://qt-project.org/>
 * Perl
   Auto-generate PHP syntax definition files.
 * Qt5LinguistTools

-- The following features have been disabled:

 * FEATURE_NO_STANDARD_PATHS, Skip lookup of syntax and theme definitions
in QStandardPaths locations
 * QCH, API documentation in QCH format (for e.g. Qt Assistant, Qt Creator
& KDevelop)

-- The following OPTIONAL packages have not been found:

 * Qt5XmlPatterns
   Compile-time validation of syntax definition files.

CMake Error at CMakeLists.txt:148 (kde_clang_format):
  Unknown CMake command "kde_clang_format".


-- Configuring incomplete, errors occurred!

How to resolve this error? Before building 'syntax-highlighting', do we
need to perform any prerequisite steps?

Thanks,
Prajith
.


On Mon, Sep 14, 2020 at 6:00 PM Christoph Cullmann <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=426385
>
> --- Comment #9 from Christoph Cullmann <cullmann@kde.org> ---
> Sorry, the repository only has tags, you can see a list e.g. here
>
> https://invent.kde.org/frameworks/syntax-highlighting/-/tags
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 11 Christoph Cullmann 2020-09-14 19:18:07 UTC
You need to install the matching version of extra-cmake-modules.

https://invent.kde.org/frameworks/extra-cmake-modules
Comment 12 Prajith 2020-09-14 19:58:38 UTC
Created attachment 131650 [details]
attachment-26699-0.html

Hi,

I am running into an issue while trying to install ECM. I followed below
steps:

1)git clone https://invent.kde.org/frameworks/extra-cmake-modules.git
2)cd extra-cmake-modules/
3)mkdir build, cd build
4)cmake -DCMAKE_INSTALL_PREFIX=/usr ..
5) make, sudo make install

I am getting below error:

CMake Error at cmake_install.cmake:172 (file):
  file failed to open for writing (Permission denied):

   ecm-folder-path/extra-cmake-modules/build/install_manifest.txt

I did 'ls -latr' on the file 'install_manifest.txt'. It says No such file
or directory.

Can you help me in resolving this issue.

Thanks,
Prajith


On Tue, Sep 15, 2020 at 12:48 AM Christoph Cullmann <
bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=426385
>
> --- Comment #11 from Christoph Cullmann <cullmann@kde.org> ---
> You need to install the matching version of extra-cmake-modules.
>
> https://invent.kde.org/frameworks/extra-cmake-modules
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 13 Christoph Cullmann 2020-09-14 20:21:07 UTC
Hi,

sorry, but I think that gets more and more out of scope of a bug report.

I think you should consult the 

https://community.kde.org/Get_Involved/development

documentation on how to setup your development environment.

There are more pointers on this page, where to get more information.

I hope this helps!
Comment 14 Prajith 2020-09-15 03:50:39 UTC
Created attachment 131666 [details]
attachment-10338-0.html

Thanks, I'll check it out.

On Tue, 15 Sep 2020, 01:51 Christoph Cullmann, <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=426385
>
> --- Comment #13 from Christoph Cullmann <cullmann@kde.org> ---
> Hi,
>
> sorry, but I think that gets more and more out of scope of a bug report.
>
> I think you should consult the
>
> https://community.kde.org/Get_Involved/development
>
> documentation on how to setup your development environment.
>
> There are more pointers on this page, where to get more information.
>
> I hope this helps!
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 15 Prajith 2020-09-28 16:28:17 UTC
Created attachment 131990 [details]
attachment-2208-0.html

Hi Christoph,

I need some information regarding the usage of syntax highlighting engine

1)I want to use the engine in my QT application. Does this require setting
up KDE development environment?
2)Is QT is the only prerequisite?
3)Can I configure from where the engine has to pick up the QT?
4)Are there any prerequisites to use the engine with my QT application?

From the documentation, I see only building the engine is sufficient. Can
you please help in setting up the engine to use with my application.

Thanks,
Prajith

On Tue, Sep 15, 2020 at 1:51 AM Christoph Cullmann <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=426385
>
> --- Comment #13 from Christoph Cullmann <cullmann@kde.org> ---
> Hi,
>
> sorry, but I think that gets more and more out of scope of a bug report.
>
> I think you should consult the
>
> https://community.kde.org/Get_Involved/development
>
> documentation on how to setup your development environment.
>
> There are more pointers on this page, where to get more information.
>
> I hope this helps!
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 16 Christoph Cullmann 2020-09-29 20:16:55 UTC
I am sorry, but Bugzilla is no support forum for generic development questions.

The syntax-highlighting repository contains examples how to use the stuff, see the examples/ folder.

If even with these given it is hard to understand how to use that, I think you need to search a bit around the internet about how to use e.g. Qt/CMake/...

I hope this might give you some pointers.

Greetings
Christoph