LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Compiling "nvidia-settings" an keeping FreeBSD up-to-date (https://www.linuxquestions.org/questions/%2Absd-17/compiling-nvidia-settings-an-keeping-freebsd-up-to-date-395269/)

dabang 12-21-2005 10:03 AM

Compiling "nvidia-settings" an keeping FreeBSD up-to-date
 
Hi there!

I mananged installing FreeBSD 6.0 and the nVidia drivers 1.0-8174, but I came across a problem compiling the "nvidia-settings" tool. When I do "gmake" it stops compiling with:

Code:

src/libXNVCtrl/libXNVCtrl.a: could not read symbols: File format not recognized
gmake: *** [nvidia-settings] Error 1

Do I miss any dependencies? Or something very obvious? I followed the instructions given in the nVidia FreeBSD forum...

I have another question, concerning FreeBSD: how do I keep it up-to-date? If I understand correctly cvsup is used for updating the ports only? I havn't used any ports, just the binaries from the CDs or "pkg_add -r". Coming from Debian and Ubuntu I got very used to "apt-get update". Is there anything similar in FreeBSD?

Thanks a lot in advance!

Carnevil 12-22-2005 04:47 AM

Can't help you with the first question but you might try the mailing lists. Now the other two questions I can help you. Cvsup is also used to keep your src tree up to date this would be a source supfile.
Code:

*default host=cvsup8.us.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_6_0
*default delete use-rel-suffix
*default compress
src-all

You can change the host to whatever you want, now the other thing to change if you want is the release tag, which is set to download the 6.0 release branch. The release branch is used only for security and critical bug fixes. The other branch tag "RELENG_6" is the development branch for 6.X also called Stable "FreeBSD-STABLE is our development branch from which major releases are made. Changes go into this branch at a different pace, and with the general assumption that they have first gone into FreeBSD-CURRENT for testing. This is still a development branch, however, and this means that at any given time, the sources for FreeBSD-STABLE may or may not be suitable for any particular purpose. It is simply another engineering development track, not a resource for end-users."~Freebsd Handbook. Most likely you'll want to stick with the release branch, after you cvsup your source you'll rebuild the world http://www.freebsd.org/doc/en_US.ISO...makeworld.html. Now if you want to update your ports, portupgrade is the way to go, http://www.onlamp.com/pub/a/bsd/2003...SD_Basics.html great how to at that link. Now there are alot of switches for portupgrade but since you use packages, I'd use the -pp command which tells portupgrade to use packages instead of compiling. Oh one other link http://www.freshports.org great place to see all the ports for freebsd.

cnjohnson 12-22-2005 07:34 AM

For the first question, the problem appears to be the way you are doing the make. You don't use gmake directly. Log in as root (or su to root), then cd to /usr/ports/x11/nvidia-settings and do this:

make all && make install && make clean

The port is not currently marked "broken" so it should make cleanly. If it doesn't post the error message(s), and let's see what's happening.

dabang 12-31-2005 10:58 AM

Thanks guys for your replies! I'm still learning *BSDs ;-)

reddazz 12-31-2005 04:20 PM

Quote:

Originally Posted by dabang
Thanks guys for your replies! I'm still learning *BSDs ;-)

Another alternative is
Code:

#cd /usr/ports/x11/nvidia-settings
#make install clean



All times are GMT -5. The time now is 07:32 PM.