I made some further changes to the build system. Now Inkscape compiles on Win32, Linux, FreeBsd and Mac OS, as far as I can tell. I rewrote that boehmgc-part. Since we are requiring bdw-gc>=7.0, it is safe to always use "gc/gc.h". The other header is only supplied for backward compatibility. Currently we need a customized FindGTK2 module, but I reported the problem to cmake's bug tracker. This should be fixed soon, I hope. Does Inkscape run for you on Windows now if you copy the generated dlls from lib to bin?
Regards, Markus
-----Ursprüngliche Nachricht----- Von: Johan Engelen [mailto:jbc.engelen@...2592...] Gesendet: Mittwoch, 20. November 2013 00:34 An: inkscape-devel@lists.sourceforge.net Betreff: Re: [Inkscape-devel] Trunk r12812 building on Windows for anybody?
I'm sorry Markus, I now see what you meant. build.xml explicitly adds -I${devlibs}/include/gc, which makes #include <gc.h> work. Because this folder is not added by our CMake script, we instead can set -DHAVE_GC_GC_H. I've modified the CMake script to do this on Windows. Now that part works.
Cheers, Johan
On 19-11-2013 19:02, jbc.engelen@...2592... wrote:
Hi Markus, Great, I'll try when I'm home. CMake finds the garbage collector using pkg-config, and that works fine for me. (check devlibs/lib/pkgconfig/bdw-gc.pc and see if it looks OK)
Cheers, Johan
---- Markus Engel <p637777@...1081...> wrote:
Hi, I added the library dependencies to the CMakeLists in r12821. For me the dlls compile now. Does cmake find "gc/gc.h" or "gc.h" on your system? For me it says not found for both. There must be something wrong with my setup as I can clearly see the file.
Regards, Markus
-----Ursprüngliche Nachricht----- Von: Johan Engelen [mailto:jbc.engelen@...2592...] Gesendet: Montag, 18. November 2013 21:35 An: Markus Engel Cc: 'inkscape-devel' Betreff: Re: AW: AW: AW: [Inkscape-devel] Trunk r12812 building on Windows for anybody?
In 2geom, we explicitly add the link dependencies, like:
TARGET_LINK_LIBRARIES(2geom "${LINK_GSL} ${GTK2_LINK_FLAGS}")
Perhaps you have to add that too? (I'm in #inkscape-devel btw)
-Johan
On 18-11-2013 21:27, Markus Engel wrote:
Me, too. Somehow the dependency tracking does not seem to work. Under both Linux and FreeBSD 10 my branch compiles without any changes using
cmake.
Under Windows and Mac OS cmake seems to forget the dependencies. I don't know why. Maybe it's just some unset variable or so.
Regards, Markus
-----Ursprüngliche Nachricht----- Von: Johan Engelen [mailto:jbc.engelen@...2592...] Gesendet: Montag, 18. November 2013 21:24 An: Markus Engel Cc: 'inkscape-devel' Betreff: Re: AW: AW: [Inkscape-devel] Trunk r12812 building on Windows for anybody?
What CMake version are you using? I'm using 2.8.12 (latest)
-Johan
On 18-11-2013 20:48, Markus Engel wrote:
Actually, I'm not sure why this happens. To me this looks like cmake is behaving differently on linux and on windows/mac. I noticed these missing dependencies in the linking commands, too.
Regards, Markus
-----Ursprüngliche Nachricht----- Von: Johan Engelen [mailto:jbc.engelen@...2592...] Gesendet: Montag, 18. November 2013 20:22 An: Markus Engel Cc: 'inkscape-devel' Betreff: Re: AW: [Inkscape-devel] Trunk r12812 building on Windows for anybody?
On 18-11-2013 20:13, Johan Engelen wrote:
On 16-11-2013 15:54, Markus Engel wrote:
> To have the cake and eat it too, we should create shared > libraries, not static libraries. This will run the global init code but also allow us to modularize. However, building shared libraries with Autotools is very annoying. I'd rather we did this after migrating all platforms to CMake / Waf / something other than Autotools which has native support for shared libs.
Hi, I created a new branch at lp:~engelmarkus/inkscape/cmakebuild for this. Currently it should work in Linux. The dom part and all the lib*-folders are compiled into shared objects. I'm just not sure now where they should be installed to. prefix/lib/inkscape probably? I'll try compilation on Windows and Mac OS later this day. The only thing that's missing currently is the cmake installation "code" for these two platforms.
Hi Markus, Open up your branch if you want help!
See the attachment.
The dependency check completes successfully with my patch (previous mail), but linking does not. The commandline for linking does not list any of the dependencies. Output snippet:
FAILED: cmd.exe /c cd . && C:\mingw\bin\c++.exe -shared -o lib/libcola.dll -Wl,--out-implib,lib\libcola.dll.a -Wl,--major-image-version,0,--minor-image-version,0 src/libcola/CMakeFiles/cola.dir/cola.cpp.obj src/libcola/CMakeFiles/cola.dir/conjugate_gradient.cpp.obj src/libcola/CMakeFiles/cola.dir/connected_components.cpp.obj src/libcola/CMakeFiles/cola.dir/gradient_projection.cpp.obj src/libcola/CMakeFiles/cola.dir/shortest_paths.cpp.obj src/libcola/CMakeFiles/cola.dir/straightener.cpp.obj -LD:\inkscape\cmakebuild\inkscape -Lc:\devlibs\lib -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd . Creating library file: lib\libcola.dll.asrc/libcola/CMakeFiles/cola.dir/cola.cpp.obj:cola. cp p :(.tex t+0x1bd): undefined reference to `vpsc::Rectangle::xBorder'
Cheers, Johan
-------- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.c lktrk _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clk... _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel