bjornblissing / osg-3rdparty-cmake Goto Github PK
View Code? Open in Web Editor NEWCMake scripts for building OpenSceneGraph third party libraries.
License: The Unlicense
CMake scripts for building OpenSceneGraph third party libraries.
License: The Unlicense
Get linker errors when compiling against OpenSceneGraph:
jpegd.lib(jcmaster.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order
jpegd.lib(jdmarker.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order
jpegd.lib(jcapimin.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order
jpegd.lib(jdinput.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order
jpegd.lib(jdhuff.obj) : error LNK2019: unresolved external symbol _jpeg_natural_order referenced in function _decode_mcu_sub
jpegd.lib(jdmarker.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order7
jpegd.lib(jdinput.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order7
jpegd.lib(jcmaster.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order7
jpegd.lib(jdmarker.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order6
jpegd.lib(jdinput.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order6
jpegd.lib(jcmaster.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order6
jpegd.lib(jdmarker.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order5
jpegd.lib(jdinput.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order5
jpegd.lib(jcmaster.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order5
jpegd.lib(jdmarker.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order4
jpegd.lib(jdinput.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order4
jpegd.lib(jcmaster.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order4
jpegd.lib(jdmarker.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order3
jpegd.lib(jdinput.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order3
jpegd.lib(jcmaster.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order3
jpegd.lib(jdmarker.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order2
jpegd.lib(jdinput.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order2
jpegd.lib(jcmaster.obj) : error LNK2001: unresolved external symbol _jpeg_natural_order2
jpegd.lib(jdinput.obj) : error LNK2019: unresolved external symbol _jdiv_round_up referenced in function _jpeg_core_output_dimensions
jpegd.lib(jdmaster.obj) : error LNK2001: unresolved external symbol _jdiv_round_up
jpegd.lib(jcmaster.obj) : error LNK2001: unresolved external symbol _jdiv_round_up
jpegd.lib(jdcoefct.obj) : error LNK2019: unresolved external symbol _jround_up referenced in function _jinit_d_coef_controller
jpegd.lib(jdpostct.obj) : error LNK2001: unresolved external symbol _jround_up
jpegd.lib(jdsample.obj) : error LNK2001: unresolved external symbol _jround_up
jpegd.lib(jccoefct.obj) : error LNK2001: unresolved external symbol _jround_up
jpegd.lib(jdcoefct.obj) : error LNK2019: unresolved external symbol _jcopy_block_row referenced in function _decompress_smooth_data
jpegd.lib(jcsample.obj) : error LNK2001: unresolved external symbol _jcopy_sample_rows
jpegd.lib(jdsample.obj) : error LNK2019: unresolved external symbol _jcopy_sample_rows referenced in function _int_upsample
jpegd.lib(jdcolor.obj) : error LNK2001: unresolved external symbol _jcopy_sample_rows
jpegd.lib(jdmerge.obj) : error LNK2001: unresolved external symbol _jcopy_sample_rows
jpegd.lib(jcprepct.obj) : error LNK2001: unresolved external symbol _jcopy_sample_rows
D:\build_osgtemp\bin\osgPlugins-3.0.1\osgdb_jpegd.dll : fatal error LNK1120: 11 unresolved externals
Right, so umh.. there's absolutely no documentation. Where am I supposed to extract the sources for example libjpeg? I've tried extracting into osg-3rdparty-cmake/libjeg and various other locations and it just doesn't generate anything useful but just "empty" solution. Seems that LIBJPEG_SOURCE_DIR is never set in the top level CMakelist file. Where is that supposed to come from? If i comment out the check for that variable being set then it borks about not being able to find /jconfig.vc.
What a pain.
Thanks.
giflib library name should be giflib not libgif.
OpenScenGraph 3.4.0's CMakeModule will not search for libgif.
" FIND_DEPENDENCY(GIFLIB gif_lib.h "ungif;libungif;giflib" ${OSG_3RDPARTY_BIN} "D" "")"
It only searches 'ungif;libungif;giflib'.
Project name is correct but target lib is not right.
It should be
"""
PROJECT(giflib C)
SET(TARGET_LIB giflib)
Add support for libungif:
CMake find(GIFLIB) looks for library with one of the following names:
gif ungif libgif libungif
Add support for OpenSSL:
http://www.openssl.org/
Add support for libcurl:
There is an unescaped backslash in the regexp for the freetype cmake script which causes problems in some versions of CMake.
Make ZLIB able to compile with QT Creator and MinGW toolset.
Make LIBTIFF able to compile with QT Creator and MinGW toolset.
Make MINIZIP able to compile with QT Creator and MinGW toolset.
Missing some .c files in giflib CMake.
When compiling and linking Plugin gif. It will report some unresolved symbols.
I think the CMakeFiles should be
......................................................
......................................................
......................................................
......................................................
FILE(GLOB GIFLIB_SRCS
${GIFLIB_SOURCE_DIR}/lib/*.c
)
......................................................
......................................................
......................................................
......................................................
I am trying to build for VS 2015. I followed the readme , but when I hit configure I get all sorts of errors.
CMake Warning (dev) at freetype/CMakeLists.txt:200 (ADD_LIBRARY):
Syntax error in cmake code when parsing string
D:\VAOne2017\OSG\freetype-2.3.9/include/ft2build.h
Invalid escape sequence \V
Policy CMP0010 is not set: Bad variable reference syntax is an error. Run
"cmake --help-policy CMP0010" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
Hello @bjornblissing,
thanks for your work here.
I wonder if you can trigger an update, since the appveyor binaries expire every six months.
Thanks,
Claudio
Wrong target name for linker specified.
Wrong path of zlib specifed in script.
It seems that download url is unavailable,please fix it.Thank you,sir
AppVeyors new retention policy will start on June 7, 2018. This means that built artifacts will be removed from their repository after 6 months.
This will either force us to rebuild at least every 6 months to keep the pre-built download links valid.
The alternative is to find some other storing solution for the built artifacts.
Add support for MINIZIP:
http://github.com/nmoinvaz/minizip
When building ZLIB with ZLIB_USE_AMD64 being enabled, ZLIB build is unsuccessful due to undefined label names.
I have temporarily solved the issue by doing the following:
ELSEIF(ZLIB_USE_AMD64)
... // same as existing
// adds the following lines
LIST(APPEND ZLIB_SRCS
${ZLIB_SOURCE_DIR}/contrib/masmx64/inffas8664.c)
ENDIF()
Many thanks for your effort in this repository.
This is a question, not an issue really - why not use ExternalProjectAdd to download the sources automatically? (Don't have to use the build / install feature, it can be download only). Either from a zip or from source control with a stable branch name.
Add support for GLUT:
http://www.opengl.org/resources/libraries/glut/glut_downloads.php
The include path for freetype have changed from:
include/
to:
include/freetype
This currently breaks the build script.
The library must be named glut32.lib to be able to link correctly with the osgviewerGLUT Example.
Make GIFLIB able to compile with QT Creator and MinGW toolset.
Make GLUT to compile with QT Creator and MinGW toolset.
Add support for GDAL:
HAVE_SNPRINTF not set correctly cause compiling failed
libtiff 4.0.6
Make LIBPNG able to compile with QT Creator and MinGW toolset.
(1)
CMake Warning (dev) at CMakeLists.txt:44 (set):
implicitly converting 'Force change of path' to 'STRING' type.
This warning is for project developers. Use -Wno-dev to suppress it.
(2)
……
Looking for unistd.h - not found
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/adler32.c
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/compress.c
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/crc32.c
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/deflate.c
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/gzclose.c
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/gzlib.c
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/gzread.c
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/gzwrite.c
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/inflate.c
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/infback.c
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/inftrees.c
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/inffast.c
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/trees.c
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/uncompr.c
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/zutil.c
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/win32/zlib1.rc
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/crc32.h
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/deflate.h
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/gzguts.h
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/inffast.h
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/inffixed.h
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/inflate.h
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/inftrees.h
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/trees.h
Invalid character escape '\3'.
CMake Error at zlib/CMakeLists.txt:169 (add_library):
Syntax error in cmake code when parsing string
C:\3rdparty\zlib/zutil.h
Invalid character escape '\3'.
Configuring incomplete, errors occurred!
See also "D:/OSG/osg-3rdparty-cmake/build/CMakeFiles/CMakeOutput.log".
See also "D:/OSG/osg-3rdparty-cmake/build/CMakeFiles/CMakeError.log".
Hi,
I am trying to install osg for Ubuntu , while the Linux pre packaged dependencies is not accessed from the link. http://www.openscenegraph.org/index.php/download-section/dependencies
Is this repository work under Ubuntu?
Thank you.
Visual Studio 2017 comes with a new compiler version as well as a new toolset version. This toolset version should be reflected in the generated directory name:
Visual Studio Product Name | Product Version | Compiler Version | Toolset Version |
---|---|---|---|
Visual Studio 2017 | 15.0 | 1910 | V141 |
Hoping to use this code for FlightGear, where we need libCurl (not for OSG actually, but OSg can use it, so I figured I would mention it). I note there is a pending ticket for OpenSSL support, which presumably would be complement Curl support nicely.
Happy to look at this myself of course.
Add support for FontConfig: https://gitlab.freedesktop.org/fontconfig/fontconfig
The library gets odd name when compiling with MinGW.
Include errors when compiling against OpenSceneGraph. Check ft2build.h and config/ftheader.h. These should be a bit dirferent since their path to include libraries are wrong in our case.
Make LIBJPEG able to compile with QT Creator and MinGW toolset.
Due to a change in glut.h:
https://github.com/markkilgard/glut/blob/8cd96cb440f1f2fac3a154227937be39d06efa53/include/GL/glut.h#L154
It is no longer possible to link a static version of the library without changing runtime library in the OpenSceneGraph project.
Make FreeTypeable to compile with QT Creator and MinGW toolset.
Compiling with latest version of FreeType gives linker errors.
Add support for PROJ.4 - Cartographic Projections Library:
http://trac.osgeo.org/proj/
The CMakeLists.txt points to
SET(MINIZIP_SRCS
${MINIZIP_SOURCE_DIR}/crypt.c
that does not exist anymore in the current master branch.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.