Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uvcengine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Thiago Santini
uvcengine
Commits
acc3ad56
Commit
acc3ad56
authored
Oct 17, 2017
by
Thiago Santini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds initial Linux support
parent
df64cea1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
45 deletions
+65
-45
README.LINUX
README.LINUX
+4
-0
uvcengine.pro
uvcengine/uvcengine.pro
+61
-45
No files found.
README.LINUX
0 → 100644
View file @
acc3ad56
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
uvcengine/uvcengine.pro
View file @
acc3ad56
...
...
@@ -37,50 +37,66 @@ unix {
}
#
Dependencies
LIBUSBPATH
=
"C:/Users/santini/repo/libusb/"
LIBUVCPATH
=
"C:/Users/santini/repo/libuvc/"
LIBPTHREADSPATH
=
"C:/Users/santini/repo/libuvc/pthreads-2.9.1/"
#
Libraries
required
to
access
pupil
lab
'
s
cameras
#
LIBUSB
-
1.0
INCLUDEPATH
+=
"$${LIBUSBPATH}/libusb/"
win32
:
contains
(
QMAKE_HOST
.
arch
,
x86_64
)
{
Release
:
LIBS
+=
"-L$${LIBUSBPATH}/x64/Release/dll"
Debug
:
LIBS
+=
"-L$${LIBUSBPATH}/x64/Debug/dll"
}
else
{
Release
:
LIBS
+=
"-L$${LIBUSBPATH}/x86/Release/dll"
Debug
:
LIBS
+=
"-L$${LIBUSBPATH}/x86/Debug/dll"
}
LIBS
+=
-
llibusb
-
1.0
#
LIBUVC
INCLUDEPATH
+=
"$${LIBUVCPATH}/install/include/"
win32
:
contains
(
QMAKE_HOST
.
arch
,
x86_64
)
{
Release
:
LIBS
+=
"-L$${LIBUVCPATH}/build/Release/"
Debug
:
LIBS
+=
"-L$${LIBUVCPATH}/build/Debug"
}
else
{
Release
:
LIBS
+=
"-L$${LIBUVCPATH}/build/Release/"
Debug
:
LIBS
+=
"-L$${LIBUVCPATH}/build/Debug"
}
LIBS
+=
-
luvc
#
PTHREADS
INCLUDEPATH
+=
"$${LIBPTHREADSPATH}/include/"
win32
:
contains
(
QMAKE_HOST
.
arch
,
x86_64
)
{
Release
:
LIBS
+=
"-L$${LIBPTHREADSPATH}/lib/x64/"
Debug
:
LIBS
+=
"-L$${LIBPTHREADSPATH}/lib/x64/"
}
else
{
Release
:
LIBS
+=
"-L$${LIBPTHREADSPATH}/lib/x86/"
Debug
:
LIBS
+=
"-L$${LIBPTHREADSPATH}/lib/x86/"
win32
:
{
LIBUSBPATH
=
"C:/Users/santini/repo/libusb/"
LIBUVCPATH
=
"C:/Users/santini/repo/libuvc/"
LIBPTHREADSPATH
=
"C:/Users/santini/repo/libuvc/pthreads-2.9.1/"
#
Libraries
required
to
access
pupil
lab's cameras
# LIBUSB-1.0
INCLUDEPATH += "$${LIBUSBPATH}/libusb/"
contains(QMAKE_HOST.arch, x86_64) {
Release:LIBS += "-L$${LIBUSBPATH}/x64/Release/dll"
Debug:LIBS += "-L$${LIBUSBPATH}/x64/Debug/dll"
} else {
Release:LIBS += "-L$${LIBUSBPATH}/x86/Release/dll"
Debug:LIBS += "-L$${LIBUSBPATH}/x86/Debug/dll"
}
LIBS += -llibusb-1.0
# LIBUVC
INCLUDEPATH += "$${LIBUVCPATH}/install/include/"
contains(QMAKE_HOST.arch, x86_64) {
Release:LIBS += "-L$${LIBUVCPATH}/build/Release/"
Debug:LIBS += "-L$${LIBUVCPATH}/build/Debug"
} else {
Release:LIBS += "-L$${LIBUVCPATH}/build/Release/"
Debug:LIBS += "-L$${LIBUVCPATH}/build/Debug"
}
LIBS += -luvc
# PTHREADS
INCLUDEPATH += "$${LIBPTHREADSPATH}/include/"
contains(QMAKE_HOST.arch, x86_64) {
Release:LIBS += "-L$${LIBPTHREADSPATH}/lib/x64/"
Debug:LIBS += "-L$${LIBPTHREADSPATH}/lib/x64/"
} 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
#
Work
around
for
bad
visual
studio
update
(
msvc14
)
win32
{
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"
}
unix:{
LIBUVCPATH = "/home/santini/repo/libuvc/install/"
# Libraries required to access pupil lab's
cameras
#
LIBUVC
INCLUDEPATH
+=
"$${LIBUVCPATH}/include/"
LIBS
+=
"-L$${LIBUVCPATH}/lib/"
LIBS
+=
-
luvc
#
System
PTHREAD
and
LIBUSB
libs
are
used
LIBS
+=
-
lpthread
LIBS
+=
-
lusb
-
1.0
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment