Hi Sander,
Init 3 doesn't work on PCBSD. 3 isn't a valid runlevel. In fact I haven't yet been able to run PCBSD in a fully loaded multiuser level without X.
You're right. Only levels 0, 1 and 6 are legal but none of them is useful to exit the X server. Sorry I was temporarily abducted by my GNU/Linux background

Actually, it seems you don't need to kill X in order to build gcc; you can build it as root from a Konsole session. On FreeBSD it gave me problems when I tried to compile it from Konsole (it crashed and caused some filesystem corruption), but went perfectly fine when I built it after a clean reboot without running startx.
Just for your information, you can get PC-BSD running without X by modifying your /etc/ttys configuration file:
su
cd /etc
cp ttys ttys.old
ee ttyscomment out the following line:
ttyv8 "/usr/PCBSD/bin/pdm" xterm on secure
by inserting a # character and a space in front of it. Press Esc and use the menu to save and exit.
Now reboot your virtual machine from KDE's Kickoff menu. It should reboot in standard tty mode. To undo the above, just copy the ttys.old backup file to ttys and reboot.
I actually got PCBSD running at native monitor resolution. What a frackin' pain.
It works perfectly on VMware, with guest additions and all

I had to create/edit xorg.conf too, to fine tune things. This is standard practice on all unices/X systems.
So I spent considerable time building and installing gcc 4.4 when gcc -v still says 4.2.1 after a reboot. Nice smile So it turns out that this installs an executable gcc44 rather than replacing gcc. Oy vay!
This is perfectly normal, and it is logical: you cannot replace the system's distribution compiler. After building gcc 4.4, enter this:
gcc44 -dumpversionand you'll see 4.4.x (it's 4.4.5 on my PC-BSD vm). The new C compiler is available as 'gcc44' and the new C++ compiler is 'g++44'. The latest
version 1.55 of the MakefileGenerator script knows this and will generate your makefiles accordingly.
You can also use the GCC 4.4 compiler by default if you have to build a third-party library for example. Just set the appropriate environment variables for the console session where you want to compile:
export CC=gcc44
export CXX=g++44
export CPP=cpp44and run the configure script (or equivalent) for the library in question. Then make or gmake, etc.
I haven't yet tried to make the shared folders work. That would help with compiling my modules under PCBSD.
You actually don't need shared folders. I never use them because they are not secure, and are an added layer of complexity that isn't necessary. You can communicate with the virtual machine via SSH. This is how I work on all of my development machines, both virtual and physical. On Windows, you'll have to install a good SSH client application. I strongly recommend
WinSCP, which is what I use. It works like a charm.
Oh and I haven't installed PCL yet.
You cannot, actually

I'll upload a PCL-pxi.a file and the corresponding include/pcl folder for FreeBSD in a while.