On Mon, Jul 5, 2010 at 2:55 AM, Marc Adored <m...@inworlddesigns.com> wrote:

> I was wondering if anybody had any success compiling snowglobe on
> ubuntu lucid 64bit and if they have what steps they took to prepare their
> system
>

Snowglobe, yes. Ubuntu no, but I use debian which should be close enough.

for it. I have installed everything under the sun and my /usr/include
> folder is a mess and I still can't get it to compile in 64bit or
> 32bit.
>
> ./develop.py -m64 -t Release
> Gives me no errors until I do
>

I start with configuring:

 ./develop.py --type=Debug -m64 --standalone configure -DMOZLIB:BOOL=true
-DPACKAGE:BOOL=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
-DCMAKE_CXX_FLAGS:STRING="$CXXFLAGS"
-DCMAKE_EXE_LINKER_FLAGS:STRING="$LDFLAGS"

You need --standalone for 64bit, since LL doesn't provide downloadable 64bit
shared libraries.
The last two are only needed if you need/want to set some CXXFLAGS and/or
LDFLAGS the usual (linux) way.

I usually never use --type=Release but I guess that's what you want.
However, you might want to try starting with Debug
because it compiles a lot faster, until you know that works.

Other environment variables that I have set are:

export CC=gcc
export CXX="ccache g++"
export CCACHE_DIR="/ramdisk/ccache"

Need to have ccache installed of course (apt-get install ccache). See
http://ccache.samba.org/ for a description of what it does.
You need 1 GB of diskspace in CCACHE_DIR.

For the --standalone case (that uses shared libraries from your system) you
might want to set
CXXFLAGS to something like
"-I/usr/src/secondlife/llqtwebkit/install/include" or whereever you
ihstalled 'webkit', and LDFLAGS to something like "-L/sl/lib -L/sl/usr/lib
-L/usr/src/secondlife/llqtwebkit/install/lib"
assuming you installed some stuff with --prefix="/sl" etc (most likely
you'll only need the -L/usr/src/secondlife/llqtwebkit/install/lib part.

./develop.py -m64 -t Release build then it gets to
>
> -- snip --
> [ 10%] Building CXX object llcommon/CMakeFiles/llcommon.dir/metaproperty.o
> [ 10%] Building CXX object llcommon/CMakeFiles/llcommon.dir/reflective.o
> [ 10%] Building CXX object llcommon/CMakeFiles/llcommon.dir/timing.o
> [ 10%] Building CXX object llcommon/CMakeFiles/llcommon.dir/u64.o
> Linking CXX shared library libllcommon.so
> /usr/bin/ld: cannot find -lbreakpad_client
> collect2: ld returned 1 exit status
> make[2]: *** [llcommon/libllcommon.so] Error 1
> make[1]: *** [llcommon/CMakeFiles/llcommon.dir/all] Error 2
> make: *** [all] Error 2
>

Huh? I thought breakpad is something totally new from viewer 2.1?


> and it fails. The output above is from me going into
> viewer-linux-x86_64-release and compiling with make to get the
> individual error because ./develop.py doesn't provide it. When I build
> with
>
> ./develop.py -m32 -t Release
>
> -- snip --
> -- Version of viewer is 2.1.0.206484
> -- Configuring done
> CMake Warning at newview/CMakeLists.txt:1393 (add_executable):
>  Cannot generate a safe linker search path for target secondlife-bin
> because
>  files in some directories may conflict with libraries in implicit
>  directories:
>
>    link library [libGLU.so] in /usr/lib may be hidden by files in:
>
>  
> /media/Storage/src/snowglobe/viewer-external/indra/../libraries/i686-linux/lib_release_client
>
>  Some of these libraries may not be found correctly.
>
>
> CMake Warning at integration_tests/llui_libtest/CMakeLists.txt:53
> (add_executable):
>  Cannot generate a safe linker search path for target llui_libtest because
>  files in some directories may conflict with libraries in implicit
>  directories:
>
>    link library [libGLU.so] in /usr/lib may be hidden by files in:
>
>  
> /media/Storage/src/snowglobe/viewer-external/indra/../libraries/i686-linux/lib_release_client
>
>  Some of these libraries may not be found correctly.
>
>
> -- Generating done
> -- Build files have been written to:
>
> /media/Storage/src/snowglobe/viewer-external/indra/viewer-linux-i686-release
>

Viewer external? That isn't snowglobe.
_______________________________________________
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges

Reply via email to