FedoraForum.org - Fedora Support Forums and Community
Page 1 of 6 123 ... LastLast
Results 1 to 15 of 83
  1. #1
    leigh123linux Guest

    Guide to build nvidia-260.19.06 rpm's (rpmfusion based)

    1. Install the build environment


    Code:
    su
    yum install rpmdevtools kernel-devel kernel-headers kmodtool 
    yum groupinstall "Development Tools"
    2. Setup the build environment ( as non-root )

    Code:
    rpmdev-setuptree
    3. Download the spec file and sources

    Code:
    cd rpmbuild/SOURCES/
    wget http://www.fedoraforum.org/leigh123linux/nvidia/nvidia-kmod.spec
    wget http://www.fedoraforum.org/leigh123linux/nvidia/xorg-x11-drv-nvidia.spec
    spectool -g nvidia-kmod.spec
    spectool -g xorg-x11-drv-nvidia.spec
    chmod +x filter-provides.sh filter-requires.sh
    mv nvidia-kmod.spec xorg-x11-drv-nvidia.spec  ../SPECS/
    cd ../SPECS/
    4. Build the rpm's

    Code:
    rpmbuild -ba nvidia-kmod.spec --define "kernels $(uname -r)" --target $(uname -m)
    rpmbuild -ba xorg-x11-drv-nvidia.spec
    5. Install the rpm's (use yum and install all the rpms as single transaction)

  2. #2
    Join Date
    Nov 2007
    Location
    Finland
    Age
    44
    Posts
    314
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    quick question: do we need to do something to dracut and selinux as we do in your other nvidia thread?
    my blog
    my forum
    my "art"
    my packages
    IRC: Magnu5

  3. #3
    leigh123linux Guest
    Quote Originally Posted by ultra magnus
    quick question: do we need to do something to dracut and selinux as we do in your other nvidia thread?


    Yes .......

  4. #4
    Join Date
    Jul 2008
    Posts
    1,347
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    FYI, the vdpau libs changed in 190.xx and thus 195.xx as well. The current specfile is not updated to handle those and so you'll have broken vdpau handling. I made a small patch to the specfile that should correct this. I have inline'd and attached separately.

    Code:
    --- xorg-x11-drv-nvidia.spec	2009-12-23 09:59:21.000000000 -0500
    +++ xorg-x11-drv-nvidia.spec	2009-12-27 06:05:03.360821501 -0500
    @@ -220,7 +220,9 @@
     ln -s libcuda.so.%{version} $RPM_BUILD_ROOT%{nvidialibdir}/libcuda.so
     
     # This is 180.xx adds - vdpau libs and headers
    -ln -s libvdpau_nvidia.so.%{version} $RPM_BUILD_ROOT%{nvidialibdir}/libvdpau_nvidia.so
    +# This is 190.xx adds - changed vdpau libs
    +ln -s libvdpau.so.%{version} $RPM_BUILD_ROOT%{nvidialibdir}/libvdpau.so
    +ln -s vdpau/libvdpau_nvidia.so.%{version} $RPM_BUILD_ROOT%{nvidialibdir}/libvdpau_nvidia.so
     
     # X configuration script
     install -D -p -m 0755 %{SOURCE10} $RPM_BUILD_ROOT%{_sbindir}/nvidia-config-display
    @@ -303,14 +305,16 @@
     %files libs
     %defattr(-,root,root,-)
     %dir %{nvidialibdir}
    +%dir %{nvidialibdir}/vdpau
     %dir %{nvidialibdir}/tls
     %config %{_sysconfdir}/ld.so.conf.d/nvidia-%{_lib}.conf
     %{nvidialibdir}/*.so.*
     %{nvidialibdir}/libcuda.so
     %{nvidialibdir}/libGLcore.so
    +%{nvidialibdir}/libvdpau.so
     %{nvidialibdir}/libvdpau_nvidia.so
    -%exclude %{nvidialibdir}/vdpau/libvdpau_trace.so*
    -%exclude %{nvidialibdir}/vdpau/libvdpau_*
    +%{nvidialibdir}/vdpau/*.so.*
    +%exclude %{nvidialibdir}/vdpau/*trace.so*
     %{nvidialibdir}/tls/*.so.*
     
     %files devel
    Attached Files Attached Files

  5. #5
    leigh123linux Guest
    Quote Originally Posted by vallimar
    FYI, the vdpau libs changed in 190.xx and thus 195.xx as well. The current specfile is not updated to handle those and so you'll have broken vdpau handling. I made a small patch to the specfile that should correct this. I have inline'd and attached separately.

    Code:
    --- xorg-x11-drv-nvidia.spec    2009-12-23 09:59:21.000000000 -0500
    +++ xorg-x11-drv-nvidia.spec    2009-12-27 06:05:03.360821501 -0500
    @@ -220,7 +220,9 @@
     ln -s libcuda.so.%{version} $RPM_BUILD_ROOT%{nvidialibdir}/libcuda.so
     
     # This is 180.xx adds - vdpau libs and headers
    -ln -s libvdpau_nvidia.so.%{version} $RPM_BUILD_ROOT%{nvidialibdir}/libvdpau_nvidia.so
    +# This is 190.xx adds - changed vdpau libs
    +ln -s libvdpau.so.%{version} $RPM_BUILD_ROOT%{nvidialibdir}/libvdpau.so
    +ln -s vdpau/libvdpau_nvidia.so.%{version} $RPM_BUILD_ROOT%{nvidialibdir}/libvdpau_nvidia.so
     
     # X configuration script
     install -D -p -m 0755 %{SOURCE10} $RPM_BUILD_ROOT%{_sbindir}/nvidia-config-display
    @@ -303,14 +305,16 @@
     %files libs
     %defattr(-,root,root,-)
     %dir %{nvidialibdir}
    +%dir %{nvidialibdir}/vdpau
     %dir %{nvidialibdir}/tls
     %config %{_sysconfdir}/ld.so.conf.d/nvidia-%{_lib}.conf
     %{nvidialibdir}/*.so.*
     %{nvidialibdir}/libcuda.so
     %{nvidialibdir}/libGLcore.so
    +%{nvidialibdir}/libvdpau.so
     %{nvidialibdir}/libvdpau_nvidia.so
    -%exclude %{nvidialibdir}/vdpau/libvdpau_trace.so*
    -%exclude %{nvidialibdir}/vdpau/libvdpau_*
    +%{nvidialibdir}/vdpau/*.so.*
    +%exclude %{nvidialibdir}/vdpau/*trace.so*
     %{nvidialibdir}/tls/*.so.*
     
     %files devel

    Done.

    Many thanks

    Leigh

  6. #6
    Join Date
    Jan 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    thanks for posting this, your instructions have been very helpful.

    However, could you extend them to cover building an i686 package of xorg-x11-drv-nvidia-libs on an x64_86 system in addition to the x86_64 versions of everything else? On an x86_64 system if you want to play 32bit Windows 3D games you need to install the i686 packages of Wine, which need the i686 xorg-x11-drv-nvidia-libs for working OpenGL.

  7. #7
    leigh123linux Guest
    Quote Originally Posted by Pellaeon
    Hi,

    thanks for posting this, your instructions have been very helpful.

    However, could you extend them to cover building an i686 package of xorg-x11-drv-nvidia-libs on an x64_86 system in addition to the x86_64 versions of everything else? On an x86_64 system if you want to play 32bit Windows 3D games you need to install the i686 packages of Wine, which need the i686 xorg-x11-drv-nvidia-libs for working OpenGL.

    You will need to build the generated srpm in mock
    Code:
    su
    yum install mock

    add mock to you user group
    Code:
    system-config-user

    Then build as non-root

    Code:
    mock -r fedora-12-i386 rebuild /path/to/srpm

  8. #8
    Join Date
    Jul 2008
    Posts
    1,347
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Given that the libs are all pre-compiled, so there is nothing to build,
    you should be able to get away with simply doing:
    >> rpmbuild -bb xorg-x11-drv-nvidia.spec --target=i686

  9. #9
    Join Date
    Jan 2007
    Location
    L'viv, Ukraine
    Age
    46
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    building nvidia-kmod for kernel 2.6.33-0.20.rc5.git0.fc13.x86_64 fails with the following message:
    + make -j3 SYSSRC=/usr/src/kernels/2.6.33-0.20.rc5.git0.fc13.x86_64 module
    If you are using a Linux 2.4 kernel, please make sure
    you either have configured kernel sources matching your
    kernel or the correct set of kernel headers installed
    on your system.

    If you are using a Linux 2.6 kernel, please make sure
    you have configured kernel sources matching your kernel
    installed on your system. If you specified a separate
    output directory using either the "KBUILD_OUTPUT" or
    the "O" KBUILD parameter, make sure to specify this
    directory with the SYSOUT environment variable or with
    the equivalent nvidia-installer command line option.

    Depending on where and how the kernel sources (or the
    kernel headers) were installed, you may need to specify
    their location with the SYSSRC environment variable or
    the equivalent nvidia-installer command line option.

    *** Unable to determine the target kernel version. ***

    make: *** [select_makefile] Error 1
    error: Bad exit status from /var/tmp/rpm-tmp.7kTZcQ (%build)


    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.7kTZcQ (%build)
    Building for 2.6.32.3-21.fc13.x86_64 worked like a charm
    Am I missing something?

  10. #10
    leigh123linux Guest
    Quote Originally Posted by ghoul
    Hi,

    building nvidia-kmod for kernel 2.6.33-0.20.rc5.git0.fc13.x86_64 fails with the following message:


    Building for 2.6.32.3-21.fc13.x86_64 worked like a charm
    Am I missing something?

    No you not, the nvidia driver doesn't build against 2.6.33 .
    I have tried all the available patches, none of them work for fedora ( still get the error above ).

    http://www.nvnews.net/vbulletin/showthread.php?t=142794

  11. #11
    leigh123linux Guest
    Guide updated to 195.36.03

  12. #12
    Join Date
    Jan 2007
    Location
    L'viv, Ukraine
    Age
    46
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Using kernel 2.6.33-0.27.rc6.git1.fc13.x86_64 everything is fine

    Thanks leigh!

  13. #13
    Join Date
    Jul 2009
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    **

    Just wanted to post that even though I am a retard, I still got this working. Thanks Leigh

  14. #14
    leigh123linux Guest
    Updated to 195.36.08

  15. #15
    Join Date
    Aug 2006
    Location
    /dev/realm/{Abba,Carpenters,...stage}
    Posts
    3,285
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Now available in RPMfusion
    Code:
    su
    yum install akmod-nvidia --enablerepo=rpm*g
    Code:
    rpm -qa|grep nvidia
    akmod-nvidia-195.36.08-1.fc12.x86_64
    nvidia-settings-1.0-3.2.fc12.x86_64
    kmod-nvidia-2.6.32.9-64.fc12.x86_64-190.53-1.fc12.x86_64
    xorg-x11-drv-nvidia-195.36.08-1.fc12.x86_64
    kmod-nvidia-2.6.32.9-67.fc12.x86_64-190.53-1.fc12.x86_64
    nvidia-xconfig-1.0-1.fc12.x86_64
    xorg-x11-drv-nvidia-libs-195.36.08-1.fc12.x86_64
    kmod-nvidia-2.6.32.8-48.rc2.fc12.x86_64-195.36.08-1.fc12.x86_64
    For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

    SELinux User Guide

    AutoPager

Page 1 of 6 123 ... LastLast

Similar Threads

  1. F13 Guide to build nvidia-173xx 173.14.27 rpm's (rpmfusion based)
    By leigh123linux in forum Guides & Solutions (Not For Questions)
    Replies: 19
    Last Post: 27th November 2010, 09:22 PM
  2. Where is kmod-nvidia ? i have rpmfusion ?
    By Firebsd2 in forum Using Fedora
    Replies: 2
    Last Post: 10th June 2010, 06:40 PM
  3. rpmfusion rawhide nvidia?
    By Dr.Diesel in forum Fedora 12 Alpha, Beta & Release Candidates
    Replies: 5
    Last Post: 1st November 2009, 08:37 PM
  4. Replies: 0
    Last Post: 16th October 2009, 12:46 AM
  5. Nvidia drivers: RPMfusion vs Nvidia?
    By NitroPress in forum Installation, Upgrades and Live Media
    Replies: 6
    Last Post: 29th December 2008, 08:15 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •