Build

From kJams Wiki
Revision as of 22:39, 16 August 2018 by Dave (talk | contribs) (Windows)
Jump to navigation Jump to search

to build kjams

Mac

Install Xcode 3.2.6
install pyDes
install p4 and get info from me on how to get connected
sync to head in p4
install kjams pro
install producer
install burner
install Lame
install Vorbis
install setfileicon: see depot/kJams/External/PListCompiler0.4/"into /usr/bin" folder
run kjams
show preferences
click "importing"
click "exporting" these actions install necessary prefs
now quit
add these lines to your .bash_profile:

PYTHONPATH="${PYTHONPATH}:/Users/davec/Developer/depot/CF/python/"
export PYTHONPATH

Creating the NIB file on Mac

  1. using the 10.6 VM:
  2. edit the XIB file as necessary
  3. in "kJams Pro" PPC version (not Lite, not Debug), under "Resources", right click "kJams.xib" and pick "compile" (if kJams hasn't been built at all yet, just do a build, but you don't need to build the whole thing: as long as you see "CompileXIB" go by, you can stop there)
  4. building latest will now copy the file into place

Windows

Update: note there's more to it than this.

  1. do the entire "Post Install" folder
  2. build the XPlat debug Lite and Pro versions on mac
  3. run them each (this will export the windows Menu resources)
  4. for Python
    1. go to system properties, to set the environment variable:
    2. add new "User Variable", name="PYTHONPATH", value="%PYTHONPATH%;Z:\CF\python" (no quotes)
  5. do this insane procedure (only applies to VS8? not VS9?)
  6. go get the latest CrashRpt
    1. unzip it to a folder called "CrashRpt" under "depot/kJams/External/
    2. create the solution file with CMake
    3. build both debug and release
  7. in MSDev, go to project settings->debug->command and set "All Configurations" to:
    $(SolutionDir)build\kJams $(ConfigurationName).app\Contents\Windows\$(TargetFileName)
  8. in MSDev, go to "Property Pages", then pick "Configuration: All Configurations", then go to "Configuration Properties->Linker->Command Line" and add this:
    /DYNAMICBASE /ignore:4099
  9. install parallels, get that going
  10. install Perforce, and when creating a workspace, set your linefeeds to "unix"
  11. if the computer name changed, update these file names (so the same, OLD file is used, not the new one if you accidentally already opened the projects):
    1. /depot/CF/opencflite-476.17.2/windows/CFLiteLib.vcproj.XXXX.davec.user
    2. /depot/CFTest/project/win_vs/CFTest.vcproj.XXXX.davec.user
    3. /depot/kJams/Development/xplat/proj/win/kJams64.vcproj.XXXX.davec.user

info just for me

install boost

compile boost Mac with:

> cd path/to/boost_1_40_0
> sudo ./bootstrap.sh
> ./b2 threading=multi cxxflags="-arch i386 -arch x86_64" --with-thread -a install

(i don't know if you need "-a install" there)

compile boost windows with

.\bjam --with-thread release

or just download the binaries