Author Topic: Downloading and compiling Tremulous source on a Mac  (Read 109982 times)

Samurai.mac

  • Posts: 317
  • Turrets: +18/-17
Re: Downloading and compiling Tremulous source on a Mac
« Reply #90 on: June 19, 2008, 09:46:25 pm »
This isn't directly linked to Tremulous itself, but considering this forum seems to have the highest concentration of active Q3 coders of anywhere on the net, I might as well ask here: how do I go about compiling a dll file from a set of c and h files on a mac?

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Downloading and compiling Tremulous source on a Mac
« Reply #91 on: June 20, 2008, 03:37:03 am »
This isn't directly linked to Tremulous itself, but considering this forum seems to have the highest concentration of active Q3 coders of anywhere on the net, I might as well ask here: how do I go about compiling a dll file from a set of c and h files on a mac?
you don't
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Samurai.mac

  • Posts: 317
  • Turrets: +18/-17
Re: Downloading and compiling Tremulous source on a Mac
« Reply #92 on: June 20, 2008, 05:02:58 pm »
...?

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Re: Downloading and compiling Tremulous source on a Mac
« Reply #93 on: June 20, 2008, 05:47:44 pm »
Compile all the .c files into .o files, then link them into a .dylib/.dll with the appropriate options.  I cant get any more detailed because I dont really know how to do it...  If the game is based on q3, I recommend you just use the makefile that should have come with it.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Downloading and compiling Tremulous source on a Mac
« Reply #94 on: June 20, 2008, 06:20:00 pm »
you can't compile a windows .dll on a mac (unless you can set up a cross compiler, which if you have to ask this is probably beyond your knowledge)
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Samurai.mac

  • Posts: 317
  • Turrets: +18/-17
Re: Downloading and compiling Tremulous source on a Mac
« Reply #95 on: June 20, 2008, 09:41:15 pm »
You can compile dll files on a mac, it's been done before, I'm just having difficulty contacting my usual source for mac modding information at the mo.

infestor1

  • Posts: 142
  • Turrets: +6/-28
    • 345356745i624567
Re: Downloading and compiling Tremulous source on a Mac
« Reply #96 on: March 04, 2009, 11:41:14 pm »
Please help. the link for the svn isn't working.

its redirecting to a new page.

Archangel

  • Guest
Re: Downloading and compiling Tremulous source on a Mac
« Reply #97 on: March 05, 2009, 12:46:39 am »
Quote
svn co svn://svn.icculus.org/tremulous/trunk tremulous-svn

always works

infestor1

  • Posts: 142
  • Turrets: +6/-28
    • 345356745i624567
Re: Downloading and compiling Tremulous source on a Mac
« Reply #98 on: March 05, 2009, 02:24:18 am »
Quote
svn co svn://svn.icculus.org/tremulous/trunk tremulous-svn

always works

i meant this:
http://metissian.com/projects/macosx/subversion/

r42xer

  • Posts: 2
  • Turrets: +0/-0
Re: Downloading and compiling Tremulous source on a Mac
« Reply #99 on: November 29, 2009, 01:38:26 am »
?? i got this error
Raphael-Norman-Tenazas:tremulous-svn raphael$ make
-bash: make: command not found


EDIT: NEVER MIND!
ANOTHER EDIT:
Code: [Select]
-bash: /usr/bin/make: cannot execute binary file
?? wats up wif dis?
« Last Edit: November 29, 2009, 12:59:08 pm by r42xer »

Obj-C

  • Posts: 8
  • Turrets: +0/-0
Re: Downloading and compiling Tremulous source on a Mac
« Reply #100 on: January 19, 2010, 07:43:23 pm »
Here is a problem I encountered while trying to compile a different QVM.

Code: [Select]
Macintosh:~ ObjC$ cd /Users/ObjC/Desktop/p-g-qvm-read-onlyLASTONX
Macintosh:p-g-qvm-read-onlyLASTONX ObjC$ pwd
/Users/ObjC/Desktop/p-g-qvm-read-onlyLASTONX
Macintosh:p-g-qvm-read-onlyLASTONX ObjC$ make
make -C src/tools/lcc install
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -DTEMPDIR=\"/tmp\" -DSYSTEM=\"\" -c -Isrc -o build-darwin-x86/etc/bytecode.o etc/bytecode.c
In file included from etc/bytecode.c:5:
etc/../../../qcommon/q_platform.h:271:2: error: #error "Architecture not supported"
etc/../../../qcommon/q_platform.h:322:2: error: #error "Endianness not defined"
make[2]: *** [build-darwin-x86/etc/bytecode.o] Error 1
make[1]: *** [tools] Error 2
make: *** [release] Error 2
Macintosh:p-g-qvm-read-onlyLASTONX

I had same problem when I was trying to compile the QVM mentioned in the tutorial though.

Futilrevenge

  • Posts: 18
  • Turrets: +4/-0
