mirror of https://github.com/axmolengine/axmol.git
Fixed compilation errors for linux port.
This commit is contained in:
parent
ca5e7b45b1
commit
680fbe3517
|
@ -168,7 +168,7 @@ STATICLIBS = $(STATICLIBS_DIR)/libfreetype.a \
|
||||||
$(STATICLIBS_DIR)/libtiff.a
|
$(STATICLIBS_DIR)/libtiff.a
|
||||||
|
|
||||||
SHAREDLIBS =
|
SHAREDLIBS =
|
||||||
SHAREDLIBS += -lglfw -lGL -lcurl -lfontconfig
|
SHAREDLIBS += -lglfw -lcurl -lfontconfig
|
||||||
SHAREDLIBS += -Wl,-rpath,../../cocos2dx/platform/third_party/linux/glew-1.7.0/glew-1.7.0/lib
|
SHAREDLIBS += -Wl,-rpath,../../cocos2dx/platform/third_party/linux/glew-1.7.0/glew-1.7.0/lib
|
||||||
SHAREDLIBS += -L../../cocos2dx/platform/third_party/linux/glew-1.7.0/glew-1.7.0/lib -lGLEW
|
SHAREDLIBS += -L../../cocos2dx/platform/third_party/linux/glew-1.7.0/glew-1.7.0/lib -lGLEW
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,8 @@ if ! test -d $DIR_GLEW170/glew-1.7.0/; then
|
||||||
DEPENDS+=' libcurl4-gnutls-dev'
|
DEPENDS+=' libcurl4-gnutls-dev'
|
||||||
DEPENDS+=' libfontconfig1-dev'
|
DEPENDS+=' libfontconfig1-dev'
|
||||||
DEPENDS+=' libsqlite3-dev'
|
DEPENDS+=' libsqlite3-dev'
|
||||||
|
DEPENDS+=' glew-dev'
|
||||||
|
|
||||||
for i in $DEPENDS; do
|
for i in $DEPENDS; do
|
||||||
echo -e $TXTCOLOR_GREEN"sudo apt-get install $i, please enter your password:"$TXTCOLOR_DEFAULT
|
echo -e $TXTCOLOR_GREEN"sudo apt-get install $i, please enter your password:"$TXTCOLOR_DEFAULT
|
||||||
sudo apt-get install $i
|
sudo apt-get install $i
|
||||||
|
|
|
@ -50,7 +50,7 @@ SHAREDLIBS_DIR = ../../../../CocosDenshion/third_party/fmod/api/lib
|
||||||
SHAREDLIBS = -L$(SHAREDLIBS_DIR) -lfmodex
|
SHAREDLIBS = -L$(SHAREDLIBS_DIR) -lfmodex
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SHAREDLIBS += -lglfw -lGL
|
SHAREDLIBS += -lglfw
|
||||||
#SHAREDLIBS += -L../../../../lib/linux/Debug -lcocos2d -lrt -lz -lcocosdenshion -Wl,-rpath,../../../../../lib/linux/Debug/
|
#SHAREDLIBS += -L../../../../lib/linux/Debug -lcocos2d -lrt -lz -lcocosdenshion -Wl,-rpath,../../../../../lib/linux/Debug/
|
||||||
SHAREDLIBS += -Wl,-rpath,../../$(SHAREDLIBS_DIR)
|
SHAREDLIBS += -Wl,-rpath,../../$(SHAREDLIBS_DIR)
|
||||||
#SHAREDLIBS += -Wl,-rpath,../../../../../cocos2dx/platform/third_party/linux/glew-1.7.0/glew-1.7.0/lib
|
#SHAREDLIBS += -Wl,-rpath,../../../../../cocos2dx/platform/third_party/linux/glew-1.7.0/glew-1.7.0/lib
|
||||||
|
|
|
@ -155,7 +155,7 @@ SHAREDLIBS_DIR = ../../../../CocosDenshion/third_party/fmod/api/lib
|
||||||
SHAREDLIBS = -L$(SHAREDLIBS_DIR) -lfmodex
|
SHAREDLIBS = -L$(SHAREDLIBS_DIR) -lfmodex
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SHAREDLIBS += -lglfw -lGL
|
SHAREDLIBS += -lglfw
|
||||||
#SHAREDLIBS += -L../../../../lib/linux/Debug -lcocos2d -lrt -lz -lcocosdenshion -Wl,-rpath,../../../../../lib/linux/Debug/
|
#SHAREDLIBS += -L../../../../lib/linux/Debug -lcocos2d -lrt -lz -lcocosdenshion -Wl,-rpath,../../../../../lib/linux/Debug/
|
||||||
SHAREDLIBS += -Wl,-rpath,../../$(SHAREDLIBS_DIR)
|
SHAREDLIBS += -Wl,-rpath,../../$(SHAREDLIBS_DIR)
|
||||||
#SHAREDLIBS += -Wl,-rpath,../../../../../cocos2dx/platform/third_party/linux/glew-1.7.0/glew-1.7.0/lib
|
#SHAREDLIBS += -Wl,-rpath,../../../../../cocos2dx/platform/third_party/linux/glew-1.7.0/glew-1.7.0/lib
|
||||||
|
|
Loading…
Reference in New Issue