Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building mode is not working on Linux #10540

Closed
antkillerfarm opened this issue Feb 21, 2015 · 1 comment
Closed

Building mode is not working on Linux #10540

antkillerfarm opened this issue Feb 21, 2015 · 1 comment
Assignees

Comments

@antkillerfarm
Copy link

I want to use gdb to debug my app.
But when I run

cocos run -s ~/my/HelloWorld -p linux -m debug

it still cannot use gdb or CCLOG.

After researchment, I find that:
tools/cocos2d-console/plugins/project_compile/project_compile.py Line 1242~1243

   with cocos.pushd(build_dir):
       self._run_cmd('cmake %s' % os.path.relpath(cmakefile_dir, build_dir))

may be changed to:

    with cocos.pushd(build_dir):
        if self._mode == 'debug':
            self._run_cmd('cmake -DCMAKE_BUILD_TYPE=Debug %s' % os.path.relpath(cmakefile_dir, build_dir))
        else:
            self._run_cmd('cmake -DCMAKE_BUILD_TYPE=Release %s' % os.path.relpath(cmakefile_dir, build_dir))
@natural-law
Copy link
Contributor

@antkillerfarm
Thanks for your feedback. I have fixed this problem on branch v3 by this PR:
#10591

The related PR of cocos2d-console is : cocos2d/cocos2d-console#226

Also, I will fix the problem on branch v4 with this issue: #10593

Thank you once more!

@minggo minggo closed this as completed Feb 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants