main.cpp 518 B

12345678910111213141516171819202122
  1. #include <QCoreApplication>
  2. #include <iostream>
  3. #include "ivdriver_can_nvidia_agx.h"
  4. int main(int argc, char *argv[])
  5. {
  6. QCoreApplication a(argc, argv);
  7. QString strpath = QCoreApplication::applicationDirPath();
  8. if(argc < 2)
  9. strpath = strpath + "/driver_can_nvidia_agx.xml";
  10. else
  11. strpath = argv[1];
  12. std::cout<<strpath.toStdString()<<std::endl;
  13. iv::ivmodule * pivmodule = new iv::ivdriver_can_nvidia_agx(strpath.toStdString());
  14. pivmodule->start();
  15. return a.exec();
  16. }