How to build lp:inkscape with CMake?
When browsing the wiki for build instructions under Ubuntu, I only found instructions on how to build using autogen.sh.
I would prefer building Inkscape with the "new" build system CMake, could some one tell me what steps to follow / the diff from these instructions? (preferably update the wiki page)
Specifically: do I need to run autogen.sh and configure?
http://wiki.inkscape.org/wiki/index.php/CompilingUbuntu
Mvh
/Olof ----------------- Trött på virus, seg dator och allmänt Windowsstrul? Pröva något nytt istället - Ubuntu! http://uboot.nu
Hi Olof,
please reply to all recipients.
On Tue, 1 Sep 2015 19:48:07 +0200 Olof Bjarnason <olof.bjarnason@...400...> wrote:
When browsing the wiki for build instructions under Ubuntu, I only found instructions on how to build using autogen.sh.
I would prefer building Inkscape with the "new" build system CMake, could some one tell me what steps to follow / the diff from these instructions? (preferably update the wiki page)
Specifically: do I need to run autogen.sh and configure?
Currently , I was able to build Inkscape using CMake by using this script:
https://bitbucket.org/shlomif/shlomif-computer-settings/src/065cc7f39e487ee3...
You need to do "mkdir ../B; cd ../B" first.
You don't have to still run autogen.sh and configure.
Regards,
Shlomi Fish
Mvh
/Olof
Trött på virus, seg dator och allmänt Windowsstrul? Pröva något nytt istället - Ubuntu! http://uboot.nu
Hi Shlomi,
On 1 Sep 2015 20:06, "Shlomi Fish" <shlomif@...2985...> wrote:
Hi Olof,
please reply to all recipients.
On Tue, 1 Sep 2015 19:48:07 +0200 Olof Bjarnason <olof.bjarnason@...400...> wrote:
When browsing the wiki for build instructions under Ubuntu, I only found instructions on how to build using autogen.sh.
I would prefer building Inkscape with the "new" build system CMake,
could
some one tell me what steps to follow / the diff from these
instructions?
(preferably update the wiki page)
Specifically: do I need to run autogen.sh and configure?
Currently , I was able to build Inkscape using CMake by using this script:
https://bitbucket.org/shlomif/shlomif-computer-settings/src/065cc7f39e487ee3...
You need to do "mkdir ../B; cd ../B" first.
Thank you will try this out. Any particular reason this script isn't on the wiki? Linked or copy-pasted.
One more question: Is cmake the official build tool 0.91 onwards?
You don't have to still run autogen.sh and configure.
Thank you.
Regards,
Shlomi Fish
Mvh
/Olof
Trött på virus, seg dator och allmänt Windowsstrul? Pröva något nytt istället - Ubuntu! http://uboot.nu
--
Shlomi Fish http://www.shlomifish.org/ http://www.shlomifish.org/humour/bits/facts/Summer-Glau/
“Stop reinventing wheels, start building space rockets.” — The motto of the Comprehensive Perl Archive Network
Please reply to list if it's a mailing list post - http://shlom.in/reply .
Hi Olof,
On Tue, 1 Sep 2015 20:19:39 +0200 Olof Bjarnason <olof.bjarnason@...400...> wrote:
Hi Shlomi,
On 1 Sep 2015 20:06, "Shlomi Fish" <shlomif@...2985...> wrote:
Hi Olof,
please reply to all recipients.
On Tue, 1 Sep 2015 19:48:07 +0200 Olof Bjarnason <olof.bjarnason@...400...> wrote:
When browsing the wiki for build instructions under Ubuntu, I only found instructions on how to build using autogen.sh.
I would prefer building Inkscape with the "new" build system CMake,
could
some one tell me what steps to follow / the diff from these
instructions?
(preferably update the wiki page)
Specifically: do I need to run autogen.sh and configure?
Currently , I was able to build Inkscape using CMake by using this script:
https://bitbucket.org/shlomif/shlomif-computer-settings/src/065cc7f39e487ee3...
You need to do "mkdir ../B; cd ../B" first.
Thank you will try this out. Any particular reason this script isn't on the wiki? Linked or copy-pasted.
Well, you can often get away with less options, or use different customisations to the cmake command. There should be other documents on the Web for generic build instructions of CMake-based projects.
One more question: Is cmake the official build tool 0.91 onwards?
Well, for 0.91, I think autoconf is still recommended, but there was some talk on making CMake the preferred one in the future. Don't know what the consensus was.
You don't have to still run autogen.sh and configure.
Thank you.
You're welcome.
Regards,
Shlomi Fish
Hi Olof, Shlomi,
autotools builds are the official recommendation for 0.91. CMake still needs some work, and doesn't fully support all options.
I think the consensus at present is that supporting two build systems is unsustainable and we intend to do the following:
1. Fix CMake builds for the next release, make this the official build system and deprecate the autotools builds. 2. Remove the autotools builds in the following release 3. Potentially move to the Waf build system in the following release
Any feedback on your experience with CMake would be greatly appreciated!
AV On 1 Sep 2015 8:36 pm, "Shlomi Fish" <shlomif@...2985...> wrote:
Hi Olof,
On Tue, 1 Sep 2015 20:19:39 +0200 Olof Bjarnason <olof.bjarnason@...400...> wrote:
Hi Shlomi,
On 1 Sep 2015 20:06, "Shlomi Fish" <shlomif@...2985...> wrote:
Hi Olof,
please reply to all recipients.
On Tue, 1 Sep 2015 19:48:07 +0200 Olof Bjarnason <olof.bjarnason@...400...> wrote:
When browsing the wiki for build instructions under Ubuntu, I only
found
instructions on how to build using autogen.sh.
I would prefer building Inkscape with the "new" build system CMake,
could
some one tell me what steps to follow / the diff from these
instructions?
(preferably update the wiki page)
Specifically: do I need to run autogen.sh and configure?
Currently , I was able to build Inkscape using CMake by using this
script:
https://bitbucket.org/shlomif/shlomif-computer-settings/src/065cc7f39e487ee3...
You need to do "mkdir ../B; cd ../B" first.
Thank you will try this out. Any particular reason this script isn't on
the
wiki? Linked or copy-pasted.
Well, you can often get away with less options, or use different customisations to the cmake command. There should be other documents on the Web for generic build instructions of CMake-based projects.
One more question: Is cmake the official build tool 0.91 onwards?
Well, for 0.91, I think autoconf is still recommended, but there was some talk on making CMake the preferred one in the future. Don't know what the consensus was.
You don't have to still run autogen.sh and configure.
Thank you.
You're welcome.
Regards,
Shlomi Fish
--
Shlomi Fish http://www.shlomifish.org/ First stop for Perl beginners - http://perl-begin.org/
That’s why I feed my leprechaun every day — because there are not enough phonemes in Navajo to tell him to get his act together and find a job. — My comment on http://www.youtube.com/watch?v=izne8XcaBBg .
Please reply to list if it's a mailing list post - http://shlom.in/reply .
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Mvh
/Olof ----------------- Trött på virus, seg dator och allmänt Windowsstrul? Pröva något nytt istället - Ubuntu! http://uboot.nu
On 2 September 2015 at 14:15, Alex Valavanis <valavanisalex@...400...> wrote:
Hi Olof, Shlomi,
autotools builds are the official recommendation for 0.91. CMake still needs some work, and doesn't fully support all options.
I think the consensus at present is that supporting two build systems is unsustainable and we intend to do the following:
- Fix CMake builds for the next release, make this the official build
system and deprecate the autotools builds. 2. Remove the autotools builds in the following release 3. Potentially move to the Waf build system in the following release
OK, thanks for that Alex. I guess it could be documented on the wiki, e.g. on the CompilingInkscape page, possibly with links to the paragraph from all it's subpages (I followed the Ubuntu build page).
Any feedback on your experience with CMake would be greatly appreci
ated!
Sure. But I'm still in the process to actually build Inkscape via CMake, Shlomi has helped me out some with his separate script. ATM I'm stuck on a JPEG-related error.
If there existed instructions on how to do the build with CMake on the wiki it would help a lot. I did manage to build Inkscape with autogen.sh & configure last weekend, by reading CompilingInkscape plus the Ubuntu specific page.
AV On 1 Sep 2015 8:36 pm, "Shlomi Fish" <shlomif@...2985...> wrote:
Hi Olof,
On Tue, 1 Sep 2015 20:19:39 +0200 Olof Bjarnason <olof.bjarnason@...400...> wrote:
Hi Shlomi,
On 1 Sep 2015 20:06, "Shlomi Fish" <shlomif@...2985...> wrote:
Hi Olof,
please reply to all recipients.
On Tue, 1 Sep 2015 19:48:07 +0200 Olof Bjarnason <olof.bjarnason@...400...> wrote:
When browsing the wiki for build instructions under Ubuntu, I only
found
instructions on how to build using autogen.sh.
I would prefer building Inkscape with the "new" build system CMake,
could
some one tell me what steps to follow / the diff from these
instructions?
(preferably update the wiki page)
Specifically: do I need to run autogen.sh and configure?
Currently , I was able to build Inkscape using CMake by using this
script:
https://bitbucket.org/shlomif/shlomif-computer-settings/src/065cc7f39e487ee3...
You need to do "mkdir ../B; cd ../B" first.
Thank you will try this out. Any particular reason this script isn't on
the
wiki? Linked or copy-pasted.
Well, you can often get away with less options, or use different customisations to the cmake command. There should be other documents on the Web for generic build instructions of CMake-based projects.
One more question: Is cmake the official build tool 0.91 onwards?
Well, for 0.91, I think autoconf is still recommended, but there was some talk on making CMake the preferred one in the future. Don't know what the consensus was.
You don't have to still run autogen.sh and configure.
Thank you.
You're welcome.
Regards,
Shlomi Fish
--
Shlomi Fish http://www.shlomifish.org/ First stop for Perl beginners - http://perl-begin.org/
That’s why I feed my leprechaun every day — because there are not enough phonemes in Navajo to tell him to get his act together and find a job. — My comment on http://www.youtube.com/watch?v=izne8XcaBBg .
Please reply to list if it's a mailing list post - http://shlom.in/reply .
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Am Mittwoch, 2. September 2015, 13:15:50 schrieb Alex Valavanis:
Hi Olof, Shlomi,
autotools builds are the official recommendation for 0.91. CMake still needs some work, and doesn't fully support all options.
I think the consensus at present is that supporting two build systems is unsustainable and we intend to do the following:
- Fix CMake builds for the next release, make this the official build
system and deprecate the autotools builds. 2. Remove the autotools builds in the following release 3. Potentially move to the Waf build system in the following release
So all the effort put into CMake are wasted time since you will replace it with Waf? Why the intermediate step of CMake then?
Any feedback on your experience with CMake would be greatly appreciated!
For me CMake works nicely, at least for a general build. I didn't add inkview (i never used that myself) nor did i try to add switches for GTK3 and all the other options, but plain standard install just works. I build it like this:
mkdir build cd build CFLAGS="-O3 -g" CXXFLAGS=${CFLAGS} cmake -DCMAKE_INSTALL_PREFIX=/opt/inkscape/ .. make -j install
AV
Tobias
[...]
Mvh
/Olof ----------------- Trött på virus, seg dator och allmänt Windowsstrul? Pröva något nytt istället - Ubuntu! http://uboot.nu
On 2 September 2015 at 14:55, Tobias Ellinghaus <houz@...173...> wrote:
Am Mittwoch, 2. September 2015, 13:15:50 schrieb Alex Valavanis:
Hi Olof, Shlomi,
autotools builds are the official recommendation for 0.91. CMake still needs some work, and doesn't fully support all options.
I think the consensus at present is that supporting two build systems is unsustainable and we intend to do the following:
- Fix CMake builds for the next release, make this the official build
system and deprecate the autotools builds. 2. Remove the autotools builds in the following release 3. Potentially move to the Waf build system in the following release
So all the effort put into CMake are wasted time since you will replace it with Waf? Why the intermediate step of CMake then?
Any feedback on your experience with CMake would be greatly appreciated!
For me CMake works nicely, at least for a general build. I didn't add inkview (i never used that myself) nor did i try to add switches for GTK3 and all the other options, but plain standard install just works. I build it like this:
mkdir build cd build CFLAGS="-O3 -g" CXXFLAGS=${CFLAGS} cmake -DCMAKE_INSTALL_PREFIX=/opt/inkscape/ .. make -j install
Thank you Tobias - but you missed the "../inscape" argument at the end of the cmake command line, right?
Even after fixing that typo, I get the same error as when I got help from Shumis' build script:
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake: 108 (message): Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_F AILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindJPEG.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_A RGS) CMakeScripts/DefineDependsandFlags.cmake:184 (FIND_PACKAGE) CMakeLists.txt:95 (include)
AV
Tobias
[...]
Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Hi Olof,
On Wed, 2 Sep 2015 15:03:50 +0200 Olof Bjarnason <olof.bjarnason@...400...> wrote:
Mvh
/Olof
Trött på virus, seg dator och allmänt Windowsstrul? Pröva något nytt istället - Ubuntu! http://uboot.nu
On 2 September 2015 at 14:55, Tobias Ellinghaus <houz@...173...> wrote:
Am Mittwoch, 2. September 2015, 13:15:50 schrieb Alex Valavanis:
Hi Olof, Shlomi,
autotools builds are the official recommendation for 0.91. CMake still needs some work, and doesn't fully support all options.
I think the consensus at present is that supporting two build systems is unsustainable and we intend to do the following:
- Fix CMake builds for the next release, make this the official build
system and deprecate the autotools builds. 2. Remove the autotools builds in the following release 3. Potentially move to the Waf build system in the following release
So all the effort put into CMake are wasted time since you will replace it with Waf? Why the intermediate step of CMake then?
Any feedback on your experience with CMake would be greatly appreciated!
For me CMake works nicely, at least for a general build. I didn't add inkview (i never used that myself) nor did i try to add switches for GTK3 and all the other options, but plain standard install just works. I build it like this:
mkdir build cd build CFLAGS="-O3 -g" CXXFLAGS=${CFLAGS} cmake -DCMAKE_INSTALL_PREFIX=/opt/inkscape/ .. make -j install
Thank you Tobias - but you missed the "../inscape" argument at the end of the cmake command line, right?
No, he had a ".." instead . The last argument to cmake should be the path to the sources (with the top-level CMakeLists.txt file/etc.)
Even after fixing that typo, I get the same error as when I got help from Shumis' build script:
It's "Shlomi". Since many non-Hebrew speakers have some difficulties with this name, I also go by the nickname “Rindolf” - see http://www.shlomifish.org/me/rindolf/ .
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake: 108 (message): Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_F AILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindJPEG.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_A RGS) CMakeScripts/DefineDependsandFlags.cmake:184 (FIND_PACKAGE) CMakeLists.txt:95 (include)
You need to install the libjpeg's development package. What is your operating system, distribution, their versions, etc.?
Regards,
Shlomi Fish
On 2 September 2015 at 15:52, Shlomi Fish <shlomif@...2985...> wrote:
Hi Olof,
On Wed, 2 Sep 2015 15:03:50 +0200 Olof Bjarnason <olof.bjarnason@...400...> wrote:
Mvh
/Olof
Trött på virus, seg dator och allmänt Windowsstrul? Pröva något nytt istället - Ubuntu! http://uboot.nu
On 2 September 2015 at 14:55, Tobias Ellinghaus <houz@...173...> wrote:
Am Mittwoch, 2. September 2015, 13:15:50 schrieb Alex Valavanis:
Hi Olof, Shlomi,
autotools builds are the official recommendation for 0.91. CMake
still
needs some work, and doesn't fully support all options.
I think the consensus at present is that supporting two build
systems is
unsustainable and we intend to do the following:
- Fix CMake builds for the next release, make this the official
build
system and deprecate the autotools builds. 2. Remove the autotools builds in the following release 3. Potentially move to the Waf build system in the following release
So all the effort put into CMake are wasted time since you will
replace it
with Waf? Why the intermediate step of CMake then?
Any feedback on your experience with CMake would be greatly
appreciated!
For me CMake works nicely, at least for a general build. I didn't add inkview (i never used that myself) nor did i try to add switches for GTK3 and
all
the other options, but plain standard install just works. I build it like
this:
mkdir build cd build CFLAGS="-O3 -g" CXXFLAGS=${CFLAGS} cmake -DCMAKE_INSTALL_PREFIX=/opt/inkscape/ .. make -j install
Thank you Tobias - but you missed the "../inscape" argument at the end of the cmake command line, right?
No, he had a ".." instead . The last argument to cmake should be the path to the sources (with the top-level CMakeLists.txt file/etc.)
Ah, I see it now.
Even after fixing that typo, I get the same error as when I got help from Shumis' build script:
It's "Shlomi". Since many non-Hebrew speakers have some difficulties with this name, I also go by the nickname “Rindolf” - see http://www.shlomifish.org/me/rindolf/ .
Shlomi - Sorry about that. Many call med "Olaf" as it's the most popular way to spell the name, so I no the pain ;)
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake: 108 (message): Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_F AILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindJPEG.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_A RGS) CMakeScripts/DefineDependsandFlags.cmake:184 (FIND_PACKAGE) CMakeLists.txt:95 (include)
You need to install the libjpeg's development package. What is your operating system, distribution, their versions, etc.?
I'm on Ubuntu 14.04.
I installed all packages mentioned on this page: http://wiki.inkscape.org/wiki/index.php/CompilingUbuntu#Installing_dependenc...
I also had to add "bzr" and "ccache", which is strictly required to build the trunk version of Inkscape.
Of course I also added "cmake" which was the whole point of trying out cmake instead of autogen+configure :).
I also tried installing all the additional packages mentioned on that wiki page too, but it did not help.
I do understand that I need the JPEG dev package, but if it JPEG lib is a strict requirement to build Inkscape, it should be listed on the wiki.
Regards,
Shlomi Fish
--
Shlomi Fish http://www.shlomifish.org/ Rethinking CPAN - http://shlom.in/rethinking-cpan
We agree. But do we agree to agree?
Please reply to list if it's a mailing list post - http://shlom.in/reply .
Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Hi Olof,
On Wed, 2 Sep 2015 17:02:36 +0200 Olof Bjarnason <olof.bjarnason@...400...> wrote:
On 2 September 2015 at 15:52, Shlomi Fish <shlomif@...2985...> wrote:
Even after fixing that typo, I get the same error as when I got help from Shumis' build script:
It's "Shlomi". Since many non-Hebrew speakers have some difficulties with this name, I also go by the nickname “Rindolf” - see http://www.shlomifish.org/me/rindolf/ .
Shlomi - Sorry about that. Many call med "Olaf" as it's the most popular way to spell the name, so I no the pain ;)
That's OK. The most common misspelling for my name appears to be "Schlomi". Also "I no the pain" should be "I know the pain" (but that may have been intentional).
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake: 108 (message): Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_F AILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindJPEG.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_A RGS) CMakeScripts/DefineDependsandFlags.cmake:184 (FIND_PACKAGE) CMakeLists.txt:95 (include)
You need to install the libjpeg's development package. What is your operating system, distribution, their versions, etc.?
I'm on Ubuntu 14.04.
I installed all packages mentioned on this page: http://wiki.inkscape.org/wiki/index.php/CompilingUbuntu#Installing_dependenc...
I also had to add "bzr" and "ccache", which is strictly required to build the trunk version of Inkscape.
Of course I also added "cmake" which was the whole point of trying out cmake instead of autogen+configure :).
I also tried installing all the additional packages mentioned on that wiki page too, but it did not help.
I do understand that I need the JPEG dev package, but if it JPEG lib is a strict requirement to build Inkscape, it should be listed on the wiki.
Well, it's the nature of documentation that it goes out-of-date, but you are right - it should be updated.
Regards,
Shlomi Fish
Mvh
/Olof ----------------- Trött på virus, seg dator och allmänt Windowsstrul? Pröva något nytt istället - Ubuntu! http://uboot.nu
On 2 September 2015 at 17:16, Shlomi Fish <shlomif@...2985...> wrote:
Hi Olof,
On Wed, 2 Sep 2015 17:02:36 +0200 Olof Bjarnason <olof.bjarnason@...400...> wrote:
On 2 September 2015 at 15:52, Shlomi Fish <shlomif@...2985...>
wrote:
Even after fixing that typo, I get the same error as when I got help
from
Shumis' build script:
It's "Shlomi". Since many non-Hebrew speakers have some difficulties
with
this name, I also go by the nickname “Rindolf” - see http://www.shlomifish.org/me/rindolf/ .
Shlomi - Sorry about that. Many call med "Olaf" as it's the most popular way to spell the name, so I no the pain ;)
That's OK. The most common misspelling for my name appears to be "Schlomi". Also "I no the pain" should be "I know the pain" (but that may have been intentional).
It was a misspelling. I write emails almost like IRC/IMs nowadays - a bit unfocussed and quick...
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake: 108 (message): Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315
(_FPHSA_F AILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindJPEG.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_A RGS) CMakeScripts/DefineDependsandFlags.cmake:184 (FIND_PACKAGE) CMakeLists.txt:95 (include)
You need to install the libjpeg's development package. What is your operating system, distribution, their versions, etc.?
I'm on Ubuntu 14.04.
I installed all packages mentioned on this page:
http://wiki.inkscape.org/wiki/index.php/CompilingUbuntu#Installing_dependenc...
I also had to add "bzr" and "ccache", which is strictly required to build the trunk version of Inkscape.
Of course I also added "cmake" which was the whole point of trying out cmake instead of autogen+configure :).
I also tried installing all the additional packages mentioned on that
wiki
page too, but it did not help.
I do understand that I need the JPEG dev package, but if it JPEG lib is a strict requirement to build Inkscape, it should be listed on the wiki.
Well, it's the nature of documentation that it goes out-of-date, but you are right - it should be updated.
Yep, it's also a good indicator that Inkscape has clear potential at lowering the bar for new contributors, developers in particular: just update the wiki.
I'm sure keeping the wiki up-to-date is not your main focus, but it should be for anyone interested in increasing the collaborative dev effort of this great piece of open source software.
Thanks for you patience Shlomi (or should I call you Rindolf?). For the time being, I've taken a step back and am using autogen.sh + configure, as I've gotten that to work previously.
Regards,
Shlomi Fish
--
Shlomi Fish http://www.shlomifish.org/ My Photos - http://www.flickr.com/photos/shlomif/
Chuck Norris caught the early bird before she caught the worm. — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/
Please reply to list if it's a mailing list post - http://shlom.in/reply .
Hi Olof,
sorry about chiming in into a discussion that is not exactly my area of expertise.
Would you mind making a list of things you had to do for building Inkscape, or even editing the corresponding Wiki page to give a good path for others to follow?
If the 'pull from trunk ppa, then apt-get build-dep' works well, that's probably by far the quickest and easiest way for Ubuntu - it's the one listed on the website, too :), but it won't work on non-Ubuntu (non-deb?) based systems, AFAIK... - are there current, working instructions for those anywhere?
I'd be happy to give you edit permissions or - if you don't want to edit yourself - to update the page with the info you can give at the end of your endeavour :)
(if anyone would like to do the same for Windows / OSX, and check if the rest of the instructions for Linux here: https://inkscape.org/en/develop/getting-started/ are still correct, that would be awesome!)
Thank you, regards, Maren
Mvh
/Olof
Trött på virus, seg dator och allmänt Windowsstrul? Pröva något nytt istället - Ubuntu! http://uboot.nu
On 2 September 2015 at 17:16, Shlomi Fish <shlomif@...2985...> wrote:
Hi Olof,
On Wed, 2 Sep 2015 17:02:36 +0200 Olof Bjarnason <olof.bjarnason@...400...> wrote:
On 2 September 2015 at 15:52, Shlomi Fish <shlomif@...2985...>
wrote:
Even after fixing that typo, I get the same error as when I got
help from
Shumis' build script:
It's "Shlomi". Since many non-Hebrew speakers have some difficulties
with
this name, I also go by the nickname âRindolfâ - see http://www.shlomifish.org/me/rindolf/ .
Shlomi - Sorry about that. Many call med "Olaf" as it's the most
popular
way to spell the name, so I no the pain ;)
That's OK. The most common misspelling for my name appears to be "Schlomi". Also "I no the pain" should be "I know the pain" (but that may have been intentional).
It was a misspelling. I write emails almost like IRC/IMs nowadays - a bit unfocussed and quick...
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake: 108 (message): Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315
(_FPHSA_F AILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindJPEG.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_A RGS) CMakeScripts/DefineDependsandFlags.cmake:184 (FIND_PACKAGE) CMakeLists.txt:95 (include)
You need to install the libjpeg's development package. What is your operating system, distribution, their versions, etc.?
I'm on Ubuntu 14.04.
I installed all packages mentioned on this page:
http://wiki.inkscape.org/wiki/index.php/CompilingUbuntu#Installing_dependenc...
I also had to add "bzr" and "ccache", which is strictly required to
build
the trunk version of Inkscape.
Of course I also added "cmake" which was the whole point of trying out cmake instead of autogen+configure :).
I also tried installing all the additional packages mentioned on that
wiki
page too, but it did not help.
I do understand that I need the JPEG dev package, but if it JPEG lib
is a
strict requirement to build Inkscape, it should be listed on the wiki.
Well, it's the nature of documentation that it goes out-of-date, but you are right - it should be updated.
Yep, it's also a good indicator that Inkscape has clear potential at lowering the bar for new contributors, developers in particular: just update the wiki.
I'm sure keeping the wiki up-to-date is not your main focus, but it should be for anyone interested in increasing the collaborative dev effort of this great piece of open source software.
Thanks for you patience Shlomi (or should I call you Rindolf?). For the time being, I've taken a step back and am using autogen.sh + configure, as I've gotten that to work previously.
Regards,
Shlomi Fish
--
Shlomi Fish http://www.shlomifish.org/ My Photos - http://www.flickr.com/photos/shlomif/
Chuck Norris caught the early bird before she caught the worm. â http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/
Please reply to list if it's a mailing list post - http://shlom.in/reply .
Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140________... Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Yes, I can summarise to you maren when done. I'd be happy to update the wiki for Ubuntu build instructions too, however other o/s:s or even linux distributions is outside of my attempts.
Mvh
/Olof ----------------- Trött på virus, seg dator och allmänt Windowsstrul? Pröva något nytt istället - Ubuntu! http://uboot.nu
On 2 September 2015 at 22:32, <maren@...3165...> wrote:
Hi Olof,
sorry about chiming in into a discussion that is not exactly my area of expertise.
Would you mind making a list of things you had to do for building Inkscape, or even editing the corresponding Wiki page to give a good path for others to follow?
If the 'pull from trunk ppa, then apt-get build-dep' works well, that's probably by far the quickest and easiest way for Ubuntu - it's the one listed on the website, too :), but it won't work on non-Ubuntu (non-deb?) based systems, AFAIK... - are there current, working instructions for those anywhere?
I'd be happy to give you edit permissions or - if you don't want to edit yourself - to update the page with the info you can give at the end of your endeavour :)
(if anyone would like to do the same for Windows / OSX, and check if the rest of the instructions for Linux here: https://inkscape.org/en/develop/getting-started/ are still correct, that would be awesome!)
Thank you, regards, Maren
Mvh
/Olof
Trött på virus, seg dator och allmänt Windowsstrul? Pröva något nytt istället - Ubuntu! http://uboot.nu
On 2 September 2015 at 17:16, Shlomi Fish <shlomif@...2985...>
wrote:
Hi Olof,
On Wed, 2 Sep 2015 17:02:36 +0200 Olof Bjarnason <olof.bjarnason@...400...> wrote:
On 2 September 2015 at 15:52, Shlomi Fish <shlomif@...2985...>
wrote:
Even after fixing that typo, I get the same error as when I got
help from
Shumis' build script:
It's "Shlomi". Since many non-Hebrew speakers have some difficulties
with
this name, I also go by the nickname “Rindolf” - see http://www.shlomifish.org/me/rindolf/ .
Shlomi - Sorry about that. Many call med "Olaf" as it's the most
popular
way to spell the name, so I no the pain ;)
That's OK. The most common misspelling for my name appears to be "Schlomi". Also "I no the pain" should be "I know the pain" (but that may have been intentional).
It was a misspelling. I write emails almost like IRC/IMs nowadays - a bit unfocussed and quick...
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake: 108 (message): Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315
(_FPHSA_F AILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindJPEG.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_A RGS) CMakeScripts/DefineDependsandFlags.cmake:184 (FIND_PACKAGE) CMakeLists.txt:95 (include)
You need to install the libjpeg's development package. What is your operating system, distribution, their versions, etc.?
I'm on Ubuntu 14.04.
I installed all packages mentioned on this page:
http://wiki.inkscape.org/wiki/index.php/CompilingUbuntu#Installing_dependenc...
I also had to add "bzr" and "ccache", which is strictly required to
build
the trunk version of Inkscape.
Of course I also added "cmake" which was the whole point of trying out cmake instead of autogen+configure :).
I also tried installing all the additional packages mentioned on that
wiki
page too, but it did not help.
I do understand that I need the JPEG dev package, but if it JPEG lib
is a
strict requirement to build Inkscape, it should be listed on the wiki.
Well, it's the nature of documentation that it goes out-of-date, but you are right - it should be updated.
Yep, it's also a good indicator that Inkscape has clear potential at lowering the bar for new contributors, developers in particular: just update the wiki.
I'm sure keeping the wiki up-to-date is not your main focus, but it
should
be for anyone interested in increasing the collaborative dev effort of this great piece of open source software.
Thanks for you patience Shlomi (or should I call you Rindolf?). For the time being, I've taken a step back and am using autogen.sh + configure,
as
I've gotten that to work previously.
Regards,
Shlomi Fish
--
Shlomi Fish http://www.shlomifish.org/ My Photos - http://www.flickr.com/photos/shlomif/
Chuck Norris caught the early bird before she caught the worm. — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/
Please reply to list if it's a mailing list post -
.
Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140________...
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
On 2015-09-02 17:16 (+0200), Shlomi Fish wrote:
On Wed, 2 Sep 2015 17:02:36 +0200 Olof Bjarnason wrote:
On 2 September 2015 at 15:52, Shlomi Fish wrote:
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake: 108 (message): Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_F AILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindJPEG.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_A RGS) CMakeScripts/DefineDependsandFlags.cmake:184 (FIND_PACKAGE) CMakeLists.txt:95 (include)
You need to install the libjpeg's development package. What is your operating system, distribution, their versions, etc.?
I'm on Ubuntu 14.04.
I installed all packages mentioned on this page: http://wiki.inkscape.org/wiki/index.php/CompilingUbuntu#Installing_dependenc...
I also had to add "bzr" and "ccache", which is strictly required to build the trunk version of Inkscape.
Of course I also added "cmake" which was the whole point of trying out cmake instead of autogen+configure :).
I also tried installing all the additional packages mentioned on that wiki page too, but it did not help.
I do understand that I need the JPEG dev package, but if it JPEG lib is a strict requirement to build Inkscape, it should be listed on the wiki.
Well, it's the nature of documentation that it goes out-of-date, but you are right - it should be updated.
Or it could be "fixed" in Inkscape's Cmake config files - after all (or at least AFAIU) the JPEG dependency is not strictly required (it is used to detect the image resolution of imported JPEG images, but Inkscape's basic features will still work even if compiled without it).
JPEG is currently "optional" with autotools: https://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/configu...
Please keep in mind that Cmake in trunk is not yet on par with the autotools build system - this is ongoing work, and patches are welcome (feel free to file bug reports about trunk build failures with Cmake, or for requests to migrate missing configure options from the autotools build system).
Regards, V
On 2015-09-02 17:58 (+0200), su_v wrote:
On 2015-09-02 17:16 (+0200), Shlomi Fish wrote:
On Wed, 2 Sep 2015 17:02:36 +0200 Olof Bjarnason wrote:
On 2 September 2015 at 15:52, Shlomi Fish wrote:
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake: 108 (message): Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_F AILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindJPEG.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_A RGS) CMakeScripts/DefineDependsandFlags.cmake:184 (FIND_PACKAGE) CMakeLists.txt:95 (include)
You need to install the libjpeg's development package. What is your operating system, distribution, their versions, etc.?
I'm on Ubuntu 14.04.
I installed all packages mentioned on this page: http://wiki.inkscape.org/wiki/index.php/CompilingUbuntu#Installing_dependenc...
I also had to add "bzr" and "ccache", which is strictly required to build the trunk version of Inkscape.
Of course I also added "cmake" which was the whole point of trying out cmake instead of autogen+configure :).
I also tried installing all the additional packages mentioned on that wiki page too, but it did not help.
I do understand that I need the JPEG dev package, but if it JPEG lib is a strict requirement to build Inkscape, it should be listed on the wiki.
Well, it's the nature of documentation that it goes out-of-date, but you are right - it should be updated.
Or it could be "fixed" in Inkscape's Cmake config files - after all (or at least AFAIU) the JPEG dependency is not strictly required (it is used to detect the image resolution of imported JPEG images, but Inkscape's basic features will still work even if compiled without it).
JPEG is currently "optional" with autotools: https://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/configu...
Should be fixed for cmake builds in r14341 - JPEG is optional now; if detected, it is actually used (wasn't before).
Regards, V
Am Mittwoch, 2. September 2015, 17:02:36 schrieb Olof Bjarnason:
[...]
I'm on Ubuntu 14.04.
I installed all packages mentioned on this page: http://wiki.inkscape.org/wiki/index.php/CompilingUbuntu#Installing_dependenc ies
On Debian and derivates you can also use apt-get build-dep inkscape to get most required packages.
I also had to add "bzr" and "ccache", which is strictly required to build the trunk version of Inkscape.
ccache is not required, it just speeds up compilations in the future.
Tobias
[...]
On Wed, Sep 2, 2015 at 10:30 AM, Tobias Ellinghaus <houz@...173...> wrote:
On Debian and derivates you can also use apt-get build-dep inkscape to get most required packages.
I had thought about giving that recommendation too, however, with Olof being on Ubuntu 14.04 it would only pull down the dependencies for Inkscape 0.48 (since that is what is in the repo for that release). There are a handful of differences in dependencies between 0.48 and trunk.
Cheers, Josh
Another option would be to get the Inkscape trunk PPA and then:
apt-get build-dep inkscape-trunk
This will pull in the latest build dependencies for an autotools build.
AV
On 2 September 2015 at 18:36, Josh Andler <scislac@...400...> wrote:
On Wed, Sep 2, 2015 at 10:30 AM, Tobias Ellinghaus <houz@...173...> wrote:
On Debian and derivates you can also use apt-get build-dep inkscape to get most required packages.
I had thought about giving that recommendation too, however, with Olof being on Ubuntu 14.04 it would only pull down the dependencies for Inkscape 0.48 (since that is what is in the repo for that release). There are a handful of differences in dependencies between 0.48 and trunk.
Cheers, Josh
Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Hi All,
Waf is a possible future step... Not a definite move yet. However, at least one of the Inkscape developers has been very impressed by it. Advantages include the fact that it's a python-based tool, so potentially a gentler learning curve than the slightly arcane CMake syntax. Also, it properly supports wildcards, so may be easier to set up and maintain the build. In the meantime, we first need to choose between autotools and CMake so that we can avoid having three build systems in place at once!
In terms of "wasted effort", we already have a mostly ready CMake build, so fixing it shouldn't be too painful, I hope. I haven't done a thorough check yet for missing CMake switches/checks, but this will need to be done as part of any transition, along with documentation.
If there are any patches still outstanding, I'll happily sponsor them.
AV On 2 Sep 2015 2:04 pm, "Olof Bjarnason" <olof.bjarnason@...400...> wrote:
Mvh
/Olof
Trött på virus, seg dator och allmänt Windowsstrul? Pröva något nytt istället - Ubuntu! http://uboot.nu
On 2 September 2015 at 14:55, Tobias Ellinghaus <houz@...173...> wrote:
Am Mittwoch, 2. September 2015, 13:15:50 schrieb Alex Valavanis:
Hi Olof, Shlomi,
autotools builds are the official recommendation for 0.91. CMake still needs some work, and doesn't fully support all options.
I think the consensus at present is that supporting two build systems is unsustainable and we intend to do the following:
- Fix CMake builds for the next release, make this the official build
system and deprecate the autotools builds. 2. Remove the autotools builds in the following release 3. Potentially move to the Waf build system in the following release
So all the effort put into CMake are wasted time since you will replace it with Waf? Why the intermediate step of CMake then?
Any feedback on your experience with CMake would be greatly appreciated!
For me CMake works nicely, at least for a general build. I didn't add inkview (i never used that myself) nor did i try to add switches for GTK3 and all the other options, but plain standard install just works. I build it like this:
mkdir build cd build CFLAGS="-O3 -g" CXXFLAGS=${CFLAGS} cmake -DCMAKE_INSTALL_PREFIX=/opt/inkscape/ .. make -j install
Thank you Tobias - but you missed the "../inscape" argument at the end of the cmake command line, right?
Even after fixing that typo, I get the same error as when I got help from Shumis' build script:
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake: 108 (message): Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_F AILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindJPEG.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_A RGS) CMakeScripts/DefineDependsandFlags.cmake:184 (FIND_PACKAGE) CMakeLists.txt:95 (include)
AV
Tobias
[...]
Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Hi Alex,
On Wed, 2 Sep 2015 13:15:50 +0100 Alex Valavanis <valavanisalex@...400...> wrote:
Hi Olof, Shlomi,
autotools builds are the official recommendation for 0.91. CMake still needs some work, and doesn't fully support all options.
Are the options that CMake does not support yet listed somewhere?
I think the consensus at present is that supporting two build systems is unsustainable and we intend to do the following:
- Fix CMake builds for the next release, make this the official build
system and deprecate the autotools builds. 2. Remove the autotools builds in the following release
So far so good.
- Potentially move to the Waf build system in the following release
If Waf is considered to be better for us than CMake, why bother with CMake at all and not move directly to Waf?
Any feedback on your experience with CMake would be greatly appreciated!
Well, I had a mostly positive experience in building various open-source projects using CMake and with using it for my own open-source projects. With Inkscape, I often had to fix parts of the CMake-based build system myself, and submitted patches for it.
Regards,
Shlomi Fish
On Wed, Sep 02, 2015 at 03:58:18PM +0300, Shlomi Fish wrote:
Hi Alex,
On Wed, 2 Sep 2015 13:15:50 +0100 Alex Valavanis <valavanisalex@...400...> wrote:
Hi Olof, Shlomi,
autotools builds are the official recommendation for 0.91. CMake still needs some work, and doesn't fully support all options.
Are the options that CMake does not support yet listed somewhere?
I'm not sure if anyone has done a thorough analysis of the old autotools-based system's options. Some months back I generated dists with both systems and compared the file lists. There was still a large discrepancy, including man pages, templates, and a handful of source files.
cxxtest wasn't hooked up in cmake yet, so possibly that still needs looked at. cmake correctly installs all the docs, but some of that stuff is more developer oriented (e.g. doc/NewAppArchitecture) so maybe should be split out separately or something. cmake also installed some files that automake currently ignores, that maybe it should be excluding.
There are also a variety of things in share/extensions which automake didn't install, but I wondered if maybe it should.
Anyway, the steps for testing this are basically to do configures with each build system, run 'make dist', tar -t the generated dist to get file listings, and then sort and diff the lists. Ideally the only differences should be cmake-specific build bits on the one side, and automake-specific junk on the other. Whatever remains needs to be thought out.
I think the consensus at present is that supporting two build systems is unsustainable and we intend to do the following:
- Fix CMake builds for the next release, make this the official build
system and deprecate the autotools builds. 2. Remove the autotools builds in the following release
So far so good.
- Potentially move to the Waf build system in the following release
If Waf is considered to be better for us than CMake, why bother with CMake at all and not move directly to Waf?
Actually, we debated this at the hackfest. It's not totally clear to everyone which of these two is technically better, but cmake is definitely more widely known. We decided to go with cmake since it's already 90% working, and only switch to waf if we ran into some unsolvable problem with cmake.
Any feedback on your experience with CMake would be greatly appreciated!
Well, I had a mostly positive experience in building various open-source projects using CMake and with using it for my own open-source projects. With Inkscape, I often had to fix parts of the CMake-based build system myself, and submitted patches for it.
Yeah, same here. I think it's mainly teething pains since a lot of people haven't switched over to using it yet. So like Alex said, plan is to fix up everything we know of, get it released into the wild, and then remove automake and focus on making the cmake build solid.
Then if enough people want to give waf a stronger shot, we can start experiments with that.
Bryce
Hi Bryce,
thanks for your detailed and informative response. I'll try to contribute in this respect.
Regards,
Shlomi Fish
On Mon, 21 Sep 2015 19:24:44 -0700 Bryce Harrington <bryce@...961...> wrote:
participants (8)
-
unknown@example.com
-
Alex Valavanis
-
Bryce Harrington
-
Josh Andler
-
Olof Bjarnason
-
Shlomi Fish
-
su_v
-
Tobias Ellinghaus