Board index FlightGear Development Scenery

fg-from-scratch - TerraGear+Windows

Questions and discussion about enhancing and populating the FlightGear world.

Re: fg-from-scratch - TerraGear+Windows

Postby xDraconian » Thu Jan 17, 2019 1:09 am

pb321 wrote in Wed Jan 16, 2019 9:01 pm:What should be my next step?


CMake not being found indicates the path for CMake is missing from your system PATH environment variable.

Preferred fix would be to update your system PATH
    search for "envir"
    select "edit the system environment variables"

Less graceful way would be to update the PATH variable within the fg-from-scratch.cmd file to include the location of CMake bin folder.
Code: Select all
SET PATH=%ROOT_DIR%/vcpkg-git/installed/x64-windows/bin;c:\programs\cmake-3.13.2-win64-x64\bin;%PATH%
xDraconian
 
Posts: 406
Joined: Sun Jan 21, 2018 6:53 am
Version: Git
OS: Linux Mint

Re: fg-from-scratch - TerraGear+Windows

Postby pb321 » Thu Jan 17, 2019 2:19 am

Thank you, @xDraconian! I have taken the preferred PATH and set a "CMake" path environment variable. I hope I did it correctly. I will report back.
Last edited by pb321 on Thu Jan 17, 2019 5:08 am, edited 1 time in total.
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: fg-from-scratch - TerraGear+Windows

Postby pb321 » Thu Jan 17, 2019 5:07 am

First, I ran the script with SET CMAKE_TOOLCHAIN="c:\programs\cmake-3.13.2-win64-x64" in place of SET CMAKE_TOOLCHAIN="Visual Studio 15 2017 Win64" in the fg-from-scratch.cmd file. It didn't work (gave me errors similar to previous run).

Then I received your suggestion, @xDraconian. I took the preferred path and added "c:\programs\cmake-3.13.2-win64-x64" to the System Variables Path statement as the last line of the statement. This resulted in the following:

Code: Select all
Updating vcpkg . . .
Already up to date.
Updating external libraries . . .
Using local portfile versions. To update the local portfiles, use `git pull`.
No packages need updating.
All installed packages are up-to-date with the local portfiles.
The following packages are already installed:
    boost[core]:x64-windows
    cgal[core]:x64-windows
    curl[core,ssl,winssl]:x64-windows
    jasper[core]:x64-windows
    libxml2[core]:x64-windows
    openjpeg[core]:x64-windows
    openssl[core]:x64-windows
    plib[core]:x64-windows
    sdl2[core]:x64-windows
    tiff[core]:x64-windows
    zlib[core]:x64-windows
The following packages will be built and installed:
    freeglut[core]:x64-windows
    freetype[core]:x64-windows
    gdal[core,mysql-libmysql]:x64-windows
    glew[core]:x64-windows
  * icu[core]:x64-windows
  * libmysql[core]:x64-windows
  * lz4[core]:x64-windows
    openal-soft[core]:x64-windows
Additional packages (*) will be modified to complete this operation.
Starting package 1/19: jasper:x64-windows
Package jasper:x64-windows is already installed
Elapsed time for package jasper:x64-windows: 27.8 us
Starting package 2/19: zlib:x64-windows
Package zlib:x64-windows is already installed
Elapsed time for package zlib:x64-windows: 14.11 us
Starting package 3/19: boost:x64-windows
Package boost:x64-windows is already installed
Elapsed time for package boost:x64-windows: 13.26 us
Starting package 4/19: cgal:x64-windows
Package cgal:x64-windows is already installed
Elapsed time for package cgal:x64-windows: 12.4 us
Starting package 5/19: curl:x64-windows
Package curl:x64-windows is already installed
Elapsed time for package curl:x64-windows: 12.83 us
Starting package 6/19: openjpeg:x64-windows
Package openjpeg:x64-windows is already installed
Elapsed time for package openjpeg:x64-windows: 12.4 us
Starting package 7/19: libxml2:x64-windows
Package libxml2:x64-windows is already installed
Elapsed time for package libxml2:x64-windows: 13.68 us
Starting package 8/19: icu:x64-windows
Building package icu[core]:x64-windows...
-- Using cached C:/Users/SH/Downloads/fg-from-scratch/vcpkg-git/downloads/icu4c-61_1-src.tgz
-- Applying patch C:/Users/SH/Downloads/fg-from-scratch/vcpkg-git/ports/icu/disable-escapestr-tool.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch C:/Users/SH/Downloads/fg-from-scratch/vcpkg-git/ports/icu/remove-MD-from-configure.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Configuring x64-windows-rel
-- Configuring x64-windows-rel done
-- Configuring x64-windows-dbg
-- Configuring x64-windows-dbg done
-- Package x64-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:56 (message):
    Command failed: C:/Users/SH/Downloads/fg-from-scratch/vcpkg-git/downloads/tools/msys2/msys64/usr/bin/bash.exe;--noprofile;--norc;-c;make && make install
    Working Directory: C:/Users/SH/Downloads/fg-from-scratch/vcpkg-git/buildtrees/icu/x64-windows-rel
    See logs for more information:
      C:\Users\SH\Downloads\fg-from-scratch\vcpkg-git\buildtrees\icu\build-x64-windows-rel-err.log

Call Stack (most recent call first):
  ports/icu/portfile.cmake:132 (vcpkg_execute_required_process)
  scripts/ports.cmake:71 (include)


Error: Building package icu:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: icu:x64-windows
  Vcpkg version: 2018.11.23-nohash

Additionally, attach any relevant sections from the log files above.
Updating OpenSceneGraph . . .
Already up to date.
Updating SimGear . . .
Already up to date.
Updating FlightGear . . .
Already up to date.
Updating TerraGear . . .
Already up to date.
Compiling OpenSceneGraph . . .
'cmake' is not recognized as an internal or external command,
operable program or batch file.
'cmake' is not recognized as an internal or external command,
operable program or batch file.
Compiling SimGear . . .
'cmake' is not recognized as an internal or external command,
operable program or batch file.
'cmake' is not recognized as an internal or external command,
operable program or batch file.
Compiling FlightGear . . .
'cmake' is not recognized as an internal or external command,
operable program or batch file.
'cmake' is not recognized as an internal or external command,
operable program or batch file.
Compiling TerraGear . . .
'cmake' is not recognized as an internal or external command,
operable program or batch file.
'cmake' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
        0 file(s) copied.
All done!



The "build-x64-windows-rel-err.log" contains this: make:
Code: Select all
 *** No targets specified and no makefile found.  Stop.

The" patch-x64-windows-1-err.log contains this:

Code: Select all
Checking patch source/runConfigureICU...
error: while searching for:
        THE_COMP="Microsoft Visual C++"
        CC=cl; export CC
        CXX=cl; export CXX
        RELEASE_CFLAGS='-Gy -MD'
        RELEASE_CXXFLAGS='-Gy -MD'
        DEBUG_CFLAGS='-Zi -MDd'
        DEBUG_CXXFLAGS='-Zi -MDd'
        DEBUG_LDFLAGS='-DEBUG'
        ;;
    *BSD)

error: patch failed: source/runConfigureICU:322
error: source/runConfigureICU: patch does not apply

The patch-x64-windows-0-err.log contains this:

Code: Select all
Checking patch source/tools/Makefile.in...
error: while searching for:
gencnval gensprep icuinfo genccode gencmn icupkg pkgdata \
gentest gennorm2 gencfu gendict

ifneq (@platform_make_fragment_name@,mh-cygwin-msvc)
SUBDIRS += escapesrc
endif

## List of phony targets
.PHONY : all all-local all-recursive install install-local   \

error: patch failed: source/tools/Makefile.in:19
error: source/tools/Makefile.in: patch does not apply

The mys-pacman-x64-windows-err.log contains this:

Code: Select all
warning: make-4.2.1-1 is up to date -- skipping
warning: automake1.15-1.15.1-1 is up to date -- skipping



Other error logs had no entries.
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: fg-from-scratch - TerraGear+Windows

Postby xDraconian » Thu Jan 17, 2019 8:04 am

pb321 wrote in Thu Jan 17, 2019 2:19 am: I have taken the preferred PATH and set a "CMake" path environment variable. I hope I did it correctly.

You can confirm it by doing the following in a command window:
Code: Select all
ECHO %PATH%

You should see c:\programs\cmake-3.13.2-win64-x64\bin somewhere within this output. Make sure the \bin is included.

ICU failed to build, so it hasn't even gotten to FlightGear yet. Since several other items compiled successful it may just be a problem in the ICU package. I'll try to reproduce the issue tomorrow.

As a side note, the TerraGear Docker image is probably the easiest path forward. Not sure if you are aware of this option also.
xDraconian
 
Posts: 406
Joined: Sun Jan 21, 2018 6:53 am
Version: Git
OS: Linux Mint

Re: fg-from-scratch - TerraGear+Windows

Postby pb321 » Thu Jan 17, 2019 4:07 pm

Checked with the %path% and the new entry is NOT there, so I'll do some research to find out what I'm doing wrong.
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: fg-from-scratch - TerraGear+Windows

Postby pb321 » Thu Jan 17, 2019 5:47 pm

OK...I have the path statement confirmed now. I had added the WRONG path statement, but now I have in place what I think is the correct path statement "C:\Program Files\cmake-3.13.2-win64-x64\bin"

Here are the results:

Code: Select all
Updating vcpkg . . .
fatal: unable to access 'https://github.com/Microsoft/vcpkg.git/': Could not resolve host: github.com
Updating external libraries . . .
Using local portfile versions. To update the local portfiles, use `git pull`.
No packages need updating.
All installed packages are up-to-date with the local portfiles.
The following packages are already installed:
    boost[core]:x64-windows
    cgal[core]:x64-windows
    curl[core,ssl,winssl]:x64-windows
    jasper[core]:x64-windows
    libxml2[core]:x64-windows
    openjpeg[core]:x64-windows
    openssl[core]:x64-windows
    plib[core]:x64-windows
    sdl2[core]:x64-windows
    tiff[core]:x64-windows
    zlib[core]:x64-windows
The following packages will be built and installed:
    freeglut[core]:x64-windows
    freetype[core]:x64-windows
    gdal[core,mysql-libmysql]:x64-windows
    glew[core]:x64-windows
  * icu[core]:x64-windows
  * libmysql[core]:x64-windows
  * lz4[core]:x64-windows
    openal-soft[core]:x64-windows
Additional packages (*) will be modified to complete this operation.
Starting package 1/19: jasper:x64-windows
Package jasper:x64-windows is already installed
Elapsed time for package jasper:x64-windows: 26.09 us
Starting package 2/19: zlib:x64-windows
Package zlib:x64-windows is already installed
Elapsed time for package zlib:x64-windows: 13.26 us
Starting package 3/19: boost:x64-windows
Package boost:x64-windows is already installed
Elapsed time for package boost:x64-windows: 12.83 us
Starting package 4/19: cgal:x64-windows
Package cgal:x64-windows is already installed
Elapsed time for package cgal:x64-windows: 12.4 us
Starting package 5/19: curl:x64-windows
Package curl:x64-windows is already installed
Elapsed time for package curl:x64-windows: 12.83 us
Starting package 6/19: openjpeg:x64-windows
Package openjpeg:x64-windows is already installed
Elapsed time for package openjpeg:x64-windows: 11.55 us
Starting package 7/19: libxml2:x64-windows
Package libxml2:x64-windows is already installed
Elapsed time for package libxml2:x64-windows: 13.26 us
Starting package 8/19: icu:x64-windows
Building package icu[core]:x64-windows...
-- Using cached C:/Users/SH/Downloads/fg-from-scratch/vcpkg-git/downloads/icu4c-61_1-src.tgz
-- Applying patch C:/Users/SH/Downloads/fg-from-scratch/vcpkg-git/ports/icu/disable-escapestr-tool.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch C:/Users/SH/Downloads/fg-from-scratch/vcpkg-git/ports/icu/remove-MD-from-configure.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Configuring x64-windows-rel
-- Configuring x64-windows-rel done
-- Configuring x64-windows-dbg
-- Configuring x64-windows-dbg done
-- Package x64-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:56 (message):
    Command failed: C:/Users/SH/Downloads/fg-from-scratch/vcpkg-git/downloads/tools/msys2/msys64/usr/bin/bash.exe;--noprofile;--norc;-c;make && make install
    Working Directory: C:/Users/SH/Downloads/fg-from-scratch/vcpkg-git/buildtrees/icu/x64-windows-rel
    See logs for more information:
      C:\Users\SH\Downloads\fg-from-scratch\vcpkg-git\buildtrees\icu\build-x64-windows-rel-err.log

Call Stack (most recent call first):
  ports/icu/portfile.cmake:132 (vcpkg_execute_required_process)
  scripts/ports.cmake:71 (include)


Error: Building package icu:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: icu:x64-windows
  Vcpkg version: 2018.11.23-nohash

Additionally, attach any relevant sections from the log files above.
Updating OpenSceneGraph . . .
Already up to date.
Updating SimGear . . .
Already up to date.
Updating FlightGear . . .
From https://git.code.sf.net/p/flightgear/flightgear
   4deb61d0a..da65411ef  next       -> origin/next
Updating 4deb61d0a..da65411ef
Fast-forward
 utils/fgqcanvas/fgcanvaselement.cpp | 32 ++++++++++++++++++--------------
 utils/fgqcanvas/fgcanvaselement.h   |  2 +-
 utils/fgqcanvas/fgcanvaspath.cpp    |  4 ++--
 utils/fgqcanvas/fgcanvastext.cpp    |  7 ++++++-
 utils/fgqcanvas/fgqcanvasimage.cpp  |  4 ++--
 5 files changed, 29 insertions(+), 20 deletions(-)
Updating TerraGear . . .
Already up to date.
Compiling OpenSceneGraph . . .
CMake Error: The source directory "C:/Users/SH/Downloads/fg-from-scratch/openscenegraph-3.4-build/hiv/Downloads/fg-from-scratch/vcpkg-git/installed/x64-windows/lib/zlib.lib" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Error: could not load cache
Compiling SimGear . . .
CMake Error: The source directory "C:/Users/SH/Downloads/fg-from-scratch/simgear-build/hiv/Downloads/fg-from-scratch/vcpkg-git/installed/x64-windows/lib/zlib.lib" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Error: could not load cache
Compiling FlightGear . . .
CMake Error: The source directory "C:/Users/SH/Downloads/fg-from-scratch/flightgear-build/hiv/Downloads/fg-from-scratch/vcpkg-git/installed/x64-windows/lib/zlib.lib" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Error: could not load cache
Compiling TerraGear . . .
CMake Error: The source directory "C:/Users/SH/Downloads/fg-from-scratch/terragear-build/hiv/Downloads/fg-from-scratch/Stage/lib/SimGearScene.lib" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Error: could not load cache
The system cannot find the path specified.
        0 file(s) copied.
All done!


I am aware of the Docker method. I decided to try this method because I had so many questions about the Docker method. I have used an old pre-compiled version of TerraGear with success but I'd like to start using a version with all the latest fixes and features available. I will probably give Docker a try, though.

I probably messed the script up by making the mistakes mentioned in previous posts. Is there a way to "reset"and try again? Or is it better to stay the course?
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: fg-from-scratch - TerraGear+Windows

Postby wkitty42 » Thu Jan 17, 2019 6:56 pm

reset? your edits? pull a new copy of the script and overwrite your modified one... then add back in this one change(?) you needed...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: fg-from-scratch - TerraGear+Windows

Postby xDraconian » Fri Jan 18, 2019 4:53 am

xDraconian wrote in Thu Jan 17, 2019 8:04 am:ICU failed to build, so it hasn't even gotten to FlightGear yet. Since several other items compiled successful it may just be a problem in the ICU package. I'll try to reproduce the issue tomorrow.

Tried to reproduce the issue with ICU, but vcpkg did updated fine.

There is a problem with TerraGear compiling though. Seems a SimGear change may have broken TerraGear on Windows. Will try to resolve it over the weekend, but my time may be limited, so it may not be until next week.
xDraconian
 
Posts: 406
Joined: Sun Jan 21, 2018 6:53 am
Version: Git
OS: Linux Mint

Re: fg-from-scratch - TerraGear+Windows

Postby pb321 » Fri Jan 18, 2019 6:18 am

Thank you @wkitty and @Draconian! Can't speak for others, but I 'm not in a rush and can appreciate the complexities of the tasks.
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: fg-from-scratch - TerraGear+Windows

Postby Alant » Fri Jan 18, 2019 10:40 am

With git there are commands to check for differences between your working copy and that in the repository. These can then be reverted .
If you are on Windows, Tortoise git does this very easily.

Alan
Alant
 
Posts: 1219
Joined: Wed Jun 23, 2010 6:58 am
Location: Portugal
Callsign: Tarnish99
Version: latest Git
OS: Windows 10/11

Re: fg-from-scratch - TerraGear+Windows

Postby xDraconian » Mon Jan 21, 2019 5:51 am

xDraconian wrote in Fri Jan 18, 2019 4:53 am:There is a problem with TerraGear compiling though. Seems a SimGear change may have broken TerraGear on Windows. Will try to resolve it over the weekend, but my time may be limited, so it may not be until next week.

Building TerraGear on Windows works now. Turned out to be a missing Winmm.lib dependency causing the issues.
xDraconian
 
Posts: 406
Joined: Sun Jan 21, 2018 6:53 am
Version: Git
OS: Linux Mint

Re: fg-from-scratch - TerraGear+Windows

Postby pb321 » Tue Jan 22, 2019 2:19 am

Thank you, @xDraconian, @wkitty and @AlanT! I tried it and it certainly behaves differently. Did the change above result in an updated script or am I OK with the one I've been using? (I could not find a new script in FGMeta>Next).

Re-running the existing script results in "CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:56 (message):
Command failed: C:/Users/SH/Downloads/fg-from-scratch/vcpkg-git/downloads/tools/msys2/msys64/usr/bin/bash.exe;--noprofile;--norc;-c;make && make install" and an error in building package icu:x64-windows. It shows that vcpkg was updated, but later indicates "ensure you're using the latest portfiles with '.\vcpkg update'".

Also, I don't understand the path used in the following statement, included in the log:
Code: Select all
Compiling OpenSceneGraph . . .
CMake Error: The source directory "C:/Users/SH/Downloads/fg-from-scratch/openscenegraph-3.4-build/hiv/Downloads/fg-from-scratch/vcpkg-git/installed/x64-windows/lib/zlib.lib" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Error: could not load cache

The path in the statement above makes no sense. "C:\Users\SH\Downloads\fg-from-scratch\openscenegraph-3.4-git" and "C:\Users\SH\Downloads\fg-from-scratch\vcpkg-git\installed\x64-windows\lib/zlib.lib" are two valid paths, but not the "combined" path listed in the statements above.

Here's the log:
Code: Select all
Updating vcpkg . . .
From https://github.com/Microsoft/vcpkg
   b6fe5b5d..c6db2c88  master                -> origin/master
 * [new branch]        dev/codym/5158        -> origin/dev/codym/5158
 * [new branch]        dev/codym/5162        -> origin/dev/codym/5162
 * [new branch]        dev/codym/5176        -> origin/dev/codym/5176
 * [new branch]        dev/philc/tkerwin-master -> origin/dev/philc/tkerwin-master
   b60a0f19..d054a1df  dev/roschuma/5059     -> origin/dev/roschuma/5059
 * [new branch]        dev/roschuma/5115     -> origin/dev/roschuma/5115
 * [new branch]        dev/roschuma/5182     -> origin/dev/roschuma/5182
 + 296bf74f...4b168c4c dev/roschuma/randomize-ci -> origin/dev/roschuma/randomize-ci  (forced update)
 + d841f59a...e8e6425c dev/roschuma/upgrades -> origin/dev/roschuma/upgrades  (forced update)
   ff6bc2d2..b4766c69  dev/viromer/4782      -> origin/dev/viromer/4782
 * [new branch]        dev/viromer/5122      -> origin/dev/viromer/5122
 * [new branch]        dev/viromer/5165      -> origin/dev/viromer/5165
