macos-high-sierra

Opencv Undefined symbols for architecture cv:imwrite Mac osX high Sierra

雨燕双飞 提交于 2020-01-14 03:00:08
问题 I downloaded GCC and opencv(3.4.1_2) in my Mac OS X high Sierra(10.13.3) through homebrew. $ g++ --version g++-7 (Homebrew GCC 7.3.0_1) 7.3.0 In my "opencvtest.cpp", cv::imwrite was seen as undefined symbols for architecture but other functions such as cv::imread, cv::namedWindow worked perfectly. #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgcodecs.hpp" #include <iostream> using namespace cv; int main( int argc, char** argv ) { Mat img = imread( argv[1], -1 ); if( img.empty() )

RStudio on Mac OS X 10.13 getting X11 is not available error when trying to use fix()

强颜欢笑 提交于 2020-01-13 19:50:11
问题 I have installed XQuartz on my machine using homebrew and then I restarted my machine, when I try to use the fix() command in RStudio I get the following error > College=read.csv("College.csv",header=T,na.strings ="?") > fix(College) Error in edit.data.frame(get(subx, envir = parent), title = subx, ...) : X11 is not available When I try to the following in terminal it works as expected. How can I make the same command work in RStudio 回答1: Putting this as an answer in case other find this.

Loading rJava on Mac OS High Sierra

旧巷老猫 提交于 2020-01-10 19:48:30
问题 I am trying to install rJava package for running the XLConnect package. Here are my system details; R studio:Version 1.0.153 Mac OS High Sierra Version 10.13.1 (17B1003) R version: 3.4.2 jdk-9.0.1 however, i get the following error: I have already followed the following threads on this topic but they don't work for me: trouble installing and loading rJava on mac El Capitan rJava does not run on macOS Sierra rJava load error in RStudio/R after "upgrading" to OSX Yosemite A push in the right

macOS High Sierra and CAShapeLayers, NSImageView, NSTableView confilcts

筅森魡賤 提交于 2020-01-03 17:06:51
问题 I have updated to macOS High Sierra and have now unexpected problems in my project, the problems not seen before in macOS Sierra. I have custom NSImageView and after drag and drop of image in this NSImageView I can draw the rectangles on top of the image using CAShapeLayers and mouseDown , mouseDragged function. Then, I can calculate intensities of the image parts inside of the rectangles. The intensities data is in array and this array is used for NSTableView . NSImageView and NSTableView

How to install modules for Apache 2.4 (OSX)?

浪子不回头ぞ 提交于 2019-12-25 00:38:23
问题 I installed apache with Homebrew. When I start the default installation I get this error: httpd: Syntax error on line 85 of /usr/local/etc/httpd/httpd.conf: Cannot load lib/httpd/modules/mod_auth_basic.so into server: dlopen(/usr/local/var/www/lib/httpd/modules/mod_auth_basic.so, 10): image not found I went through commenting unfound modules out but it seems like it's missing all of them, especially useful ones like mod_auth_basic. Looking at tutorials for installing apache with homebrew, I

osx initial login screen shows only questionmarks

陌路散爱 提交于 2019-12-24 21:03:56
问题 I did a upgrade from macOS el capitano to high sierra . After the upgrade, the inital login screen, where you enter your password, shows the icons of my profiles and then questionmarks instead of letters. I can login and from that point everything is normal. If I lock the screen, the login screen is normal again, as usual. What I did already to get rid of the error: ontrestore default and sudo atsutil databases -remove recommended form login screen characters all question marks login info

Fatal error while creating Symfony 4 project

萝らか妹 提交于 2019-12-24 20:44:46
问题 after running composer create-project symfony/website-skeleton my-project I get an error : Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 255 !! !! Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "FileResource" from namespace "App". !! Did you forget a "use" statement for "Symfony\Component\Config\Resource\FileResource"? in /Users/bastiennicolau/Documents/dev_web/my-project/src/Kernel.php:39 !! Stack

scanf(“%ms”, &p) not working on OSX system

南笙酒味 提交于 2019-12-24 14:11:55
问题 I am trying to use scanf("%ms, &p) function in the following code. #include<stdio.h> #include<stdlib.h> int main() { char *p; int n; n = scanf("%ms", &p); if (n == 1) { printf("read: %s\n", p); free(p); } else { printf( "%d, No matching characters\n", n); } return 0; } This should allocate memory dynamically avoiding buffer overflow. The syntax %ms should be for POSIX systems. However on OSX (High Sierra), this is not working: the code is executed, the scanf result is 0 and it does not stop

OSX PyShark: RuntimeWarning: coroutine 'wait_for' was never awaited

醉酒当歌 提交于 2019-12-24 02:14:58
问题 I was wondering if anyone around here might know what causes this issue. I keep getting this error on OSX High Sierra, while running a python script which uses the pyshark library. I am running Tshark 2.6.2 Python 3.7.0 PyShark 0.4.1 The error: /usr/local/lib/python3.7/site-packages/pyshark-0.4.1-py3.7.egg/pyshark/capture/capture.py:230: RuntimeWarning: coroutine 'wait_for' was never awaited self.eventloop.run_until_complete(self._cleanup_subprocess(tshark_process)) /usr/local/lib/python3.7

kq_init warning when starting Spyder through the terminal on macOS

让人想犯罪 __ 提交于 2019-12-23 22:56:46
问题 I'm running Spyder on my Mac with High Sierra. I have 2 virtual environments defined using Anaconda. The virtual environments are py27 for python 2.7.13 and py36 for python 3.65. When I go to py36 and run Spyder, everything seems to work fine. When I go to py27, immediately after I start spyder from the command line I get 9 warnings written to the terminal. The warning is: [warn] kq_init: detected broken kqueue; not using.: Undefined error: 0 After these messages, Spyder opens using the