Project dependencies not building with VisualGDB.exe in commandline

Sysprogs forums Forums VisualGDB Project dependencies not building with VisualGDB.exe in commandline

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #10424
    Abhishek
    Participant

    I am trying to build visualGDB project from commandline. it works fine except when there are dependent projects it does not build the dependent project.

    with the same configuration run from Visual studio builds the dependent project.

    Game is the startUp Project and Framework project is dependent on Game.

    VisualGDB: Run “make CONFIG=BuildMachineGeneric clean” in directory “/tmp/VisualGDB/i/Projects/Emilio162008/Year_1/Block_C/Games/RaspberryPi_Game/Game” on pi@169.254.150.119 (SSH)
    rm -rf BuildMachineGeneric
    VisualGDB: Found 385 source files to transfer. Checking the source cache to find modified files…
    VisualGDB: Sending 385 updated source files to build machine…
    VisualGDB: Run “make CONFIG=BuildMachineGeneric” in directory “/tmp/VisualGDB/i/Projects/Emilio162008/Year_1/Block_C/Games/RaspberryPi_Game/Game” on pi@169.254.150.119 (SSH)
    mkdir BuildMachineGeneric
    g++ -ggdb -ffunction-sections -O0 -std=c++11 -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface -I/opt/vc/include/interface/vmcs_host/linux -DDEBUG -DRASPBERRY -c EGL.cpp -o BuildMachineGeneric/EGL.o -MD -MF BuildMachineGeneric/EGL.dep
    g++ -ggdb -ffunction-sections -O0 -std=c++11 -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface -I/opt/vc/include/interface/vmcs_host/linux -DDEBUG -DRASPBERRY -c Main.cpp -o BuildMachineGeneric/Main.o -MD -MF BuildMachineGeneric/Main.dep
    make: *** No rule to make target ‘../Framework/BuildMachineGeneric/Framework.a’, needed by ‘BuildMachineGeneric/Game’. Stop.
    ————————————————————-
    Command exited with code 2

    this is my Python script calling VisualGDB.exe

    arg1 = ‘/rebuild’
    arg2 = r”I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\Game\Game.vcxproj”
    arg3 = ‘/solution:’+r”I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\RaspberryPi_Game.sln”
    arg4 = ‘/config:BuildMachineGeneric’
    arg5 = ‘/platform:Win32’

    p = subprocess.call([VisualGDB, arg1, arg2, arg3, arg4, arg5])

    Any solution?

    • This topic was modified 7 years, 9 months ago by Abhishek.
    #10428
    support
    Keymaster

    Hi,

    This is by design. VisualGDB relies on Visual Studio to handle the project dependencies. Please either create a .bat file that will build all the projects, or build the .sln file by running devenv.exe or msbuild.exe from command line.

    #10429
    Abhishek
    Participant

    thanks for the information.

    I am using msbuild now to run the sln.

    I can see the dependent projects in the arguments, but then VisualGDB has some path issue. can’t figure out why?

    My path variable has : C:\Program Files (x86)\Sysprogs\VisualGDB

    and VisualStudio project setting has rebuild path: “$(VISUALGDB_DIR)\VisualGDB.exe” /rebuild “$(ProjectPath)” “/solution:$(SolutionPath)” “/config:$(Configuration)” “/platform:$(Platform)”

    I:\>python I:\BuildScript.py
    INFO – Processing user 666666 and depot zzz
    Microsoft (R) Build Engine version 4.6.1586.0
    [Microsoft .NET Framework, version 4.0.30319.42000]
    Copyright (C) Microsoft Corporation. All rights reserved.

    Building the projects in this solution one at a time. To enable parallel build, please add the “/m” switch.
    Build started 16-2-2017 09:52:53.
    Project “I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\RaspberryPi_Game.sln” on node 1 (Rebuild target(s)).
    ValidateSolutionConfiguration:
    Building solution configuration “BuildMachineGeneric|Win32”.
    Project “I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\RaspberryPi_Game.sln” (1) is building “I:\Projects\E
    milio162008\Year_1\Block_C\Games\RaspberryPi_Game\Game\Game.vcxproj.metaproj” (2) on node 1 (Rebuild target(s)).
    Project “I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\Game\Game.vcxproj.metaproj” (2) is building “I:\Proj
    ects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\Framework\Framework.vcxproj” (3) on node 1 (Rebuild target(s)).
    Rebuild:
    “VisualGDB.exe” /rebuild “I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\Framework\Framework.vcxproj” “/so
    lution:I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\RaspberryPi_Game.sln” “/config:BuildMachineGeneric”
    “/platform:Win32”
    ‘”VisualGDB.exe”‘ is not recognized as an internal or external command,
    operable program or batch file.
    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(46,5): error MSB3073: The command “”Visual
    GDB.exe” /rebuild “I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\Framework\Framework.vcxproj” “/solution:I:
    \Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\RaspberryPi_Game.sln” “/config:BuildMachineGeneric” “/platform:
    Win32″” exited with code 9009. [I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\Framework\Framework.vcxproj]
    Done Building Project “I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\Framework\Framework.vcxproj” (Rebuild
    target(s)) — FAILED.

    Done Building Project “I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\Game\Game.vcxproj.metaproj” (Rebuild t
    arget(s)) — FAILED.

    Done Building Project “I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\RaspberryPi_Game.sln” (Rebuild target(
    s)) — FAILED.
    Build FAILED.

    “I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\RaspberryPi_Game.sln” (Rebuild target) (1) ->
    “I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\Game\Game.vcxproj.metaproj” (Rebuild target) (2) ->
    “I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\Framework\Framework.vcxproj” (Rebuild target) (3) ->
    (Rebuild target) ->
    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(46,5): error MSB3073: The command “”Visu
    alGDB.exe” /rebuild “I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\Framework\Framework.vcxproj” “/solution:
    I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\RaspberryPi_Game.sln” “/config:BuildMachineGeneric” “/platfor
    m:Win32″” exited with code 9009. [I:\Projects\Emilio162008\Year_1\Block_C\Games\RaspberryPi_Game\Framework\Framework.vcxproj
    ]

    0 Warning(s)
    1 Error(s)

    Time Elapsed 00:00:00.14

    • This reply was modified 7 years, 9 months ago by Abhishek.
    #10435
    support
    Keymaster

    Hi,

    Perhaps something in your setup is removing the environment variable before launching msbuild?

    Please try running “echo %VISUALGDB_DIR%” just before launching MSBuild. This should output the VISUALGDB_DIR variable.

    #10436
    Abhishek
    Participant

    thanks!

    indeed that was the problem. Running cmd as an administrator seems to take the right path of VisualGDB. don’t know why though.

    Anyways thanks a lot

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