UMLComputerGraphics / GraphicsProject

UML Graphics 2 Final Project 2013
7 stars 1 forks source link

Boost references in MONOLITH and RayTracer #64

Closed zmaybury closed 11 years ago

zmaybury commented 11 years ago

I have boost installed with MacPorts, but I'm seeing these errors after the latest pull.

Undefined symbols for architecture x86_64: "boost::system::system_category()", referenced from: GLOBALI_a in FinalProject-ARmLpK.o GLOBALI_a in MONOLITH.o GLOBALI_a in RayTracer.o "boost::system::generic_category()", referenced from: GLOBALI_a in FinalProject-ARmLpK.o GLOBALI_a in MONOLITH.o GLOBALI_a in RayTracer.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: * [Binaries/FinalProject] Error 1 make: * [all] Error 2

I added "-lboost_system" to the LDOPTS part of the makefile and that did not help either.

zmaybury commented 11 years ago

also tried adding -I/opt/local/lib/libboost_filesystem-mt.dylib -I/opt/local/lib/libboost_system-mt.dylib to CXXINCS

nuclearmistake commented 11 years ago

Have you tried -lboost_function -lboost_bind?... Ill build on my VM and fix it asap On Apr 29, 2013 9:56 AM, "zmaybury" notifications@github.com wrote:

also tried adding -I/opt/local/lib/libboost_filesystem-mt.dylib -I/opt/local/lib/libboost_system-mt.dylib to CXXINCS

— Reply to this email directly or view it on GitHubhttps://github.com/UMLComputerGraphics/GraphicsProject/issues/64#issuecomment-17167944 .

zmaybury commented 11 years ago

tried both in CXXINCS and LDOPTS area, also tried with and without full path to lib as with above comment. All attempts yield the same output:

1 warning generated. ld: library not found for -lboost_function clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *\ [Binaries/FinalProject] Error 1

zmaybury commented 11 years ago

Looking further in the lib directory, I do not have boost_function or boost_bind in my lib directory. I installed boost with macports, and I also tried reinstalling earlier and got that all files were correct and up to date.

zmaybury commented 11 years ago

Thanks for taking a look, I'm going to met John a bit after 130 to integrate the morphing stuff.

nuclearmistake commented 11 years ago

https://github.com/UMLComputerGraphics/GraphicsProject/commit/8314661c03e73605ba411633ea1005b57d79fe5e

zmaybury commented 11 years ago

Tried making, entered password, got this:

new-host-6:src Zach$ make all make preparemac Util/fixboost.sh

nuclearmistake commented 11 years ago

Lions-Mac:src nuclearmistake$ make -j4 make preparemac Util/fixboost.sh

nuclearmistake commented 11 years ago

does boost/Portfile exist?

nickavv commented 11 years ago

I'm running the makefile right now and macports is installing boost just fine

zmaybury commented 11 years ago

yes, src/boost/Portfile exists and has all permissions. Maybe something stupid is going on with my macports, like I need to set my user to root or something

nuclearmistake commented 11 years ago

Binaries/FinalProject runs fine on my vm with boost rolled back to 1.49.0, using the makefile-integrated install process

uname -a Darwin Lions-Mac.local 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr 9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64

OSX 10.7.4

nuclearmistake commented 11 years ago

the script runs the port commands with sudo should be fine... just cd into 'src', rm -Rf boost, and run Util/fixboost.sh manually see if that succeeds

zmaybury commented 11 years ago

Tried that and got the same error, I'm thinking it a macports permission thing

new-host-6:boost Zach$ cd .. new-host-6:src Zach$ rm -Rf boost new-host-6:src Zach$ sh Util/fixboost.sh

nuclearmistake commented 11 years ago

You on campus?

zmaybury commented 11 years ago

I'm on my way now, be there in like 20min

zmaybury commented 11 years ago

Just got here, are you in 314?

Sent from my iPhone

On Apr 29, 2013, at 12:59 PM, "Nuclear Mistake" notifications@github.com<mailto:notifications@github.com> wrote:

You on campus?

— Reply to this email directly or view it on GitHubhttps://github.com/UMLComputerGraphics/GraphicsProject/issues/64#issuecomment-17179381.

nuclearmistake commented 11 years ago

304

On Mon, 29 Apr 2013 13:30:07 -0400, zmaybury notifications@github.com wrote:

Just got here, are you in 314?

Sent from my iPhone

On Apr 29, 2013, at 12:59 PM, "Nuclear Mistake" notifications@github.com<mailto:notifications@github.com> wrote:

You on campus?

— Reply to this email directly or view it on GitHubhttps://github.com/UMLComputerGraphics/GraphicsProject/issues/64#issuecomment-17179381.


Reply to this email directly or view it on GitHub: https://github.com/UMLComputerGraphics/GraphicsProject/issues/64#issuecomment-17181296

Eric McCann University of Massachusetts, Lowell Department of Computer Science One University Avenue Olsen Hall, Room 304 Lowell, MA 01854 Lab: 978.934.3385 Email: emccann@cs.uml.edu Homepage (lab): www.cs.uml.edu/robots Homepage: www.emccann.net

nuclearmistake commented 11 years ago

I am a golden god.