You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
- I wouldn't definitely think of it as a stupid question because I am just starting to learn how to do this stuff. And I guess I may need more steps to make it work. I just compiled the driver libraries for the device and not really sure how to go from here to actually make them available in my system to recognize the device. What next steps should I be looking for?marqsman– marqsman2020-10-08 09:40:55 +00:00Commented Oct 8, 2020 at 9:40
- Take a look for any file named INSTALL or README- although they might just be generic. You are likely to find that there will be a separate make install stage which (a) inserts the module file into the right place in /lib/modules, and (b) you might also find it necessary to use modprobe explicitly after plugging in the device if udev etc. doesn't know about it. In extremis look at the Makefile and see if there's an install section in it, which will probably run depmod as its final action.Mark Morgan Lloyd– Mark Morgan Lloyd2020-10-08 09:55:16 +00:00Commented Oct 8, 2020 at 9:55
- That's where I get into trouble. I don't have any README or INSTALL files for the driver, just a C file with the source code and a couple header files. The driver was originally compiled and included with ThorLabs software for Windows to use this device. I was lucky that the vendor included the source code in the original software bundle. I basically had to track down the required libraries for Linux to compile it. So after reading your answer I am thinking that I may have to make some more tinkering with the source file to compile it.marqsman– marqsman2020-10-11 19:57:22 +00:00Commented Oct 11, 2020 at 19:57
- I might have been making the wrong assumption (based on your reference to "driver source code") that you were building a kernel module. Where did you get the source stuff from and did it have a makefile?Mark Morgan Lloyd– Mark Morgan Lloyd2020-10-11 20:35:13 +00:00Commented Oct 11, 2020 at 20:35
- Sorry if I wasn't clear in providing context for this issue. The manufacturer (ThorLabs) provided the driver source code containing the required functions to communicate with the device (e.g. collecting data, checking device status, etc.). The catch is that it was intended to be used on Windows systems, although I think it's possible to build it to work on Linux. No makefile was available, only the C code for the device driver and some header files for libraries. Until now I managed to compile it linking the required libraries but was unable to make it visible on Linux.marqsman– marqsman2020-10-12 08:34:13 +00:00Commented Oct 12, 2020 at 8:34
| Show 7 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. shell-script), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you