Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

225
Visualizações
Julia ccall: Problem with shared library interfacing hardware devices

I am using Julia to control a camera which comes with a shared library on Linux-Mint. The shared library provides APIs written in C++. There are also header files containing definitions of types and constants concerning the device. I wrote Julia scripts to wrap C structs, definitions, enums and types with Julia. Here is the critical point. I use ccall function to call a function in the shared library . This function is supposed to return an opaque handle of the device. I use this format variant ccall( (:function, "library"), ...). An error code saying no camera is found was thrown back. Then, I tried preloading the shared library using Libdl.dlopen and use ccall(:function,..., ...) to call the function, but still got the same result. The same operation works perfectly fine in C.

I am wondering what could block connection to hardware devices when using ccall. I do not know the details of ccall implementation in Julia. If anybody can give me some clues, that would be great help.

Have a nice day,

Sitthichat

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda