"make" command for rcssmonitor project - c++

I'm installing rcssmonitor for soccer2d sim and there is a problem in making this project, here's the error:
/usr/bin/ld: cannot find -lfontconfig
collect2: error: ld returned 1 exit status
Makefile:477: recipe for target 'rcssmonitor' failed
make[2]: *** [rcssmonitor] Error 1
make[2]: Leaving directory '/rccserver/rcssmonitor/src'
Makefile:382: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/rccserver/rcssmonitor'
Makefile:322: recipe for target 'all' failed
make: *** [all] Error 2
I downloaded the latest version from sourceforge
how can I fix it?

In a fresh enough Debian/Ubuntu the required package is called libfontconfig1-dev. Perform apt install libfontconfig1-dev (almost) as #krzaq suggested.
But likely you will need other development packages as well. If linker blames on -lsome, then you need a shared library libsome.so, usually located in /usr/lib or /usr/lib32 (there could be other variations like /lib, /usr/lib64 etc). Perhaps the easiest way to understand what package a given file belongs to is to install apt-file package and then to query required libraries.

Related

Using OPCUA Library in a New Cmake Project

In this time, I want to use Freeopcua to create a library to use in other project.
I have install all the tools in debian.soft file and build with following command sudo sh build.sh, cmake ., make, sudo make install. Although, in directory /usr/local/include and /usr/local/lib, there are opc directory and libopc*.so respectively, when I create a new cmake project, there is an error. Hope someone can help me or give some suggest. Thanks everyone~~~
I have refer to Libraries in /usr/local/lib not found, but it doesn't work for me
CMakeLists.txt
cmake_minimum_required(VERSION 2.8.12)
project(OPCUAIndependent)
include_directories(/usr/local/include/)
link_directories(/usr/local/lib/)
add_executable(sourceCode sourceCode.cpp)
target_link_libraries(sourceCode opc)
Error
[ 50%] Linking CXX executable sourceCode
/usr/bin/ld: cannot find -lopc
collect2: error: ld returned 1 exit status
CMakeFiles/sourceCode.dir/build.make:96: recipe for target 'sourceCode' failed
make[2]: *** [sourceCode] Error 1
CMakeFiles/Makefile2:82: recipe for target 'CMakeFiles/sourceCode.dir/all' failed
make[1]: *** [CMakeFiles/sourceCode.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2

cross compiling protocol buffers for arm

I am new to Google's protocol buffers and I am having trouble with cross-compiling it for arm. I am not able to find any concrete solutions to my problem using google.
The steps I am following:
./autogen.sh
./configure
make -s && make install
./configure --host=arm-linux-gnueabi CC=arm-linux-gnueabi-gcc --prefix=/opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/ --with-protoc=/usr/local/bin/protoc
make
I get an error when I run make.
google/protobuf/stubs/common.cc:55:2: error: #error "No suitable threading library available."
#error "No suitable threading library available."
^
Makefile:3956: recipe for target 'google/protobuf/stubs/common.lo' failed
make[2]: *** [google/protobuf/stubs/common.lo] Error 1
make[2]: Leaving directory '/home/protobuf/protobuf/src'
Makefile:1544: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/protobuf/protobuf'
Makefile:1451: recipe for target 'all' failed
make: *** [all] Error 2
Any help would be much appreciated.

linking error cxx: cannot find -lvulkan

When I tried to compile example from Anvil framework for Vulkan I get following errors:
[ 97%] Linking CXX executable OutOfOrderRasterization
/usr/bin/ld: cannot find -lvulkan
collect2: error: ld returned 1 exit status
CMakeFiles/OutOfOrderRasterization.dir/build.make:126: recipe for target 'OutOfOrderRasterization' failed
make[2]: *** [OutOfOrderRasterization] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/OutOfOrderRasterization.dir/all' failed
make[1]: *** [CMakeFiles/OutOfOrderRasterization.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
How i need to configure Vulkan to resolve it? (Ubuntu)
Check you LIBRARY paths. You might need to download and install vulkan. There should a .so file in one your library paths(/usr/lib{,64},/lib{,64}, /usr/share/lib{,64}) named to the effect of libvulkan.numbers.so.
See this ask ubuntu question: https://askubuntu.com/questions/796442/ld-cannot-find-lvulkan
CMake versions 3.7 and later ship with a FindVulkan.cmake module that finds the Vulkan includes and library for you if you have a Vulkan SDK installed and the VULKAN_SDK environment variable set. The CMake module also finds the includes and library if you have installed a Vulkan package to your system directories. The Getting Started guide on the LunarXchange website has some additional detail.

Compile error when trying to install gst-plugins-bad 1.4.3

I am trying to install gst-plugins-bad 1.4.3 in order to install gstreamer-sharp 1.39 in order to install banshee 2.9.1. I downloaded the source distribution from git and was able to run autogen.sh, but running make install crashes with the following error.
make[3]: Leaving directory `/home/david/Downloads/gst-plugins-bad/gst'
make[2]: Leaving directory `/home/david/Downloads/gst-plugins-bad/gst'
make[1]: Leaving directory `/home/david/Downloads/gst-plugins-bad/gst'
Making install in sys
make[1]: Entering directory `/home/david/Downloads/gst-plugins-bad/sys'
Making install in decklink
make[2]: Entering directory `/home/david/Downloads/gst-plugins-bad/sys/decklink'
CXXLD libgstdecklink.la
/usr/bin/ld: .libs/libgstdecklink_la-gstdecklink.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
.libs/libgstdecklink_la-gstdecklink.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [libgstdecklink.la] Error 1
make[2]: Leaving directory `/home/david/Downloads/gst-plugins-bad/sys/decklink'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/david/Downloads/gst-plugins-bad/sys'
make: *** [install-recursive] Error 1
I don't know how to respond to this error and I can't seem to find anyone else who has encountered it. What should I do? I am running Linux Mint 13.

Cannot find library reference to libmysqlclient_r Angstrom

I downloaded the MySQL Connector / C++ code from dev.mysql.com. I also used opkg to download the libmysqlclient-r-dev package, which gave me libmysqlclient_r.so and .la in my /usr/lib directory.
When I attempt to make the source code for the MySQL connector, I get the following error:
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.7.3/../../../../arm-angstrom-linux-gnueabi/bin/ld: cannot find -lmysqlclient_r
collect2: error: ld returned 1 exit status
make[2]: *** [driver/libmysqlcppconn.so.1.0.5] Error 1
make[1]: *** [driver/CMakeFiles/mysqlcppconn.dir/all] Error 2
make: *** [all] Error 2
It tells me that the library is missing, eventhough it is present in /usr/lib?
How does that work, and what should I do?

Categories