Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Call for FreeCAD build script testers - fedora 22/23/24

Options
  • 05-07-2016 4:54pm
    #1
    Registered Users Posts: 1,931 ✭✭✭


    I need help with testing FreeCAD build script. sudo is used to install packages required to build FreeCAD. Architecture/fedora version needs to be changed to match the test system. Thanks in advance! :)
    The build is executed in subdir called FreeCAD of user home dir, there are no rm commands for safety.
    #!/bin/bash
         
        ARCH=x86_64
        #ARCH=i686
         
        MAIN_DIR=FreeCAD
        BUILD_DIR=build
    
        #FEDORA_VERSION=21
        FEDORA_VERSION=22
        #FEDORA_VERSION=23
        #FEDORA_VERSION=24
         
        echo "Installing packages required to build FreeCAD"
        sudo dnf -y install gcc cmake gcc-c++ boost-devel zlib-devel swig eigen3 qt-devel \
           shiboken shiboken-devel pyside-tools python-pyside python-pyside-devel xerces-c \
           xerces-c-devel OCE-devel smesh graphviz python-pivy python-matplotlib tbb-devel \
           freeimage-devel Coin3 Coin3-devel med-devel vtk-devel
         
        cd ~
         
        mkdir $MAIN_DIR || { echo "~/$MAIN_DIR already exist. Quitting.."; exit; }
         
        cd $MAIN_DIR
         
        git clone [URL]https://github.com/FreeCAD/FreeCAD.git[/URL]
         
        mkdir $BUILD_DIR || { echo "~/$BUILD_DIR already exist. Quitting.."; exit; }
         
        cd $BUILD_DIR
         
        cmake ../FreeCAD && make
    


Comments

  • Registered Users Posts: 4,998 ✭✭✭opus


    I kicked it off but it's dog slow to download from github, currently hovering at ~25k/sec, like being back in the days of dial up modems :)

    Btw you can find the version & architecture of Fedora easy enough to avoid having to set that variable:
    (78) lsb_release -r
    Release:	24
    (79) arch
    x86_64
    


  • Registered Users Posts: 1,931 ✭✭✭PrzemoF


    opus wrote: »
    I kicked it off but it's dog slow to download from github, currently hovering at ~25k/sec, like being back in the days of dial up modems :)

    Btw you can find the version & architecture of Fedora easy enough to avoid having to set that variable:
    (78) lsb_release -r
    Release:    24
    (79) arch
    x86_64
    
    Thanks, I'll amend the script!


  • Registered Users Posts: 1,931 ✭✭✭PrzemoF


    OSI wrote: »
    Isn't FreeCad already available in the repos?

    Yes, it is (stable). I also provide cutting edge builds here [1] and there is a script to provide fire-and-forget build of FreeCAD, so we have everything covered for fedora no matter it you want to use normal repository, development repository or do a DIY build :)

    [1] https://copr.fedorainfracloud.org/coprs/przemof/FreeCAD/


  • Registered Users Posts: 4,998 ✭✭✭opus


    OSI wrote: »
    Isn't FreeCad already available in the repos?
    (42) dnf list available | grep -i freecad
    freecad.x86_64                           1:0.16-2.fc24                   fedora 
    freecad-data.noarch                      1:0.16-2.fc24                   fedora
    


  • Registered Users Posts: 4,998 ✭✭✭opus


    PrzemoF wrote: »
    Yes, it is (stable). I also provide cutting edge builds here [1] and there is a script to provide fire-and-forget build of FreeCAD, so we have everything covered for fedora no matter it you want to use normal repository, development repository or do a DIY build :)

    [1] https://copr.fedorainfracloud.org/coprs/przemof/FreeCAD/

    Assume this means the build worked ok on Fedora 24!
    [100%] Built target Example_data
    


  • Advertisement
  • Registered Users Posts: 1,931 ✭✭✭PrzemoF


    Thank you very much!! :-)


  • Registered Users Posts: 1,931 ✭✭✭PrzemoF


    PrzemoF wrote: »
    Thanks, I'll amend the script!

    I can't use lsb-release as it's not installed by default. Checking /etc/redhat-release is another option, but I want to keep it simple


  • Registered Users Posts: 4,998 ✭✭✭opus


    Didn't work quite so well on F21. (I installed all the packages before running the script as we don't use sudo).
    Installing packages required to build FreeCAD
    shiboken: Called with wrong arguments.
    Note: use --help option for more information.
    Cloning into 'FreeCAD'...
    remote: Counting objects: 88506, done.
    remote: Compressing objects: 100% (21/21), done.
    remote: Total 88506 (delta 7), reused 0 (delta 0), pack-reused 88485
    Receiving objects: 100% (88506/88506), 387.37 MiB | 5.89 MiB/s, done.
    Resolving deltas: 100% (71943/71943), done.
    Checking connectivity... done.
    Checking out files: 100% (7290/7290), done.
    -- The C compiler identification is GNU 4.9.2
    -- The CXX compiler identification is GNU 4.9.2
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Looking for GL/gl.h
    -- Looking for GL/gl.h - found
    -- Looking for C++ include istream
    -- Looking for C++ include istream - found
    -- Looking for C++ include ostream
    -- Looking for C++ include ostream - found
    -- Looking for C++ include fstream
    -- Looking for C++ include fstream - found
    -- Looking for C++ include sstream
    -- Looking for C++ include sstream - found
    -- Looking for C++ include ios
    -- Looking for C++ include ios - found
    -- Looking for C++ include iostream
    -- Looking for C++ include iostream - found
    -- Looking for C++ include iomanip
    -- Looking for C++ include iomanip - found
    -- Looking for C++ include iostream
    -- Looking for C++ include iostream - found
    -- Check for STD namespace
    -- Check for STD namespace - found
    -- prefix: /usr/local
    -- datadir: data
    -- docdir: doc
    -- includedir: include
    -- libdir: /usr/local/lib
    -- Found PythonInterp: /usr/bin/python (found version "2.7.8") 
    -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable exact version "2.7.8") 
    -- Boost version: 1.55.0
    -- Found the following Boost libraries:
    --   filesystem
    --   program_options
    --   regex
    --   signals
    --   system
    --   thread
    -- Found Xerces-C: /usr/lib64/libxerces-c.so
    -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8") 
    -- PyCXX found:
    --   Headers:  /local/test/FreeCAD/FreeCAD/src
    --   Sources:  /local/test/FreeCAD/FreeCAD/src/CXX
    CMake Error at /usr/lib64/oce-0.16/OCE-libraries.cmake:261 (message):
      The imported target "TKDraw" references the file
    
         "/usr/lib64/oce-0.16/libTKDraw.so.9.0.0"
    
      but this file does not exist.  Possible reasons include:
    
      * The file was deleted, renamed, or moved to another location.
    
      * An install or uninstall procedure did not complete successfully.
    
      * The installation package was faulty and contained
    
         "/usr/lib64/oce-0.16/OCE-libraries.cmake"
    
      but not all the files it references.
    
    Call Stack (most recent call first):
      /usr/lib64/oce-0.16/OCEConfig.cmake:23 (include)
      cMake/FindOpenCasCade.cmake:26 (find_package)
      CMakeLists.txt:552 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/local/test/FreeCAD/build/CMakeFiles/CMakeOutput.log".
    


  • Registered Users Posts: 1,931 ✭✭✭PrzemoF


    Thanks for testing! I'll remove fedora 21


  • Moderators, Computer Games Moderators, Technology & Internet Moderators Posts: 19,240 Mod ✭✭✭✭L.Jenkins


    Meant to alter the script to indicate Fedora 24. Doesn't seem to be an issue yet, while installing 419 packages.


  • Advertisement
  • Registered Users Posts: 1,931 ✭✭✭PrzemoF


    The script is also here: http://www.freecadweb.org/wiki/?title=CompileOnUnix (bottom of the page)


  • Moderators, Computer Games Moderators, Technology & Internet Moderators Posts: 19,240 Mod ✭✭✭✭L.Jenkins


    I totally forgot to set up logging. It's taking it's sweet time to build.


  • Registered Users Posts: 1,931 ✭✭✭PrzemoF


    Build from empty directory can take anything from 45 seconds on intel i7 with 8 cores (I still cannot repeat that, but I have a screen recording to prove it) to well over an hour on a single CPU. Your mileage may vary ;-)


  • Moderators, Computer Games Moderators, Technology & Internet Moderators Posts: 19,240 Mod ✭✭✭✭L.Jenkins


    Dual Core AMD Processor. Going to take a while.


Advertisement