Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue] Package 'gtksourceviewmm-3.0', required by 'virtual:world', not found #955

Closed
os-guy opened this issue Nov 19, 2024 · 18 comments
Closed

Comments

@os-guy
Copy link

os-guy commented Nov 19, 2024

  • Linux distro: Arch Linux

The issue

I ran the installer script and when it started to build MicroTex, it gave me an output telling me that "gtksourceviewmm-3.0" is not found.

Here's the output Log:

-- We are working with GTK on a Unix like OS
-- Checking for module 'gtksourceviewmm-3.0'
--   Package 'gtksourceviewmm-3.0', required by 'virtual:world', not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:645 (message):
  The following required packages were not found:

   - gtksourceviewmm-3.0

Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:873 (_pkg_check_modules_internal)
  CMakeLists.txt:215 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...

I couldn't find any package which provides gtksourceviewmm-3.0.
Any info about this issue?

@os-guy os-guy changed the title [Issue] [Issue] Package 'gtksourceviewmm-3.0', required by 'virtual:world', not found Nov 19, 2024
@MrSSHH
Copy link

MrSSHH commented Nov 19, 2024

Build gtksourceviewmm-3.0 yourself, it should help

wget https://download.gnome.org/sources/gtksourceviewmm/3.0/gtksourceviewmm-3.0.0.tar.gz
tar -xvzf gtksourceviewmm-3.0.0.tar.gz
cd gtksourceviewmm-3.0.0
./configure --prefix=/usr
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
sudo make install

then repeat in installer.

@os-guy
Copy link
Author

os-guy commented Nov 19, 2024

wget https://download.gnome.org/sources/gtksourceviewmm/3.0/gtksourceviewmm-3.0.0.tar.gz tar -xvJf gtksourceviewmm-3.0.0.tar.xz cd gtksourceviewmm-3.0.0 ./configure --prefix=/usr sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make sudo make install

Thanks, it worked.
Do you know why this issue happened BTW?
I don't encountered a problem like that before.

@ex-jandal
Copy link

ex-jandal commented Nov 21, 2024

i'm trying to build and it shows these errors:

Making all in gtksourceview/gtksourceviewmm
make[1]: Entering directory '/home/abu_jandal/gtksourceviewmm/gtksourceview/gtksourceviewmm'
make[1]: *** No rule to make target 'buffer.cc', needed by 'buffer.lo'.  Stop.
make[1]: Leaving directory '/home/abu_jandal/gtksourceviewmm/gtksourceview/gtksourceviewmm'
make: *** [Makefile:578: all-recursive] Error 1
Making install in gtksourceview/gtksourceviewmm
make[1]: Entering directory '/home/abu_jandal/gtksourceviewmm/gtksourceview/gtksourceviewmm'
make[1]: *** No rule to make target 'buffer.cc', needed by 'buffer.lo'.  Stop.
make[1]: Leaving directory '/home/abu_jandal/gtksourceviewmm/gtksourceview/gtksourceviewmm'
make: *** [Makefile:578: install-recursive] Error 1

@ex-jandal
Copy link

i'm trying to build and it shows these errors:

Making all in gtksourceview/gtksourceviewmm
make[1]: Entering directory '/home/abu_jandal/gtksourceviewmm/gtksourceview/gtksourceviewmm'
make[1]: *** No rule to make target 'buffer.cc', needed by 'buffer.lo'.  Stop.
make[1]: Leaving directory '/home/abu_jandal/gtksourceviewmm/gtksourceview/gtksourceviewmm'
make: *** [Makefile:578: all-recursive] Error 1
Making install in gtksourceview/gtksourceviewmm
make[1]: Entering directory '/home/abu_jandal/gtksourceviewmm/gtksourceview/gtksourceviewmm'
make[1]: *** No rule to make target 'buffer.cc', needed by 'buffer.lo'.  Stop.
make[1]: Leaving directory '/home/abu_jandal/gtksourceviewmm/gtksourceview/gtksourceviewmm'
make: *** [Makefile:578: install-recursive] Error 1

i figure it out:
you should download the dependents with this command:

sudo pacman -S gtkmm3 libtool autoconf automake pkgconf

@Ceptea Ceptea mentioned this issue Nov 27, 2024
@Blade04208
Copy link

heya, followed to this issue from #971 , didnt work

wget https://download.gnome.org/sources/gtksourceviewmm/3.0/gtksourceviewmm-3.0.0.tar.gz
tar -xvJf gtksourceviewmm-3.0.0.tar.xz
cd gtksourceviewmm-3.0.0
./configure --prefix=/usr
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
sudo make install
--2024-11-28 12:39:26--  https://download.gnome.org/sources/gtksourceviewmm/3.0/gtksourceviewmm-3.0.0.tar.gz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving download.gnome.org (download.gnome.org)... 2a02:6ea0:ef00::3, 87.249.137.3
Connecting to download.gnome.org (download.gnome.org)|2a02:6ea0:ef00::3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1233288 (1.2M) [application/octet-stream]
Saving to: ‘gtksourceviewmm-3.0.0.tar.gz.2’

gtksourceviewmm-3.0.0.ta 100%[=================================>]   1.18M  --.-KB/s    in 0.09s   

2024-11-28 12:39:26 (12.7 MB/s) - ‘gtksourceviewmm-3.0.0.tar.gz.2’ saved [1233288/1233288]

tar (child): gtksourceviewmm-3.0.0.tar.xz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
bash: cd: gtksourceviewmm-3.0.0: No such file or directory
bash: ./configure: No such file or directory
sed: can't read libtool: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.

@MrSSHH
Copy link

MrSSHH commented Nov 28, 2024

heya, followed to this issue from #971 , didnt work

wget https://download.gnome.org/sources/gtksourceviewmm/3.0/gtksourceviewmm-3.0.0.tar.gz
tar -xvJf gtksourceviewmm-3.0.0.tar.xz
cd gtksourceviewmm-3.0.0
./configure --prefix=/usr
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
sudo make install
--2024-11-28 12:39:26--  https://download.gnome.org/sources/gtksourceviewmm/3.0/gtksourceviewmm-3.0.0.tar.gz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving download.gnome.org (download.gnome.org)... 2a02:6ea0:ef00::3, 87.249.137.3
Connecting to download.gnome.org (download.gnome.org)|2a02:6ea0:ef00::3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1233288 (1.2M) [application/octet-stream]
Saving to: ‘gtksourceviewmm-3.0.0.tar.gz.2’

gtksourceviewmm-3.0.0.ta 100%[=================================>]   1.18M  --.-KB/s    in 0.09s   

2024-11-28 12:39:26 (12.7 MB/s) - ‘gtksourceviewmm-3.0.0.tar.gz.2’ saved [1233288/1233288]

tar (child): gtksourceviewmm-3.0.0.tar.xz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
bash: cd: gtksourceviewmm-3.0.0: No such file or directory
bash: ./configure: No such file or directory
sed: can't read libtool: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.

This one is on me, the line tar -xvJf gtksourceviewmm-3.0.0.tar.xz is the culprit I fixed it now it should be tar -xvzf gtksourceviewmm-3.0.0.tar.gz

Let me know if it works I'm not at home to check :)

EDIT: It works now, i've edited my answer here.

@qualvey
Copy link

qualvey commented Dec 3, 2024

Build gtksourceviewmm-3.0 yourself, it should help

wget https://download.gnome.org/sources/gtksourceviewmm/3.0/gtksourceviewmm-3.0.0.tar.gz tar -xvzf gtksourceviewmm-3.0.0.tar.gz cd gtksourcevbiewmm-3.0.0 ./configure --prefix=/usr sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make sudo make install

then repeat in installer.

Cool,buddy.I was tryed build it from source code before .But I dont know this two step

./configure --prefix=/usr
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

I just exceuted the configure.How did you know about the prefix flag?

@MrSSHH
Copy link

MrSSHH commented Dec 3, 2024

Build gtksourceviewmm-3.0 yourself, it should help
wget https://download.gnome.org/sources/gtksourceviewmm/3.0/gtksourceviewmm-3.0.0.tar.gz tar -xvzf gtksourceviewmm-3.0.0.tar.gz cd gtksourcevbiewmm-3.0.0 ./configure --prefix=/usr sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make sudo make install
then repeat in installer.

Cool,buddy.I was tryed build it from source code before .But I dont know this two step

./configure --prefix=/usr
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

I just exceuted the configure.How did you know about the prefix flag?

I've used gtksourceviewmm a couple of times before so I recalled it's an option I'm not quite sure if it's on this version.

Why did you have any trouble building it using the parameter--prefix ? If so try without it since I'm not sure if it's supported on this version.

@SeeStarz
Copy link

SeeStarz commented Dec 6, 2024

How about removing the dependency check (and demo sample) alltogether?
NanoMichael/MicroTeX#183

@Lea3D
Copy link

Lea3D commented Dec 6, 2024

Build gtksourceviewmm-3.0 yourself, it should help

wget https://download.gnome.org/sources/gtksourceviewmm/3.0/gtksourceviewmm-3.0.0.tar.gz tar -xvzf gtksourceviewmm-3.0.0.tar.gz cd gtksourceviewmm-3.0.0 ./configure --prefix=/usr sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make sudo make install

then repeat in installer.

❤️ Thanks

@PROStefi1000
Copy link

PROStefi1000 commented Dec 18, 2024

I ran this part successfully:

wget https://download.gnome.org/sources/gtksourceviewmm/3.0/gtksourceviewmm-3.0.0.tar.gz
tar -xvzf gtksourceviewmm-3.0.0.tar.gz cd gtksourceviewmm-3.0.0
./configure --prefix=/usr
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

but when I ran

make

I got some errors: (I interrupted the command with Ctrl+C BTW)
image
(yes, that is a virtual machine running Arch so I can test stuff before actually installing Arch on my PC)

@Nikitf777
Copy link

Why is this issue closed while the bug is still there? The script is still trying to install a package, which doesn't exist in repos.

@os-guy os-guy reopened this Jan 2, 2025
@os-guy
Copy link
Author

os-guy commented Jan 2, 2025

Yes you're right.
Sorry for closing it early.
Someone has to report this to end-4 or the contributors of the installer.

@argenestel
Copy link

argenestel commented Jan 15, 2025

for temporary fix i did
https://github.com/NanoMichael/MicroTeX/tree/flutter-support fork this and change the CMakelist.txt to gtksourceviewmm-4.0
then updated the pkg build and installed the
https://github.com/end-4/dots-hyprland/blob/main/arch-packages/illogical-impulse-microtex-git/PKGBUILD

@cgyit
Copy link

cgyit commented Jan 26, 2025

对于临时修复 https://github.com/NanoMichael/MicroTeX/tree/flutter-support 我确实分叉了它并将CMakelist.txt更改为 gtksourceviewmm-4.0,然后更新了 PKG 构建并安装了 https://github.com/end-4/dots-hyprland/blob/main/arch-packages/illogical-impulse-microtex-git/PKGBUILD

oh,thanks!it worked.

@maxz255
Copy link

maxz255 commented Jan 27, 2025

modify ~/.cache/dots-hyprland/arch-packages/illogical-impulse-microtex-git/PKGBUILD add this snippets before build()

prepare() {
    cd $_pkgname
    sed -i 's/gtksourceviewmm-3.0/gtksourceviewmm-4.0/' CMakeLists.txt
}

it works for me.

@cgyit
Copy link

cgyit commented Jan 27, 2025

modify ~/.cache/dots-hyprland/arch-packages/illogical-impulse-microtex-git/PKGBUILD add this snippets before build()

prepare() {
    cd $_pkgname
    sed -i 's/gtksourceviewmm-3.0/gtksourceviewmm-4.0/' CMakeLists.txt
}

it works for me.

it works better 👍 👍 👍

@clsty
Copy link
Collaborator

clsty commented Jan 27, 2025

modify ~/.cache/dots-hyprland/arch-packages/illogical-impulse-microtex-git/PKGBUILD add this snippets before build()

prepare() {
    cd $_pkgname
    sed -i 's/gtksourceviewmm-3.0/gtksourceviewmm-4.0/' CMakeLists.txt
}

it works for me.

Nice, I'll modify the PKGBUILD accordingly. Thank you.

clsty added a commit that referenced this issue Jan 27, 2025
@clsty clsty closed this as completed Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests