unable to compile 0.92.x rev 15268 on Windows XP
1. My first attempt was using btool. This led to Bug 1651137 which I have been unable to fix. https://bugs.launchpad.net/inkscape/+bug/1651137
2. My second attempt was using cmake 3.2.1. I followed the instructions at: http://wiki.inkscape.org/wiki/index.php/Compiling_Inkscape_on_Windows
This led to the following error:
C:\InkscapeBZR\src>md build C:\InkscapeBZR\src>cd build C:\InkscapeBZR\src\build>cmake -G "MinGW Makefiles" ..
CMake Error at debug/CMakeLists.txt:28 (add_inkscape_source): Unknown CMake command "add_inkscape_source".
CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.2) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred! See also "C:/InkscapeBZR/src/CMakeFiles/CMakeOutput.log".
........................................................................
tia, Alvin
-- View this message in context: http://inkscape.13.x6.nabble.com/unable-to-compile-0-92-x-rev-15268-on-Windo... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Hi Alvin,
I can only comment on 2. (since I didn't do a btool build in some time).
The CMake error sounds a lot like a version problem and/or some outdated cmake file (do you happen to have conflicts with "bzr status"?).
I just sucessfully compiled 0.92.x r15275 (both 64 and 32 bit) with CMake 3.6.2 on Windows 10 x64.
Regards, Eduard
Am 20.12.2016 um 14:03 schrieb alvinpenner:
- My first attempt was using btool. This led to Bug 1651137 which I have
been unable to fix. https://bugs.launchpad.net/inkscape/+bug/1651137
- My second attempt was using cmake 3.2.1. I followed the instructions at:
http://wiki.inkscape.org/wiki/index.php/Compiling_Inkscape_on_Windows
This led to the following error:
C:\InkscapeBZR\src>md build C:\InkscapeBZR\src>cd build C:\InkscapeBZR\src\build>cmake -G "MinGW Makefiles" ..
CMake Error at debug/CMakeLists.txt:28 (add_inkscape_source): Unknown CMake command "add_inkscape_source".
CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.2) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred! See also "C:/InkscapeBZR/src/CMakeFiles/CMakeOutput.log".
........................................................................
tia, Alvin
-- View this message in context: http://inkscape.13.x6.nabble.com/unable-to-compile-0-92-x-rev-15268-on-Windo... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today.http://sdm.link/intel _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Hi, thanks for the feedback. I thought there might be some conflict between btool and cmake, so I did another trial. I did a lightweight checkout of 0.92.x branch rev 15275. I put this into a new directory, never used before, and ran the test again. The results are the same as before, as below: I am attaching the CMakeOutput.log file. The machine that I do the build on is not connected to the internet so I am not able to run the 'bzr status' command. CMakeOutput.log http://inkscape.13.x6.nabble.com/file/n4978233/CMakeOutput.log Cheers, Alvin
................................................................ C:\InkscapeBZR92x\src>md build
C:\InkscapeBZR92x\src>cd build
C:\InkscapeBZR92x\src\build>cmake -G "MinGW Makefiles" .. -- The C compiler identification is GNU 4.6.1 -- The CXX compiler identification is GNU 4.6.1 -- Check for working C compiler: c:/mingw/bin/gcc.exe -- Check for working C compiler: c:/mingw/bin/gcc.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: c:/mingw/bin/g++.exe -- Check for working CXX compiler: c:/mingw/bin/g++.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at debug/CMakeLists.txt:28 (add_inkscape_source): Unknown CMake command "add_inkscape_source".
CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.2)
should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred! See also "C:/InkscapeBZR92x/src/build/CMakeFiles/CMakeOutput.log".
-- View this message in context: http://inkscape.13.x6.nabble.com/unable-to-compile-0-92-x-rev-15268-on-Windo... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Le 22/12/2016 à 01:44, alvinpenner a écrit :
The machine that I do the build on is not connected to the internet so I
am not able to run the 'bzr status' command.
I don’t think you need an internet connection to run bzr status… Unless you don’t have Bazaar. Did you try to use a more recent version of CMake?
CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.2) should be added at the top of the file.
Shouldn’t we add this command? -- Sylvain
Am 22.12.2016 um 01:49 schrieb Sylvain Chiron:
Le 22/12/2016 à 01:44, alvinpenner a écrit :
The machine that I do the build on is not connected to the internet so I
am not able to run the 'bzr status' command.
I don’t think you need an internet connection to run bzr status… Unless you don’t have Bazaar. Did you try to use a more recent version of CMake?
That's what I had in mind and assume to be the prime suspect (maybe I should have been clearer).
CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.2) should be added at the top of the file.
Shouldn’t we add this command?
It's there... No idea what CMake is doing (or rather not doing) to produce this message.
-- Sylvain
Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today.http://sdm.link/intel _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Hi, I upgraded from CMake 3.2.1 to 3.7.1 but the result is the same. I am attaching a portion of the directory tree underneath src. To me this looks rather strange. Is it normal to have two different debug directories and two different CMakeFiles directories? I followed the instructions on the website, but the resulting tree looks unusual.
Alvin
C:\InkscapeBZR92x\src>tree Folder PATH listing Volume serial number is 68EA-76E1 C:. ├───2geom │ └───numeric ├───build │ ├───CMakeFiles │ │ ├───3.7.1 │ │ │ ├───CompilerIdC │ │ │ └───CompilerIdCXX │ │ └───CMakeTmp │ └───debug │ └───CMakeFiles ├───debug ├───display ├───extension │ ├───dbus │ │ ├───doc │ │ └───wrapper │ ├───implementation │ ├───internal │ │ ├───bitmap │ │ ├───filter │ │ └───pdfinput │ ├───param │ └───plugins │ └───grid2 ├───filters ├───helper ├───inkgc
-- View this message in context: http://inkscape.13.x6.nabble.com/unable-to-compile-0-92-x-rev-15268-on-Windo... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Oh, I think there's the issue (it seems it was just too obvious...): You have to create the "build" folder in your root directory, not the "/src" subdirectory!
Am 22.12.2016 um 03:41 schrieb alvinpenner:
Hi, I upgraded from CMake 3.2.1 to 3.7.1 but the result is the same. I am attaching a portion of the directory tree underneath src. To me this looks rather strange. Is it normal to have two different debug directories and two different CMakeFiles directories? I followed the instructions on the website, but the resulting tree looks unusual.
Alvin
C:\InkscapeBZR92x\src>tree Folder PATH listing Volume serial number is 68EA-76E1 C:. ├───2geom │ └───numeric ├───build │ ├───CMakeFiles │ │ ├───3.7.1 │ │ │ ├───CompilerIdC │ │ │ └───CompilerIdCXX │ │ └───CMakeTmp │ └───debug │ └───CMakeFiles ├───debug ├───display ├───extension │ ├───dbus │ │ ├───doc │ │ └───wrapper │ ├───implementation │ ├───internal │ │ ├───bitmap │ │ ├───filter │ │ └───pdfinput │ ├───param │ └───plugins │ └───grid2 ├───filters ├───helper ├───inkgc
-- View this message in context: http://inkscape.13.x6.nabble.com/unable-to-compile-0-92-x-rev-15268-on-Windo... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today.http://sdm.link/intel _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
thanks, I think that worked! It is currently compiling, so I'll report back when it finishes (slow computer...)
Alvin
-- View this message in context: http://inkscape.13.x6.nabble.com/unable-to-compile-0-92-x-rev-15268-on-Windo... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
thanks again, the build was successful. just 2 final questions:
1. I am getting the warnings about hicolor again:
C:\InkscapeBZR92x\build\output\InkscapeBZR92x\build\inkscape>inkscape -V Inkscape 0.92pre4
C:\InkscapeBZR92x\build\output\InkscapeBZR92x\build\inkscape>inkscape
(inkscape.exe:2240): Gtk-WARNING **: Could not find the icon 'object-visible'. The 'hicolor' theme was not found either, perhaps you need to install it. You can get a copy from: http://icon-theme.freedesktop.org/releases
2. I cannot seem to find the gdb.exe file anywhere in the output. Is it intended that it should be included, for debugging purposes? Or, I guess what I mean is, will it be included if you compile trunk using cmake?
Alvin
-- View this message in context: http://inkscape.13.x6.nabble.com/unable-to-compile-0-92-x-rev-15268-on-Windo... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Am 22.12.2016 um 05:35 schrieb alvinpenner:
thanks again, the build was successful. just 2 final questions:
- I am getting the warnings about hicolor again:
C:\InkscapeBZR92x\build\output\InkscapeBZR92x\build\inkscape>inkscape -V Inkscape 0.92pre4
C:\InkscapeBZR92x\build\output\InkscapeBZR92x\build\inkscape>inkscape
(inkscape.exe:2240): Gtk-WARNING **: Could not find the icon 'object-visible'. The 'hicolor' theme was not found either, perhaps you need to install it. You can get a copy from: http://icon-theme.freedesktop.org/releases
This should have been fixed with http://bazaar.launchpad.net/~inkscape.dev/inkscape/0.92.x/revision/15136
The file "index.theme" is created on install (i.e. you have to run "mingw32-make install" and then run Inkscape from the "build/inkscape" folder).
- I cannot seem to find the gdb.exe file anywhere in the output. Is it
intended that it should be included, for debugging purposes? Or, I guess what I mean is, will it be included if you compile trunk using cmake?
Right now cmake is not copying gdb.exe. * I think this makes sense for production releases as we do not ship debug symbols either and most people won't need it. * We could think about changing that for builds configured with "-DCMAKE_BUILD_TYPE=Debug" (but I did not work with that define so far... I'm happy CMake is working at all for the time being :-/ ) * Either way people compiling themselves always have a version of gdb at hand (included in devlibs for 32 bit builds, shipped with MinGW for 64 bit builds). Do you think it's necessary to offer Windows debug builds with gdb included for people not able to compile themselves?
Alvin
-- View this message in context: http://inkscape.13.x6.nabble.com/unable-to-compile-0-92-x-rev-15268-on-Windo... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today.http://sdm.link/intel _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Hi, thanks for the feedback. I have been able to locate the index.theme file, it is located at:
C:\InkscapeBZR92x\build>dir/s index.theme Volume in drive C has no label. Volume Serial Number is 68EA-76E1
Directory of C:\InkscapeBZR92x\build\inkscape\share\icons\hicolor
12/21/2016 10:11 PM 40 index.theme
unfortunately, that is not where the inkscape executable is located. The executable is at:
Directory of C:\InkscapeBZR92x\build\output\InkscapeBZR92x\build\inkscape
12/21/2016 11:02 PM 1,568,913 inkscape.exe
so it is unlikely that the executable will find the required hicolor directory. Attached is a directory listing of the hicolor directory that inkscape is using
Directory of C:\InkscapeBZR92x\build\output\InkscapeBZR92x\build\inkscape\share\icons\hicolor
12/21/2016 11:17 PM <DIR> . 12/21/2016 11:17 PM <DIR> .. 12/21/2016 11:17 PM <DIR> 16x16 12/21/2016 11:17 PM <DIR> 22x22 12/21/2016 11:17 PM <DIR> 24x24 12/21/2016 11:17 PM <DIR> 256x256 12/21/2016 11:17 PM <DIR> 32x32 12/21/2016 11:17 PM <DIR> 48x48
It does not contain the index.theme file. Obviously I have located the inkscape build output into the wrong directory, but it is not entirely clear what the right location would be.
Would it be possible, on the website http://wiki.inkscape.org/wiki/index.php/Compiling_Inkscape_on_Windows to indicate two things: 1. where is the build directory supposed to be relative to the src? 2. where is the output directory supposed to be relative to the src? 3. or perhaps a typical directory tree would be helpful on the website, showing the relative locations of the various directories? 4. or perhaps an explicit example showing the exact format of the mingw32-make command, including the source directory from which it was executed, similar to what the btool documentation shows?
.....................................................
wrt the gdb.exe file, I guess it doesn't matter for the 0.92.x branch, as long as a typical trunk build will include it, as well as the inkscape.dbg file.
thanks for your patience, Alvin
-- View this message in context: http://inkscape.13.x6.nabble.com/unable-to-compile-0-92-x-rev-15268-on-Windo... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Hi Alvin,
you're right...
I guess you used "DESTDIR" in your call to mingw32-make? It's not working properly (at least on Windows) and is an annoyance for me, too, but I myself are not fond of CMake so I didn't try to solve it yet (and apparently nobody else is interested either...).
I suggest you to simply omit the "DESTDIR" switch for now (then the distribution will end up in "./build/inkscape", i.e. "C:\InkscapeBZR92x\build\inkscape" for you) and it should work.
Of course you're welcome to look into the path issue(s)!
Regards, Eduard
Am 22.12.2016 um 13:57 schrieb alvinpenner:
Hi, thanks for the feedback. I have been able to locate the index.theme file, it is located at:
C:\InkscapeBZR92x\build>dir/s index.theme Volume in drive C has no label. Volume Serial Number is 68EA-76E1
Directory of C:\InkscapeBZR92x\build\inkscape\share\icons\hicolor
12/21/2016 10:11 PM 40 index.theme
unfortunately, that is not where the inkscape executable is located. The executable is at:
Directory of C:\InkscapeBZR92x\build\output\InkscapeBZR92x\build\inkscape
12/21/2016 11:02 PM 1,568,913 inkscape.exe
so it is unlikely that the executable will find the required hicolor directory. Attached is a directory listing of the hicolor directory that inkscape is using
Directory of C:\InkscapeBZR92x\build\output\InkscapeBZR92x\build\inkscape\share\icons\hicolor
12/21/2016 11:17 PM <DIR> . 12/21/2016 11:17 PM <DIR> .. 12/21/2016 11:17 PM <DIR> 16x16 12/21/2016 11:17 PM <DIR> 22x22 12/21/2016 11:17 PM <DIR> 24x24 12/21/2016 11:17 PM <DIR> 256x256 12/21/2016 11:17 PM <DIR> 32x32 12/21/2016 11:17 PM <DIR> 48x48
It does not contain the index.theme file. Obviously I have located the inkscape build output into the wrong directory, but it is not entirely clear what the right location would be.
Would it be possible, on the website http://wiki.inkscape.org/wiki/index.php/Compiling_Inkscape_on_Windows to indicate two things:
- where is the build directory supposed to be relative to the src?
- where is the output directory supposed to be relative to the src?
- or perhaps a typical directory tree would be helpful on the website,
showing the relative locations of the various directories? 4. or perhaps an explicit example showing the exact format of the mingw32-make command, including the source directory from which it was executed, similar to what the btool documentation shows?
.....................................................
wrt the gdb.exe file, I guess it doesn't matter for the 0.92.x branch, as long as a typical trunk build will include it, as well as the inkscape.dbg file.
thanks for your patience, Alvin
-- View this message in context: http://inkscape.13.x6.nabble.com/unable-to-compile-0-92-x-rev-15268-on-Windo... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today.http://sdm.link/intel _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
yes, I think that is correct. I believe that I was in the 'build' directory, and I created the 'output' directory, and then I used the command 'mingw32-make DESTDIR=output install'. next time I'll try it without the DESTDIR.
thanks for the advice, Alvin
-- View this message in context: http://inkscape.13.x6.nabble.com/unable-to-compile-0-92-x-rev-15268-on-Windo... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
participants (3)
-
alvinpenner
-
Eduard Braun
-
Sylvain Chiron