Cannot compile Raspicam

Sysprogs forums Forums VisualGDB Cannot compile Raspicam

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9569
    SnowFlake
    Participant

    Hi, i am starting to use visual gdb with the raspberry pi. I am trying to follow the tutorial from this page : http://visualgdb.com/tutorials/raspberry/camera/.

    I get an error when rebuilding the Raspicam project and i can’t figure out what i did wrong .

    Here is the ouput from visual studio:

    1>—— Rebuild All started: Project: Raspicam2, Configuration: Debug Win32 ——
    1> Removing C:\Users\MSI\Documents\VisualGDBProjects\OpencvDemoApp\Raspicam2\..\..\..\raspicam-0.1.3/Debug…
    1>VisualGDB : warning : Cannot update the source file list in your Makefile: CMake source list updater: cannot find source list statement in CMakeLists.txt. Your may encounter strange build results.
    1> VisualGDB: Run “C:\Program Files\CMake\bin\cmake.exe -DCMAKE_SYSTEM_PROCESSOR=armv71 -G “Unix Makefiles” -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_COLOR_MAKEFILE=OFF .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_TOOLCHAIN_FILE=toolchain-Debug.cmake -DCMAKE_MAKE_PROGRAM=”C:/SysGCC/raspberry/bin/make.exe”” in directory “C:\Users\MSI\Documents\VisualGDBProjects\OpencvDemoApp\Raspicam2\..\..\..\raspicam-0.1.3/Debug” on local computer
    1> — The C compiler identification is GNU 4.9.2
    1> — The CXX compiler identification is GNU 4.9.2
    1> — Check for working C compiler: C:/SysGCC/raspberry/bin/arm-linux-gnueabihf-gcc.exe
    1> — Check for working C compiler: C:/SysGCC/raspberry/bin/arm-linux-gnueabihf-gcc.exe — works
    1> — Detecting C compiler ABI info
    1> — Detecting C compiler ABI info – done
    1> — Detecting C compile features
    1> — Detecting C compile features – done
    1> — Check for working CXX compiler: C:/SysGCC/raspberry/bin/arm-linux-gnueabihf-g++.exe
    1> — Check for working CXX compiler: C:/SysGCC/raspberry/bin/arm-linux-gnueabihf-g++.exe — works
    1> — Detecting CXX compiler ABI info
    1> — Detecting CXX compiler ABI info – done
    1> — Detecting CXX compile features
    1> — Detecting CXX compile features – done
    1> — ——————————————————————————-
    1> — GNU COMPILER
    1> — ——————————————————————————-
    1> — Adding cv library
    1> —
    1> Built as dynamic libs?:ON
    1> Compiler:C:/SysGCC/raspberry/bin/arm-linux-gnueabihf-g++.exe
    1> — ——————————————————————————-
    1> — General configuration for raspicam 0.1.2
    1> — ——————————————————————————-
    1> —
    1> — C++ flags (Release): -std=c++0x -Wl,–no-as-needed -Wall -ffunction-sections -fomit-frame-pointer -O2 -ffast-math -DNDEBUG -lpthread
    1> — C++ flags (Debug): -std=c++0x -Wl,–no-as-needed -Wall -ffunction-sections -g -g3 -O0 -DDEBUG -D_DEBUG -W -Wextra -Wno-return-type -lpthread
    1> — CMAKE_CXX_FLAGS: -std=c++0x -Wl,–no-as-needed -Wall -ffunction-sections
    1> — CMAKE_BINARY_DIR: C:/Users/MSI/Documents/raspicam-0.1.3/Debug
    1> —
    1> — CMAKE_SYSTEM_PROCESSOR = armv71
    1> — BUILD_SHARED_LIBS = ON
    1> — BUILD_UTILS = ON
    1> — CMAKE_INSTALL_PREFIX = C:/Program Files (x86)/raspicam
    1> — CMAKE_BUILD_TYPE = DEBUG
    1> — CMAKE_MODULE_PATH = C:/Program Files (x86)/raspicam/lib/cmake/;/usr/lib/cmake
    1> —
    1> — CREATE OPENCV MODULE=1
    1> — CMAKE_INSTALL_PREFIX=C:/Program Files (x86)/raspicam
    1> — REQUIRED_LIBRARIES=C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so;C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_util.so;C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal.so
    1> —
    1> —
    1> — Change a value with: cmake -D<Variable>=<Value>
    1> —
    1> — Configuring done
    1> — Generating done
    1> — Build files have been written to: C:/Users/MSI/Documents/raspicam-0.1.3/Debug
    1> VisualGDB: Run “cmd.exe /c “C:\SysGCC\raspberry\bin\make.exe”” in directory “C:\Users\MSI\Documents\VisualGDBProjects\OpencvDemoApp\Raspicam2\..\..\..\raspicam-0.1.3/Debug” on local computer
    1> Scanning dependencies of target raspicam
    1> [ 4%] Building CXX object src/CMakeFiles/raspicam.dir/raspicam.cpp.o
    1> [ 8%] Building CXX object src/CMakeFiles/raspicam.dir/raspicam_still.cpp.o
    1> [ 13%] Building CXX object src/CMakeFiles/raspicam.dir/private/private_impl.cpp.o
    1> [ 17%] Building CXX object src/CMakeFiles/raspicam.dir/private/threadcondition.cpp.o
    1> [ 21%] Building CXX object src/CMakeFiles/raspicam.dir/private_still/private_still_impl.cpp.o
    1>C:\Users\MSI\Documents\raspicam-0.1.3\src\private_still\private_still_impl.cpp(62,53): warning : unused parameter ‘port’ [-Wunused-parameter]
    1> static void control_callback ( MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buffer ) {
    1> ^
    1> C:/Users/MSI/Documents/raspicam-0.1.3/src/private_still/private_still_impl.cpp: In member function ‘void raspicam::_private::Private_Impl_Still::commitParameters()’:
    1>C:\Users\MSI\Documents\raspicam-0.1.3\src\private_still\private_still_impl.cpp(172,117): warning : missing initializer for member ‘MMAL_PARAMETER_INPUT_CROP_T::rect’ [-Wmissing-field-initializers]
    1> MMAL_PARAMETER_INPUT_CROP_T crop = {{MMAL_PARAMETER_INPUT_CROP, sizeof ( MMAL_PARAMETER_INPUT_CROP_T ) }};
    1> ^
    1> C:/Users/MSI/Documents/raspicam-0.1.3/src/private_still/private_still_impl.cpp: In member function ‘void raspicam::_private::Private_Impl_Still::commitBrightness()’:
    1>C:\Users\MSI\Documents\raspicam-0.1.3\src\private_still\private_still_impl.cpp(606,13): warning : narrowing conversion of ‘((raspicam::_private::Private_Impl_Still*)this)->raspicam::_private::Private_Impl_Still::brightness’ from ‘unsigned int’ to ‘int32_t {aka int}’ inside { } [-Wnarrowing]
    1> } );
    1> ^
    1> [ 26%] Linking CXX shared library libraspicam.so
    1> [ 30%] Built target raspicam
    1> Scanning dependencies of target raspicam_cv
    1> [ 34%] Building CXX object src/CMakeFiles/raspicam_cv.dir/raspicam_cv.cpp.o
    1> [ 39%] Building CXX object src/CMakeFiles/raspicam_cv.dir/raspicam_still_cv.cpp.o
    1> [ 43%] Linking CXX shared library libraspicam_cv.so
    1> [ 47%] Built target raspicam_cv
    1> Scanning dependencies of target raspicam_test
    1> [ 52%] Building CXX object utils/CMakeFiles/raspicam_test.dir/raspicam_test.cpp.o
    1> [ 56%] Linking CXX executable raspicam_test
    1>c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/bin/ld.exe : warning : libvcos.so, needed by C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so, not found (try using -rpath or -rpath-link)
    1>c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/bin/ld.exe : warning : libdl.so.2, needed by C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so, not found (try using -rpath or -rpath-link)
    1>c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/bin/ld.exe : warning : librt.so.1, needed by C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so, not found (try using -rpath or -rpath-link)
    1>c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/bin/ld.exe : warning : libmmal_vc_client.so, needed by C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal.so, not found (try using -rpath or -rpath-link)
    1>c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/bin/ld.exe : warning : libmmal_components.so, needed by C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal.so, not found (try using -rpath or -rpath-link)
    1>c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/bin/ld.exe : warning : libvchiq_arm.so, needed by C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal.so, not found (try using -rpath or -rpath-link)
    1>c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/bin/ld.exe : warning : libvcsm.so, needed by C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal.so, not found (try using -rpath or -rpath-link)
    1>c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/bin/ld.exe : warning : libcontainers.so, needed by C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal.so, not found (try using -rpath or -rpath-link)
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_deinit’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `clock_gettime@GLIBC_2.4′
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_pthreads_timer_create’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_pthreads_timer_set’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_getmicrosecs64_internal’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_init’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_thread_join’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_log_unregister’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_snprintf’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_pthreads_timer_cancel’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_generic_mem_alloc’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_thread_attr_init’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_thread_create’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_once’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_generic_mem_calloc’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_pthreads_map_errno’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_pthreads_timer_delete’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_log_register’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_log_impl’
    1> C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot/opt/vc/lib/libmmal_core.so: undefined reference to `vcos_generic_mem_free’
    1>collect2.exe : error : ld returned 1 exit status
    1> make[2]: *** [utils/raspicam_test] Error 1
    1> make[1]: *** [utils/CMakeFiles/raspicam_test.dir/all] Error 2
    1> make: *** [all] Error 2
    1> ————————————————————-
    1> Command exited with code 2
    1> Executable: cmd.exe
    1> Arguments: /c “C:\SysGCC\raspberry\bin\make.exe”
    1> Directory: C:\Users\MSI\Documents\VisualGDBProjects\OpencvDemoApp\Raspicam2\..\..\..\raspicam-0.1.3/Debug
    1>VisualGDB : error : Command-line action failed
    1>EXEC : error : Build has failed. See the Output window for more details.
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(42,5): error MSB3073: The command “”C:\Program Files (x86)\Sysprogs\VisualGDB\VisualGDB.exe” /rebuild “C:\Users\MSI\Documents\VisualGDBProjects\OpencvDemoApp\Raspicam2\Raspicam2.vcxproj” “/solution:C:\Users\MSI\Documents\VisualGDBProjects\OpencvDemoApp\OpencvDemoApp.sln” “/config:Debug” “/platform:Win32″” exited with code 1.
    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

    Can anyone help me figure out why i get this error?

    Thank you!

    #9573
    support
    Keymaster

    Hi,

    Looks like your toolchain sysroot may have the incorrect linker configuration file. Please try updating to VisualGDB 5.2 and then resynchronize the sysroot. This should repair the config file automatically.

    #9577
    SnowFlake
    Participant

    Thank you! reinstalling visualGdb did fix the issues. I was able to build and test the raspicam library!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.