Commit acc3ad56 authored by Thiago Santini's avatar Thiago Santini

Adds initial Linux support

parent df64cea1
Temporary file to hold instructions for the Linux port.
1) General dependencies
$sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev
...@@ -37,50 +37,66 @@ unix { ...@@ -37,50 +37,66 @@ unix {
} }
# Dependencies # Dependencies
LIBUSBPATH = "C:/Users/santini/repo/libusb/"
LIBUVCPATH = "C:/Users/santini/repo/libuvc/" win32:{
LIBPTHREADSPATH = "C:/Users/santini/repo/libuvc/pthreads-2.9.1/" LIBUSBPATH = "C:/Users/santini/repo/libusb/"
LIBUVCPATH = "C:/Users/santini/repo/libuvc/"
# Libraries required to access pupil lab's cameras LIBPTHREADSPATH = "C:/Users/santini/repo/libuvc/pthreads-2.9.1/"
# LIBUSB-1.0
INCLUDEPATH += "$${LIBUSBPATH}/libusb/" # Libraries required to access pupil lab's cameras
win32:contains(QMAKE_HOST.arch, x86_64) { # LIBUSB-1.0
Release:LIBS += "-L$${LIBUSBPATH}/x64/Release/dll" INCLUDEPATH += "$${LIBUSBPATH}/libusb/"
Debug:LIBS += "-L$${LIBUSBPATH}/x64/Debug/dll" contains(QMAKE_HOST.arch, x86_64) {
} else { Release:LIBS += "-L$${LIBUSBPATH}/x64/Release/dll"
Release:LIBS += "-L$${LIBUSBPATH}/x86/Release/dll" Debug:LIBS += "-L$${LIBUSBPATH}/x64/Debug/dll"
Debug:LIBS += "-L$${LIBUSBPATH}/x86/Debug/dll" } else {
} Release:LIBS += "-L$${LIBUSBPATH}/x86/Release/dll"
LIBS += -llibusb-1.0 Debug:LIBS += "-L$${LIBUSBPATH}/x86/Debug/dll"
}
# LIBUVC LIBS += -llibusb-1.0
INCLUDEPATH += "$${LIBUVCPATH}/install/include/"
win32:contains(QMAKE_HOST.arch, x86_64) { # LIBUVC
Release:LIBS += "-L$${LIBUVCPATH}/build/Release/" INCLUDEPATH += "$${LIBUVCPATH}/install/include/"
Debug:LIBS += "-L$${LIBUVCPATH}/build/Debug" contains(QMAKE_HOST.arch, x86_64) {
} else { Release:LIBS += "-L$${LIBUVCPATH}/build/Release/"
Release:LIBS += "-L$${LIBUVCPATH}/build/Release/" Debug:LIBS += "-L$${LIBUVCPATH}/build/Debug"
Debug:LIBS += "-L$${LIBUVCPATH}/build/Debug" } else {
} Release:LIBS += "-L$${LIBUVCPATH}/build/Release/"
LIBS += -luvc Debug:LIBS += "-L$${LIBUVCPATH}/build/Debug"
}
# PTHREADS LIBS += -luvc
INCLUDEPATH += "$${LIBPTHREADSPATH}/include/"
win32:contains(QMAKE_HOST.arch, x86_64) { # PTHREADS
Release:LIBS += "-L$${LIBPTHREADSPATH}/lib/x64/" INCLUDEPATH += "$${LIBPTHREADSPATH}/include/"
Debug:LIBS += "-L$${LIBPTHREADSPATH}/lib/x64/" contains(QMAKE_HOST.arch, x86_64) {
} else { Release:LIBS += "-L$${LIBPTHREADSPATH}/lib/x64/"
Release:LIBS += "-L$${LIBPTHREADSPATH}/lib/x86/" Debug:LIBS += "-L$${LIBPTHREADSPATH}/lib/x64/"
Debug:LIBS += "-L$${LIBPTHREADSPATH}/lib/x86/" } else {
Release:LIBS += "-L$${LIBPTHREADSPATH}/lib/x86/"
Debug:LIBS += "-L$${LIBPTHREADSPATH}/lib/x86/"
}
LIBS += -lpthreadVC2
# Work around for bad visual studio update (msvc14)
INCLUDEPATH += "C:/Program Files (x86)/Windows Kits/10/Include/10.0.10240.0/ucrt"
contains(QMAKE_HOST.arch, x86_64) {
LIBS += -L"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.10240.0/ucrt/x64"
} else {
LIBS += -L"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.10240.0/ucrt/x86"
}
} }
LIBS += -lpthreadVC2
unix:{
# Work around for bad visual studio update (msvc14) LIBUVCPATH = "/home/santini/repo/libuvc/install/"
win32{
INCLUDEPATH += "C:/Program Files (x86)/Windows Kits/10/Include/10.0.10240.0/ucrt" # Libraries required to access pupil lab's cameras
contains(QMAKE_HOST.arch, x86_64) {
LIBS += -L"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.10240.0/ucrt/x64" # LIBUVC
} else { INCLUDEPATH += "$${LIBUVCPATH}/include/"
LIBS += -L"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.10240.0/ucrt/x86" LIBS += "-L$${LIBUVCPATH}/lib/"
} LIBS += -luvc
# System PTHREAD and LIBUSB libs are used
LIBS += -lpthread
LIBS += -lusb-1.0
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment