From: Johan E. <jbc...@sw...> - 2012-09-04 18:55:07
|
Hello Jan, When I add "-shared" to the commandline that gives the error, it works. So now I have to figure out how to add that to the build... Setting "PYTHON_ENABLE_MODULE__common_decl" and all that follow to OFF and "PYTHON_MODULE__common_decl_BUILD_SHARED" and all that follow to ON, gives the following cmake error: CMake Error at CMakeScripts/UseCython.cmake:247 (target_link_libraries): Cannot specify link libraries for target "_common_decl" which is not built by this project. Call Stack (most recent call first): src/2geom/cython-bindings/CMakeLists.txt:55 (cython_add_module) Thanks, Johan On 4-9-2012 10:46, jan pulmann wrote: > Hi Johan, > > I did compile with TDM-GCC, following inkscape's instructions. Yeah, > manual seems a bit dated there, I guess I will fix it. I actually > didn't install gsl or gtk, so I don't know about that. Inkscape > building instructions should point to > http://wiki.inkscape.org/wiki/index.php/Win32Port > > About that error, does cython generate anything? Could you please send > me the _common_decl.cxx file? > http://stackoverflow.com/questions/6985109/how-to-compile-c-code-from-cython-with-gcc > describes a similar problem, solution appeared to be linking the right > libraries, which cmake should be doing. > > Cheers, > Jan Pulmann > > > On Tue, Sep 4, 2012 at 12:17 AM, Johan Engelen > <jbc...@sw... <mailto:jbc...@sw...>> wrote: > > Hi Jan, > > Great that you are working on this. > I get the following error: > Linking CXX shared module _common_decl.pyd > c:/mingw32/bin/../lib/gcc/mingw32/4.6.1/../../../libmingw32.a(main.o): > In function `main': > C:\MinGW\msys\1.0\src\mingwrt/../mingw/main.c:73: undefined > reference to `WinMain@16' > collect2: ld returned 1 exit status > make[2]: *** [src/2geom/cython-bindings/cy2geom.pyd] Error 1 > > The README.win32 text says to download the latest mingw and > provides an outdated (and broken) link. For Inkscape we use > TDM-GCC, http://tdm-gcc.tdragon.net/ , did you try to build with > that one? > > Cheers, > Johan > > > > On 2-9-2012 17:55, jan pulmann wrote: >> Hi, I finally managed to build python bindings on Windows, I >> described the procedure in >> http://bazaar.launchpad.net/~lib2geom-hackers/lib2geom/trunk/view/head:/README.win32 >> <http://bazaar.launchpad.net/%7Elib2geom-hackers/lib2geom/trunk/view/head:/README.win32> >> >> Please, test and report :) >> Best regards >> Jan Pulmann >> >> On Wed, Aug 22, 2012 at 10:39 PM, Johan Engelen >> <jbc...@sw... <mailto:jbc...@sw...>> >> wrote: >> >> I think we are all very excited about trying the new Python >> bindings, so >> let's try to get this building on Windows ! >> >> Jan, can you try to build it on Windows? Or does someone else >> have to >> step up to the plate? >> >> Cheers, >> Johan >> >> >> On 16-8-2012 22:22, Kris De Gussem wrote: >> > Compiles successfully now windows, with the bindings >> switched off. >> > >> > Regards >> > K. >> > >> > 2012/8/14 jan pulmann <jan...@gm... >> <mailto:jan...@gm...>>: >> >> On Mon, Aug 13, 2012 at 10:37 PM, Kris De Gussem >> >> <kri...@gm... <mailto:kri...@gm...>> >> wrote: >> >>> >> >>> Dear all >> >>> >> >>> I fail to compile lib2geom on windows (64 bit) even when >> Ragel and >> >>> cython are installed. >> >>> Still something is not right with cython, see output: >> >>> >> >>> ==================================== >> >>> E:\Inkscapecode\lib2geom>cmake -G "MinGW Makefiles" >> >>> -- The CXX compiler identification is GNU 4.6.1 >> >>> -- The C compiler identification is GNU 4.6.1 >> >>> -- 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 >> >>> -- 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 >> >>> -- gtk+-2.0 Includes, Compile and Link Flags: FOUND >> >>> -- gtkmm-2.4 Includes, Compile and Link Flags: FOUND >> >>> -- cairomm-1.0 Includes, Compile and Link Flags: FOUND >> >>> -- cairo Includes, Compile and Link Flags: FOUND >> >>> -- gsl Includes, Compile and Link Flags: FOUND >> >>> -- blas Includes, Compile and Link Flags: NOT FOUND >> >>> -- pycairo Includes, Compile and Link Flags: NOT FOUND >> >>> -- boost: FOUND ( C:/devlibs/include ) >> >>> -- Performing Test HAVE_SINCOS >> >>> -- Performing Test HAVE_SINCOS - Failed >> >>> -- Performing Test HAVE_ROUND >> >>> -- Performing Test HAVE_ROUND - Success >> >>> -- Performing Test HAVE_TRUNC >> >>> -- Performing Test HAVE_TRUNC - Success >> >>> CMake Warning (dev) at CMakeLists.txt:15 (LINK_DIRECTORIES): >> >>> This command specifies the relative path >> >>> >> >>> src/2geom >> >>> >> >>> as a link directory. >> >>> >> >>> Policy CMP0015 is not set: link_directories() treats >> paths relative to the >> >>> source dir. Run "cmake --help-policy CMP0015" for >> policy details. Use the >> >>> cmake_policy command to set the policy and suppress >> this warning. >> >>> This warning is for project developers. Use -Wno-dev to >> suppress it. >> >>> >> >>> CMake Error at >> c:/cmake/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cm >> >>> ake:97 (MESSAGE): >> >>> Could NOT find Cython (missing: CYTHON_EXECUTABLE) >> >>> Call Stack (most recent call first): >> >>> >> c:/cmake/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 >> (_FPH >> >>> SA_FAILURE_MESSAGE) >> >>> CMakeScripts/FindCython.cmake:29 >> (FIND_PACKAGE_HANDLE_STANDARD_ARGS) >> >>> CMakeScripts/UseCython.cmake:76 (find_package) >> >>> src/2geom/CMakeLists.txt:178 (include) >> >>> >> >>> >> >>> -- Configuring incomplete, errors occurred! >> >>> ==================================== >> >>> >> >>> Is it possible that this error is resulting from the >> ongoing GSoc project? >> >>> Is something missing in my cython installation, does the >> cmake script >> >>> need some update for windows? >> >>> Finally, is it possible to add an option to compile >> without cython and >> >>> update both README.win32 and mingwenv.bat (with the >> cython and >> >>> possibly other missing paths)? >> >>> >> >>> Kind regards >> >>> K >> >>> >> >>> >> ------------------------------------------------------------------------------ >> >>> Live Security Virtual Conference >> >>> Exclusive live event will cover all the ways today's >> security and >> >>> threat landscape has changed and how IT managers can >> respond. Discussions >> >>> will include endpoint security, mobile security and the >> latest in malware >> >>> threats. >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> >>> _______________________________________________ >> >>> Lib2geom-devel mailing list >> >>> Lib...@li... >> <mailto:Lib...@li...> >> >>> https://lists.sourceforge.net/lists/listinfo/lib2geom-devel >> >> >> >> Hi, I added option to turn cython bindings on/off - it's >> off by >> >> default. It's pushed in the repository now, I hope it will >> work. >> >> Best regards >> >> Jan Pulmann >> > >> > >> ------------------------------------------------------------------------------ >> > Live Security Virtual Conference >> > Exclusive live event will cover all the ways today's >> security and >> > threat landscape has changed and how IT managers can >> respond. Discussions >> > will include endpoint security, mobile security and the >> latest in malware >> > threats. >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > _______________________________________________ >> > Lib2geom-devel mailing list >> > Lib...@li... >> <mailto:Lib...@li...> >> > https://lists.sourceforge.net/lists/listinfo/lib2geom-devel >> > >> > >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. >> Discussions >> will include endpoint security, mobile security and the >> latest in malware >> threats. >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Lib2geom-devel mailing list >> Lib...@li... >> <mailto:Lib...@li...> >> https://lists.sourceforge.net/lists/listinfo/lib2geom-devel >> >> > > |