Build: Difference between revisions

From kJams Wiki
Jump to navigation Jump to search
No edit summary
 
(36 intermediate revisions by the same user not shown)
Line 2: Line 2:


==Mac==
==Mac==
[[Xcode 3.2.6|Install Xcode 3.2.6]]<br>
[[Xcode|Install Xcode]]<br>
[[Qt|Install Qt]]<br>
install [[Build/pyDes|pyDes]]<br>
install [[Build/pyDes|pyDes]]<br>
install p4 and get info from me on how to get connected<br>
install p4 and get info from me on how to get connected<br>
Line 11: Line 12:
install [[Lame]]<br>
install [[Lame]]<br>
install [[Vorbis]]<br>
install [[Vorbis]]<br>
install setfileicon: see depot/kJams/External/PListCompiler0.4/"into /usr/bin" folder<br>
install plcompile and setfileicon: see depot/kJams/External/PListCompiler0.4/"into /usr/bin" folder<br>
run kjams<br>
run kjams<br>
show preferences<br>
show preferences<br>
Line 24: Line 25:
# using the 10.6 VM:
# using the 10.6 VM:
# edit the XIB file as necessary
# edit the XIB file as necessary
# 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)
# Open '''"kJams"''' xcodeproj, '''not''' "kJams6"
# set the target to '''"Pro | kJams | ppc"''' (not Lite, not Debug)
# go to the "Resources" group
# 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)
# building latest will now copy the file into place
# building latest will now copy the file into place


==Windows==
==Windows==
Update: note there's more to it than this. 
See [[Build/Windows|Windows Build]] instructions
# do the entire "Post Install" folder
#build the XPlat debug Lite and Pro versions on mac
#run them each (this will export the windows Menu resources)
#for Python
##go to system properties, to set the environment variable:
##add new "User Variable", name="PYTHONPATH", value="%PYTHONPATH%;Z:\CF\python" (no quotes)
# do [https://karaoke.kjams.com/wiki/Build/WinLink4099 this insane procedure] (only applies to VS8? not VS9?)
# go get [http://code.google.com/p/crashrpt/downloads/list the latest CrashRpt]
## unzip it to a folder called "CrashRpt" under "depot/kJams/External/
## create the solution file [http://crashrpt.sourceforge.net/docs/html/compiling_crashrpt.html with CMake]
## build both debug and release
#in MSDev, go to project settings->debug->command and set "All Configurations" to: <br><pre>$(SolutionDir)build\kJams $(ConfigurationName).app\Contents\Windows\$(TargetFileName)</pre>
#in MSDev, go to "Property Pages", then pick "Configuration: All Configurations", then go to "Configuration Properties->Linker->Command Line" and add this: <br><pre>/DYNAMICBASE /ignore:4099</pre>
# install parallels, get that going
# install [http://perforce.com Perforce], and when [//karaoke.kjams.com/cflite/screenshots/p4.mp4 creating a workspace], set your linefeeds to "unix"
# 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):
## /depot/CF/opencflite-476.17.2/windows/CFLiteLib.vcproj.XXXX.davec.user
## /depot/CFTest/project/win_vs/CFTest.vcproj.XXXX.davec.user
## /depot/kJams/Development/xplat/proj/win/kJams64.vcproj.XXXX.davec.user


==info just for me==
==info just for me==
[http://www.boost.org/doc/libs/1_40_0/more/getting_started/unix-variants.html install boost]<br>
to create the installer for windows, see the instructions at:
.../xplat/proj/win/Installer Editor/instructions.txt


compile boost Mac with:
[http://www.boost.org install boost]<br>
  > cd path/to/boost_1_40_0
 
make two copies, one for mac and one for windows, then combine the results into the stage dir
 
compile boost on both platforms with:
  > cd path/to/boost_X.YY.Z
----
Then on mac:
  > sudo ./bootstrap.sh
  > sudo ./bootstrap.sh
  > ./b2 threading=multi cxxflags="-arch i386 -arch x86_64" --with-thread -a install
  > ./b2 cxxflags="-arch i386 -arch x86_64" address-model=32_64 cxxflags="-mmacosx-version-min=10.9" linkflags="-mmacosx-version-min=10.9"
(i don't know if you need "-a install" there)
 
i had to rename "boost" to "boost~" at this path:
/usr/local/include/boost~
 
----
Or on win:
> bootstrap
> ./b2


compile boost windows with<br><pre>.\bjam --with-thread release</pre>
doing so builds both 32 and 64bit and puts them in the "stage" dir. so no need to do this: http://informilabs.com/building-boost-32-bit-and-64-bit-libraries-on-windows/


or just [http://karaoke.kjams.com/downloads/boost.zip download the binaries]
After building, combine results into the "stage" folder where the mac stuff was staged, so both plats can get their stuff from the same place

Latest revision as of 02:18, 6 October 2023

to build kjams

Mac

Install Xcode
Install Qt
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 plcompile and 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. Open "kJams" xcodeproj, not "kJams6"
  4. set the target to "Pro | kJams | ppc" (not Lite, not Debug)
  5. go to the "Resources" group
  6. 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)
  7. building latest will now copy the file into place

Windows

See Windows Build instructions

info just for me

to create the installer for windows, see the instructions at: .../xplat/proj/win/Installer Editor/instructions.txt

install boost

make two copies, one for mac and one for windows, then combine the results into the stage dir

compile boost on both platforms with:

> cd path/to/boost_X.YY.Z

Then on mac:

> sudo ./bootstrap.sh
> ./b2 cxxflags="-arch i386 -arch x86_64" address-model=32_64 cxxflags="-mmacosx-version-min=10.9" linkflags="-mmacosx-version-min=10.9"

i had to rename "boost" to "boost~" at this path:

/usr/local/include/boost~

Or on win:

> bootstrap
> ./b2

doing so builds both 32 and 64bit and puts them in the "stage" dir. so no need to do this: http://informilabs.com/building-boost-32-bit-and-64-bit-libraries-on-windows/

After building, combine results into the "stage" folder where the mac stuff was staged, so both plats can get their stuff from the same place