Updating b6fe5b5d..c6db2c88
Fast-forward
 ports/abseil/CMakeLists.txt                 |  4 ++--
 ports/abseil/CONTROL                        |  2 +-
 ports/abseil/portfile.cmake                 |  4 ++--
 ports/autobahn/CONTROL                      |  4 ++++
 ports/autobahn/portfile.cmake               | 30 +++++++++++++++++++++++++++++
 ports/azure-c-shared-utility/CONTROL        |  3 +++
 ports/azure-c-shared-utility/portfile.cmake | 27 ++++++++++++++++++--------
 ports/azure-iot-sdk-c/CONTROL               |  4 ++++
 ports/azure-iot-sdk-c/portfile.cmake        | 27 ++++++++++++++++++--------
 ports/azure-uamqp-c/CONTROL                 |  4 ++++
 ports/azure-uamqp-c/portfile.cmake          | 24 ++++++++++++++++-------
 ports/azure-uhttp-c/CONTROL                 |  4 ++++
 ports/azure-uhttp-c/portfile.cmake          | 24 ++++++++++++++++-------
 ports/azure-umqtt-c/CONTROL                 |  4 ++++
 ports/azure-umqtt-c/portfile.cmake          | 24 ++++++++++++++++-------
 ports/celero/CONTROL                        |  2 +-
 ports/celero/portfile.cmake                 |  4 ++--
 ports/chakracore/CONTROL                    |  2 +-
 ports/chakracore/portfile.cmake             |  4 ++--
 ports/cimg/CONTROL                          |  2 +-
 ports/cimg/portfile.cmake                   |  4 ++--
 ports/cppgraphqlgen/CONTROL                 |  2 +-
 ports/cppgraphqlgen/portfile.cmake          |  4 ++--
 ports/eastl/CONTROL                         |  2 +-
 ports/eastl/portfile.cmake                  |  4 ++--
 ports/exprtk/CONTROL                        |  2 +-
 ports/exprtk/portfile.cmake                 |  4 ++--
 ports/fizz/CONTROL                          |  4 ++--
 ports/fizz/depend-zlib.patch                | 20 +++++++++++++++++++
 ports/fizz/portfile.cmake                   |  5 +++--
 ports/folly/CONTROL                         |  2 +-
 ports/folly/portfile.cmake                  |  4 ++--
 ports/libsodium/CONTROL                     |  2 +-
 ports/libsodium/portfile.cmake              |  4 ++--
 ports/libuv/CONTROL                         |  2 +-
 ports/libuv/portfile.cmake                  |  4 ++--
 ports/ms-gsl/CONTROL                        |  4 ++--
 ports/ms-gsl/portfile.cmake                 |  4 ++--
 ports/re2/CONTROL                           |  2 +-
 ports/re2/portfile.cmake                    |  4 ++--
 ports/rs-core-lib/CONTROL                   |  2 +-
 ports/rs-core-lib/portfile.cmake            |  4 ++--
 ports/sobjectizer/CONTROL                   |  2 +-
 ports/sobjectizer/portfile.cmake            |  4 ++--
 ports/sqlite-orm/CONTROL                    |  2 +-
 ports/sqlite-orm/portfile.cmake             |  4 ++--
 ports/strtk/CONTROL                         |  2 +-
 ports/strtk/portfile.cmake                  |  4 ++--
 ports/thrift/CONTROL                        |  2 +-
 ports/thrift/portfile.cmake                 |  4 ++--
 ports/unicorn-lib/CONTROL                   |  2 +-
 ports/unicorn-lib/portfile.cmake            |  4 ++--
 ports/unicorn/CONTROL                       |  2 +-
 ports/unicorn/portfile.cmake                |  4 ++--
 ports/wangle/CONTROL                        |  2 +-
 ports/wangle/portfile.cmake                 |  4 ++--
 ports/zeromq/CONTROL                        |  2 +-
 ports/zeromq/portfile.cmake                 |  4 ++--
 58 files changed, 233 insertions(+), 107 deletions(-)
 create mode 100644 ports/autobahn/CONTROL
 create mode 100644 ports/autobahn/portfile.cmake
 create mode 100644 ports/fizz/depend-zlib.patch
Updating external libraries . . .
Using local portfile versions. To update the local portfiles, use `git pull`.
No packages need updating.
All installed packages are up-to-date with the local portfiles.
The following packages are already installed:
    boost[core]:x64-windows
    cgal[core]:x64-windows
    curl[core,ssl,winssl]:x64-windows
    jasper[core]:x64-windows
    libxml2[core]:x64-windows
    openjpeg[core]:x64-windows
    openssl[core]:x64-windows
    plib[core]:x64-windows
    sdl2[core]:x64-windows
    tiff[core]:x64-windows
    zlib[core]:x64-windows
The following packages will be built and installed:
    freeglut[core]:x64-windows
    freetype[core]:x64-windows
    gdal[core,mysql-libmysql]:x64-windows
    glew[core]:x64-windows
  * icu[core]:x64-windows
  * libmysql[core]:x64-windows
  * lz4[core]:x64-windows
    openal-soft[core]:x64-windows
