Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do not compile dll files
06-05-2015, 02:36 PM
Post: #1
How do not compile dll files
I've juest started with ohNet and I'm little newbie

I'd tried compile ohNet on Mac OS

I typed:
make all prefix=~/libs/ohNet iOs-arm64=1 platform=iOS iOS-arm7=1

however compile process crush when compiler try to build dll files which I don't want to compile (I only need static libs in C++).

Is there any flag which dissable build for dll files?

Thanks in advance
Find all posts by this user
07-05-2015, 01:47 PM
Post: #2
RE: How do not compile dll files
Hi SiMet, and welcome to the forum.

Using the all target when invoking make will cause all code relevant to the target platform to be compiled (this includes dll files in your case).

Given that you say you only require static libs from native code, I would recommend using the ohNet and TestsNative targets:

Code:
make ohNet TestsNative prefix=~/libs/ohNet iOs-arm64=1

This will build:
  • libohNet.a
  • libohNetCore.a
  • libohNetDevices.a
  • libohNetProxies.a
  • the test framework and the various stand-alone test executables

As an aside, you list both iOs-arm64=1 and iOS-arm7=1 (note: this should be iOs-armv7=1) in your arguments to make. ohNet can only be compiled for one platform at a time, so only one of the above arguments can be used, otherwise one will override the other.

It is left up to users of ohNet to combine 64-bit ARMv8 binaries with 32-bit ARMv7 binaries.
Find all posts by this user
08-05-2015, 09:12 AM
Post: #3
RE: How do not compile dll files
Thanks you for your response greggh.
When I compile without TestsNative target everything compiles

However compiling TestsNative fails with:
Code:
make o: No such file or directory
make: [Build/Obj/iOS-armv7/Release/TestShell.elf] Error 1 (ignored)

and lots of other .elf files above
Find all posts by this user
08-05-2015, 02:56 PM
Post: #4
RE: How do not compile dll files
Thank you for pointing that out. I overlooked the fact that the stand-alone tests aren't suitable for a platform such as iOs.

As you identified, the appropriate fix is to omit the TestsNative target when running make, which will just avoid building the tests.
Find all posts by this user


Forum Jump: