%compile/link problem OSSIM windows MSYS2

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

%compile/link problem OSSIM windows MSYS2

MORALES MEJIA JULIO-2

Hi!

 

I hope someone could help me on this.

 

I’ve been trying to compile OSSIM in Windows using MSYS/MIngw, but I’ve got some troubles, so I could try the Martina’s plugin for DSM creation.

When I try to compile the shared library I get this error:

 

[ 85%] Linking CXX shared library ../../bin/libossim.dll

cd /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/src && /D/programs/msys64/mingw32/bin/cmake.exe -E remove -f CMakeFiles/ossim.dir/objects.a

cd /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/src && /D/programs/msys64/mingw32/bin/ar.exe cr CMakeFiles/ossim.dir/objects.a @CMakeFiles/ossim.dir/objects1.rsp

cd /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/src && /D/programs/msys64/mingw32/bin/g++.exe     -O3 -DNDEBUG  -shared -o ../../bin/libossim.dll -Wl,--out-implib,../../lib/libossim.dll.a -Wl,--major-image-version,0,--minor-image-version,0 -Wl,--whole-archive CMakeFiles/ossim.dir/objects.a -Wl,--no-whole-archive @CMakeFiles/ossim.dir/linklibs.rsp

CMakeFiles/ossim.dir/objects.a(ossimDate.cpp.obj):ossimDate.cpp:(.text+0x6107): undefined reference to `_imp___get_timezone'

CMakeFiles/ossim.dir/objects.a(ossimDate.cpp.obj):ossimDate.cpp:(.text+0x61d4): undefined reference to `_imp___get_timezone'

CMakeFiles/ossim.dir/objects.a(ossimDate.cpp.obj):ossimDate.cpp:(.text+0x62b8): undefined reference to `_imp___get_timezone'

CMakeFiles/ossim.dir/objects.a(ossimDate.cpp.obj):ossimDate.cpp:(.text+0x6398): undefined reference to `_imp___get_timezone'

CMakeFiles/ossim.dir/objects.a(ossimDate.cpp.obj):ossimDate.cpp:(.text+0x6474): undefined reference to `_imp___get_timezone'

CMakeFiles/ossim.dir/objects.a(ossimDate.cpp.obj):ossimDate.cpp:(.text+0x6534): more undefined references to `_imp___get_timezone' follow

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x688): undefined reference to `geos::operation::valid::TopologyValidationError::toString[abi:cxx11]()'

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x838): undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x917): undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x9fe): undefined reference to `geos::geom::Envelope::getMaxY() const'

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0xa09): undefined reference to `geos::geom::Envelope::getMaxX() const'

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0xa14): undefined reference to `geos::geom::Envelope::getMinY() const'

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0xa1f): undefined reference to `geos::geom::Envelope::getMinX() const'

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0xddd): undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x10e8): undefined reference to `geos::io::WKTWriter::write[abi:cxx11](geos::geom::Geometry const*)'

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x1202): undefined reference to `geos::io::WKTReader::WKTReader(geos::geom::GeometryFactory const*)'

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x1257): undefined reference to `geos::io::WKTReader::read(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x128a): undefined reference to `geos::io::WKTReader::~WKTReader()'

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x1413): undefined reference to `geos::io::WKTReader::~WKTReader()'

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x17e8): undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x183d): undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x191c): undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x197c): undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'

CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x34cd): undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'

collect2.exe: error: ld returned 1 exit status

make[2]: *** [ossim/src/CMakeFiles/ossim.dir/build.make:24248: bin/libossim.dll] Error 1

make[2]: se sale del directorio '/usr/local/src/ossim-dev/build'

make[1]: *** [CMakeFiles/Makefile2:142: ossim/src/CMakeFiles/ossim.dir/all] Error 2

make[1]: se sale del directorio '/usr/local/src/ossim-dev/build'

make: *** [Makefile:131: all] Error 2

 

julio.morales@GEOIGB042395D MINGW32 /usr/local/src/ossim-dev/build

 

 

When I try with the static library (BUILD_SHARED_LIBS=FALSE), the library is created but when it tries to compile the first test program, I have the next error messages:

 

 

[ 85%] Built target ossim

make -f ossim/test/src/CMakeFiles/ossim-test.dir/build.make ossim/test/src/CMakeFiles/ossim-test.dir/depend

make[2]: se entra en el directorio '/usr/local/src/ossim-dev/build'

/D/programs/msys64/mingw32/bin/cmake.exe -E cmake_depends "MSYS Makefiles" /D/programs/msys64/usr/local/src/ossim-dev/ossim/cmake /D/programs/msys64/usr/local/src/ossim-dev/ossim/test/src /D/programs/msys64/usr/local/src/ossim-dev/build /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/test/src /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/test/src/CMakeFiles/ossim-test.dir/DependInfo.cmake --color=

Scanning dependencies of target ossim-test

make[2]: se sale del directorio '/usr/local/src/ossim-dev/build'

make -f ossim/test/src/CMakeFiles/ossim-test.dir/build.make ossim/test/src/CMakeFiles/ossim-test.dir/build

make[2]: se entra en el directorio '/usr/local/src/ossim-dev/build'

[ 85%] Building CXX object ossim/test/src/CMakeFiles/ossim-test.dir/ossim-test.cpp.obj

cd /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/test/src && /D/programs/msys64/mingw32/bin/g++.exe    @CMakeFiles/ossim-test.dir/includes_CXX.rsp -O3 -DNDEBUG   -o CMakeFiles/ossim-test.dir/ossim-test.cpp.obj -c /D/programs/msys64/usr/local/src/ossim-dev/ossim/test/src/ossim-test.cpp

[ 85%] Linking CXX executable ../../../bin/ossim-test.exe

cd /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/test/src && /D/programs/msys64/mingw32/bin/cmake.exe -E remove -f CMakeFiles/ossim-test.dir/objects.a

cd /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/test/src && /D/programs/msys64/mingw32/bin/ar.exe cr CMakeFiles/ossim-test.dir/objects.a @CMakeFiles/ossim-test.dir/objects1.rsp

cd /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/test/src && /D/programs/msys64/mingw32/bin/g++.exe    -O3 -DNDEBUG   -Wl,--whole-archive CMakeFiles/ossim-test.dir/objects.a -Wl,--no-whole-archive  -o ../../../bin/ossim-test.exe -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles/ossim-test.dir/linklibs.rsp

CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0x22): undefined reference to `_imp___ZN9ossimInit8instanceEv'

CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0x31): undefined reference to `_imp___ZN9ossimInit10initializeERiPPc'

CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0x61): undefined reference to `_imp___ZN5ossim8nanValueE'

CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0xa2): undefined reference to `_imp___ZN23ossimEnvironmentUtility8instanceEv'

CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0xb0): undefined reference to `_imp___ZNK23ossimEnvironmentUtility20getCurrentWorkingDirEv'

CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0xc1): undefined reference to `_imp___ZNK23ossimEnvironmentUtility28getInstalledOssimPreferencesEv'

CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0xd2): undefined reference to `_imp___ZNK23ossimEnvironmentUtility26getInstalledOssimPluginDirEv'

CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0xe3): undefined reference to `_imp___ZNK23ossimEnvironmentUtility27getInstalledOssimSupportDirEv'

CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0xf7): undefined reference to `_imp___ZNK23ossimEnvironmentUtility21getUserOssimPluginDirEv'

CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0x10b): undefined reference to `_imp___ZNK23ossimEnvironmentUtility23getUserOssimPreferencesEv'

CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0x11f): undefined reference to `_imp___ZNK23ossimEnvironmentUtility22getUserOssimSupportDirEv'

CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0x133): undefined reference to `_imp___ZNK23ossimEnvironmentUtility11getUserNameEv'

CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0x147): undefined reference to `_imp___ZNK23ossimEnvironmentUtility10getUserDirEv'

collect2.exe: error: ld returned 1 exit status

make[2]: *** [ossim/test/src/CMakeFiles/ossim-test.dir/build.make:112: bin/ossim-test.exe] Error 1

make[2]: se sale del directorio '/usr/local/src/ossim-dev/build'

make[1]: *** [CMakeFiles/Makefile2:230: ossim/test/src/CMakeFiles/ossim-test.dir/all] Error 2

make[1]: se sale del directorio '/usr/local/src/ossim-dev/build'

make: *** [Makefile:131: all] Error 2

 

julio.morales@GEOIGB042395D MINGW32 /usr/local/src/ossim-dev/build

 

I don’t know where the problem could be, and as I’m not a C/C++ programmer, it is really hard to know what to do or where to start to debug te problem. The same happens in x86_64 environment. I’m using third party binaries taken from here : OTB xdk (dependencies) http://wiki.orfeo-toolbox.org/index.php/OTB_development_on_Windows . Should I compile all dependencies by myself? Or take the ones available on MSYS/Mingw (there may be some missing) ?

 

 

I’ve attached my CMakeCache.txt in case of being needed.

 

 

 

Any help or hint would be appreciated.

 

Thanks!

 

Best regards

 

 

 

 

 

 

 

 

 

 

 

 

 

Biól. Julio Morales Mejía
Departamento de Asesorías y Aplicaciones en Datos de Percepción Remota,

Subdirección de Estaciones Terrenas

Dirección de Datos de Integración de Percepción Remota

D.G. Adjunta de Información Básica
Dirección General de Geografía y Medio Ambiente
Tel.(449) 910 5300 ext. 4249
Aguascalientes, Ags.

 

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer

CMakeCache.txt (32K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: %compile/link problem OSSIM windows MSYS2

Andyjo
It looks like you might have a version of geos (i seem to remember some discussion about geos versions a while back) that isn’t supported, or the linker can’t find what it expects in the geos lib you’re pointing at.
I’m not sure about the timezone reference, that’s just part of the standard runtime in windows, but running it under mingw might be different.

-Andy
On Oct 7, 2016, at 4:33 PM, MORALES MEJIA JULIO <[hidden email]> wrote:

Hi!
 
I hope someone could help me on this.
 
I’ve been trying to compile OSSIM in Windows using MSYS/MIngw, but I’ve got some troubles, so I could try the Martina’s plugin for DSM creation.
When I try to compile the shared library I get this error:
 
[ 85%] Linking CXX shared library ../../bin/libossim.dll
cd /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/src && /D/programs/msys64/mingw32/bin/cmake.exe -E remove -f CMakeFiles/ossim.dir/objects.a
cd /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/src && /D/programs/msys64/mingw32/bin/ar.exe cr CMakeFiles/ossim.dir/objects.a @CMakeFiles/ossim.dir/objects1.rsp
cd /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/src && /D/programs/msys64/mingw32/bin/g++.exe     -O3 -DNDEBUG  -shared -o ../../bin/libossim.dll -Wl,--out-implib,../../lib/libossim.dll.a -Wl,--major-image-version,0,--minor-image-version,0 -Wl,--whole-archive CMakeFiles/ossim.dir/objects.a -Wl,--no-whole-archive @CMakeFiles/ossim.dir/linklibs.rsp
CMakeFiles/ossim.dir/objects.a(ossimDate.cpp.obj):ossimDate.cpp:(.text+0x6107): undefined reference to `_imp___get_timezone'
CMakeFiles/ossim.dir/objects.a(ossimDate.cpp.obj):ossimDate.cpp:(.text+0x61d4): undefined reference to `_imp___get_timezone'
CMakeFiles/ossim.dir/objects.a(ossimDate.cpp.obj):ossimDate.cpp:(.text+0x62b8): undefined reference to `_imp___get_timezone'
CMakeFiles/ossim.dir/objects.a(ossimDate.cpp.obj):ossimDate.cpp:(.text+0x6398): undefined reference to `_imp___get_timezone'
CMakeFiles/ossim.dir/objects.a(ossimDate.cpp.obj):ossimDate.cpp:(.text+0x6474): undefined reference to `_imp___get_timezone'
CMakeFiles/ossim.dir/objects.a(ossimDate.cpp.obj):ossimDate.cpp:(.text+0x6534): more undefined references to `_imp___get_timezone' follow
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x688): undefined reference to `geos::operation::valid::TopologyValidationError::toString[abi:cxx11]()'
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x838): undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x917): undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x9fe): undefined reference to `geos::geom::Envelope::getMaxY() const'
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0xa09): undefined reference to `geos::geom::Envelope::getMaxX() const'
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0xa14): undefined reference to `geos::geom::Envelope::getMinY() const'
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0xa1f): undefined reference to `geos::geom::Envelope::getMinX() const'
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0xddd): undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x10e8): undefined reference to `geos::io::WKTWriter::write[abi:cxx11](geos::geom::Geometry const*)'
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x1202): undefined reference to `geos::io::WKTReader::WKTReader(geos::geom::GeometryFactory const*)'
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x1257): undefined reference to `geos::io::WKTReader::read(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x128a): undefined reference to `geos::io::WKTReader::~WKTReader()'
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x1413): undefined reference to `geos::io::WKTReader::~WKTReader()'
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x17e8): undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x183d): undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x191c): undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x197c): undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'
CMakeFiles/ossim.dir/objects.a(ossimPolyArea2d.cpp.obj):ossimPolyArea2d.cpp:(.text+0x34cd): undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [ossim/src/CMakeFiles/ossim.dir/build.make:24248: bin/libossim.dll] Error 1
make[2]: se sale del directorio '/usr/local/src/ossim-dev/build'
make[1]: *** [CMakeFiles/Makefile2:142: ossim/src/CMakeFiles/ossim.dir/all] Error 2
make[1]: se sale del directorio '/usr/local/src/ossim-dev/build'
make: *** [Makefile:131: all] Error 2
 
julio.morales@GEOIGB042395D MINGW32 /usr/local/src/ossim-dev/build
 
 
When I try with the static library (BUILD_SHARED_LIBS=FALSE), the library is created but when it tries to compile the first test program, I have the next error messages:
 
 
[ 85%] Built target ossim
make -f ossim/test/src/CMakeFiles/ossim-test.dir/build.make ossim/test/src/CMakeFiles/ossim-test.dir/depend
make[2]: se entra en el directorio '/usr/local/src/ossim-dev/build'
/D/programs/msys64/mingw32/bin/cmake.exe -E cmake_depends "MSYS Makefiles" /D/programs/msys64/usr/local/src/ossim-dev/ossim/cmake /D/programs/msys64/usr/local/src/ossim-dev/ossim/test/src /D/programs/msys64/usr/local/src/ossim-dev/build /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/test/src /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/test/src/CMakeFiles/ossim-test.dir/DependInfo.cmake --color=
Scanning dependencies of target ossim-test
make[2]: se sale del directorio '/usr/local/src/ossim-dev/build'
make -f ossim/test/src/CMakeFiles/ossim-test.dir/build.make ossim/test/src/CMakeFiles/ossim-test.dir/build
make[2]: se entra en el directorio '/usr/local/src/ossim-dev/build'
[ 85%] Building CXX object ossim/test/src/CMakeFiles/ossim-test.dir/ossim-test.cpp.obj
cd /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/test/src && /D/programs/msys64/mingw32/bin/g++.exe    @CMakeFiles/ossim-test.dir/includes_CXX.rsp -O3 -DNDEBUG   -o CMakeFiles/ossim-test.dir/ossim-test.cpp.obj -c /D/programs/msys64/usr/local/src/ossim-dev/ossim/test/src/ossim-test.cpp
[ 85%] Linking CXX executable ../../../bin/ossim-test.exe
cd /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/test/src && /D/programs/msys64/mingw32/bin/cmake.exe -E remove -f CMakeFiles/ossim-test.dir/objects.a
cd /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/test/src && /D/programs/msys64/mingw32/bin/ar.exe cr CMakeFiles/ossim-test.dir/objects.a @CMakeFiles/ossim-test.dir/objects1.rsp
cd /D/programs/msys64/usr/local/src/ossim-dev/build/ossim/test/src && /D/programs/msys64/mingw32/bin/g++.exe    -O3 -DNDEBUG   -Wl,--whole-archive CMakeFiles/ossim-test.dir/objects.a -Wl,--no-whole-archive  -o ../../../bin/ossim-test.exe -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles/ossim-test.dir/linklibs.rsp
CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0x22): undefined reference to `_imp___ZN9ossimInit8instanceEv'
CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0x31): undefined reference to `_imp___ZN9ossimInit10initializeERiPPc'
CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0x61): undefined reference to `_imp___ZN5ossim8nanValueE'
CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0xa2): undefined reference to `_imp___ZN23ossimEnvironmentUtility8instanceEv'
CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0xb0): undefined reference to `_imp___ZNK23ossimEnvironmentUtility20getCurrentWorkingDirEv'
CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0xc1): undefined reference to `_imp___ZNK23ossimEnvironmentUtility28getInstalledOssimPreferencesEv'
CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0xd2): undefined reference to `_imp___ZNK23ossimEnvironmentUtility26getInstalledOssimPluginDirEv'
CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0xe3): undefined reference to `_imp___ZNK23ossimEnvironmentUtility27getInstalledOssimSupportDirEv'
CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0xf7): undefined reference to `_imp___ZNK23ossimEnvironmentUtility21getUserOssimPluginDirEv'
CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0x10b): undefined reference to `_imp___ZNK23ossimEnvironmentUtility23getUserOssimPreferencesEv'
CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0x11f): undefined reference to `_imp___ZNK23ossimEnvironmentUtility22getUserOssimSupportDirEv'
CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0x133): undefined reference to `_imp___ZNK23ossimEnvironmentUtility11getUserNameEv'
CMakeFiles/ossim-test.dir/objects.a(ossim-test.cpp.obj):ossim-test.cpp:(.text.startup+0x147): undefined reference to `_imp___ZNK23ossimEnvironmentUtility10getUserDirEv'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [ossim/test/src/CMakeFiles/ossim-test.dir/build.make:112: bin/ossim-test.exe] Error 1
make[2]: se sale del directorio '/usr/local/src/ossim-dev/build'
make[1]: *** [CMakeFiles/Makefile2:230: ossim/test/src/CMakeFiles/ossim-test.dir/all] Error 2
make[1]: se sale del directorio '/usr/local/src/ossim-dev/build'
make: *** [Makefile:131: all] Error 2
 
julio.morales@GEOIGB042395D MINGW32 /usr/local/src/ossim-dev/build
 
I don’t know where the problem could be, and as I’m not a C/C++ programmer, it is really hard to know what to do or where to start to debug te problem. The same happens in x86_64 environment. I’m using third party binaries taken from here : OTB xdk (dependencies) http://wiki.orfeo-toolbox.org/index.php/OTB_development_on_Windows . Should I compile all dependencies by myself? Or take the ones available on MSYS/Mingw (there may be some missing) ?
 
 
I’ve attached my CMakeCache.txt in case of being needed.
 
 
 
Any help or hint would be appreciated.
 
Thanks!
 
Best regards
 
 
 
 
 
 
 
 
 
 
 
 
 
<image001.png>
Biól. Julio Morales Mejía
Departamento de Asesorías y Aplicaciones en Datos de Percepción Remota,
Subdirección de Estaciones Terrenas
Dirección de Datos de Integración de Percepción Remota
D.G. Adjunta de Información Básica
Dirección General de Geografía y Medio Ambiente
Tel.(449) 910 5300 ext. 4249
Aguascalientes, Ags.
<image002.png>
<image003.png>
<image004.jpg>
 
 
<CMakeCache.txt>------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! https://urldefense.proofpoint.com/v2/url?u=http-3A__sdm.link_slashdot&d=DQICAg&c=31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=7T-tcCZEv1UtWANbvWK5_xMS1HF3pvNdFIgqlwqJo6o&m=O-vd9VXV8vkcjKM9aDVySHXHCVh8EseISKuIjdUUUFQ&s=hJz7pRzDg8VEaI8pTLsG7qAxPulFUYpkIdOO4wFufak&e=_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_ossim-2Ddeveloper&d=DQICAg&c=31nHN1tvZeuWBT6LwDN4Ngk1qezfsYHyolgGeY2ZhlU&r=7T-tcCZEv1UtWANbvWK5_xMS1HF3pvNdFIgqlwqJo6o&m=O-vd9VXV8vkcjKM9aDVySHXHCVh8EseISKuIjdUUUFQ&s=QV8HcqI0rhB47fXaAtq_3yMdma0alGIGJkw0y4_UXsw&e=


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer

smime.p7s (4K) Download Attachment
Loading...