problems installing

63 views
Skip to first unread message

René

unread,
May 7, 2012, 8:55:22 AM5/7/12
to oaconvert
I have an windows XP environment and installed Cygwin with the
packages
cmake 2.8.7.1
libboost 1.4.8.0-1
cppunit 1.12.1-2
gcc g++: C++ compiler 34.4.999

Using windows I unzipped the oaconvert file and dragged it to the
windows cygwin directory

Started cygwin nd ran "cmake ." in the directory /oaconvert/
BartVandewoestyne-oaconvert-527df62
Than the following errors occured. So now I cannot fly anymore:)
Can anybody help this newbie


rene@Movies /oaconvert/BartVandewoestyne-oaconvert-527df62
$ cmake .
CMake Error: CMake was unable to find a build program corresponding to
"Unix
Mak
efiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select
a
differen
t build tool.
CMake Error: Error required internal CMake variable not set, cmake may
be not
be
built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may
be not
be
built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:/oaconvert/
BartVandewoestyne-
oacon
vert-527df62/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may
be not
be
built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may
be not
be
built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:/oaconvert/
BartVandewoestyne-
oacon
vert-527df62/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

Bart Vandewoestyne

unread,
May 7, 2012, 9:05:31 AM5/7/12
to oaco...@googlegroups.com
Hello René,

Judging from the first error you get, my educated guess is that you don't have the 'make' utility installed yet in your Cygwin environment.  Please check if you have a working version of 'make' within your Cygwin environment by typing

make --version

at the Cygwin prompt.  If you get an error message there instead of a version number, you'll have to use the Cygwin setup/install tool to install the package for the 'make' utility and try again...

René

unread,
May 7, 2012, 9:48:18 AM5/7/12
to oaconvert
Bart,
tnx for the quick response.
That was it. It works almost. Now it says:

rene@Movies /oaconvert/BartVandewoestyne-oaconvert-527df62
$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
CMake Warning at /usr/share/cmake-2.8.7/Modules/Platform/CYGWIN.cmake:
15
(messag
e):
CMake no longer defines WIN32 on Cygwin!

(1) If you are just trying to build this project, ignore this
warning or
quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment
or in
the CMake cache. If later configuration or build errors occur then
this
project may have been written under the assumption that Cygwin is
WIN32.
In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.

(2) If you are developing this project, add the line

set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is
required

at the top of your top-level CMakeLists.txt file or set the minimum
required version of CMake to 2.8.4 or higher. Then teach your
project to
build on Cygwin without WIN32.
Call Stack (most recent call first):
/usr/share/cmake-2.8.7/Modules/CMakeSystemSpecificInformation.cmake:
36
(INCLUD
E)
CMakeLists.txt:8 (project)


-- Check for working C compiler: /usr/bin/gcc.exe
-- Check for working C compiler: /usr/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++.exe
-- Check for working CXX compiler: /usr/bin/c++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
cygwin warning:
MS-DOS style path detected: C:/boost/lib
Preferred POSIX equivalent is: /cygdrive/c/boost/lib
CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
CMake Error at /usr/share/cmake-2.8.7/Modules/FindBoost.cmake:1199
(message):
Unable to find the requested Boost libraries.

Unable to find the Boost header files. Please set BOOST_ROOT to the
root
directory containing Boost or BOOST_INCLUDEDIR to the directory
containing
Boost's headers.
Call Stack (most recent call first):
src/CMakeLists.txt:29 (find_package)


-- Configuring incomplete, errors occurred!






On May 7, 3:05 pm, Bart Vandewoestyne <bart.vandewoest...@gmail.com>
wrote:

Bart Vandewoestyne

unread,
May 7, 2012, 10:00:49 AM5/7/12
to oaco...@googlegroups.com
The first warning is nothing to worry about.  From the error at the end, i conclude that CMake can't find the Boost libraries.  This means either they are not installed, or it cannot find them in your path.  My educated guess is that they are simply not installed.  Note that libraries typically come in 2 packages: a library package containing only the library files that you would need as a user (not a developer) and a development package containing all the extra files that you need for development (source files, header files,...).  I think you haven't installed the libboost-devel package...  Please check and let me know if this indeed was the problem.

René

unread,
May 7, 2012, 10:24:49 AM5/7/12
to oaconvert
He Bart,
Installed Boost
Ran Cmake without errors but for me unclear remarks. Than I ran make
and that gave some errors again. What did I forgot?


rene@Movies /oaconvert/BartVandewoestyne-oaconvert-527df62
$ cmake .
cygwin warning:
MS-DOS style path detected: C:/boost/lib
Preferred POSIX equivalent is: /cygdrive/c/boost/lib
CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
-- Boost version: 1.48.0
-- Found the following Boost libraries:
-- regex
-- Configuring done
-- Generating done
-- Build files have been written to: /oaconvert/BartVandewoestyne-
oaconvert-527d
f62

rene@Movies /oaconvert/BartVandewoestyne-oaconvert-527df62
$ make
Scanning dependencies of target airspace
[ 4%] Building CXX object src/CMakeFiles/airspace.dir/Airspace.cpp.o
[ 8%] Building CXX object src/CMakeFiles/airspace.dir/Arc.cpp.o
[ 12%] Building CXX object src/CMakeFiles/airspace.dir/Circle.cpp.o
[ 16%] Building CXX object src/CMakeFiles/airspace.dir/
Coordinate.cpp.o
[ 20%] Building CXX object src/CMakeFiles/airspace.dir/
CurvedPolygon.cpp.o
[ 25%] Building CXX object src/CMakeFiles/airspace.dir/Label.cpp.o
[ 29%] Building CXX object src/CMakeFiles/airspace.dir/Latitude.cpp.o
[ 33%] Building CXX object src/CMakeFiles/airspace.dir/LatLon.cpp.o
[ 37%] Building CXX object src/CMakeFiles/airspace.dir/Longitude.cpp.o
[ 41%] Building CXX object src/CMakeFiles/airspace.dir/
OutputWriter.cpp.o
[ 45%] Building CXX object src/CMakeFiles/airspace.dir/Parser.cpp.o
[ 50%] Building CXX object src/CMakeFiles/airspace.dir/Point.cpp.o
[ 54%] Building CXX object src/CMakeFiles/airspace.dir/
PolishState.cpp.o
[ 58%] Building CXX object src/CMakeFiles/airspace.dir/GPXState.cpp.o
[ 62%] Building CXX object src/CMakeFiles/airspace.dir/KMLState.cpp.o
[ 66%] Building CXX object src/CMakeFiles/airspace.dir/
StringUtils.cpp.o
Linking CXX shared library cygairspace.dll
Creating library file: libairspace.dll.a
[ 66%] Built target airspace
Scanning dependencies of target oaconvert
[ 70%] Building CXX object src/CMakeFiles/oaconvert.dir/
oaconvert.cpp.o
Linking CXX executable oaconvert.exe
[ 70%] Built target oaconvert
Scanning dependencies of target MainTest
[ 75%] Building CXX object test/CMakeFiles/MainTest.dir/
LatLonTest.cpp.o
[ 79%] Building CXX object test/CMakeFiles/MainTest.dir/
LatitudeTest.cpp.o
[ 83%] Building CXX object test/CMakeFiles/MainTest.dir/
LongitudeTest.cpp.o
[ 87%] Building CXX object test/CMakeFiles/MainTest.dir/
CoordinateTest.cpp.o
[ 91%] Building CXX object test/CMakeFiles/MainTest.dir/
MainTester.cpp.o
[ 95%] Building CXX object test/CMakeFiles/MainTest.dir/
ParserTest.cpp.o
[100%] Building CXX object test/CMakeFiles/MainTest.dir/
AirspaceTest.cpp.o
Linking CXX executable MainTest.exe
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld:
cannot find -lboost_regex
collect2: ld returned 1 exit status
test/CMakeFiles/MainTest.dir/build.make:237: recipe for target `test/
MainTest.exe' failed
make[2]: *** [test/MainTest.exe] Error 1
CMakeFiles/Makefile2:193: recipe for target `test/CMakeFiles/
MainTest.dir/all' failed
make[1]: *** [test/CMakeFiles/MainTest.dir/all] Error 2
Makefile:72: recipe for target `all' failed
make: *** [all] Error 2

rene@Movies /oaconvert/BartVandewoestyne-oaconvert-527df62








cygwin warning:
  MS-DOS style path detected: C:/boost/lib
  Preferred POSIX equivalent is: /cygdrive/c/boost/lib
  CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
-- Boost version: 1.48.0
-- Found the following Boost libraries:
--   regex
-- Configuring done
-- Generating done
-- Build files have been written to: /oaconvert/BartVandewoestyne-
oaconvert-527df62

On May 7, 4:00 pm, Bart Vandewoestyne <bart.vandewoest...@gmail.com>
wrote:

Bart Vandewoestyne

unread,
May 7, 2012, 10:39:28 AM5/7/12
to oaco...@googlegroups.com
On 05/07/2012 04:24 PM, Ren� wrote:
> He Bart,
> Installed Boost
> Ran Cmake without errors but for me unclear remarks. Than I ran make
> and that gave some errors again. What did I forgot?
>
> [...]
> Linking CXX executable MainTest.exe
> /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld:
> cannot find -lboost_regex
> collect2: ld returned 1 exit status

Thanks! You just 'discovered' a bug in our build system :-) This was
not something you did wrong, it was simply me who hadn't written a
portable CMakeList.txt file for the unit tests.

I've changed the CMakeLists.txt file in the test directory so that it is
now more portable and so that the Boost libraries now also are found
when building the unit tests.

Please download the latest version of the code and try again.

Regards,
Bart

René

unread,
May 7, 2012, 11:37:16 AM5/7/12
to oaconvert
Did so, installed it and it works fine so far. Just converted the
Eindhoven CTR.
tnx and now for the content;-)
René

On May 7, 4:39 pm, Bart Vandewoestyne <Bart.Vandewoest...@telenet.be>
wrote:

Bart Vandewoestyne

unread,
May 7, 2012, 1:48:06 PM5/7/12
to oaco...@googlegroups.com
On 05/07/2012 05:37 PM, Ren� wrote:
> Did so, installed it and it works fine so far. Just converted the
> Eindhoven CTR.
> tnx and now for the content;-)
> Ren�

Nice to hear that everything compiles and runs fine! As for the
content: yes, we are still looking for volunteers to enter and maintain
the OpenAir files. For Holland, we manually enter the information that
is available from the Dutch AIP:

http://www.ais-netherlands.nl/

Our goal should be to have an OpenAir file for each airspace that is
listed there. For Belgium, this is already done. Feel free to send us
your submissions for the Netherlands, or even better, to send us a git
pull request with your updates!

Regards,
Bart
Reply all
Reply to author
Forward
0 new messages