Dependency fails when I try to build Granite from sources

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












Configuration



Ubuntu version: 16.04



pkg-config --modversion gtk+-3.0 returns 3.18.9



Problem



I am currently trying to build Granite from sources.



As specified in the documentation, I go to the build/ directory and I run cmake -DCMAKE_INSTALL_PREFIX=/usr .. but it throws an error:




crystale@computer:~/development/granite/build$ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
-- checking for a minimum Vala version of 0.34.7
-- found Vala, version 0.36.13
-- Checking for modules 'gtk+-3.0>=3.22;gio-unix-2.0;gthread-2.0;gee-0.8'
--
CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
CMakeLists.txt:50 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
See also "/home/crystale/development/granite/build/CMakeFiles/CMakeOutput.log".



It seems CMake is not able to find some dependencies but I installed all those listed on the documentation, I don't understand what's missing.



After @steeldriver comment, it seems the problem comes from my GTK version which does not match the requirements of Granite (I have v3.18 but Granite needs v3.22 at least). I tried to downgrade the needed version by editing CMakeLists.txt (in case 3.22 was not really needed) but Granite did not compile.



So now I'm looking for a way to upgrade GTK or have two versions of it on my computer.







share|improve this question


















  • 1




    What version of Ubuntu are you using? are you sure that the dependency version requirements are met? For example, what is the output of pkg-config --modversion gtk+-3.0
    – steeldriver
    May 18 at 13:00










  • I've edited my question to add those informations. It seems my GTK is only version 3.18 but Granit needs the 3.22 at least (as specified in its documentation). So now my question is: is it safe/possible to upgrade my GTK version? Or to have two versions, one for my usage and the other for the dev?
    – darckcrystale
    May 18 at 13:28














up vote
0
down vote

favorite












Configuration



Ubuntu version: 16.04



pkg-config --modversion gtk+-3.0 returns 3.18.9



Problem



I am currently trying to build Granite from sources.



As specified in the documentation, I go to the build/ directory and I run cmake -DCMAKE_INSTALL_PREFIX=/usr .. but it throws an error:




crystale@computer:~/development/granite/build$ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
-- checking for a minimum Vala version of 0.34.7
-- found Vala, version 0.36.13
-- Checking for modules 'gtk+-3.0>=3.22;gio-unix-2.0;gthread-2.0;gee-0.8'
--
CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
CMakeLists.txt:50 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
See also "/home/crystale/development/granite/build/CMakeFiles/CMakeOutput.log".



It seems CMake is not able to find some dependencies but I installed all those listed on the documentation, I don't understand what's missing.



After @steeldriver comment, it seems the problem comes from my GTK version which does not match the requirements of Granite (I have v3.18 but Granite needs v3.22 at least). I tried to downgrade the needed version by editing CMakeLists.txt (in case 3.22 was not really needed) but Granite did not compile.



So now I'm looking for a way to upgrade GTK or have two versions of it on my computer.







share|improve this question


















  • 1




    What version of Ubuntu are you using? are you sure that the dependency version requirements are met? For example, what is the output of pkg-config --modversion gtk+-3.0
    – steeldriver
    May 18 at 13:00










  • I've edited my question to add those informations. It seems my GTK is only version 3.18 but Granit needs the 3.22 at least (as specified in its documentation). So now my question is: is it safe/possible to upgrade my GTK version? Or to have two versions, one for my usage and the other for the dev?
    – darckcrystale
    May 18 at 13:28












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Configuration



Ubuntu version: 16.04



pkg-config --modversion gtk+-3.0 returns 3.18.9



Problem



I am currently trying to build Granite from sources.



As specified in the documentation, I go to the build/ directory and I run cmake -DCMAKE_INSTALL_PREFIX=/usr .. but it throws an error:




crystale@computer:~/development/granite/build$ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
-- checking for a minimum Vala version of 0.34.7
-- found Vala, version 0.36.13
-- Checking for modules 'gtk+-3.0>=3.22;gio-unix-2.0;gthread-2.0;gee-0.8'
--
CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
CMakeLists.txt:50 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
See also "/home/crystale/development/granite/build/CMakeFiles/CMakeOutput.log".



