The build instructions in BUILDING.md (which I assume is what you meant
by "the build instructions from the TurboVNC website") give the example of
-DTJPEG_LIBRARY="-L/opt/libjpeg-turbo/lib64 -lturbojpeg"
for dynamic linking with the TurboJPEG API library. Adapting that to
your use case would result in:
cmake -DTJPEG_INCLUDE_DIR=“/usr/include”
-DTJPEG_LIBRARY=“-L/usr/lib -lturbojpeg" -G”Unix Makefiles”
as opposed to
cmake -DTJPEG_INCLUDE_DIR=“/usr/include” -DTJPEG_LIBRARY=“-L/usr/lib
-llibturbojpeg.so" -G”Unix Makefiles"
'-llibturbojpeg.so' is incorrect linker syntax.
On 5/11/21 10:52 PM, SugarRayLua wrote:
Dear TurboVNC Community,
Hello. I am a novice Linux user trying to build TurboVNC on my Alpine
Linux x86 system and am having trouble pointing cmake to the
directories where the turbojpeg header and library is installed in my
system and would appreciate any assistance you could provide. I’ve
followed all the build instructions from the TurboVNC website and have
all the required libraries installed.
My turbojpeg.h file is called turbojpeg.h and is in my /usr/include
directory
My turbojpeg library file(s) are called libturbojpeg.a and
libturbojpeg.so and are in my /user/lib directory
However, when I try and start the cmake command by entering:
$cmake -DTJPEG_INCLUDE_DIR=“/usr/include” -DTJPEG_LIBRARY=“-L/usr/lib
-llibturbojpeg.so" -G”Unix Makefiles”
cmake fails with the following error:
CMake Error at cmakescripts/FindTurboJPEG.cmake:67 (message):
Could not link with TurboJPEG library -L/usr/lib -llibturbojpeg.so.
If it
is installed in a different place, then set TJPEG_LIBRARY accordingly.
Call Stack (most recent call first):
CMakeLists.txt:189 (include)
I admit that I don’t understand clearly the syntax to use in cmake to
link libraries using relative and absolute paths and tried to use the
same syntax as in the build example on the TurboVNC website. It was
also not clear to me from the TurboVNC website whether I was supposed
to link the static library (libturbojpeg.a), the dynamic library
(libturbojpeg.so) or both and tried linking different combinations of
the two libraries without any success. I also tried following the
“relative path” syntax to link the libraries which was also not
successful.
I appreciate any help or suggestions others may be able to offer.
Of note, I previously was able to use cmake to build VirtualGL on my
system and therefore feel confident that I can build TurboVNC if I can
figure out how to properly link where the header and libraries are
stored on my file system.
Thank you very much and have a good week.
--
You received this message because you are subscribed to the Google
Groups "TurboVNC User Discussion/Support" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to turbovnc-users+unsubscr...@googlegroups.com
<mailto:turbovnc-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/turbovnc-users/3a9c15a3-4a43-4fd0-b1bd-c658b75b495dn%40googlegroups.com
<https://groups.google.com/d/msgid/turbovnc-users/3a9c15a3-4a43-4fd0-b1bd-c658b75b495dn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups "TurboVNC
User Discussion/Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to turbovnc-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/turbovnc-users/9e4525ac-2018-20de-55cb-957442e48e6c%40virtualgl.org.