Ask Your Question

eidole's profile - activity

2015-10-07 15:12:22 -0500 received badge  Teacher (source)
2015-09-13 19:50:23 -0500 asked a question Compile error for Objective-C++ program

I am programming on Mac OS X 10.10, using OpenCV 3.0.0. I'm trying to compile an objective-c++ test, and it fails with the following error:

/usr/local/include/opencv2/core/utility.hpp:729:10: Expected member name or ';' after declaration specifiers

When I look into the line of utility.hpp that gives the error, it says:

bool check() const;

The header abTest.h looks like:

#import <Foundation/Foundation.h>

#ifdef __cplusplus
#include <opencv2/opencv.hpp>
#endif

@interface abTest : NSObject

-(id)init;
-(void)testFunctionWithInt:(int*) value;

@end

and the abTest.mm

#import "abTest.h"

@implementation abTest

-(id)init {
    NSLog(@"Init called");
    return self;   
}

-(void)testFunctionWithInt:(int*)value {   
    NSLog(@"Test Function called with value %d", *value);    
}

What is causing this error? And how can I solve this?

Cheers, Eidole

2015-04-14 03:43:29 -0500 received badge  Self-Learner (source)
2015-04-14 03:43:29 -0500 received badge  Necromancer (source)
2015-04-14 02:11:14 -0500 received badge  Editor (source)
2015-04-14 02:11:04 -0500 received badge  Scholar (source)
2015-04-14 01:46:10 -0500 answered a question Link error with openCV in Xcode 6.1 (from cocoapods)

Yes and no, I compiled opencv myself from source (3.0.0 beta). The library has been installed in /usr/local/ and works now. The cocoa pods version seems broken.

2015-02-26 09:10:29 -0500 received badge  Student (source)
2015-02-03 10:32:13 -0500 asked a question Link error with openCV in Xcode 6.1 (from cocoapods)

Hi there-

I can't compile an empty project with openCV using CocoaPods. I've installed openCV 2.4.10 with CocoaPods, then try to build and run the empty project. But I get link errors:

(null): "_jpeg_free_large", referenced from:
(null): _free_pool in opencv2(jmemmgr.o)
(null): "_jpeg_free_small", referenced from:
(null): _free_pool in opencv2(jmemmgr.o)
(null): _self_destruct in opencv2(jmemmgr.o)
(null): "_jpeg_get_large", referenced from:
(null): _alloc_large in opencv2(jmemmgr.o)
(null): _alloc_barray in opencv2(jmemmgr.o)
(null): "_jpeg_get_small", referenced from:
(null): _jinit_memory_mgr in opencv2(jmemmgr.o)
(null): _alloc_small in opencv2(jmemmgr.o)
(null): "_jpeg_mem_available", referenced from:
(null): _realize_virt_arrays in opencv2(jmemmgr.o)
(null): "_jpeg_mem_init", referenced from:
(null): _jinit_memory_mgr in opencv2(jmemmgr.o)
(null): "_jpeg_mem_term", referenced from:
(null): _jinit_memory_mgr in opencv2(jmemmgr.o)
(null): _self_destruct in opencv2(jmemmgr.o)
(null): "_jpeg_open_backing_store", referenced from:
(null): _realize_virt_arrays in opencv2(jmemmgr.o)
(null): Symbol(s) not found for architecture x86_64
(null): Linker command failed with exit code 1 (use -v to see invocation)

Does anybody know what to do? Which library is missing?

Cheers,