Pages: « 1 2 3 4 »
  Print  
Author Topic: compiling for mac?  (Read 10745 times)
Offline (Unknown gender) hairypuppy
Reply #15 Posted on: April 20, 2014, 08:23:11 AM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
here is both

http://pastebin.com/ZSp1QHpU
Logged
lewis lepton
------
composer | sound designer | tinkerer
Offline (Unknown gender) hairypuppy
Reply #16 Posted on: April 20, 2014, 10:29:33 AM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
just wondering if youve found anything with the last terminal & compile output? ;S
Logged
lewis lepton
------
composer | sound designer | tinkerer
Offline (Male) Josh @ Dreamland
Reply #17 Posted on: April 20, 2014, 02:07:34 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
According to Robert, what we need is in settings.ey. Could you try replacing Default-MacOSX: "./ENIGMA/" in that file with some path on your system for ENIGMA to write to? I think a good default is ~/.enigma; I'm not sure if LGM creates the directory or if you'll have to create it. Give it a shot and see if you can get it to recognize the output directory.

If not, we'll have to wait for Robert.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) hairypuppy
Reply #18 Posted on: April 20, 2014, 02:53:14 PM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
tried it. but it came out with this message as soon as it loaded, could not go through the run either

Quote
Call to 'defines' toolchain executable returned non-zero!

i guess its a case of waiting for robert then. fair enough. ive been using gamemaker for mac to get all the required 'easy stuff' done. so once its all running with enigma, then i can just import it all.

again, thanks for your help
Logged
lewis lepton
------
composer | sound designer | tinkerer
Offline (Male) Goombert
Reply #19 Posted on: April 20, 2014, 02:58:09 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3110

View Profile
Did you create the folder like Josh told you to?
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) hairypuppy
Reply #20 Posted on: April 20, 2014, 03:18:06 PM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
aye, i did. but that was the message that did pop up
Logged
lewis lepton
------
composer | sound designer | tinkerer
Offline (Male) Josh @ Dreamland
Reply #21 Posted on: April 20, 2014, 04:22:22 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
What happens if you run cpp -dM -x c++ -E /dev/null yourself, from a terminal?
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) hairypuppy
Reply #22 Posted on: April 20, 2014, 04:31:20 PM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
just running right that from it being opened? this

Code: [Select]
Last login: Sun Apr 20 22:30:09 on ttys000
You have mail.
lepton:~ lepton$ cpp -dM -x c++ -E /dev/null
clang: error: no input files
lepton:~ lepton$
Logged
lewis lepton
------
composer | sound designer | tinkerer
Offline (Male) Josh @ Dreamland
Reply #23 Posted on: April 20, 2014, 04:33:49 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
Okay, that's the problem. Clang isn't recognizing the input file we're passing it. I have no idea why that's the case. Could you try playing with the argument order to see if you can get it to work?

Another idea is that I recall Mac requiring the use of -xc++ instead of -x c++, or something similar. But we need that command working.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) hairypuppy
Reply #24 Posted on: April 20, 2014, 04:35:28 PM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
heres the output of that updated command

