[osg-users] [build] Building OpenSceneGraph Windows
Hi, this is my first post here and I have already searched in this Forum and on google but I did not get the answer which is handling my problem. So I have read a lot about OSG in the internet and no I want to give it a try. I have downloaded OSG 3.4.1 from the official homepage. Then I unzipped it and put it to a convinient place and had a look into it. I found the sourcecode and some makefiles in the folder. >From my experiences using Ubuntu and other Unix distibutions I know how easy >this normally is, just call make and a big batch is being executed and voila, >all the .so and .a files are here and everybody is happy. But now I am on windows. Windows 10 to be honest. I am using Code::Blocks as IDE and MinGW compiler. Downloaded with MinGW_get. So it is not that comes with Code::Blocks. Also I downloaded CMake for windows with the Gui. Then I started the CMake gui and on the first glance it all looked very easy. I entered the path of OSG as source and the same path as destnation, clicked on configure, chose MinGW as compiler, clicked ok. Aaaand then. Like 20 messageboxes are popping up in seria telling me that dll files are missing libisl-15.dll, libmingwex-0.dll, libiconv-2.dll, libgmp-10.dll, and much more. And naturally CMake finishes wihtout having done anything in the end. It is this messagebox wich comes when you want to try to sart a program the the dll is missing. But the funny thing is, when I look in the MinGW\bin folder, all the dlls are there. It is also the first time I am using CMake in windows, so I dont have any experience here. Do you know this issue, is there a solution? Thank you all for your support in advance. Merry Christmas Cheers, Stefan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72635#72635 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] Building OpenSceneGraph Windows
Hi, all. Sorry for this very long time to reply. The %PATH% Variables were the solution of my problem. OpenSceneGraph is just building at the moment with MSYS. Thank you for this Christian Schulte. Also the tutorial of kornerr was helpful for my understanding. I am very happy that OSG is building at the moment. It takes quite a while but so ;). But now I have a new question. I got this messages in my log file. Should I be concerned about those and what exactly do they mean? Espacially with the ZLIB missing, JPEG missing, PNG missing Thank you again for your support. I am really happy. Thank you! Cheers, Stefan Here comes the Log: CMake Deprecation Warning at CMakeLists.txt:36 (cmake_policy): The OLD behavior for policy CMP0008 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. CMake Deprecation Warning at CMakeLists.txt:43 (cmake_policy): The OLD behavior for policy CMP0020 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. The C compiler identification is GNU 6.3.0 The CXX compiler identification is GNU 6.3.0 Check for working C compiler: C:/MinGW/bin/gcc.exe Check for working C compiler: C:/MinGW/bin/gcc.exe -- works Detecting C compiler ABI info Detecting C compiler ABI info - done Detecting C compile features Detecting C compile features - done Check for working CXX compiler: C:/MinGW/bin/g++.exe Check for working CXX compiler: C:/MinGW/bin/g++.exe -- works Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done Detecting CXX compile features Detecting CXX compile features - done Looking for pthread.h Looking for pthread.h - not found Found Threads: TRUE Found OpenGL: opengl32 Performing Test GL_HEADER_HAS_GLINT64 Performing Test GL_HEADER_HAS_GLINT64 - Failed Performing Test GL_HEADER_HAS_GLUINT64 Performing Test GL_HEADER_HAS_GLUINT64 - Failed 32 bit architecture detected Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS) Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR JPEG_LIBRARIES) Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR) Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR) Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR) Could NOT find GDAL (missing: GDAL_LIBRARY GDAL_INCLUDE_DIR) Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) Could NOT find GStreamer (missing: GSTREAMER_INCLUDE_DIRS GSTREAMER_LIBRARIES GSTREAMER_VERSION GSTREAMER_BASE_INCLUDE_DIRS GSTREAMER_BASE_LIBRARIES GSTREAMER_APP_INCLUDE_DIRS GSTREAMER_APP_LIBRARIES GSTREAMER_PBUTILS_INCLUDE_DIRS GSTREAMER_PBUTILS_LIBRARIES) Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR) Could NOT find SDL (missing: SDL_LIBRARY SDL_INCLUDE_DIR) Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) Found unsuitable Qt version "" from NOTFOUND Could NOT find Qt3 (missing: QT_QT_LIBRARY QT_INCLUDE_DIR QT_MOC_EXECUTABLE) Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR) Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR) Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS - Success Performing Test _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS Performing Test _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS - Failed Performing Test _OPENTHREADS_ATOMIC_USE_SUN Performing Test _OPENTHREADS_ATOMIC_USE_SUN - Failed Performing Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED Performing Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED - Failed Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC - Failed Configuring done Generating done ... -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=74581#74581 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [build] Building with MinGW on Windows 10
Hi, it is me again :) I did not work with OSG for a while, but today I decided to continue on my project and downloaded the lates OSG 3.6.3. The configuration of the make files worked very well, but then when I write mingw32-make following error occurs at 15%. Sadly my experience with such things is very limited. I hope somebody can help me here. [ 14%] Building CXX object src/osgDB/CMakeFiles/osgDB.dir/FileUtils.cpp.obj D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp: In function 'bool osgDB::makeDirectory(const string&)': D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp:161:19: error: aggregate 'osgDB::makeDirectory(const string&)::stat64 stbuf' has incomplete type and cannot be defined struct stat64 stbuf; ^ D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp:165:38: error: invalid use of incomplete type 'struct osgDB::makeDirectory(const string&)::stat64' if( stat64( path.c_str(), ) == 0 ) ^ D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp:161:12: note: forward declaration of 'struct osgDB::makeDirectory(const string&)::stat64' struct stat64 stbuf; ^~ D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp:186:41: error: invalid use of incomplete type 'struct osgDB::makeDirectory(const string&)::stat64' if( stat64( dir.c_str(), ) < 0 ) ^ D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp:161:12: note: forward declaration of 'struct osgDB::makeDirectory(const string&)::stat64' struct stat64 stbuf; ^~ D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp: In function 'osgDB::FileType osgDB::fileType(const string&)': D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp:311:19: error: aggregate 'osgDB::fileType(const string&)::stat64 fileStat' has incomplete type and cannot be defined struct stat64 fileStat; ^~~~ D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp:315:44: error: invalid use of incomplete type 'struct osgDB::fileType(const string&)::stat64' if ( stat64(filename.c_str(), ) != 0 ) ^ D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp:311:12: note: forward declaration of 'struct osgDB::fileType(const string&)::stat64' struct stat64 fileStat; ^~ mingw32-make[3]: *** [src\osgDB\CMakeFiles\osgDB.dir\build.make:343: src/osgDB/CMakeFiles/osgDB.dir/FileUtils.cpp.obj] Error 1 mingw32-make[2]: *** [CMakeFiles\Makefile2:330: src/osgDB/CMakeFiles/osgDB.dir/all] Error 2 mingw32-make[1]: *** [Makefile:129: all] Error 2 ... Thank you! Cheers, Stefan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=76117#76117 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] Building with MinGW on Windows 10
Hi Alberto, Thank you for your reply, I tried it to get the latest verion from github, OpenSceneGraph-master it is called when I download it. But sadly, there is the same error, in the same file. osgDB::makeDirectory(const string&)::stat64. Can it be that the MinGW in Windows is outdated and doesnt know some conversions like this? MinGW I downloaded this installer from gitbhub and this took a while but installed the MinGW in C:\MinGW ... Thank you! Cheers, Stefan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=76132#76132 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] Building with MinGW on Windows 10
Hi, ... Thank you! Cheers, Stefan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=76136#76136 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org