SAMSON Forum
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • SAMSON Connect
    • Get SAMSON

    Build a Debug mode on linux

    Getting started
    2
    30
    14950
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DmitriyMarin
      DmitriyMarin last edited by

      Usually, if the Kit in QtCreator has some non-valid settings (e.g., CMake generator), it will be shown with a warning sign as for the last Kit on the picture below:
      0_1543505161165_QtCreator-Kits-Warning.png

      Dmitriy,
      The SAMSON Team, https://s-c.io

      1 Reply Last reply Reply Quote 1
      • Laëtitia
        Laëtitia last edited by

        Thanks for your response, and sorry for the late replay.
        I now see the problem, or at least one problem, I have no autodetect kit and the other one seems broken so maybe it's my qt5.9 that is not as it should be?

        1 Reply Last reply Reply Quote 0
        • Laëtitia
          Laëtitia last edited by

          0_1543916823864_Capture du 2018-12-04 10-46-24.png

          1 Reply Last reply Reply Quote 0
          • DmitriyMarin
            DmitriyMarin last edited by

            Usually, QtCreator should automatically detect/create the Kit for you, but it depends on the order of installation, e.g. if QtCreator you are using is installed before the Qt your want to use. You may try to use the "Desktop" one and if you still experience the problem, you may try to modify "CMake generator" in the Kit preferences (you do not need to create project from the scratch, just go to "Projects -> Manage kits ..." and modify the Kit you are using - try setting different "Generator" and "Extra generator").

            To determine, whether this problem is due to QtCreator (Kits), you may try creating any project in QtCreator itself (e.g., Application Console Project) and see check if it shows you source and header files.

            Dmitriy,
            The SAMSON Team, https://s-c.io

            1 Reply Last reply Reply Quote 0
            • Laëtitia
              Laëtitia last edited by

              ok I'll try, it's true I have another version installed that I used usually, I installed 5.9 specifiquelly for samson. I'll try

              1 Reply Last reply Reply Quote 0
              • DmitriyMarin
                DmitriyMarin last edited by

                You also need to have CMake installed with a version at least 2.8.9.

                You may try to set the next generators in the "CMake generator" for your Kit: Unix Makefiles, Ninja (for that you need to have the "ninja-build" package installed).
                As an "Extra generator", I have CodeBlocks set, but it is dependant on your system.

                Dmitriy,
                The SAMSON Team, https://s-c.io

                1 Reply Last reply Reply Quote 0
                • Laëtitia
                  Laëtitia last edited by

                  oh it's compiling fine now!
                  thanks!

                  DmitriyMarin 1 Reply Last reply Reply Quote 0
                  • DmitriyMarin
                    DmitriyMarin @Laëtitia last edited by

                    Great! Congratulations!
                    What was the problem? The generators in the Kit? If so which one did you set?

                    Dmitriy,
                    The SAMSON Team, https://s-c.io

                    1 Reply Last reply Reply Quote 0
                    • DmitriyMarin
                      DmitriyMarin last edited by

                      You can find more SAMSON Developer tutorials and we will be adding more source code soon on github: https://github.com/1A-OneAngstrom/SAMSON-Developer-Tutorials/tree/develop. For example, you may check the AtomShaker tutorial.

                      Dmitriy,
                      The SAMSON Team, https://s-c.io

                      1 Reply Last reply Reply Quote 0
                      • Laëtitia
                        Laëtitia last edited by Laëtitia

                        yes it was the kits, there was no autodetected ones.

                        1 Reply Last reply Reply Quote 1
                        • Laëtitia
                          Laëtitia last edited by

                          Hello,

                          I am now stuck with the launching of SAMSON-Debug. the launchind fails and says:
                          This application failed to start because it could not find or load the Qt platform plugin "xcb"in "".
                          Reinstalling the application may fix this problem.

                          I tried to reinstall, not changing anything...

                          Best

                          1 Reply Last reply Reply Quote 0
                          • DmitriyMarin
                            DmitriyMarin last edited by DmitriyMarin

                            Dear @Laëtitia

                            Do you try to launch with SAMSON Element Samples from github? If so, then in the root CMakeLists.txt you need to disable PyBindTutorial (just comment ADD_SUBDIRECTORY( PyBindTutorial )).

                            Dmitriy,
                            The SAMSON Team, https://s-c.io

                            1 Reply Last reply Reply Quote 0
                            • Laëtitia
                              Laëtitia last edited by

                              euh no, I just tried to launch SAMSON-Core.sh in NANO-D/SDK/0.7.0/SAMSON-Debug/Binaries to have a look at the "new" element I created (the empty one I had problem displaying and compiling before with Qt)

                              1 Reply Last reply Reply Quote 0
                              • DmitriyMarin
                                DmitriyMarin last edited by

                                @Laëtitia

                                Have you provided a path to your Qt installation in the SAMSON-Core.sh script for SAMSON-Debug?

                                It should be smth like this: export LD_LIBRARY_PATH=/home/YourUser/Qt/Qt5.9.3/5.9.3/gcc_64/lib:$script_dir:$LD_LIBRARY_PATH

                                Dmitriy,
                                The SAMSON Team, https://s-c.io

                                1 Reply Last reply Reply Quote 0
                                • Laëtitia
                                  Laëtitia last edited by Laëtitia

                                  yes, I did
                                  export LD_LIBRARY_PATH=$script_dir:/home/bomble/Qt5.9.3/5.9.3/gcc_64/lib/:$LD_LIBRARY_PATH

                                  1 Reply Last reply Reply Quote 0
                                  • DmitriyMarin
                                    DmitriyMarin last edited by DmitriyMarin

                                    Does SAMSON launch in Release mode?

                                    Could you, please, try adding into the SAMSON-Core.sh script for SAMSON-Debug the a path to Qt platforms (/home/bomble/Qt5.9.3/5.9.3/gcc_64/plugins/platforms) to the LD_LIBRARY_PATH environment variable:
                                    LD_LIBRARY_PATH=$script_dir:/home/bomble/Qt5.9.3/5.9.3/gcc_64/lib/:/home/bomble/Qt5.9.3/5.9.3/gcc_64/plugins/platforms:$LD_LIBRARY_PATH
                                    which should provide a path to platforms ("xcb" including).

                                    Do you have any Python installed with PyQt5 and their paths set into PATH or LD_LIBRARY_PATH ? The platforms and Qt libs from Python installation may interfere.

                                    Dmitriy,
                                    The SAMSON Team, https://s-c.io

                                    1 Reply Last reply Reply Quote 0
                                    • Laëtitia
                                      Laëtitia last edited by Laëtitia

                                      Hello,

                                      Yes Samson launch in Release mode.
                                      Adding /home/bomble/Qt5.9.3/5.9.3/gcc_64/plugins/platforms path does not change anything (even if libqxcb.so is indeed there!).
                                      export LD_LIBRARY_PATH=$script_dir:/home/bomble/Qt5.9.3/5.9.3/gcc_64/lib/:/home/bomble/Qt5.9.3/5.9.3/gcc_64/plugins/platforms/:$LD_LIBRARY_PATH

                                      I don't have PyQt5 installed at all.

                                      1 Reply Last reply Reply Quote 0
                                      • Laëtitia
                                        Laëtitia last edited by

                                        if after setting the path I ldd the exe, I have only one lib with xcb in it called:
                                        libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f820fc81000)
                                        it's not calling for qxcb.
                                        Maybe I should installe another version of libxcb.so.1?

                                        1 Reply Last reply Reply Quote 0
                                        • DmitriyMarin
                                          DmitriyMarin last edited by

                                          @Laëtitia

                                          Could you, please, try making the following symbolic links in the SAMSON-Debug/Binaries folder :

                                          cd ~/NANO-D/SDK/0.7.0/SAMSON-Debug/Binaries
                                          ln -s ~/Qt5.9.3/5.9.3/gcc_64/plugins/platforms/ ./platforms
                                          ln -s ~/Qt5.9.3/5.9.3/gcc_64/plugins/xcbglintegrations/ ./xcbglintegrations
                                          

                                          If the symbolic links won't make it work, could you, please, try copying these folders from the Qt installation into the SAMSON-Debug/Binaries folder.

                                          Dmitriy,
                                          The SAMSON Team, https://s-c.io

                                          1 Reply Last reply Reply Quote 1
                                          • Laëtitia
                                            Laëtitia last edited by

                                            the symbolic links stuff worked! thanks a lot, but I don't understand why it works now, could you explain me?

                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post