igorski / MWEngine

Audio engine and DSP library for Android, written in C++ providing low latency performance within a musical context, while providing a Java/Kotlin API. Supports both OpenSL and AAudio.
MIT License
259 stars 45 forks source link

Getting this Error ERROR: executing external native build for cmake #110

Closed rajaroni closed 4 years ago

rajaroni commented 4 years ago

ERROR: executing external native build for cmake D:\MWEngine-master\src\main\cpp\CMakeLists.txt i am getting this error while building this project please guide me about this

igorski commented 4 years ago

Do you have a stack trace / line number of where the build fails ? What is the build environment you are using ? When using Android Studio you should have most toolchains already available, though note you will have to install the Android NDK separately (can be done from within AS). Note that SWIG is required and must installed separately and be in your global path.

rajaroni commented 4 years ago

after setting swig now i am getting this error

unable to resolve nl.igorski.mwengine.core.*

as these packages are not import successfully and my java package is vanish from src folder in project console

On Fri, Feb 28, 2020 at 11:51 PM Igor Zinken notifications@github.com wrote:

Do you have a stack trace / line number of where the build fails ? What is the build environment you are using ? When using Android Studio you should have most toolchains already available, though note you will have to install the Android NDK separately (can be done from within AS). Note that SWIG is required and must installed separately and be in your global path https://github.com/igorski/MWEngine#development-setup.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/igorski/MWEngine/issues/110?email_source=notifications&email_token=ADRXK4W4MWQ657SM3HCJUMLRFFMKFA5CNFSM4K5NVC42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENJXNMI#issuecomment-592672433, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRXK4WKPI2H7FTXYBNCYITRFFMKFANCNFSM4K5NVC4Q .

igorski commented 4 years ago

By default those classes should not be in the repository as they represent the Java wrappers (created through SWIG) to interact with the native layer code.

Have you managed to successfully complete a build ? Running the following Gradle target:

gradle externalNativeBuildRelease

should compile the native layer code. Can you verify whether this step has completed successfully and afterwards that the folder /src/main/java/nl/igorski/mwengine/core is generated and contains .java files ?

If you are using Android Studio there is a known issue that it will not recognize these files, closing and reopening the project should be enough (on subsequent builds this will not be an issue).

rajaroni commented 4 years ago

As i already done above step but core files are not generated

On Tue, Mar 3, 2020, 10:56 PM Igor Zinken notifications@github.com wrote:

By default those classes should not be in the repository as they represent the Java wrappers (created through SWIG) to interact with the native layer code.

Have you managed to successfully complete a build ? Running the following Gradle target:

gradle externalNativeBuildRelease

should compile the native layer code. Can you verify whether this step has completed successfully and afterwards that the folder /src/main/java/nl/igorski/mwengine/core is generated and contains .java files ?

If you are using Android Studio there is a known issue that it will not recognize these files, closing and reopening the project should be enough (on subsequent builds this will not be an issue).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/igorski/MWEngine/issues/110?email_source=notifications&email_token=ADRXK4TJZA72VDG2IK7V6VTRFVAGDA5CNFSM4K5NVC42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENUP67A#issuecomment-594083708, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRXK4TYRVESOI6SUIDDZWDRFVAGDANCNFSM4K5NVC4Q .

rajaroni commented 4 years ago

As i have seen core package in android window but not showing in project window i switch project to android window but still no success

On Tue, Mar 3, 2020, 10:58 PM raja haroon rajaharon778@gmail.com wrote:

As i already done above step but core files are not generated

On Tue, Mar 3, 2020, 10:56 PM Igor Zinken notifications@github.com wrote:

By default those classes should not be in the repository as they represent the Java wrappers (created through SWIG) to interact with the native layer code.

Have you managed to successfully complete a build ? Running the following Gradle target:

gradle externalNativeBuildRelease

should compile the native layer code. Can you verify whether this step has completed successfully and afterwards that the folder /src/main/java/nl/igorski/mwengine/core is generated and contains .java files ?

If you are using Android Studio there is a known issue that it will not recognize these files, closing and reopening the project should be enough (on subsequent builds this will not be an issue).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/igorski/MWEngine/issues/110?email_source=notifications&email_token=ADRXK4TJZA72VDG2IK7V6VTRFVAGDA5CNFSM4K5NVC42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENUP67A#issuecomment-594083708, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRXK4TYRVESOI6SUIDDZWDRFVAGDANCNFSM4K5NVC4Q .

rajaroni commented 4 years ago

Yes src/main/java/nl/igorski/mwengine/core is created but only in android window not available in Project window as unable to import *src/main/java/nl/igorski/mwengine/core.**

On Wed, Mar 4, 2020, 10:08 AM raja haroon rajaharon778@gmail.com wrote:

As i have seen core package in android window but not showing in project window i switch project to android window but still no success

On Tue, Mar 3, 2020, 10:58 PM raja haroon rajaharon778@gmail.com wrote:

As i already done above step but core files are not generated

On Tue, Mar 3, 2020, 10:56 PM Igor Zinken notifications@github.com wrote:

By default those classes should not be in the repository as they represent the Java wrappers (created through SWIG) to interact with the native layer code.

Have you managed to successfully complete a build ? Running the following Gradle target:

gradle externalNativeBuildRelease

should compile the native layer code. Can you verify whether this step has completed successfully and afterwards that the folder /src/main/java/nl/igorski/mwengine/core is generated and contains .java files ?

If you are using Android Studio there is a known issue that it will not recognize these files, closing and reopening the project should be enough (on subsequent builds this will not be an issue).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/igorski/MWEngine/issues/110?email_source=notifications&email_token=ADRXK4TJZA72VDG2IK7V6VTRFVAGDA5CNFSM4K5NVC42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENUP67A#issuecomment-594083708, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRXK4TYRVESOI6SUIDDZWDRFVAGDANCNFSM4K5NVC4Q .

igorski commented 4 years ago

What is the exact OS, NDK and SWIG versions you are using ?

rajaroni commented 4 years ago

NDK version is 21.0.6113669 SWIG is 4.0.1 OS Windows 7 Android Studio 3.4.1