Summary: | media-gfx/freecad-0.12.5284-r3 - configure: QT4_CREATE_MOC_COMMAND Macro invoked with incorrect arguments for macro | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | Michael Weber (RETIRED) <xmw> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bircoph, jarausch, renatogallo, rossi.f |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
/var/tmp/portage/media-gfx/freecad-0.12.5284-r3/work/freecad-0.12.5284_build/CMakeFiles/CMakeOutput.log
build.log freecad-0.12.5284-cmake-2.8.12.patch freecad-0.12.5284-r3 build.log freecad-0.13.1830 build.log |
Description
Juergen Rose
2013-12-08 15:30:22 UTC
Created attachment 364946 [details]
build.log
After looking in build.log I still found the warning: ... -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8") CMake Warning at CMakeLists.txt:171 (find_package): By not providing "FindOCE.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "OCE", but CMake did not find one. Could not find a package configuration file provided by "OCE" with any of the following names: OCEConfig.cmake oce-config.cmake ... and ... found spnav library /usr/lib64/libspnav.so -- Platform is 64-bit, set -D_OCC64 -- DEBUG: -g -DFC_DEBUG svn: E155007: '/var/tmp/portage/media-gfx/freecad-0.12.5284-r3/work/FreeCAD-0.12.5284' is not a working copy sh: bzr: command not found -- Boost version: 1.53.0 -- Boost found: 1 dev-vcs/bzr is not installed. Is bzr necassary? (In reply to Juergen Rose from comment #2) > After looking in build.log I still found the warning: > ... > -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8") > CMake Warning at CMakeLists.txt:171 (find_package): > By not providing "FindOCE.cmake" in CMAKE_MODULE_PATH this project has > asked CMake to find a package configuration file provided by "OCE", but > CMake did not find one. > > Could not find a package configuration file provided by "OCE" with any of > the following names: > > OCEConfig.cmake > oce-config.cmake > ... > > and > ... > found spnav library /usr/lib64/libspnav.so > -- Platform is 64-bit, set -D_OCC64 > -- DEBUG: -g -DFC_DEBUG > svn: E155007: > '/var/tmp/portage/media-gfx/freecad-0.12.5284-r3/work/FreeCAD-0.12.5284' is > not a working copy > sh: bzr: command not found > -- Boost version: 1.53.0 > -- Boost found: 1 > > > dev-vcs/bzr is not installed. Is bzr necassary? Even if bzr is installed I get the same messages. It seems that the problem is related to the latest unstable cmake 2.8.12.1 you're using. Looking at http://www.freecadweb.org/tracker/view.php?id=1278 you can find the original patch. I'm attaching here a modified version for freecad-0.12.5284. The patch will be available upstream starting from freecad 0.14. Created attachment 367080 [details, diff]
freecad-0.12.5284-cmake-2.8.12.patch
(In reply to Fabio Rossi from comment #5) > Created attachment 367080 [details, diff] [details, diff] > freecad-0.12.5284-cmake-2.8.12.patch Thanks again Fabio, with this cmake patch and the occ patch from bug #474794 'emerge freecad' works. *** Bug 498460 has been marked as a duplicate of this bug. *** doesn't work CMake Error at CMakeLists.txt:280 (QT4_CREATE_MOC_COMMAND): QT4_CREATE_MOC_COMMAND Macro invoked with incorrect arguments for macro named: QT4_CREATE_MOC_COMMAND Call Stack (most recent call first): src/Gui/CMakeLists.txt:162 (fc_wrap_cpp) -- Coin3D doc is installed -- Tag file: /usr/share/doc/coin-3.1.3-r2/html/coin.tag -- Location: /usr/share/doc/coin-3.1.3-r2/html -- <<< Gentoo configuration >>> Build type Gentoo Install path /usr/lib64/freecad-0.12.5284 Compiler flags: C -O2 -pipe C++ -O2 -pipe -D_OCC64 Linker flags: Executable -Wl,-O1 -Wl,--as-needed Module -Wl,-O1 -Wl,--as-needed Shared -Wl,-O1 -Wl,--as-needed -- Configuring incomplete, errors occurred! See also "/var/tmp/portage/media-gfx/freecad-0.12.5284-r3/work/freecad-0.12.5284_build/CMakeFiles/CMakeOutput.log". See also "/var/tmp/portage/media-gfx/freecad-0.12.5284-r3/work/freecad-0.12.5284_build/CMakeFiles/CMakeError.log". (In reply to Fabio Rossi from comment #4) > It seems that the problem is related to the latest unstable cmake 2.8.12.1 > you're using. Looking at http://www.freecadweb.org/tracker/view.php?id=1278 > you can find the original patch. I'm attaching here a modified version for > freecad-0.12.5284. The patch will be available upstream starting from > freecad 0.14. Created attachment 369554 [details]
freecad-0.12.5284-r3 build.log
build still crashes
Created attachment 369556 [details]
freecad-0.13.1830 build.log
even new version doesn't compile
(In reply to renato gallo from comment #8) > doesn't work Please don't mix freecad versions in this bug report. Anyway you're not applying all the patches. I'd suggest to test the ebuild and patches for the latest version collected in bug #457830, report there in case of problems. Who is maintaining this package? If he is still consuming oxygen, then we are not really getting good value here. I just spent 23.2 minutes looking at why I could not say "emerge freecad" and get a cup of coffee and then use freecad? I believ ethat the solution is, and I am not going to provide a patch as the CMakefile.txt (i) patched to buggery and (ii) I don't like CMake because every CMake project is a whole new experience. The offending lines in the CMakeFile.txt that worked for me were (that I just found by grabbing the latest and greatest source from git) # This is a special version of the built in macro qt4_wrap_cpp # It is required since moc'ed files are now included instead of being added to projects directly # It adds a reverse dependency to solve this # This has the unfortunate side effect that some files are always rebuilt # There is probably a cleaner solution than this macro(fc_wrap_cpp outfiles ) # get include dirs QT4_GET_MOC_FLAGS(moc_flags) QT4_EXTRACT_OPTIONS(moc_files moc_options moc_target ${ARGN}) # fixes bug 0000585: bug with boost 1.48 SET(moc_options ${moc_options} -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED) foreach(it ${moc_files}) get_filename_component(it ${it} ABSOLUTE) QT4_MAKE_OUTPUT_FILE(${it} moc_ cpp outfile) QT4_CREATE_MOC_COMMAND(${it} ${outfile} "${moc_flags}" "${moc_options}" "${moc_target}") set(${outfiles} ${${outfiles}} ${outfile}) add_file_dependencies(${it} ${outfile}) endforeach(it) endmacro(fc_wrap_cpp) (In reply to cjanderson from comment #12) > Who is maintaining this package? If he is still consuming oxygen, then we > are not really getting good value here. Yes, i still do, thanks for asking. +*freecad-0.12.5284-r4 (23 Apr 2014) + + 23 Apr 2014; Michael Weber <xmw@gentoo.org> + +files/freecad-0.12.5284-cmake-2.8.12.patch, + +files/freecad-0.12.5284-occ-6.6.patch, +freecad-0.12.5284-r4.ebuild, + freecad-0.12.5284-r3.ebuild: + Revbump to address cmake update (bug 493666), opencascade-6.6 changes (bug + 474794) and fix eselect module invocation (bug 468696). Thanks to Fabio Rossi, + Juergen Rose, Bob Johnson and others. + |