It seems CMake is not able to find some dependencies but I installed all those listed on the documentation, I don't understand what's missing.



After @steeldriver comment, it seems the problem comes from my GTK version which does not match the requirements of Granite (I have v3.18 but Granite needs v3.22 at least). I tried to downgrade the needed version by editing CMakeLists.txt (in case 3.22 was not really needed) but Granite did not compile.



So now I'm looking for a way to upgrade GTK or have two versions of it on my computer.







share|improve this question














Configuration



Ubuntu version: 16.04



pkg-config --modversion gtk+-3.0 returns 3.18.9



Problem



I am currently trying to build Granite from sources.



As specified in the documentation, I go to the build/ directory and I run cmake -DCMAKE_INSTALL_PREFIX=/usr .. but it throws an error:




crystale@computer:~/development/granite/build$ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
-- checking for a minimum Vala version of 0.34.7
-- found Vala, version 0.36.13
-- Checking for modules 'gtk+-3.0>=3.22;gio-unix-2.0;gthread-2.0;gee-0.8'
--
CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
CMakeLists.txt:50 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
See also "/home/crystale/development/granite/build/CMakeFiles/CMakeOutput.log".



It seems CMake is not able to find some dependencies but I installed all those listed on the documentation, I don't understand what's missing.



After @steeldriver comment, it seems the problem comes from my GTK version which does not match the requirements of Granite (I have v3.18 but Granite needs v3.22 at least). I tried to downgrade the needed version by editing CMakeLists.txt (in case 3.22 was not really needed) but Granite did not compile.



So now I'm looking for a way to upgrade GTK or have two versions of it on my computer.









share|improve this question













share|improve this question




share|improve this question








edited May 18 at 13:36

























asked May 18 at 12:41









darckcrystale

1288




1288







  • 1




    What version of Ubuntu are you using? are you sure that the dependency version requirements are met? For example, what is the output of pkg-config --modversion gtk+-3.0
    – steeldriver
    May 18 at 13:00










  • I've edited my question to add those informations. It seems my GTK is only version 3.18 but Granit needs the 3.22 at least (as specified in its documentation). So now my question is: is it safe/possible to upgrade my GTK version? Or to have two versions, one for my usage and the other for the dev?
    – darckcrystale
    May 18 at 13:28












  • 1




    What version of Ubuntu are you using? are you sure that the dependency version requirements are met? For example, what is the output of pkg-config --modversion gtk+-3.0
    – steeldriver
    May 18 at 13:00










  • I've edited my question to add those informations. It seems my GTK is only version 3.18 but Granit needs the 3.22 at least (as specified in its documentation). So now my question is: is it safe/possible to upgrade my GTK version? Or to have two versions, one for my usage and the other for the dev?
    – darckcrystale
    May 18 at 13:28







1




1




What version of Ubuntu are you using? are you sure that the dependency version requirements are met? For example, what is the output of pkg-config --modversion gtk+-3.0
– steeldriver
May 18 at 13:00




What version of Ubuntu are you using? are you sure that the dependency version requirements are met? For example, what is the output of pkg-config --modversion gtk+-3.0
– steeldriver
May 18 at 13:00












I've edited my question to add those informations. It seems my GTK is only version 3.18 but Granit needs the 3.22 at least (as specified in its documentation). So now my question is: is it safe/possible to upgrade my GTK version? Or to have two versions, one for my usage and the other for the dev?
– darckcrystale
May 18 at 13:28




I've edited my question to add those informations. It seems my GTK is only version 3.18 but Granit needs the 3.22 at least (as specified in its documentation). So now my question is: is it safe/possible to upgrade my GTK version? Or to have two versions, one for my usage and the other for the dev?
– darckcrystale
May 18 at 13:28















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1037744%2fdependency-fails-when-i-try-to-build-granite-from-sources%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1037744%2fdependency-fails-when-i-try-to-build-granite-from-sources%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491