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

Linker-Error #3

Open
bennigraf opened this issue Apr 9, 2014 · 13 comments
Open

Linker-Error #3

bennigraf opened this issue Apr 9, 2014 · 13 comments

Comments

@bennigraf
Copy link

Hi again :-)!

I'm trying to run example-all and it finally builds, but throws an error when linking (see below). Does this have anything to do with ofxKinect? I don't know where to look for _write_register etc. at all.

I'm working on the most recent of master from github, just as all additional libs are cloned from there.

Thanks, Benni.

Undefined symbols for architecture i386:
"_write_register", referenced from:
_freenect_start_depth in cameras.o
_freenect_start_video in cameras.o
_freenect_stop_depth in cameras.o
_freenect_stop_video in cameras.o
"_upload_firmware_from_memory", referenced from:
_fnusb_open_subdevices in usb_libusb10.o
"_upload_firmware", referenced from:
_fnusb_open_subdevices in usb_libusb10.o
"_freenect_stop_audio", referenced from:
_freenect_process_events_timeout in core.o
"_freenect_extra_keep_alive", referenced from:
_fnusb_open_subdevices in usb_libusb10.o
"_send_cmd", referenced from:
_freenect_fetch_reg_info in cameras.o
_freenect_fetch_reg_pad_info in cameras.o
_freenect_fetch_zero_plane_info in cameras.o
_freenect_fetch_reg_const_shift in cameras.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@arturoc
Copy link
Owner

arturoc commented Apr 9, 2014

yes it seems an error linking ofxKinect, are you using the latest PG the one in 0.8.1? Also perhaps it's easier to start with video-audio example, and see if that works.

@bennigraf
Copy link
Author

The video-audio-example is giving me "libusb-1.0/libusb.h file not found" in ofxKinect/libs/libfreenect/src/keep_alive.c. There is libusb-1.0/ in ofxKinect/libs though.

Sorry I have to ask, but what do you mean by PG?

@arturoc
Copy link
Owner

arturoc commented Apr 9, 2014

:) the project generator, you should regenerate the projects, the ones in the repo if there are some, are probably outdated

@bennigraf
Copy link
Author

Thanks :-). Do you mean create a new project including all the necessary addons and add the source files of the examples manually? Doing so I get "agent.h: 'glib-object.h' file not found", even though I added the GStreamer-Framework (also manually) to the project.

@sethismyfriend
Copy link
Collaborator

Even though I set everything in my project to 32 bit only I am still getting this error: Undefined symbols for architecture i386:
"_write_register", referenced from:
_freenect_stop_depth in cameras.o
_freenect_stop_video in cameras.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I'm pretty sure its something to do with the build settings of the project - I'll try updating the project generator but I think it's weird that I'm getting this error when we had the same settings in previous projects.

@alvarohub
Copy link

I have the same problem, glib-object.h "not found" (using latest PG and 0.8.1). By the way, the link to the nightly builds seems broken (http://openframeworks.cc/versions/nightly/of_latest_osx_nightly.zip)

@arturoc
Copy link
Owner

arturoc commented Jun 22, 2014

i think the paths to frameworks have changed with xcode 5 but i tested it some days ago and it was working for me without problem, i'll take a look on osx

@sethismyfriend
Copy link
Collaborator

Hey - Alvaro, awesome to see you are using the libraries. We are working on
a version where all the dependencies are linked as static libs and then the
current version for development to make it easy to setup and to keep up
with changes in the IDE. I have it working in XCode 5 on my Mac - one thing
to check is to make sure you have installed all the required dependencies
on your system in the /Library/Frameworks/GStreamer.framework/

Seth


Seth Hunter
PhD, MIT Media Lab - Research Scientist at Intel Labs
website http://www.perspectum.com/ | inspiration
http://arplay.tumblr.com/ | life

http://flickr.com/photos/sethismyfriend/

On Sun, Jun 22, 2014 at 5:55 AM, Alvaro Cassinelli <[email protected]

wrote:

I have the same problem, glib-object.h "not found" (using latest PG and
0.8.1). By the way, the link to the nightly builds seems broken (
http://openframeworks.cc/versions/nightly/of_latest_osx_nightly.zip)


Reply to this email directly or view it on GitHub
#3 (comment).

@alvarohub
Copy link

Arturo, Seth!

Thanks for your answers! The libraries look amaaazing, but I could not
compile them yet.
I have been using ofxHTTP for some "teleprescence" project outside the lab
(I am trying to organize a dance event at a distance - actually Tango, I
mean real Tango, not the project Tango, haha - with some additional
minimalistic features to connect people), but XMPP seems very interesting
because of the metadata and the overlayed network (no static IP needed).

I'll keep trying, but any help is appreciated!
Hope everything is great,
Alvaro

On Tue, Jun 24, 2014 at 2:18 AM, Seth Hunter [email protected]
wrote:

Hey - Alvaro, awesome to see you are using the libraries. We are working
on
a version where all the dependencies are linked as static libs and then
the
current version for development to make it easy to setup and to keep up
with changes in the IDE. I have it working in XCode 5 on my Mac - one
thing
to check is to make sure you have installed all the required dependencies
on your system in the /Library/Frameworks/GStreamer.framework/

Seth


Seth Hunter
PhD, MIT Media Lab - Research Scientist at Intel Labs
website http://www.perspectum.com/ | inspiration
http://arplay.tumblr.com/ | life

http://flickr.com/photos/sethismyfriend/

On Sun, Jun 22, 2014 at 5:55 AM, Alvaro Cassinelli <
[email protected]

wrote:

I have the same problem, glib-object.h "not found" (using latest PG and
0.8.1). By the way, the link to the nightly builds seems broken (
http://openframeworks.cc/versions/nightly/of_latest_osx_nightly.zip)


Reply to this email directly or view it on GitHub
#3 (comment).


Reply to this email directly or view it on GitHub
#3 (comment).

@alvarohub
Copy link

Ok, I could compile and run! now I will start playing ;)
Alvaro

On Tue, Jun 24, 2014 at 3:26 PM, Cassinelli Alvaro <
[email protected]> wrote:

Arturo, Seth!

Thanks for your answers! The libraries look amaaazing, but I could not
compile them yet.
I have been using ofxHTTP for some "teleprescence" project outside the lab
(I am trying to organize a dance event at a distance - actually Tango, I
mean real Tango, not the project Tango, haha - with some additional
minimalistic features to connect people), but XMPP seems very interesting
because of the metadata and the overlayed network (no static IP needed).

I'll keep trying, but any help is appreciated!
Hope everything is great,
Alvaro

On Tue, Jun 24, 2014 at 2:18 AM, Seth Hunter [email protected]
wrote:

Hey - Alvaro, awesome to see you are using the libraries. We are working
on
a version where all the dependencies are linked as static libs and then
the
current version for development to make it easy to setup and to keep up
with changes in the IDE. I have it working in XCode 5 on my Mac - one
thing
to check is to make sure you have installed all the required dependencies
on your system in the /Library/Frameworks/GStreamer.framework/

Seth


Seth Hunter
PhD, MIT Media Lab - Research Scientist at Intel Labs
website http://www.perspectum.com/ | inspiration
http://arplay.tumblr.com/ | life

http://flickr.com/photos/sethismyfriend/

On Sun, Jun 22, 2014 at 5:55 AM, Alvaro Cassinelli <
[email protected]

wrote:

I have the same problem, glib-object.h "not found" (using latest PG and
0.8.1). By the way, the link to the nightly builds seems broken (
http://openframeworks.cc/versions/nightly/of_latest_osx_nightly.zip)


Reply to this email directly or view it on GitHub
#3 (comment).


Reply to this email directly or view it on GitHub
#3 (comment).

@arturoc
Copy link
Owner

arturoc commented Jun 24, 2014

hehe :) what was it? btw, fell free to mail me if you need any help setting it up...

@alvarohub
Copy link

well, habia un problema tonto con cmath y pow (pero hice un static cast), y
adems unos problemas de instalacion de gstreamer, pero eso fue mi error (no
habia agregado ofxGstreamer!!!)

On Tue, Jun 24, 2014 at 4:43 PM, arturo [email protected] wrote:

hehe :) what was it? btw, fell free to mail me if you need any help
setting it up...


Reply to this email directly or view it on GitHub
#3 (comment).

@sethismyfriend
Copy link
Collaborator

Arturo and I are meeting today - I'll chat with him about resolving your
issue.

Seth


Seth Hunter
PhD, MIT Media Lab - Research Scientist at Intel Labs
website http://www.perspectum.com/ | inspiration
http://arplay.tumblr.com/ | life

http://flickr.com/photos/sethismyfriend/

On Mon, Jun 23, 2014 at 11:26 PM, Alvaro Cassinelli <
[email protected]> wrote:

Arturo, Seth!

Thanks for your answers! The libraries look amaaazing, but I could not
compile them yet.
I have been using ofxHTTP for some "teleprescence" project outside the lab
(I am trying to organize a dance event at a distance - actually Tango, I
mean real Tango, not the project Tango, haha - with some additional
minimalistic features to connect people), but XMPP seems very interesting
because of the metadata and the overlayed network (no static IP needed).

I'll keep trying, but any help is appreciated!
Hope everything is great,
Alvaro

On Tue, Jun 24, 2014 at 2:18 AM, Seth Hunter [email protected]
wrote:

Hey - Alvaro, awesome to see you are using the libraries. We are working
on
a version where all the dependencies are linked as static libs and then
the
current version for development to make it easy to setup and to keep up
with changes in the IDE. I have it working in XCode 5 on my Mac - one
thing
to check is to make sure you have installed all the required
dependencies
on your system in the /Library/Frameworks/GStreamer.framework/

Seth


Seth Hunter
PhD, MIT Media Lab - Research Scientist at Intel Labs
website http://www.perspectum.com/ | inspiration
http://arplay.tumblr.com/ | life

http://flickr.com/photos/sethismyfriend/

On Sun, Jun 22, 2014 at 5:55 AM, Alvaro Cassinelli <
[email protected]

wrote:

I have the same problem, glib-object.h "not found" (using latest PG
and
0.8.1). By the way, the link to the nightly builds seems broken (
http://openframeworks.cc/versions/nightly/of_latest_osx_nightly.zip)


Reply to this email directly or view it on GitHub
#3 (comment).


Reply to this email directly or view it on GitHub
#3 (comment).


Reply to this email directly or view it on GitHub
#3 (comment).

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

4 participants