Giter Club home page Giter Club logo

baresip-win32's Introduction

baresip-win32

Baresip cross-compiled for Windows using MinGW-w64

Tools to install

You need to install the MinGW-w64 compiler and Wine:

Debian/Ubuntu:

sudo apt-get install mingw-w64 wine

macOS using Homebrew:

brew install mingw-w64 wine

Copy the source code

$ git clone https://github.com/baresip/re
$ git clone https://github.com/baresip/rem
$ git clone https://github.com/baresip/retest
$ git clone https://github.com/baresip/baresip
$ wget https://www.openssl.org/source/openssl-1.1.1m.tar.gz
$ tar -xf openssl-1.1.1m.tar.gz
$ mv openssl-1.1.1m openssl

Cross-Compile the projects

You must build openssl first:

$ make openssl
$ make

This will cross compile all the projects for Windows and execute the testcode using Wine.

If it works you can fiddle with the build flags for fun :)

baresip-win32's People

Contributors

alexander-elgin avatar alfredh avatar sreimers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

baresip-win32's Issues

64-bit compilation failed

mingw32 is deprecated thus I use mingw-w64.
To compile a 32-bit app I set TUPLE to i686-w64-mingw32. It is compiled successfully.
To compile a 32-bit app I set TUPLE to x86_64-w64-mingw32. The compilation process fails with the following error:

/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /home/alex/projects/baresip-win32/openssl/libssl.a when searching for -lssl
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lssl
/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /home/alex/projects/baresip-win32/openssl/libcrypto.a when searching for -lcrypto
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
Makefile:62: recipe for target 'retest.exe' failed
make[1]: *** [retest.exe] Error 1
make[1]: Leaving directory '/home/alex/projects/baresip-win32/retest'
Makefile:120: recipe for target 'retest' failed
make: *** [retest] Error 2

Please, can you suggest how to fix it?

Openssl could not find Error - Cross-compiling

The libraries libcrypto.a & libssl.a generated in openssl folder using 'make openssl' command
Got below errors in 'make' command

Error Log :

j@LAP3U:~/baresip_win32/baresip-win32$ make
cmake
-S re
-B re/build
-DCMAKE_TOOLCHAIN_FILE=/home/j/baresip_win32/baresip-win32/cmake/mingw-w64-x86_64.cmake
-DOPENSSL_ROOT_DIR=/home/j/baresip_win32/baresip-win32/openssl
-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found version "1.1.1m")
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIB_EAY (ADVANCED)
linked by target "re" in directory /home/j/baresip_win32/baresip-win32/re
linked by target "re-shared" in directory /home/j/baresip_win32/baresip-win32/re
SSL_EAY (ADVANCED)
linked by target "re" in directory /home/j/baresip_win32/baresip-win32/re
linked by target "re-shared" in directory /home/j/baresip_win32/baresip-win32/re

-- Configuring incomplete, errors occurred!
See also "/home/j/baresip_win32/baresip-win32/re/build/CMakeFiles/CMakeOutput.log".
See also "/home/j/baresip_win32/baresip-win32/re/build/CMakeFiles/CMakeError.log".
make: *** [Makefile:104: libre.a] Error 1

JBUF_ADAPTIVE is undefined

I previously compiled baresip with vs 2015 .. .unfortunately my disk crashed and had to reinstall everything again!

I have tried recompiling, and after having to add all sorts of SDK's, retargeting solution,etc.. now I get this error:
"JBUF_ADAPTIVE is undefined"

any advise would be truly appreciated!

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.