[Fascinate Android Development] gfosco:
I compiled this tonight and just have some info if others are interested in it.

Link to ROM thread: http://xdaforums.com/showthread.php?p=12437432#post12437432

Dev machine: newest CentOS x64 on VMWare Workstation 7, about a day old

I already had Git installed, but if you're new to this you'll need it (and some dependencies):

yum install gettext-devel expat-devel curl-devel zlib-devel openssl-devel
wget http://kernel.org/pub/software/scm/git/git-1.7.4.2.tar.bz2
tar xvfj git-1.7.4.2.tar.bz2
cd git-1.7.4.2
make prefix=/usr/local all
make prefix=/usr/local install

Repo was a new tool to me, so it wasn't installed... If you don't have repo, download/install it using this set of commands:

curl http://android.git.kernel.org/repo > /usr/bin/repo
chmod a+x /usr/bin/repo

Now that you have repo you can download everything. Make a folder somewhere and cd there (mine is /phone/aosp), then:

repo init -u git://github.com/jt1134/platform_manifest.git -b froyo

This sets up the folder, but you need to download everything:

repo sync

Jt1134 had -j40 as a parameter, but this caused a Python error for me and does not appear necessary. This downloads an incredible amount of projects and takes quite a while (over an hour at ~500K/s). It's exciting, how much is involved.

The next two lines are very quick, but I had to install Bison ('yum install bison') first:

source build/envsetup.sh
lunch full_fascinate-eng

Then the final line to actually build the whole package:

make -j$(grep processor /proc/cpuinfo | wc -l) bacon && fixzip

From this point forward I'm walking through the errors I encountered and how I fixed them to get to completion:

It failed on first run and I had to install glibc-devel because a 32 bit header file stubs-32.h was missing ('yum install glibc-devel').

It failed on the second run because I did not have 'flex' installed. ('yum install flex').

Third time looked good, compiled a ton of stuff, then bombed because 'libsecril-client.so' was missing. Exact error:

/phone/aosp/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld:
warning: libsecril-client.so, needed by out/target/product/fascinate/obj/lib/libsecgps.so, not found (try using -rpath or -rpath-link)

It was however found in two places:

/phone/aosp/vendor/samsung/vzwtab/proprietary/lib/libsecril-client.so
/phone/aosp/vendor/samsung/fascinate/proprietary/lib/libsecril-client.so

So what I did is copy it to the output folder (not the optimal solution I'm sure, but it worked):

cp vendor/samsung/fascinate/proprietary/lib/libsecril-client.so out/target/product/fascinate/obj/lib/

Fourth time through it continued on an compiled a ton of projects, and then... 'gperf' command not found. ('yum install gperf')

Fifth time, I actually went to sleep during this one :), woke up to this error:

/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] Error 1

I fixed this with 'yum install ncurses-devel' and let the process continue, and shortly afterwards got another error:

In file included from external/qemu/android/skin/window.c:19:
prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:55:22: error: X11/Xlib.h: No such file or directory
prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:56:23: error: X11/Xatom.h: No such file or directory

I fixed this with 'yum install libX11-devel' and off we go again... a new error!:

/usr/bin/ld: cannot find -lhistory
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/sqlite3_intermediates/sqlite3] Error 1

This was fixed by running 'yum install readline-devel' and we're back to a lot more compiling...

Success!! full_fascinate.zip is in the root folder, ready to be moved to the phone.

Hope someone might find this helpful or interesting... let me know if there's anything I can do to make it better!