Wiki

Clone wiki

scl-manips-v2 / debug / ctrl_nothingworks

Code doesn't compile

  • Did you make_everything.sh in applications-linux/scl_lib ?
cd applications-linux/scl_lib
sh make_everything.sh
cd ../<your-application>
sh make_rel.sh
  • When you made it, did it lead to any errors?
    • Was the error something like: "could not find lusb-1.0-0"?
sudo apt-get install libusb-1.0-0-dev
  • Have you updated to the latest version of scl?
git reset HEAD --hard
git checkout <the branch you are tracking>
git pull
git checkout <your branch>
git rebase <the branch you are tracking>
gitk (gui for if you want to see where you are in the code)

"Undefined reference"

Code has "undefined reference" errors in all lines that call methods from a certain header file? This probably means that you have a problem in your CMakeLists.txt, or that the compiler or linker can't find the driver that you're getting undefined references to.

"A possible fix would be to delete the build_dbg and build_rel folders and try building again. Those only contain temporary cmake files and sometimes the files are out of sync with the updated cmake code."

You can also open your CMakeLists.txt and look for what the missing variable is being set as; go to the directory that it's looking in for the name of a file. Make sure that file is there. If it isn't there, make! (For me, this problem happened w/ debug & release.)

Tip: for comparing differences in files, use $ meld file_1 file_2

Note on dbg and rel files: debug (dbg) - allows you to step through and debug (matches line in code to place in program while running) release (rel) - much smaller, just goes through the entire program. Cannot debug.

Updated