make "sumo 0.17.1" on ubuntu 13.10 - c++

I installed and tested v0.19.1 successfully before, however, I needed to downgrade to 0.17.1 in order to run some example in omnetpp's veins simulator.
Whenever I run the "make" command, I get the following error:
/usr/bin/ld: ./utils/foxtools/libfoxtools.a(MFXMutex.o): undefined reference to symbol 'pthread_mutexattr_settype##GLIBC_2.2.5'
/lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [sumo-gui] Error 1
make[3]: Leaving directory `/home/maamoun/pkgs/sumo-0.17.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/maamoun/pkgs/sumo-0.17.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/maamoun/pkgs/sumo-0.17.1/src'
make: *** [all-recursive] Error 1
What am I missing?!

Problem solved, had to install libproj-dev and include proj in the ./configure using the --with-proj-includes=DIR
[EDIT] after 15 minutes of making, same error raised again!!!

Related

undefined reference to qt_static_plugin_QWaylandEglStreamBufferIntegrationPlugin

Got the following error while building Qt 5.12.7 in static mode, on Debian 10 32 bits:
error: undefined reference to 'qt_static_plugin_QWaylandEglStreamBufferIntegrationPlugin()'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:80: qwindow-compositor] Error 1
make[4]: Leaving directory '/home/user/qt/static/qtwayland/examples/wayland/qwindow-compositor'
make[3]: *** [Makefile:59: sub-qwindow-compositor-make_first] Error 2
make[3]: Leaving directory '/home/user/qt/static/qtwayland/examples/wayland'
make[2]: *** [Makefile:47: sub-wayland-make_first] Error 2
make[2]: Leaving directory '/home/user/qt/static/qtwayland/examples'
make[1]: *** [Makefile:74: sub-examples-make_first] Error 2
make[1]: Leaving directory '/home/user/qt/static/qtwayland'
make: *** [Makefile:600: module-qtwayland-make_first] Error 2
I configured with the following options:
$ ../qt-everywhere-src-5.12.7/configure -prefix $PWD/qtbase -opensource -static -qt-xcb -confirm-license -skip qtwebengine
Anybody can give me a hint on what's going on?
Non static build went fine, I did it just before.

Building webassembly with opencv

I've been trying to build a piece of code in webassembly that would use OpenCV.
I took https://github.com/mpizenberg/emscripten-opencv to start building, this worked well, but when I try adding cv::resize to be able to resize an image, that's when I have some issues:
make[1]: Entering directory '/code/build'
make[2]: Entering directory '/code/build'
make[3]: Entering directory '/code/build'
Scanning dependencies of target hello
make[3]: Leaving directory '/code/build'
make[3]: Entering directory '/code/build'
[ 50%] Building CXX object CMakeFiles/hello.dir/source/main.cpp.o
[100%] Linking CXX executable hello.js
error: undefined symbol: _Z7cvFloorRKN2cv10softdoubleE
warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`
error: undefined symbol: _Z7cvRoundRKN2cv10softdoubleE
error: undefined symbol: _Z9cvRound64RKN2cv10softdoubleE
error: undefined symbol: _ZN2cv10softdoubleC1Ei
error: undefined symbol: _ZN2cv10softdoubleC1Ex
error: undefined symbol: _ZNK2cv10softdoubledvERKS0_
error: undefined symbol: _ZNK2cv10softdoublemiERKS0_
error: undefined symbol: _ZNK2cv10softdoublemlERKS0_
error: undefined symbol: _ZNK2cv10softdoubleplERKS0_
Error: Aborting compilation due to previous errors
shared:ERROR: '/emsdk_portable/node/bin/node /emsdk_portable/sdk/src/compiler.js /tmp/tmpS6bxjF.txt /emsdk_portable/sdk/src/embind/emval.js /emsdk_portable/sdk/src/embind/embind.js /emsdk_portable/sdk/src/library_pthread_stub.js' failed (1)
CMakeFiles/hello.dir/build.make:95: recipe for target 'hello.js' failed
make[3]: *** [hello.js] Error 1
make[3]: Leaving directory '/code/build'
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/hello.dir/all' failed
make[2]: *** [CMakeFiles/hello.dir/all] Error 2
make[2]: Leaving directory '/code/build'
Makefile:83: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/code/build'
Makefile:5: recipe for target 'build' failed
make: *** [build] Error 2
The command '/bin/sh -c make build' returned a non-zero code: 2
make: *** [all] Error 2
I tried wrapping up my problem here https://github.com/jdrouet/opencv-wasm, you can pull it and run make, it'll build with docker.
Do you have any idea of how I could fix my issue?
Ok, looks like I found a way to build it (still here https://github.com/jdrouet/opencv-wasm) but now, when I try to use the resize function, I end up with the following error :
Error: the string "174007712 - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch." was thrown, throw an Error :)
So now, I don't know if I'm not using the function well... Here is the function : https://github.com/jdrouet/opencv-wasm/blob/master/source/resizer.cpp#L23
Do you have any idea of why it's not working?

Using Clang to get function definitions

I would like use clang to get the functions names from a cpp file.
I found some tutorials but always I received this error when I executed 'make':
/usr/bin/ld: error: ../../lib/libLLVMSelectionDAG.a: ELF section name out of range
collect2: error: ld returned 1 exit status
tools/lto/CMakeFiles/LTO.dir/build.make:269: recipe for target 'lib/libLTO.so.7.0.0svn' failed
make[2]: * [lib/libLTO.so.7.0.0svn] Error 1
CMakeFiles/Makefile2:18957: recipe for target 'tools/lto/CMakeFiles/LTO.dir/all' failed
make[1]: * [tools/lto/CMakeFiles/LTO.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
Any idea of how can I solve this problem or any tutorial?
Thanks in advance.
I solved the problem increasing the /dev/sda1 size and removing the file ../../lib/libLLVMSelectionDAG.a
After that I only executed 'make' and It worked.

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?