^[[ALast login: Sun Apr 20 22:30:56 on ttys000
You have mail.
lepton:~ lepton$ cpp -dM -xc++ -E /dev/null
#define OBJC_NEW_PROPERTIES 1
#define _LP64 1
#define __APPLE_CC__ 6000
#define __APPLE__ 1
#define __ATOMIC_ACQUIRE 2
#define __ATOMIC_ACQ_REL 4
#define __ATOMIC_CONSUME 1
#define __ATOMIC_RELAXED 0
#define __ATOMIC_RELEASE 3
#define __ATOMIC_SEQ_CST 5
#define __BLOCKS__ 1
#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
#define __CHAR16_TYPE__ unsigned short
#define __CHAR32_TYPE__ unsigned int
#define __CHAR_BIT__ 8
#define __CONSTANT_CFSTRINGS__ 1
#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
#define __DBL_DIG__ 15
#define __DBL_EPSILON__ 2.2204460492503131e-16
#define __DBL_HAS_DENORM__ 1
#define __DBL_HAS_INFINITY__ 1
#define __DBL_HAS_QUIET_NAN__ 1
#define __DBL_MANT_DIG__ 53
#define __DBL_MAX_10_EXP__ 308
#define __DBL_MAX_EXP__ 1024
#define __DBL_MAX__ 1.7976931348623157e+308
#define __DBL_MIN_10_EXP__ (-307)
#define __DBL_MIN_EXP__ (-1021)
#define __DBL_MIN__ 2.2250738585072014e-308
#define __DECIMAL_DIG__ 21
#define __DEPRECATED 1
#define __DYNAMIC__ 1
#define __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 1090
#define __EXCEPTIONS 1
#define __FINITE_MATH_ONLY__ 0
#define __FLT_DENORM_MIN__ 1.40129846e-45F
#define __FLT_DIG__ 6
#define __FLT_EPSILON__ 1.19209290e-7F
#define __FLT_EVAL_METHOD__ 0
#define __FLT_HAS_DENORM__ 1
#define __FLT_HAS_INFINITY__ 1
#define __FLT_HAS_QUIET_NAN__ 1
#define __FLT_MANT_DIG__ 24
#define __FLT_MAX_10_EXP__ 38
#define __FLT_MAX_EXP__ 128
#define __FLT_MAX__ 3.40282347e+38F
#define __FLT_MIN_10_EXP__ (-37)
#define __FLT_MIN_EXP__ (-125)
#define __FLT_MIN__ 1.17549435e-38F
#define __FLT_RADIX__ 2
#define __GCC_ATOMIC_BOOL_LOCK_FREE 2
#define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 2
#define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 2
#define __GCC_ATOMIC_CHAR_LOCK_FREE 2
#define __GCC_ATOMIC_INT_LOCK_FREE 2
#define __GCC_ATOMIC_LLONG_LOCK_FREE 2
#define __GCC_ATOMIC_LONG_LOCK_FREE 2
#define __GCC_ATOMIC_POINTER_LOCK_FREE 2
#define __GCC_ATOMIC_SHORT_LOCK_FREE 2
#define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1
#define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 1
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1
#define __GNUC_GNU_INLINE__ 1
#define __GNUC_MINOR__ 2
#define __GNUC_PATCHLEVEL__ 1
#define __GNUC__ 4
#define __GNUG__ 4
#define __GXX_ABI_VERSION 1002
#define __GXX_RTTI 1
#define __GXX_WEAK__ 1
#define __INT16_TYPE__ short
#define __INT32_TYPE__ int
#define __INT64_C_SUFFIX__ LL
#define __INT64_TYPE__ long long int
#define __INT8_TYPE__ char
#define __INTMAX_MAX__ 9223372036854775807L
#define __INTMAX_TYPE__ long int
#define __INTMAX_WIDTH__ 64
#define __INTPTR_TYPE__ long int
#define __INTPTR_WIDTH__ 64
#define __INT_MAX__ 2147483647
#define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
#define __LDBL_DIG__ 18
#define __LDBL_EPSILON__ 1.08420217248550443401e-19L
#define __LDBL_HAS_DENORM__ 1
#define __LDBL_HAS_INFINITY__ 1
#define __LDBL_HAS_QUIET_NAN__ 1
#define __LDBL_MANT_DIG__ 64
#define __LDBL_MAX_10_EXP__ 4932
#define __LDBL_MAX_EXP__ 16384
#define __LDBL_MAX__ 1.18973149535723176502e+4932L
#define __LDBL_MIN_10_EXP__ (-4931)
#define __LDBL_MIN_EXP__ (-16381)
#define __LDBL_MIN__ 3.36210314311209350626e-4932L
#define __LITTLE_ENDIAN__ 1
#define __LONG_LONG_MAX__ 9223372036854775807LL
#define __LONG_MAX__ 9223372036854775807L
#define __LP64__ 1
#define __MACH__ 1
#define __MMX__ 1
#define __NO_INLINE__ 1
#define __NO_MATH_INLINES 1
#define __ORDER_BIG_ENDIAN__ 4321
#define __ORDER_LITTLE_ENDIAN__ 1234
#define __ORDER_PDP_ENDIAN__ 3412
#define __PIC__ 2
#define __POINTER_WIDTH__ 64
#define __PRAGMA_REDEFINE_EXTNAME 1
#define __PTRDIFF_TYPE__ long int
#define __PTRDIFF_WIDTH__ 64
#define __REGISTER_PREFIX__
#define __SCHAR_MAX__ 127
#define __SHRT_MAX__ 32767
#define __SIG_ATOMIC_WIDTH__ 32
#define __SIZEOF_DOUBLE__ 8
#define __SIZEOF_FLOAT__ 4
#define __SIZEOF_INT128__ 16
#define __SIZEOF_INT__ 4
#define __SIZEOF_LONG_DOUBLE__ 16
#define __SIZEOF_LONG_LONG__ 8
#define __SIZEOF_LONG__ 8
#define __SIZEOF_POINTER__ 8
#define __SIZEOF_PTRDIFF_T__ 8
#define __SIZEOF_SHORT__ 2
#define __SIZEOF_SIZE_T__ 8
#define __SIZEOF_WCHAR_T__ 4
#define __SIZEOF_WINT_T__ 4
#define __SIZE_MAX__ 18446744073709551615UL
#define __SIZE_TYPE__ long unsigned int
#define __SIZE_WIDTH__ 64
#define __SSE2_MATH__ 1
#define __SSE2__ 1
#define __SSE3__ 1
#define __SSE_MATH__ 1
#define __SSE__ 1
#define __SSP__ 1
#define __SSSE3__ 1
#define __STDC_HOSTED__ 1
#define __STDC_UTF_16__ 1
#define __STDC_UTF_32__ 1
#define __UINTMAX_TYPE__ long unsigned int
#define __USER_LABEL_PREFIX__ _
#define __VERSION__ "4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)"
#define __WCHAR_MAX__ 2147483647
#define __WCHAR_TYPE__ int
#define __WCHAR_WIDTH__ 32
#define __WINT_TYPE__ int
#define __WINT_WIDTH__ 32
#define __amd64 1
#define __amd64__ 1
#define __apple_build_version__ 5030040
#define __block __attribute__((__blocks__(byref)))
#define __clang__ 1
#define __clang_major__ 5
#define __clang_minor__ 1
#define __clang_patchlevel__ 0
#define __clang_version__ "5.1 (clang-503.0.40)"
#define __core2 1
#define __core2__ 1
#define __cplusplus 199711L
#define __llvm__ 1
#define __pic__ 2
#define __private_extern__ extern
#define __strong
#define __tune_core2__ 1
#define __unsafe_unretained
#define __weak __attribute__((objc_gc(weak)))
#define __x86_64 1
#define __x86_64__ 1
lepton:~ lepton$
Logged
lewis lepton
------
composer | sound designer | tinkerer
Offline (Male) Goombert
Reply #25 Posted on: April 20, 2014, 04:36:07 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3110

View Profile
There are more Mac instructions on the Wiki.
http://enigma-dev.org/docs/Wiki/Mac#Dependencies

I need to clean this up some more, the main OS pages should be about the OS, we have Install: for each platform.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) Josh @ Dreamland
Reply #26 Posted on: April 20, 2014, 04:38:48 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
Excellent; could you please replace that command in Compilers/MacOSX/clang.ey? Should be line 13. Probably 14 as well.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) hairypuppy
Reply #27 Posted on: April 20, 2014, 04:39:32 PM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
i have been through the dependencies page, also any other mac related page, plus any other info that may have come up that would be useful.
but agreed, i feel it needs to be looked at a bit more ;)

@josh
which file? the same 'settings.ey'?
Logged
lewis lepton
------
composer | sound designer | tinkerer
Offline (Male) Josh @ Dreamland
Reply #28 Posted on: April 20, 2014, 04:40:36 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
No; this file is under the Compilers folder. Compilers/MacOSX/clang.ey.

If that doesn't work, you may be using Compilers/MacOSX/gcc.ey, but the default compiler on Mac should be Clang.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) hairypuppy
Reply #29 Posted on: April 20, 2014, 04:43:37 PM
Member
Joined: Apr 2014
Posts: 37

View Profile WWW Email
excuse, my thoughts are away with this cold ive got.

just to be final, replace 13 and 14 with 'cpp -dM -xc++ -E /dev/null'

so it would be
defines: cpp -dM -xc++ -E /dev/null
searchdirs: cpp -dM -xc++ -E /dev/null
Logged
lewis lepton
------
composer | sound designer | tinkerer
Pages: « 1 2 3 4 »
  Print