Create Project from console (AnimalMatch)
cd to AnimalMatch
mkdir linux-build
cd linux-build
cmake ..
make
And after a long time compiling, the compiler show an error on Terminal relative to CCPhysicsBody.cpp. Then I trying compile project through cocos command:
Thanks for replied !
But the error shown up is about Physics extension right ?
I’m using Ubuntu 32 bit, which I cant find the chipmunk prebuilt folder ( there is only for 64-bit), I have to self-installing by “sudo apt-get install chipmunk-dev” to make cmake run properly
As showing picture, all of libraries are built, just linking section error. I don’t know how can it be. Do I need to install 64-bit version ?
Did you install anythings else ?
I though it was because of 32-bit ubuntu so I reinstall with 64-bit one. Get a little lag but it works fine
By the way, thanks for your supporting very much
I tried to run cocos2d new project on ubuntu vm on windows 10.
On ubuntu 16.04 amd64, all cocos versions are working.
While ubuntu 16.04 i386, got same compile error for each cocos version.
This is screen shot.
My commands on terminal are following ( same on both ubuntu amd64 and i386);
sudo apt-get install libglew*-dev libfreetype6-dev libtiff-dev libsqlite3-dev libfontconfig1-dev libgtk-3-dev libwebp-dev libjpeg-dev libtiff5-dev libwebsockets-dev libcurl4-gnutls-dev chipmunk-dev mesa-vulkan-drivers
download & unzip cocos2d-x-3.15.1
cd cocos2d-x-3.15.1
./download-deps.py
cd build
./install-deps-linux.sh
sudo apt-get update
sudo apt-get upgrade
cd …
python setup.py
source /home/terry(user name)/.bashrc
cd …
create project
cd Project
cocos compile -p linux
I guess some bodies know about this. Please help me. Thanks.
We have newer docs that you should use. Please use the latest docs and let me know how you make out. What is your OpenGL version? Is the video driver in the VM using an OpenGL driver?
Thanks for the reply. Sorry but I don’t understand you well. These steps works on ubuntu 64 bit and runs cocos2d project ok. Which doc you mean? Have you tried on ubuntu 32 bit?
You mean newer doc is http://cocos2d-x.org/docs/cocos2d-x/en/installation/Linux.html ?
Why are you posting in a 3.11.1 thread then? You aren’t using the same criteria as the thread to ask your questions.
We haven’t tested on 32-bit in the last few releases. I’d suggest either going back to 3.11.1 if you want to use 32-bit or switch to 64-bit and use 3.16. It is possible 3.12 or 3.13 could work too.
I’d suggest starting a new thread. Outline your commands and show some screenshots. Ensure gcc version, python version, etc. Ensure your VM is using an OpenGL video driver. We don’t test using mesa-drivers.