@pie3
I suggested you to go the cocos2d forum, where you can find more help.
Especially as you seem to use cocos2d 3.5, and I have not currently update the PKGBUILD to this new revision.
Search Criteria
Package Details: cocos2d-x-src 3.6-1
Package Actions
| Package Base: | cocos2d-x-src |
|---|---|
| Description: | Cocos2D-X is a game engine that supports multiple platforms such as iOS, Android, WinXP/7/8, WP8, BlackBerry, MeeGo, Marmelade, WebOS, Mac OS X |
| Upstream URL: | http://www.cocos2d-x.org/filedown/ |
| Category: | devel |
| Licenses: | |
| Submitter: | Samuelion |
| Maintainer: | Samuelion |
| Last Packager: | Samuelion |
| Votes: | 1 |
| First Submitted: | 2015-03-20 07:28 |
| Last Updated: | 2015-05-01 18:53 |
Latest Comments
Comment by Samuelion
Comment by pie3
$ cocos compile -p linux
on the hello-world test project returns:
CMake Error at cocos2d/CMakeLists.txt:139 (message):
Unsupported architecture, CMake will exit
Checked, seems that CMAKE_SIZEOF_VOID_P is always undefined on my system (same for another archlinux system I'm running).
So I just define it manually via putting:
set(CMAKE_SIZEOF_VOID_P 4)
in my CMakeLists.txt
It then compiles, but fails at linking-stage:
Linking CXX executable bin/MyGame
/usr/bin/ld: skipping incompatible /home/pie3/workspace/coco/test/cocos2d/external/linux-specific/fmod/prebuilt/32- bit/libfmodex.so when searching for -lfmodex
/usr/bin/ld: skipping incompatible /home/pie3/workspace/coco/test/cocos2d/external/linux-specific/fmod/prebuilt/32-bit/libfmodexL.so when searching for -lfmodexL
/usr/bin/ld: ../cocos2d/external/webp/prebuilt/linux/32-bit/libwebp.a(thread.o): undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/lib/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
if I set CMAKE_SIZEOF_VOID_P to 8 (64bit) linking still fails, but differently:
Linking CXX executable bin/MyGame
/usr/bin/ld: ../cocos2d/external/chipmunk/prebuilt/linux/64-bit/libchipmunk.a(chipmunk.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
../cocos2d/external/chipmunk/prebuilt/linux/64-bit/libchipmunk.a: error adding symbols: Bad value
Comment by Samuelion
Very first run. Comments welcomed.
Please read README ! and warning : 450Mb download, 200Mb package, 700Mb install !
All src included (allow compiling for linux, android, ios and win!), and use 'cocos' wrapper to create, compile, deploy and run project on all platforms.
Cmake file added to correct cmake 3.2.1 deprecation (libX11 no more automagically added to linker when adding libGl)