Additional packages (*) will be modified to complete this operation.
Starting package 1/19: jasper:x64-windows
Package jasper:x64-windows is already installed
Elapsed time for package jasper:x64-windows: 28.22 us
Starting package 2/19: zlib:x64-windows
Package zlib:x64-windows is already installed
Elapsed time for package zlib:x64-windows: 13.68 us
Starting package 3/19: boost:x64-windows
Package boost:x64-windows is already installed
Elapsed time for package boost:x64-windows: 12.83 us
Starting package 4/19: cgal:x64-windows
Package cgal:x64-windows is already installed
Elapsed time for package cgal:x64-windows: 12.4 us
Starting package 5/19: curl:x64-windows
Package curl:x64-windows is already installed
Elapsed time for package curl:x64-windows: 12.83 us
Starting package 6/19: openjpeg:x64-windows
Package openjpeg:x64-windows is already installed
Elapsed time for package openjpeg:x64-windows: 11.97 us
Starting package 7/19: libxml2:x64-windows
Package libxml2:x64-windows is already installed
Elapsed time for package libxml2:x64-windows: 13.26 us
Starting package 8/19: icu:x64-windows
Building package icu[core]:x64-windows...
-- Using cached C:/Users/SH/Downloads/fg-from-scratch/vcpkg-git/downloads/icu4c-61_1-src.tgz
-- Applying patch C:/Users/SH/Downloads/fg-from-scratch/vcpkg-git/ports/icu/disable-escapestr-tool.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch C:/Users/SH/Downloads/fg-from-scratch/vcpkg-git/ports/icu/remove-MD-from-configure.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Configuring x64-windows-rel
-- Configuring x64-windows-rel done
-- Configuring x64-windows-dbg
-- Configuring x64-windows-dbg done
-- Package x64-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:56 (message):
    Command failed: C:/Users/SH/Downloads/fg-from-scratch/vcpkg-git/downloads/tools/msys2/msys64/usr/bin/bash.exe;--noprofile;--norc;-c;make && make install
    Working Directory: C:/Users/SH/Downloads/fg-from-scratch/vcpkg-git/buildtrees/icu/x64-windows-rel
    See logs for more information:
      C:\Users\SH\Downloads\fg-from-scratch\vcpkg-git\buildtrees\icu\build-x64-windows-rel-err.log

Call Stack (most recent call first):
  ports/icu/portfile.cmake:132 (vcpkg_execute_required_process)
  scripts/ports.cmake:71 (include)


Error: Building package icu:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: icu:x64-windows
  Vcpkg version: 2018.11.23-nohash

Additionally, attach any relevant sections from the log files above.
Updating OpenSceneGraph . . .
From https://github.com/openscenegraph/OpenSceneGraph
   f223fec92..645515975  OpenSceneGraph-3.6 -> origin/OpenSceneGraph-3.6
   cb90d269e..68e4341cb  master             -> origin/master
Already up to date.
Updating SimGear . . .
From https://git.code.sf.net/p/flightgear/simgear
   7981809f..105d63a6  next       -> origin/next
Updating 7981809f..105d63a6
Fast-forward
 simgear/canvas/elements/CanvasText.cxx         | 86 ++++++++++++++++----------
 simgear/io/sg_file.cxx                         | 25 ++++++++
 simgear/io/sg_file.hxx                         |  3 +
 simgear/scene/material/Effect.cxx              | 13 +++-
 simgear/scene/material/TextureBuilder.cxx      | 43 ++++++++++---
 simgear/scene/material/mat.cxx                 |  2 +-
 simgear/scene/material/mipmap.hxx              | 20 +++---
 simgear/scene/model/BVHDebugCollectVisitor.hxx |  5 ++
 simgear/scene/model/SGReaderWriterXML.cxx      |  4 +-
 simgear/scene/model/model.cxx                  |  6 +-
 simgear/scene/sky/cloud.cxx                    |  8 ++-
 simgear/scene/tgdb/ReaderWriterSPT.cxx         |  2 +-
 simgear/scene/util/SGReaderWriterOptions.hxx   | 29 +++++++--
 simgear/timing/timestamp.cxx                   | 28 +++++++--
 14 files changed, 206 insertions(+), 68 deletions(-)
Updating FlightGear . . .
From https://git.code.sf.net/p/flightgear/flightgear
   da65411ef..cbde4c90d  next       -> origin/next
Updating da65411ef..cbde4c90d
Fast-forward
 src/Canvas/FGCanvasSystemAdapter.cxx      |  2 +-
 src/Cockpit/NavDisplay.cxx                |  7 ++++++-
 src/Cockpit/wxradar.cxx                   |  4 ++++
 src/FDM/JSBSim/JSBSim.cxx                 | 20 ++++++++++----------
 src/FDM/groundcache.cxx                   | 10 ++++++----
 src/GUI/gui_funcs.cxx                     | 24 ++++++++++++++----------
 src/Main/fg_init.cxx                      |  6 +++---
 src/Scenery/terrain_pgt.cxx               |  2 +-
 src/Viewer/PUICamera.cxx                  | 15 ++++++++-------
 src/Viewer/PUICamera.hxx                  |  2 +-
 src/Viewer/splash.cxx                     |  4 ++--
 utils/fgqcanvas/applicationcontroller.cpp |  1 +
 utils/fgviewer/fgviewer.cxx               |  4 ++--
 13 files changed, 59 insertions(+), 42 deletions(-)
Updating TerraGear . . .
From https://git.code.sf.net/p/flightgear/terragear
   e84b69e..c9d2959  next       -> origin/next
Updating e84b69e..c9d2959
Fast-forward
 CMakeLists.txt                                 | 12 ++--
 CMakeModules/FindSimGear.cmake                 | 15 ++--
 src/Airports/GenAirports850/CMakeLists.txt     |  3 +-
 src/Airports/GenAirports850/airport.cxx        | 44 ++++++------
 src/Airports/GenAirports850/airport.hxx        | 32 +++++----
 src/Airports/GenAirports850/beznode.hxx        |  5 +-
 src/Airports/GenAirports850/closedpoly.cxx     | 66 +++++++-----------
 src/Airports/GenAirports850/closedpoly.hxx     | 18 ++---
 src/Airports/GenAirports850/elevations.cxx     |  2 +-
 src/Airports/GenAirports850/helipad.hxx        |  4 +-
 src/Airports/GenAirports850/linearfeature.cxx  | 20 +++---
 src/Airports/GenAirports850/linearfeature.hxx  | 12 ++--
 src/Airports/GenAirports850/linked_objects.hxx |  8 ++-
 src/Airports/GenAirports850/main.cxx           |  4 +-
 src/Airports/GenAirports850/object.hxx         |  4 +-
 src/Airports/GenAirports850/parser.cxx         | 87 ++++++++++++-----------
 src/Airports/GenAirports850/parser.hxx         | 61 +++++++++--------
 src/Airports/GenAirports850/runway.hxx         |  6 +-
 src/Airports/GenAirports850/scheduler.cxx      | 19 +++---
 src/Airports/GenAirports850/taxiway.hxx        |  4 +-
 src/Lib/Array/array.cxx                        | 95 +++++++++++++-------------
 src/Lib/Array/array.hxx                        | 36 +++++-----
 src/Lib/terragear/tg_contour.cxx               |  2 +-
 src/Lib/terragear/tg_surface.cxx               |  2 +-
 src/Prep/Terra/GreedyInsert.cc                 |  2 +-
 25 files changed, 283 insertions(+), 280 deletions(-)
Compiling OpenSceneGraph . . .
CMake Error: The source directory "C:/Users/SH/Downloads/fg-from-scratch/openscenegraph-3.4-build/hiv/Downloads/fg-from-scratch/vcpkg-git/installed/x64-windows/lib/zlib.lib" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Error: could not load cache
Compiling SimGear . . .
CMake Error: The source directory "C:/Users/SH/Downloads/fg-from-scratch/simgear-build/hiv/Downloads/fg-from-scratch/vcpkg-git/installed/x64-windows/lib/zlib.lib" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Error: could not load cache
Compiling FlightGear . . .
CMake Error: The source directory "C:/Users/SH/Downloads/fg-from-scratch/flightgear-build/hiv/Downloads/fg-from-scratch/vcpkg-git/installed/x64-windows/lib/zlib.lib" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Error: could not load cache
Compiling TerraGear . . .
CMake Error: The source directory "C:/Users/SH/Downloads/fg-from-scratch/terragear-build/hiv/Downloads/fg-from-scratch/Stage/lib/SimGearScene.lib" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Error: could not load cache
The system cannot find the path specified.
        0 file(s) copied.
All done!



Any suggestions will be very much appreciated.
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: fg-from-scratch - TerraGear+Windows

Postby xDraconian » Sun Jan 27, 2019 6:33 pm

Looks like your fg-from-scratch.cmd may have been messed up and caused the CMakeCache for OSG to be bad.
Try deleting your openscenegraph-3.4-build folder and try again.
xDraconian
 
Posts: 406
Joined: Sun Jan 21, 2018 6:53 am
Version: Git
OS: Linux Mint

Re: fg-from-scratch - TerraGear+Windows

Postby pb321 » Tue Jan 29, 2019 2:51 am

It never built the cache files for any major component (OpenSceneGraph, SimGear, etc.). Things are farther along, but result in a CMake Error "make: *** No targets specified and no makefile found. Stop." per build-x64-windows-rel-err.log. Here's the main log:

Code: Select all
Updating vcpkg . . .
Already up to date.
Updating external libraries . . .
Using local portfile versions. To update the local portfiles, use `git pull`.
No packages need updating.
All installed packages are up-to-date with the local portfiles.
The following packages are already installed:
    boost[core]:x64-windows
    cgal[core]:x64-windows
    curl[core,ssl,winssl]:x64-windows
    freeglut[core]:x64-windows
    freetype[core]:x64-windows
    jasper[core]:x64-windows
    libxml2[core]:x64-windows
    openjpeg[core]:x64-windows
    openssl[core]:x64-windows
    sdl2[core]:x64-windows
    tiff[core]:x64-windows
    zlib[core]:x64-windows
The following packages will be built and installed:
    gdal[core,mysql-libmysql]:x64-windows
    glew[core]:x64-windows
  * icu[core]:x64-windows
  * libmysql[core]:x64-windows
  * lz4[core]:x64-windows
    openal-soft[core]:x64-windows
    plib[core]:x64-windows
Additional packages (*) will be modified to complete this operation.
Starting package 1/19: boost:x64-windows
Package boost:x64-windows is already installed
Elapsed time for package boost:x64-windows: 24.8 us
Starting package 2/19: cgal:x64-windows
Package cgal:x64-windows is already installed
Elapsed time for package cgal:x64-windows: 14.11 us
Starting package 3/19: curl:x64-windows
Package curl:x64-windows is already installed
Elapsed time for package curl:x64-windows: 13.26 us
Starting package 4/19: openjpeg:x64-windows
Package openjpeg:x64-windows is already installed
Elapsed time for package openjpeg:x64-windows: 13.26 us
Starting package 5/19: libxml2:x64-windows
Package libxml2:x64-windows is already installed
Elapsed time for package libxml2:x64-windows: 13.26 us
Starting package 6/19: icu:x64-windows
Building package icu[core]:x64-windows...
-- Using cached C:/Users/SH/Documents/FG-From-Scratch/vcpkg-git/downloads/icu4c-61_1-src.tgz
-- Applying patch C:/Users/SHa/Documents/FG-From-Scratch/vcpkg-git/ports/icu/disable-escapestr-tool.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch C:/Users/SH/Documents/FG-From-Scratch/vcpkg-git/ports/icu/remove-MD-from-configure.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Configuring x64-windows-rel
-- Configuring x64-windows-rel done
-- Configuring x64-windows-dbg
-- Configuring x64-windows-dbg done
-- Package x64-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:56 (message):
    Command failed: C:/Users/SH/Documents/FG-From-Scratch/vcpkg-git/downloads/tools/msys2/msys64/usr/bin/bash.exe;--noprofile;--norc;-c;make && make install
    Working Directory: C:/Users/SH/Documents/FG-From-Scratch/vcpkg-git/buildtrees/icu/x64-windows-rel
    See logs for more information:
      C:\Users\SH\Documents\FG-From-Scratch\vcpkg-git\buildtrees\icu\build-x64-windows-rel-err.log

Call Stack (most recent call first):
  ports/icu/portfile.cmake:132 (vcpkg_execute_required_process)
  scripts/ports.cmake:71 (include)


Error: Building package icu:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: icu:x64-windows
  Vcpkg version: 2018.11.23-nohash

Additionally, attach any relevant sections from the log files above.
Updating OpenSceneGraph . . .
Already up to date.
Updating SimGear . . .
Already up to date.
Updating FlightGear . . .
Already up to date.
Updating TerraGear . . .
Already up to date.
Compiling OpenSceneGraph . . .
CMake Error: The source directory "C:/Users/SH/Documents/FG-From-Scratch/openscenegraph-3.4-build/Hiv/Documents/FG-From-Scratch/vcpkg-git/installed/x64-windows/lib/zlib.lib" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Error: could not load cache
Compiling SimGear . . .
CMake Error: The source directory "C:/Users/SH/Documents/FG-From-Scratch/simgear-build/Hiv/Documents/FG-From-Scratch/vcpkg-git/installed/x64-windows/lib/zlib.lib" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Error: could not load cache
Compiling FlightGear . . .
CMake Error: The source directory "C:/Users/SH/Documents/FG-From-Scratch/flightgear-build/Hiv/Documents/FG-From-Scratch/vcpkg-git/installed/x64-windows/lib/zlib.lib" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Error: could not load cache
Compiling TerraGear . . .
CMake Error: The source directory "C:/Users/SH/Documents/FG-From-Scratch/terragear-build/Hiv/Documents/FG-From-Scratch/Stage/lib/SimGearScene.lib" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Error: could not load cache
The system cannot find the path specified.
        0 file(s) copied.
All done!


**************
As suggested in the log, I ensured that I have the latest portfiles with '.\vcpkg update'. It returned something like "No updates needed".

I had also checked the script I had been using against the original as suggested in previous posts. No differences were found. In fact, I then re-downloaded the script from fgmeta and am using that one instead. The log above is the result.

I searched online for the error message and found this: https://stackoverflow.com/questions/14412919/make-no-targets-specified-and-no-makefile-found-stop, but I don't know where to run "autoconf" or "make clean".


Any ideas as to what might be wrong or should I submit an issue to Microsoft, as suggested in the log? Should i delete everything in the fg-from scratch folder and start from the beginning?
Thank you!
Last edited by pb321 on Wed Jan 30, 2019 3:53 pm, edited 1 time in total.
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: fg-from-scratch - TerraGear+Windows

Postby xDraconian » Wed Jan 30, 2019 12:06 am

@pb321

ICU is failing to build. Can you provide this error log?
Code: Select all
    See logs for more information:
      C:\Users\SH\Documents\FG-From-Scratch\vcpkg-git\buildtrees\icu\build-x64-windows-rel-err.log


IIRC, I had the same issue and applied a pending patch. I don't see any pending patches for ICU on the vcpkg site, so you may have a different issue. The error log should help us understand what failed.

Scott
Last edited by xDraconian on Wed Jan 30, 2019 5:52 pm, edited 1 time in total.
xDraconian
 
Posts: 406
Joined: Sun Jan 21, 2018 6:53 am
Version: Git
OS: Linux Mint

PreviousNext

Return to Scenery

Who is online

Users browsing this forum: No registered users and 7 guests