Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23rd December 2009, 03:08 PM
leigh123linux
Guest
 
Posts: n/a
linuxfedorafirefox
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)
Reply With Quote
  #2  
Old 23rd December 2009, 06:10 PM
ultra magnus Offline
Registered User
 
Join Date: Nov 2007
Location: Finland
Age: 31
Posts: 314
linuxfedorakonqueror
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
Reply With Quote
  #3  
Old 23rd December 2009, 06:32 PM
leigh123linux
Guest
 
Posts: n/a
linuxfedorafirefox
Quote:
Originally Posted by ultra magnus View Post
quick question: do we need to do something to dracut and selinux as we do in your other nvidia thread?


Yes .......
Reply With Quote
  #4  
Old 27th December 2009, 11:12 AM
vallimar Offline
Registered User
 
Join Date: Jul 2008
Posts: 1,050
linuxfedorafirefox
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
File Type: diff spec.diff (1.2 KB, 211 views)
Reply With Quote
  #5  
Old 27th December 2009, 11:48 AM
leigh123linux
Guest
 
Posts: n/a
linuxfedorafirefox
Quote:
Originally Posted by vallimar View Post
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
Reply With Quote
  #6  
Old 1st January 2010, 02:36 PM
Pellaeon Offline
Registered User
 
Join Date: Jan 2010
Posts: 1
linuxfirefox
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.
Reply With Quote
  #7  
Old 1st January 2010, 03:01 PM
leigh123linux
Guest
 
Posts: n/a
linuxfedorafirefox
Quote:
Originally Posted by Pellaeon View Post
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
Reply With Quote
  #8  
Old 1st January 2010, 06:53 PM
vallimar Offline
Registered User
 
Join Date: Jul 2008
Posts: 1,050
windows_xp_2003safari
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
Reply With Quote
  #9  
Old 24th January 2010, 09:04 AM
ghoul Offline
Registered User
 
Join Date: Jan 2007
Location: L'viv, Ukraine
Age: 34
Posts: 35
linuxfedorafirefox
Hi,

building nvidia-kmod for kernel 2.6.33-0.20.rc5.git0.fc13.x86_64 fails with the following message:
Quote:
+ 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?
Reply With Quote
  #10  
Old 24th January 2010, 09:32 AM
leigh123linux
Guest
 
Posts: n/a
linuxfedorafirefox
Quote:
Originally Posted by ghoul View Post
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
Reply With Quote
  #11  
Old 3rd February 2010, 07:31 PM
leigh123linux
Guest
 
Posts: n/a
linuxfedorafirefox
Guide updated to 195.36.03
Reply With Quote
  #12  
Old 7th February 2010, 09:43 AM
ghoul Offline
Registered User
 
Join Date: Jan 2007
Location: L'viv, Ukraine
Age: 34
Posts: 35
linuxfedorafirefox
Using kernel 2.6.33-0.27.rc6.git1.fc13.x86_64 everything is fine

Thanks leigh!
Reply With Quote
  #13  
Old 14th February 2010, 04:41 AM
5hady Offline
Registered User
 
Join Date: Jul 2009
Posts: 46
windows_7opera
**

Just wanted to post that even though I am a retard, I still got this working. Thanks Leigh
Reply With Quote
  #14  
Old 27th February 2010, 11:10 AM
leigh123linux
Guest
 
Posts: n/a
linuxfedorafirefox
Updated to 195.36.08
Reply With Quote
  #15  
Old 28th February 2010, 09:57 PM
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286
linuxfirefox
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
Reply With Quote
Reply

Tags
based, build, guide, nvidia06, rpm, rpmfusion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F13 Guide to build nvidia-173xx 173.14.27 rpm's (rpmfusion based) leigh123linux Guides & Solutions (No Questions) 19 27th November 2010 08:22 PM
Where is kmod-nvidia ? i have rpmfusion ? Firebsd2 Using Fedora 2 10th June 2010 06:40 PM
rpmfusion rawhide nvidia? Dr.Diesel Fedora 12 Alpha, Beta & Release Candidates 5 1st November 2009 07:37 PM
FC11 nVidia No Sound After RPMFusion nVidia Driver Load basimmer Using Fedora 0 16th October 2009 12:46 AM
Nvidia drivers: RPMfusion vs Nvidia? NitroPress Installation, Upgrades and Live Media 6 29th December 2008 07:15 AM


Current GMT-time: 08:14 (Saturday, 30-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat