General TC > General TC Talk

[Solved] need help compiling something please - use of flags

(1/1)

aus9:
Hi

I can compile some things that have a configure system, some cmakes, ninja and meson within reason.
I lack the memory or skills to get past the following error and show my puny attempt to bypass it.
Feel free to laugh, we need more laughter.  ;D

Error snippet

--- Code: ---cat config.log | grep  error   (SNIPPED out stuff)
configure:6051: $PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB2_VERSION"
configure:6068: $PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB2_VERSION"
configure:6142: $PKG_CONFIG --exists --print-errors "gtk+-2.0 >= $GTK2_VERSION"
configure:6159: $PKG_CONFIG --exists --print-errors "gtk+-2.0 >= $GTK2_VERSION"
configure:6233: $PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= $GTKMM2_VERSION"
configure:6250: $PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= $GTKMM2_VERSION"
configure:6283: error: Package requirements (gtkmm-2.4 >= 2.10.0) were not met:
--- End code ---

so I have a higher version loaded....which reads

--- Quote ---cat /usr/local/lib/pkgconfig/gtkmm-3.0.pc
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
datarootdir=${prefix}/share
datadir=${datarootdir}
includedir=${prefix}/include

gmmprocm4dir=${libdir}/gtkmm-3.0/proc/m4

docdir=${datarootdir}/doc/gtkmm-3.0
doxytagfile=${docdir}/reference/gtkmm-3.0.tag
htmlrefdir=${docdir}/reference/html
htmlrefpub=http://library.gnome.org/devel/gtkmm/unstable/

Name: gtkmm
Description: C++ binding for the GTK+ toolkit
Version: 3.22.3
URL: http://www.gtkmm.org/
Requires: atkmm-1.6 >= 2.24.2 giomm-2.4 >= 2.49.1 pangomm-1.4 >= 2.38.2 gtk+-3.0 >= 3.22.0 cairomm-1.0 >= 1.12.0 gdk-pixbuf-2.0 >= 2.35.5 gtk+-unix-print-3.0 gdkmm-3.0
Libs: -L${libdir} -lgtkmm-3.0
Cflags: -I${includedir}/gtkmm-3.0 -I${libdir}/gtkmm-3.0/include
--- End quote ---

Question one....Why is compile is NOT finding my higher version of 2.10?

OK so in compile it claims

--- Code: ---configure: error: Package requirements (gtkmm-2.4 >= 2.10.0) were not met:
No package 'gtkmm-2.4' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables GTKMM2_CFLAGS and GTKMM2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
--- End code ---
https://linux.die.net/man/1/pkg-config did not enlighten me

So this was my attempt....but error meant I could not attempt to repeat configure command
# ./configure --prefix=/usr/local --disable-debug
commands done as root

--- Code: ---prefix=/usr/local
libdir=${exec_prefix}/lib
includedir=${prefix}/include
prefix=/usr/local
libdir=${exec_prefix}/lib
includedir=${prefix}/include
GTKMM2_LIBS=-L${libdir} -lgtkmm-3.0
sh: -lgtkmm-3.0: not found
GTKMM2_CFLAGS=-I${includedir}/gtkmm-3.0 -I${libdir}/gtkmm-3.0/include
sh: -I/lib/gtkmm-3.0/include: not found
--- End code ---


any clues?

 

Sashank999:
Hi aus9,

I think we need to do commands as:

--- Code: ---export [All those variables]
--- End code ---

I think we need export command as the script itself opens another shell inside the terminal you are running.

andyj:
Gtkmm-2.4 is not just the version, it's the name as well. It is not the same name as gtkmm-3.0, and obviously not the same version. You will need to load gtkmm-2.4. You'll see this in other places like Qt 4 and Qt 5, Python 2 and Python 3, etc.

aus9:
@Sashank999
I suspect that would work except for next reply. Thanks

@andyj
aaah....ok that would explain it. But on TC64 we no longer have that older package.
What I was attempting to build is not important....I have other things to do.

In the past, we did have old and new versions of some packages but I will not ask or create this package.
I will find an alternative, as its easier to my simple mind  ;D

@Rich
Can you mark as Solved please

Rich:
Hi aus9

--- Quote from: aus9 on July 08, 2020, 02:25:32 AM --- ... @Rich
Can you mark as Solved please
--- End quote ---
Done. :)

Navigation

[0] Message Index

Go to full version