aerys / minko

3D framework for web, desktop and mobile devices.
http://minko.io
Other
904 stars 210 forks source link

missing pthread param on Makefiles #230

Closed gerardogc2378 closed 8 years ago

gerardogc2378 commented 8 years ago

Over ArchLinux (64 bits) I have this output compiling 01-hello-cube example

Running pre-link commands test -e /home/ggc/tmp/minko/framework/asset && cp -R /home/ggc/tmp/minko/framework/asset "bin/linux64/release" || : test -e asset && cp -R asset "bin/linux64/release" || : Linking minko-tutorial-01-hello-cube

To fix

Add pthread parameter into your Makefile in question

ALL_LDFLAGS += $(LDFLAGS) -s -m64 -L/usr/lib64 -L../../framework/bin/linux64/release -Wl,--no-as-needed -lpthread

And compile again, enjoy your cube ... :D

How to fix this automatically?

JMLX42 commented 8 years ago

Which branch ?

gerardogc2378 commented 8 years ago

master branch

JMLX42 commented 8 years ago

Please try the dev branch and confirm it works.

warrenseine commented 8 years ago

@gerardogc2378 Did you try to build dev?

gerardogc2378 commented 8 years ago

Today I'll try with dev branch at tonight ...

gerardogc2378 commented 8 years ago

Playing with dev branch on minko/tutorial all examples are missing -lpthread flag, except on android targets

warrenseine commented 8 years ago

That shouldn't be the case. Look here.

JMLX42 commented 8 years ago

@gerardogc2378 have you re-generated the whole solution, even for examples, after switching to dev? To be sure, delete all the Makefile files then re-generate the solution.