Skip to content

Commit

Permalink
Fixed Linux test program builds: now linking with locally built turbo…
Browse files Browse the repository at this point in the history
…jpeg-static instead of system turbojpeg
  • Loading branch information
trcwm committed May 4, 2020
1 parent db70bde commit 9321372
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ OpenPnP Capture is a cross platform video capture library with a focus on machin
* MAKE (osx, linux)
* Visual Studio 2013 + NMake or Ninja Build (windows)
* NASM for building libjpeg-turbo (linux)
* libgtk-3-dev (linux, test program)

### Build instructions (Windows)
Run the batch file 'bootstrap.bat' and choose the desired build system (VisualStudio/nmake or Ninja). Make sure the compiler (Visual Studio) is in the search path.
Expand Down
4 changes: 2 additions & 2 deletions linux/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ include_directories(../include ..)
add_executable(openpnp-capture-test ${SOURCE})

target_link_libraries(openpnp-capture-test openpnp-capture)
target_link_libraries(openpnp-capture-test turbojpeg)
target_link_libraries(openpnp-capture-test turbojpeg-static)

########################################################
### GTK test application
Expand All @@ -41,5 +41,5 @@ set (SOURCE2 gtkmain.cpp ../../common/logging.cpp)
add_executable(oc-gtk ${SOURCE2})

target_link_libraries(oc-gtk openpnp-capture)
target_link_libraries(oc-gtk turbojpeg)
target_link_libraries(oc-gtk turbojpeg-static)
target_link_libraries(oc-gtk ${GTK3_LIBRARIES})

0 comments on commit 9321372

Please sign in to comment.