Skip to content

Instantly share code, notes, and snippets.

View jcockhren's full-sized avatar
👨‍🍳
Cooking up something 🔥

Jurnell Cockhren jcockhren

👨‍🍳
Cooking up something 🔥
View GitHub Profile
ld: warning: direct access in ValueToObject(_value*, gameplay::Transform::Listener*&) to global weak symbol typeinfo for gameplay::Transform::Listener means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in ValueToObject(_value*, gameplay::Uniform*&) to global weak symbol typeinfo for gameplay::Transform::Listener means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in ValueToObject(_value*, gameplay::Vector2*&) to global weak symbol typeinfo for gameplay::Transform::Listener means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in ValueToObject(_value*, gameplay::Vector3*&) to global weak symbol typeinfo for gamepl
@jcockhren
jcockhren / build_commands
Created February 3, 2013 12:25
Maybe order matters? not sure....
My handwritten command (that works):
xcrun --sdk macosx10.8 clang++ @all_objs -o bin/lib/macosx/gameplay.ndll -dynamiclib -fpic -fPIC -m32 -fvisibility=hidden -L. -L../../../GamePlay/external-deps/bullet/lib/macosx -L../../../GamePlay/external-deps/lua/lib/macosx -L../../../GamePlay/external-deps/libpng/lib/macosx -L../../../GamePlay/external-deps/oggvorbis/lib/macosx -logg -lvorbis -llua -lbullet -lgameplay -framework IOKit -framework Cocoa -framework OpenGL -framework Quartz -lz -lpng -lvorbisfile -framework OpenAL -lvorbisenc
What Build.xml produces (and fails):
xcrun --sdk macosx10.8 clang++ -o bin/lib/macosx/gameplay.ndll -fpic -fPIC -dynamiclib -m32 -framework Cocoa -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -fvisibility=hidden -L../../../gameplay/external-deps/bullet/lib/macosx -L../../../gameplay/external-deps/collada-dom/lib/macosx -L../../../gameplay/external-deps/freetype2/lib/macosx -L../../../gameplay/external-deps/libpng/lib/ma
@jcockhren
jcockhren / hxcpp_config.xml
Created February 3, 2013 13:18
This is the default that's produced. Doesn't seem to have anything that's mac specific.
<!--
This file will get included twice - once at the beginning - once at the end.
The first time though, the "vars" section is parsed, and this is where you can
set variables to control the setup of the standard compilers and install paths etc.
The second time, the "exes" section is parsed, and you can modify the linkers/compilers
by adding flags to these executables.
@jcockhren
jcockhren / build_results
Created February 4, 2013 23:00
Complains about global a weak symbol
crun --sdk macosx10.8 clang++ -o bin/lib/macosx/gameplay.ndll -fpic -fPIC -dynamiclib -m32 -framework Cocoa -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -fvisibility=hidden -framework OpenGL -framework OpenAL -framework Quartz -framework IOKit -L../../../Gameplay/external-deps/bullet/lib/macosx -L../../../Gameplay/external-deps/libpng/lib/macosx -L../../../Gameplay/external-deps/lua/lib/macosx -L../../../Gameplay/external-deps/oggvorbis/lib/macosx -framework OpenGL -L. @all_objs -lbullet -lpng -llua -logg -lvorbis -lvorbisenc -lvorbisfile -lz -lgameplay
ld: bad codegen, pointer diff in __Z13ValueToObjectP6_valueRPN8gameplay7AIAgent8ListenerE to global weak symbol __ZTIN8gameplay9Transform8ListenerE for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Called from ? line 1
Called from BuildTool.hx line 1438
Called from BuildTool.hx line 667
Called from a C function
Called from BuildTool.hx line 702
C
@jcockhren
jcockhren / salt-cloud.digitalocean
Last active December 15, 2015 23:49
Error when using digital ocean
Given the below config
ubuntu_do:
provider: digital_ocean
image: Ubuntu 12.04 x32 Server
size: 512MB
script: Ubuntu
location: New York 1
minion:
master: salt.example.com
@jcockhren
jcockhren / salt-cloud.yml
Created April 9, 2013 06:05
salt cloud config
minion:
master: salt.example.com
DIGITAL_OCEAN.client_key: mykey
DIGITAL_OCEAN.api_key: somelongtext
@jcockhren
jcockhren / cloud
Created April 9, 2013 06:05
Salt cloud config
minion:
master: salt.example.com
DIGITAL_OCEAN.client_key: mykey
DIGITAL_OCEAN.api_key: somelongtext
@jcockhren
jcockhren / salt-error
Created April 9, 2013 06:20
error with new config
--- /etc/salt/cloud.providers ---
do:
client_key: mykey
api_key: somelongkey
provider: digital_ocean
--- /etc/salt/cloud.profiles ---
ubuntu_do:
provider: do
image: Ubuntu 12.04 x32 Server
@jcockhren
jcockhren / salt-cloud-linode
Created April 10, 2013 10:34
salt-cloud issue with linode
--- cloud.providers ---
lin:
apikey: somekey
password: somepass
provider: linode
--- cloud.profiles ---
ubuntu_lin:
provider: lin
image: Ubuntu 12.04 LTS
*Pigs*
- Product Owner
- Team
- Scrum Master
*Chickens*
Stakeholders
Managers
*Sprint*