Code Monkey home page Code Monkey logo

Comments (2)

SuslikV avatar SuslikV commented on June 24, 2024

So, nobody knows? What I found is that in CMakeLists.txt next strings

#### Enable C++11 (for JUCE)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

explicitly adds the "-std=c++11" key into the g++ output command line and thus the -std=gnu++11 (required under MinGW Windows) when specified, was added as two keys: -std=gnu++11 -std=c++11 instead of replace the second one. And definitely, there is no atoll in stdlib when -DCMAKE_CXX_FLAGS="-std=c++11" is used. There is only atol. So, when I removed the mentioned strings from CMakeLists.txt the -std=gnu++11 was automatically added and compilation continues. Edit: it is just enough to comment out the - set(CMAKE_CXX_EXTENSIONS OFF)

Now, I have number of link errors (see below) to zlib.

...
undefined reference to `inflateInit2_'
...
collect2.exe: error: ld returned 1 exit status

Any clues?

I simply tried to follow the wiki instructions to build under the Windows (MinGW) https://github.com/OpenShot/libopenshot/wiki/Windows-Build-Instructions

from libopenshot-audio.

SuslikV avatar SuslikV commented on June 24, 2024

OK. I solved it by renaming static libs C:\msys64\mingw64\lib\libz.dll.a nofile.dll.a and C:\msys64\mingw64\lib\libz.a , thus cmake finds C:/MinGW/bin/zlib1.dll instead.

Edit: the log with all mentioned changes in code:
https://ci.appveyor.com/project/SuslikV/libopenshot-audio/builds/24157962

Edit2: I wrongly used old MinGW 32 from the CI environment, so messed up with the compile and "bitness". By adding C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\bin to path - the problem with the zlib linking was solved.

Edit3: even not by adding, just by removing the path to MinGW 32 that I mistakenly added earlier.

from libopenshot-audio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.