I am going to build microsip softphone from www.microsip.org, which is based on pjsip project.
The pjsip project files are downloaded and built successfully.
but when I build microsip source I get the following error :
cannot open file 'hid.lib'
I use VS2017 and this file is specified in linker dependencies.
I don't know what is this lib and how can I get the file or compile any other source to get it.
if anybody has experience working with microsip and it's dependencied please help.
1) Install "Microsoft Windows Driver Kit"
2) Project -> Linker -> General -> Additional Library Directories. Set location of hid.lib (for me it's at C:\WinDDK\7600.16385.1\lib\win7\i386)
Related
For a helping lib I use, I recently get:
Error:Unable to resolve dependency for ':app#debug/compileClasspath':
Failed to transform file 'mylib-release.aar' to match attributes
{artifactType=android-exploded-aar} using transform
ExtractAarTransform
and then on gradle console:
Could not resolve all files for configuration
':demo:debugCompileClasspath'.
Failed to transform file 'mylib-release.aar' to match attributes {artifactType=android-exploded-aar} using transform
ExtractAarTransform
java.io.FileNotFoundException: mylib-release.aar (Datei oder Verzeichnis nicht gefunden)
It was working last week, unfortunately I forgot what changed
In my case it was the missing .aar file (or files, depending on how many buildtypes you have), as #JBTPublic pointed out.
So how did I fix it? Well, you need to generate it by yourself. At least for me, Android Studio doesn't generate it by itself. I had imported an Android library onto my project, and it was working perfectly well in a Linux environment. But I forgot that I needed to generate the AAR file before running my Android app.
To generate the AAR file, if you have an Android Library as a dependency for your project, you need to:
Open the your-android-library/build.gradle
In the Android Studio menu, go to Build -> Make Module 'your-android-library'
Once the Make is done (you'll see a Build SUCCESSFUL message), then you are all set up to Run your Android app as you normally do.
Hint: Add this info into your Readme file, in order for you not to
forget once you change environment, like I did just last night before
going for a trip.
In my case this error was due to that .aar was missing so in your case check that your lib mylib-release.aar exists and is found in the debug compileClasspath.
Well, you need to generate .AAR file by yourself.
go to root project folder -> your proj -> build -> outputs -> aar -> delete folder or content
go to gradle tools window (usually top right corner of android studio) and get execute task build
your proj-lib-aar -> your proj -> Tasks -> build (double click)
I am building the app available at https://github.com/thibautd/android-serialport-api/tree/master/android-serialport-api/project using Android NDK.
What have I done until now:
Build the project using gradle version 'com.android.tools.build:gradle-experimental:0.7.0-alpha1'
I am building this on android-17 and running on Android device with 4.2. I have also tried android-19
Build goes through without any errors but at runtime I get the exception Cannot load library: soinfo_relocate: cannot locate symbol "tcgetattr"
I have tried several options to get this working but all of them fail
Options I have tried
Setting APP-PLATFORM like mentioned in Cannot locate symbol 'tcgetattr' referenced by "libcrypto.so"
Using $(PREBUILT_SHARED_LIBRARY) by including the .so file avialable in the same github location as mentioned in How can i Link prebuilt shared Library to Android NDK project?
Tried setting LOCAL_EXPORT_C_INCLUDES in both option 1) and 2) above as mentioned in the same post How can i Link prebuilt shared Library to Android NDK project?
Also tried option mentioned at Cannot load library: reloc_library[1285]: cannot locate 'rand'
Put all the required include files directly in the project under /jni and tried building the project.
My project compiles absolutely fine. When testing I have always deleted the contents in build folder and rebuilt the project. To make sure the .so files are indeed created properly.
In all the cases I end up in exactly the same error soinfo_relocate: cannot locate symbol "tcgetattr"
I think it is because of the fact that some of the includes like unistd.h are not correctly referenced in runtime but I am not able to figure out how to get this working.
Can anyone let me know how the build definition for a node.js application should look like? Also how to mention the mocha tests in the Automated tests?
First time when I tried to queue a build, I got an error saying:
Microsoft.NodejsTools.targets not found.
So I went and copied the NodejsTools folder with the .target and dll file in my build server. And I didn't see the error.
Now I get the below error:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets (132): Could not copy the file "obj\Debug\OstNodeJs.exe" because it was not found.
You need the node.js framework and the Visual Studio node.js Tools on you build server, too. You just copied the necessarily files and this may result in other problems.
For the executable copy problem you can try to add <Disable_CopyWebApplication>True</Disable_CopyWebApplication> in the project file. See here: Build on TFS wants to copy a executable from Node.js test project
I have downloaded the Dokan Library 0.6.0 (used to write a file system in user mode).
I'm using VS 2013 and have created a project to build the sample called mirror.c. It uses a LIB called dokan.lib. It compiles just fine but the linker gives an error saying
"unresolved external symbol __imp__DokanMain#8". I dumped the lib and __imp__DokanMain#8 does exist within dokan.lib.
Under Properties->Linker->Additional Library Directories, I added "c:\Program Files (x86)\Dokan\DokanLibrary" but that didn't help. Then I changed that to "c:\Program Files (x86)\Dokan\DokanLibrary\dokan.lib" but that also didn't help.
I have read everything at the dokan web site but nothing talks about building with Visual Studio.
Does anyone have any ideas?
Please move "dokan.lib" from Settings -> Linker ->General -> Additional Library Directories. This is meant to include only the paths to the libraries. You can leave the path to the library in tact in there (i.e, C:\Program Files (x86)\Dokan\DokanLibrary).
Place the "dokan.lib" in Settings->Linker->Input->Additional Dependencies.
I am a beginer in android.Now I am woking with an app that use native libraries.I need to know how to add a '.so' library file in my android project.Any one please help me.
after making your native c code and header file browse to the root directory of your project and run ndk-build command.That will generate the .so file and then place it inside your project/libs folder