Compile on PS4

136 views
Skip to first unread message

Wil P

unread,
Sep 11, 2013, 3:15:32 AM9/11/13
to pawns...@googlegroups.com
Hi all,

I'm porting some legacy code to PS4, including Pawn.
I cannot get it to compile on PS4. The compiler defines a "__FreeBSD__" macro. Also, the machine is a 64-bits system.

Anyone has experience with compiling Pawn on PS4?

Thanks for any suggestions!

wilfrid

unread,
Sep 11, 2013, 3:57:49 AM9/11/13
to pawns...@googlegroups.com
I forgot to mention the compiler is based on clang.


--
You received this message because you are subscribed to the Google Groups "Pawn Scripting Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pawnscript+...@googlegroups.com.
To post to this group, send email to pawns...@googlegroups.com.
Visit this group at http://groups.google.com/group/pawnscript.
For more options, visit https://groups.google.com/groups/opt_out.

Dan Christian

unread,
Sep 11, 2013, 9:33:36 AM9/11/13
to pawns...@googlegroups.com
I'm new to this, so I may be wrong...
It looks like building on a 64bit base is broken.
https://code.google.com/p/pawnscript/issues/detail?id=6
The linux tarball from the site is a 32bit build.

I thought about changing the definition of PAWN_CELL_SIZE to be smart about the pointer size (the cell size must be big enough to hold a pointer), but I haven't tried it yet.

-Dan

Wil P

unread,
Sep 13, 2013, 2:36:57 AM9/13/13
to pawns...@googlegroups.com
I noticed that I can build the runtime if I do the following steps:
- add a new preprocessor definition _MY_64PLATFORM
- add this kind of code in places where __FreeBSD__ is used (for example amx.c, amx.h):
  #if defined(_MY_64PLATFORM)
    #undef __FreeBSD__
  #endif
- add this kind of code in places where _WIN64 is used (for example amx.h):
  #if defined(_WIN64) || defined(_MY_64PLATFORM)

Hope this can help you Dan.
Reply all
Reply to author
Forward
0 new messages