Re: Downloading and compiling Tremulous source on a Mac
« Reply #101 on: March 13, 2010, 09:32:18 pm »
Code: [Select]
make -C src/tools/asm install
gcc -O2 -Wall -Werror -fno-strict-aliasing -o q3asm q3asm.c cmdlib.c
cc1: warnings being treated as errors
cmdlib.c: In function ‘_printf’:
cmdlib.c:189: warning: format not a string literal and no format arguments
cmdlib.c: In function ‘ExpandPath’:
cmdlib.c:316: warning: the address of ‘qdir’ will always evaluate as ‘true’
cmdlib.c: In function ‘ExpandGamePath’:
cmdlib.c:329: warning: the address of ‘qdir’ will always evaluate as ‘true’
make[1]: *** [q3asm] Error 1
make: *** [tools] Error 2

whats going on?
I Yam what i Yam. Tremulous.

Futilrevenge

  • Posts: 18
  • Turrets: +4/-0
Re: Downloading and compiling Tremulous source on a Mac
« Reply #102 on: March 15, 2010, 07:08:24 pm »
-bump-

sorry, but I really need an answer!
I Yam what i Yam. Tremulous.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Downloading and compiling Tremulous source on a Mac
« Reply #103 on: March 15, 2010, 07:27:54 pm »
you're trying to compile an ancient version that no longer works on new gcc.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Futilrevenge

  • Posts: 18
  • Turrets: +4/-0
Re: Downloading and compiling Tremulous source on a Mac
« Reply #104 on: March 15, 2010, 11:55:35 pm »
yes, because the patch doesn't patch the newer ones.  :-\
I Yam what i Yam. Tremulous.

Skywarp

  • Posts: 21
  • Turrets: +0/-8
Re: Downloading and compiling Tremulous source on a Mac
« Reply #105 on: February 10, 2011, 04:46:04 pm »
Okay. Is anyone done compiling? if so, PLEASE attach a woring link...
NO SCAMS :police: :turret: :turret: :turret: :turret: :turret: :turret: :turret: :turret: :turret: :turret:
Granger Danger!

Skywarp

  • Posts: 21
  • Turrets: +0/-8
Re: Downloading and compiling Tremulous source on a Mac
« Reply #106 on: February 10, 2011, 05:14:24 pm »
-BUMP-

qThis file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by ziptool configure 2.1.0, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ /Users/Skywarp/Downloads/ziptool-2.1.0/configure

## --------- ##
## Platform. ##
## --------- ##

hostname = admins-mac
uname -m = i386
uname -r = 10.2.0
uname -s = Darwin
uname -v = Darwin Kernel Version 10.2.0: Tue Nov  3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
    Darwin Kernel Version 10.2.0: Tue Nov  3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386
Kernel configured for up to 2 processors.
1 processor is physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 1.00 gigabytes
Default processor set: 62 tasks, 247 threads, 2 processors
Load average: 1.71, Mach factor: 1.12
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/X11/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1981: checking for a BSD-compatible install
configure:2037: result: /usr/bin/install -c
configure:2048: checking whether build environment is sane
configure:2091: result: yes
configure:2119: checking for a thread-safe mkdir -p
configure:2158: result: /Users/Skywarp/Downloads/ziptool-2.1.0/install-sh -c -d
configure:2171: checking for gawk
configure:2201: result: no
configure:2171: checking for mawk
configure:2201: result: no
configure:2171: checking for nawk
configure:2201: result: no
configure:2171: checking for awk
configure:2187: found /usr/bin/awk
configure:2198: result: awk
configure:2209: checking whether make sets $(MAKE)
configure:2234: result: no
configure:2478: checking for g++
configure:2508: result: no
configure:2478: checking for c++
configure:2508: result: no
configure:2478: checking for gpp
configure:2508: result: no
configure:2478: checking for aCC
configure:2508: result: no
configure:2478: checking for CC
configure:2508: result: no
configure:2478: checking for cxx
configure:2508: result: no
configure:2478: checking for cc++
configure:2508: result: no
configure:2478: checking for cl.exe
configure:2508: result: no
configure:2478: checking for FCC
configure:2508: result: no
configure:2478: checking for KCC
configure:2508: result: no
configure:2478: checking for RCC
configure:2508: result: no
configure:2478: checking for xlC_r
configure:2508: result: no
configure:2478: checking for xlC
configure:2508: result: no
configure:2536: checking for C++ compiler version
configure:2543: g++ --version >&5
/Users/Skywarp/Downloads/ziptool-2.1.0/configure: line 2544: g++: command not found
configure:2546: $? = 127
configure:2553: g++ -v >&5
/Users/Skywarp/Downloads/ziptool-2.1.0/configure: line 2554: g++: command not found
configure:2556: $? = 127
configure:2563: g++ -V >&5
/Users/Skywarp/Downloads/ziptool-2.1.0/configure: line 2564: g++: command not found
configure:2566: $? = 127
configure:2589: checking for C++ compiler default output file name
configure:2616: g++    conftest.cpp  >&5
/Users/Skywarp/Downloads/ziptool-2.1.0/configure: line 2617: g++: command not found
configure:2619: $? = 127
configure:2657: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ziptool"
| #define PACKAGE_TARNAME "ziptool"
| #define PACKAGE_VERSION "2.1.0"
| #define PACKAGE_STRING "ziptool 2.1.0"
| #define PACKAGE_BUGREPORT "http://code.google.com/p/ziptool/issues/"
| #define PACKAGE "ziptool"
| #define VERSION "2.1.0"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2664: error: C++ compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_make_make_set=no

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /Users/Skywarp/Downloads/ziptool-2.1.0/missing --run aclocal-1.10'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /Users/Skywarp/Downloads/ziptool-2.1.0/missing --run tar'
AR=''
AUTOCONF='${SHELL} /Users/Skywarp/Downloads/ziptool-2.1.0/missing --run autoconf'
AUTOHEADER='${SHELL} /Users/Skywarp/Downloads/ziptool-2.1.0/missing --run autoheader'
AUTOMAKE='${SHELL} /Users/Skywarp/Downloads/ziptool-2.1.0/missing --run automake-1.10'
AWK='awk'
CC=''
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX='g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C='ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /Users/Skywarp/Downloads/ziptool-2.1.0/missing --run makeinfo'
NM=''
NMEDIT=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='ziptool'
PACKAGE_BUGREPORT='http://code.google.com/p/ziptool/issues/'
PACKAGE_NAME='ziptool'
PACKAGE_STRING='ziptool 2.1.0'
PACKAGE_TARNAME='ziptool'
PACKAGE_VERSION='2.1.0'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE='MAKE=make'
SHELL='/bin/sh'
STRIP=''
VERSION='2.1.0'
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /Users/Skywarp/Downloads/ziptool-2.1.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='/bin/echo'
mandir='${datarootdir}/man'
mkdir_p='/Users/Skywarp/Downloads/ziptool-2.1.0/install-sh -c -d'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "ziptool"
#define PACKAGE_TARNAME "ziptool"
#define PACKAGE_VERSION "2.1.0"
#define PACKAGE_STRING "ziptool 2.1.0"
#define PACKAGE_BUGREPORT "http://code.google.com/p/ziptool/issues/"
#define PACKAGE "ziptool"
#define VERSION "2.1.0"

configure: exit 77
???
 
Granger Danger!

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Downloading and compiling Tremulous source on a Mac
« Reply #107 on: February 10, 2011, 05:38:37 pm »
Unsurprisingly, you cant compile stuff without installing a compiler first.

And what does that have to do with tremulous?
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

blowFish

  • Posts: 18
  • Turrets: +4/-1
Re: Downloading and compiling Tremulous source on a Mac
« Reply #108 on: February 22, 2011, 04:48:11 am »
Comments are inline

-BUMP-

qThis file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by ziptool configure 2.1.0, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ /Users/Skywarp/Downloads/ziptool-2.1.0/configure

## --------- ##
## Platform. ##
## --------- ##

hostname = admins-mac
uname -m = i386
uname -r = 10.2.0
uname -s = Darwin
uname -v = Darwin Kernel Version 10.2.0: Tue Nov  3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386

....

Obvious Mac User is Obvious

...

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1981: checking for a BSD-compatible install
configure:2037: result: /usr/bin/install -c
configure:2048: checking whether build environment is sane
configure:2091: result: yes
configure:2119: checking for a thread-safe mkdir -p
configure:2158: result: /Users/Skywarp/Downloads/ziptool-2.1.0/install-sh -c -d
configure:2171: checking for gawk
configure:2201: result: no
configure:2171: checking for mawk
configure:2201: result: no
configure:2171: checking for nawk
configure:2201: result: no
configure:2171: checking for awk
configure:2187: found /usr/bin/awk
configure:2198: result: awk
configure:2209: checking whether make sets $(MAKE)
configure:2234: result: no
configure:2478: checking for g++
configure:2508: result: no
configure:2478: checking for c++
configure:2508: result: no
configure:2478: checking for gpp
configure:2508: result: no
configure:2478: checking for aCC
configure:2508: result: no
configure:2478: checking for CC
configure:2508: result: no
configure:2478: checking for cxx
configure:2508: result: no
configure:2478: checking for cc++
configure:2508: result: no

...

Clearly no compiler installed
 

Install XCode

UB|FuN Damcgee

  • Posts: 34
  • Turrets: +0/-1
    • Tremulous Fun Server Official Website
Re: Downloading and compiling Tremulous source on a Mac
« Reply #109 on: November 19, 2011, 06:13:56 pm »
so i've done all this, but i cant use my ui.qvm :( any recomendations on what to do? it just quits game straight away if i use the one i compiled and i cant use any others cos they just dont work :(
UB|FuN FTW!!!!!! (with :turret: control...)

:turret::turret::turret::turret::turret::turret::turret::dretch:

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: Downloading and compiling Tremulous source on a Mac
« Reply #110 on: November 20, 2011, 01:39:41 am »
see if you can find a file named crashlog.txt on your system.
if you run the executable in a terminal, you'll probably see information useful for figuring out why you can't get Tremulous to work.