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

Can't compile #6

Closed
eberkund opened this issue Nov 2, 2018 · 0 comments
Closed

Can't compile #6

eberkund opened this issue Nov 2, 2018 · 0 comments

Comments

@eberkund
Copy link

eberkund commented Nov 2, 2018

Hi, I am back.

When I try to call the following code,

        static INIT: Once = ONCE_INIT;
        INIT.call_once(|| unsafe {
            ffi::bcm_host_init();
            ffi::vcos_init();
            ffi::mmal_vc_init();
        });

I get this error,

  = note: /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_queue_destroy'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_log_category'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_queue_get'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_status_to_string'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_port_alloc'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_buffer_header_driver_data'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_event_format_changed_get'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_component_action_trigger'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_format_extradata_alloc'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_queue_put'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_buffer_header_replicate'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_port_free'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_ports_alloc'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_component_supplier_register'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_buffer_header_release'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_format_copy'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_event_error_send'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_component_action_register'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_port_event_get'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_4cc_to_string'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_port_event_send'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_port_buffer_header_callback'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_ports_free'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_queue_create'
          /opt/vc/lib/libmmal_vc_client.so: undefined reference to `mmal_queue_length'
          collect2: error: ld returned 1 exit status

If I can still compile the code which includes the mmal-sys library and even reference other functions and constants but this initialization code fails for some reason.

pedrosland added a commit that referenced this issue Mar 29, 2019
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

1 participant