[sldev] CMake project merged to release branch!

Bruce Tong tongb at ohio.edu
Thu Jun 5 17:47:18 PDT 2008


I attempted to build using cmake for the first time. I seem to have
encountered something similar to what Michelle2 Zenovka mentioned in
VWR-6794. I guess that's fitting since I was following her nice
summary found at...

http://wiki.secondlife.com/wiki/User:Michelle2_Zenovka/cmake

I was using the sources from... slviewer-src-maint-viewer-7-r88903

$ ./develop.py -G VC80
Running 'cmake -G "Visual Studio 8 2005" -DUNATTENDED:BOOl=FALSE -DSTANDALONE:BO
OL=FALSE "" "c:/ZZTong/SLDev/linden/indra"' in 'build-VC80'
-- Check for working C compiler: cl
-- Check for working C compiler: cl -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: cl
-- Check for working CXX compiler: cl -- works
-- Building with FMOD audio support
-- Building with FMOD audio support
-- Version of viewer is 1.20.6.0
-- Configuring done
-- Generating done
-- Build files have been written to: C:/ZZTong/SLDev/linden/indra/build-VC80
Running 'tools\\vstool\\VSTool.exe --solution build-VC80\\SecondLife.sln --confi
g RelWithDebInfo --startup secondlife-bin' in '/cygdrive/c/ZZTong/SLDev/linden/i
ndra'
sh: toolsvstoolVSTool.exe: command not found
Traceback (most recent call last):
  File "./develop.py", line 631, in <module>
    main(sys.argv[1:])
  File "./develop.py", line 604, in main
    setup.run_cmake()
  File "./develop.py", line 493, in run_cmake
    self.run(vstool_cmd)
  File "./develop.py", line 481, in run
    (name, ret))
__main__.CommandError: the command 'tools\\vstool\\VSTool.exe' exited with 32512


One thing I found that wasn't mentioned was this message from develop.py:

The C compiler "c1" is not able to compile a simple test program.
It fails with the following output:
The requested operation requires elevation
Generator: execution of make failed. Make command was:
C:\PROGRA~1\MICROS~2\Common7\IDE\VCExpress.exe CMAKE_TRY_COMPILE.sln /build Debu
g /project cmTryCompileExec


I figured this was refering to ...
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\VCExpress.exe

... and I resolved it by...

Control Panel -> User Accounts
Turn Account Control OFF

... I'm not used to developing on Windows, plus this is my first
exposure to Windows Vista. I was expecting somebody to knock on the
door and say "Hi, I'm a Mac", but that didn't happen.

-- 
Bruce Tong
Software Engineer
Office of Information Technology
Ohio University


More information about the SLDev mailing list