openCV doesn't compile on Leopard - macos

I've been for the past few hours trying to figure out why openCV doesn't compile on leopard. I've been googling for references but all point to a dead google group.
So my question is quite simple: I've read INSTALL file, read all documentation i could find and still couldn't figure a solution for this.
The compile breaks here (this is generated through the Makefile):
rm -fr
.libs/libcxcore.lax/lib_cxcore.a mkdir
.libs/libcxcore.lax/lib_cxcore.a
Extracting /Users/fmsf/Projects/Motion
Tracking/Libs/opencv-1.1.0/cxcore/src/./.libs/lib_cxcore.a (cd .libs/libcxcore.lax/lib_cxcore.a
&& ar x /Users/fmsf/Projects/Motion
Tracking/Libs/opencv-1.1.0/cxcore/src/./.libs/lib_cxcore.a) ar: /Users/fmsf/Projects/Motion: No
such file or directory make[2]: ***
[libcxcore.la] Error 1 make[1]: ***
[check-recursive] Error 1 make: ***
[check-recursive] Error 1
Does anyone know what i could do to build it?
I'm using mac os 1.5 leopard, while reading i found the full port for Mac OS is still unfinished, but I don't really believe it's the missing of this library.

Based on the error, my suggestion is:
Try building it in a folder that doesn't have spaces in the name.
("/Users/fmsf/Projects/Motion Tracking/" vs "ar: /Users/fmsf/Projects/Motion: No such file or directory")

you may be trying 1.1. this is pretty new. consider trying 1.0. i have built 1.0 on windows and ubuntu.

Related

Where is the intel sgx psw and making intel sgx work with ubunut 18.04

I've tried following the intel instructions to install sgx, but it requires the sgx_linux_x64_psw_.bin file, which i cannot find anywhere. I've got the driver installer (sgx_linux_x64_driver_1.35.bin) and the sdk installer(sgx_linux_x64_sdk_2.10.100.2.bin), intel seems not to have a psw for linux? If so, how do i properly work with sgx? I tried simply executing the driver and sdk .bin files, but the sample code in the sdk would not compile (after make SGX_MODE=SIM), even after setting the sgxsdk directory to /opt/intel/sgxsdk. I'd get the following compile error:
/usr/bin/ld: warning: libsgx_uae_service_sim.so, needed by /opt/intel/sgxsdk/lib64/libsgx_urts_sim.so, not found (try using -rpath or -rpath-link)
/opt/intel/sgxsdk/lib64/libsgx_urts_sim.so: undefined reference to `get_launch_token'
collect2: error: ld returned 1 exit status
Makefile:235: recipe for target 'app' failed
make[1]: * [app] Error 1
make[1]: Leaving directory '/opt/intel/sgxsdk/SampleCode/SampleEnclave'
Makefile:180: recipe for target 'all' failed
make: * [all] Error 2
Any help with either issue would be much appreciated!
So at least in my case, it seems the issue was that I was A, using a virtual machine, which can ONLY run in simulation mode, so getting a fully working version of sgx is impossible. Secondly, I was using an outdated installation guide, for anyone else trying to use this stuff, make sure to get the installation guide from the intel download page along with the version you are downloading.
download source code from https://github.com/intel/linux-sgx, compile according to the instructions and then install psw.

Is Android's source code buildable on El Capitan with XCode 7.2?

I am trying to build AOSP's Lollipop-cts-dev branch on OSX El Capitan with MacOS SDK version 10.11. I faced different build issues with different settings. Currently I am getting below error:
system/core/include/log/log.h:35:20: error: stdarg.h: No such file or directory
make: *** [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libinput_intermediates/Keyboard.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libinput_intermediates/InputDevice.o] Error 1
make: *** [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libinput_intermediates/Input.o] Error 1
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
#### make failed to build some targets (03:58 (mm:ss)) ####
My guess is that it is because of incompatible version of OSX SDK for the AOSP code base. More specifically, as mentioned in the requirements
https://source.android.com/source/requirements.html
Android 5.x (Lollipop) requires Mac OS v10.8 (Mountain Lion).
Can someone confirm this? Is there no straightforward way to build Lollipop on El Capitan?
I'm not sure whether this helps, but you may find the following code in build/core/combo/HOST_darwin-x86.mk:
ifeq ($(mac_sdk_version),10.8)
host_toolchain_header := $(HOST_TOOLCHAIN_ROOT)/lib/gcc/i686-apple-darwin$(gcc_darwin_version)/4.2.1/include
HOST_GLOBAL_CFLAGS += -isystem $(host_toolchain_header)
endif
else
Modifying 10.8 to 10.11 may solve the problem.
Solution Source (written in Simplified Chinese):
http://www.liball.me/mac-10-10-build-android-4-4-4-for-nexus/

Cutecom installation fails on OSX Mavericks

I'm trying to install cutecom on OSX Mavericks but I'm getting some erros.
Here are the steps that I followed.
install qt through brew
brew install qt
update path on .bashprofile
export PATH=/usr/local/Cellar/qt/4.8.6/bin:$PATH
extract files of cutecom
compile source code of cutecom
$ mkdir build
$ cd build
$ cmake ..
$ make
And the output of make is:
[ 20%] Generating ui_cutecommdlg.h
/Users/kc/Downloads/cutecom-0.22.0/cutecommdlg.ui: Warning: The form file has external pixmaps or qPixmapFromMimeSource() set as a pixmap function. This requires Qt 3 support, which is disabled. The resulting code will not compile.
[ 40%] Generating moc_qcppdialogimpl.cxx Scanning dependencies of target cutecom
[ 60%] Building CXX object CMakeFiles/cutecom.dir/main.cpp.o
In file included from /Users/kc/Downloads/cutecom-0.22.0/main.cpp:21:
In file included from /Users/kc/Downloads/cutecom-0.22.0/qcppdialogimpl.h:22:
/Users/kc/Downloads/cutecom-0.22.0/build/ui_cutecommdlg.h:12:10: fatal error:
'Qt3Support/Q3MimeSourceFactory' file not found
#include <Qt3Support/Q3MimeSourceFactory>
^
1 error generated.
make[2]: *** [CMakeFiles/cutecom.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/cutecom.dir/all] Error 2
make: *** [all] Error 2
Any suggestions ?
Thank you very much for your time.
Kostas.
The Qt package you have is missing Qt3Support (on purpose). This component is necessarily for some Qt4 software that still uses deprecated features dating back to Qt3.
Based on the documentation I've been able to find online, you should be able to reinstall Qt4 with the extras you need using a command like this:
brew install --with-qt3support qt

library not found for -lQt5Concurrent

I'm a complete newb when it comes to compiled languages, I'm a web developer. But I need to build a C++ library.
I'm using OSX 10.9 with homebrew. The library's dependancies are Qt5, openCV, openBR... I managed to get that all running. Installed Qt5.2 beta from the official page, I built openCV and openBR myself from sources.
Now this final application throws this, when I try to make it:
ld: library not found for -lQt5Concurrent
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libfacedet.dylib] Error 1
make[1]: *** [CMakeFiles/facedet.dir/all] Error 2
make: *** [all] Error 2
What the hell is lQt5Concurrent? There's no such lib installed on my system. I tried to find it, the only files that have concurrent in their name are header files in Qt's directory
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrent_global.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentcompilertest.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentexception.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentfilter.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentfilterkernel.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentfunctionwrappers.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentiteratekernel.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentmap.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentmapkernel.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentmedian.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentreducekernel.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentrun.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentrunbase.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentstoredfunctioncall.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentthreadengine.h
/Users/ellmo/Qt5.2.0/5.2.0-beta1/clang_64/lib/QtConcurrent.framework/Versions/5/Headers/qtconcurrentversion.h
I have no idea how to get the proper Qt5 devlibs and where to link them.
The author of the application in question cannot help me, as he has no experience with OSX. He said he built this with no problem on Ubuntu.
I also don't think I can show you much of the code, as the application is proprietary.
Please help.
A suggestion from http://qt-project.org/forums/viewthread/22998
In your .pro file, add: LIBS += -lQt5Concurrent
There are a few other suggestions at that link as well, but I believe the one I mention is all I had to do.

Compiling Qt3D without Qt source code

I'm experiencing difficulties with Qt3D. I can't manage to compile it from source code. If possible, I would like to compile Qt3D without compiling Qt itself. Can it link against an already compiled Qt ?
OS: Linux Ubuntu 11.10 (oneiric) x86_64
Qt version: 4.7.4
make output:
cp: cannot create regular file /usr/include/qt4/Qt3D/qt3dglobal.h': No such file or directory
make[2]: *** [/usr/include/qt4/Qt3D/qt3dglobal.h] Error 1
make[1]: *** [sub-threed-make_default-ordered] Error 2
make: *** [sub-src-make_default-ordered] Error 2
global/qt3dglobal.h /usr/include/qt4/Qt3D/qt3dglobal.h
make[2]: Leaving directory/home/soroush/programs/programming/libraries/qt3d-1.0-src/src/threed'
make[1]: Leaving directory `/home/soroush/programs/programming/libraries/qt3d-1.0-src/src'
My solution was to create the /usr/include/qt4/Qt3D folder.
Just type this in a terminal window
sudo mkdir /usr/include/qt4/Qt3D
This fixed the problem for me.
Also you might need to type
sudo mkdir /usr/include/qt4/QtQuick3D
To create the QtQuick3D directory.
Make sure you have qt-devel (or similar) development package installed for Qt. The library-only default package doesn't have headers nor development tools (moc, uic, qmake, etc.).
Alas, your problem seems to be that you're trying to install it to the default prefix /usr without running sudo make install. I suggest you mkdir ~/qt3d && configure --prefix=~/qt3d, so that it gets installed in your home directory.

Resources