tcanabrava / tcanabrava.github.io

What the hell is going on.
2 stars 0 forks source link

Trying Codevis on Fedora #1

Open abitrolly opened 5 months ago

abitrolly commented 5 months ago

Hi Tomaz. Saw your FOSSASIA talk, wanted to give it a try. However the "Install on Linux" link from https://apps.kde.org/en-gb/codevis/ (appstream://org.kde.codevis) doesn't work for Fedora 39.

$ appstreamcli install appstream://org.kde.codevis 
Unable to find component with ID 'appstream://org.kde.codevis'!
$ appstreamcli install org.kde.codevis 
Unable to find component with ID 'org.kde.codevis'!

So how to install it? Maybe there are plans to upload the package to Flatpak?

tcanabrava commented 5 months ago

i plan to but i have no idea how. ill see if i can do that tomorrow.

but its easy to compile on fedora, ill be tomorrow on the second floor of the building, we can try to work out how to setup for you.

On Mon, 8 Apr 2024 at 19:12 Anatoli Babenia @.***> wrote:

Hi Tomaz. Saw your FOSSASIA talk, wanted to give it a try. However the "Install on Linux" link from https://apps.kde.org/en-gb/codevis/ (appstream://org.kde.codevis) doesn't work for Fedora 39.

$ appstreamcli install appstream://org.kde.codevis Unable to find component with ID 'appstream://org.kde.codevis'! $ appstreamcli install org.kde.codevis Unable to find component with ID 'org.kde.codevis'!

So how to install it? Maybe there are plans to upload the package to Flatpak?

— Reply to this email directly, view it on GitHub https://github.com/tcanabrava/tcanabrava.github.io/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6XGUD4JSOHDDLCWBD3JBTY4KCTHAVCNFSM6AAAAABF4SQ6T2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGIZTCMBTGQYDQNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

abitrolly commented 5 months ago

Unfortunately I couldn't make it there, so I watch online.

So I tried to compile from source using manual build instruction, and it fails with missing dependencies as expected.

$ cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd)/codevis/

-- The CXX compiler identification is GNU 13.2.1
-- The C compiler identification is GNU 13.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:43 (find_package):
  Could not find a package configuration file provided by "ECM" (requested
  version 5.68.0) with any of the following names:

    ECMConfig.cmake
    ecm-config.cmake

  Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR"
  to a directory containing one of the above files.  If "ECM" provides a
  separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred!

There is a link to docker images with dependencies, but the link is 404. https://invent.kde.org/sdk/codevis/-/blob/packing

abitrolly commented 5 months ago

Tried to build AppImage using the Dockerfile and got the same CMake error about ECM.

podman build . -t codevis-appimage -f packaging/appimage/Dockerfile
tcanabrava commented 5 months ago

ecm is "extra-cmake-modules", a kde library for cmake. you will need to install the development libraries for kf5 or kf6. allow me to work tomorrow for the flatpack build

On Mon, 8 Apr 2024 at 20:30 Anatoli Babenia @.***> wrote:

Tried to build AppImage using the Dockerfile and got the same CMake error about ECM.

podman build . -t codevis-appimage -f packaging/appimage/Dockerfile

— Reply to this email directly, view it on GitHub https://github.com/tcanabrava/tcanabrava.github.io/issues/1#issuecomment-2042765678, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6XGUCMQLUIR2RAAADG4TDY4KLXVAVCNFSM6AAAAABF4SQ6T2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBSG43DKNRXHA . You are receiving this because you commented.Message ID: @.***>

abitrolly commented 5 months ago

Thanks for the quick response.

I found ECM install instructions in packaging/centos7/Dockerfile, copy pasted it, but that was not enough. Compiling centos7 Dockerfile didn't work either. Looks like CI doesn't run these files. That's why they are outdated. CI uses its own way to specify dependencies - https://community.kde.org/Infrastructure/Continuous_Integration_System#The_.kde-ci.yml_file - would be nice to reuse that.

Anyways, I did everything I could. Now I shall wait for the flatpak. )

tcanabrava commented 5 months ago

just to make sure, you are using the code from invent.kde.org/sdk/codevis and not from github? i trued to help some people yesterday and their code was from github / wrong repository

On Mon, 8 Apr 2024 at 21:14 Anatoli Babenia @.***> wrote:

Thanks for the quick response.

I found ECM install instructions in packaging/centos7/Dockerfile, copy pasted it, but that was not enough. Compiling centos7 Dockerfile didn't work either. Looks like CI doesn't run these files. That's why they are outdated. CI uses its own way to specify dependencies - https://community.kde.org/Infrastructure/Continuous_Integration_System#The_.kde-ci.yml_file

  • would be nice to reuse that.

Anyways, I did everything I could. Now I shall wait for the flatpak. )

— Reply to this email directly, view it on GitHub https://github.com/tcanabrava/tcanabrava.github.io/issues/1#issuecomment-2042869493, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6XGUEMLKOFZSG7AIS5ESDY4KQ2ZAVCNFSM6AAAAABF4SQ6T2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBSHA3DSNBZGM . You are receiving this because you commented.Message ID: @.***>

abitrolly commented 5 months ago

Not from GitHub, right,

$ git remote -v
origin  https://invent.kde.org/sdk/codevis (fetch)
origin  https://invent.kde.org/sdk/codevis (push)
abitrolly commented 5 months ago

Hi Tomaz. My tabs from FOSSASIA are still open. :D So I am just checking if you've managed to find time for uploading Codevis to https://flathub.org/ ?

tcanabrava commented 5 months ago

I have just added flatpak support: https://invent.kde.org/sdk/codevis/-/merge_requests/190

I need to see if the CI passes, tough.

On Mon, Apr 22, 2024 at 3:25 PM Anatoli Babenia @.***> wrote:

Hi Tomaz. My tabs from FOSSASIA are still open. :D So I am just checking if you've managed to find time for uploading Codevis to https://flathub.org/ ?

— Reply to this email directly, view it on GitHub https://github.com/tcanabrava/tcanabrava.github.io/issues/1#issuecomment-2069420873, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6XGUGV4SGLBONQJF45T7DY6UFULAVCNFSM6AAAAABF4SQ6T2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRZGQZDAOBXGM . You are receiving this because you commented.Message ID: @.***>