SDL deployement on MacOS - deployment

I have developped an application using SDL2 installed through brew. It runs fine on my development environment but when trying to launch it on another machine I have the following error:
Drivers count: 2
Driver name: opengl
Driver name: software
Initialize all SDL subsystems
Set up the window
exists true
failed to load "/Users/joker/Desktop/SDLTest.app/Contents/MacOS/look.png"
Failed loading libpng.dylib: dlopen(libpng.dylib, 6): image not found
Here is my output when typing otool -L SDLTest.app/Contents/MacOS/SDLTest :
SDLTest.app/Contents/MacOS/SDLTest:
#executable_path/../Frameworks/libSDL2-2.0.0.dylib (compatibility version 3.0.0, current version 3.1.0)
#executable_path/../Frameworks/libSDL2_image-2.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
#executable_path/../Frameworks/libSDL2_ttf-2.0.0.dylib (compatibility version 11.0.0, current version 11.2.0)
#executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.3.0, current version 5.3.1)
#executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui (compatibility version 5.3.0, current version 5.3.1)
#executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore (compatibility version 5.3.0, current version 5.3.1)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
Here is my output when typing otool -L SDLTest.app/Frameworks/libSDL2_image-2.0.0.dylib :
SDLTest.app/Contents/Frameworks/libSDL2_image-2.0.0.dylib:
#executable_path/../Frameworks/libSDL2_image-2.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
#executable_path/../Frameworks/libSDL2-2.0.0.dylib (compatibility version 3.0.0, current version 3.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
Here is the content of my SDLTest.app/Contents/Frameworks folder:
total 3064
drwxr-xr-x 14 martin staff 476B 27 oct 15:11 .
drwxr-xr-x 7 martin staff 238B 27 oct 15:11 ..
drwxr-xr-x 4 martin staff 136B 27 oct 15:11 QtCore.framework
drwxr-xr-x 4 martin staff 136B 27 oct 15:11 QtGui.framework
drwxr-xr-x 4 martin staff 136B 27 oct 15:11 QtPrintSupport.framework
drwxr-xr-x 4 martin staff 136B 27 oct 15:11 QtWidgets.framework
drwxr-xr-x 6 martin staff 204B 27 oct 15:11 SDL2.framework
drwxr-xr-x 7 martin staff 238B 27 oct 15:11 SDL2_image.framework
drwxr-xr-x 7 martin staff 238B 27 oct 15:11 SDL2_ttf.framework
-rw-r--r-- 1 martin staff 755K 27 oct 15:11 libSDL2-2.0.0.dylib
-rw-r--r-- 1 martin staff 78K 27 oct 15:11 libSDL2_image-2.0.0.dylib
-rw-r--r-- 1 martin staff 33K 27 oct 15:11 libSDL2_ttf-2.0.0.dylib
-rw-r--r-- 1 martin staff 491K 27 oct 15:11 libfreetype.6.dylib
-rw-r--r-- 1 martin staff 164K 27 oct 15:11 libpng16.16.dylib

Related

macOs Big Sur -> 11.1? dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

When i dump from mongodb through the mongodump command then it's returning me error.
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/bin/mongodump
Reason: image not found
Abort trap: 6
I tried to fixing many times through the uninstalling and reinstalling using these commands
brew update && brew upgrade
brew reinstall openssl
Openssl version
-> ls -al /usr/local/Cellar/openssl*
drwxr-xr-x 3 mukesh staff 96 Dec 23 21:40 .
drwxrwxr-x 24 mukesh admin 768 Dec 23 21:40 ..
drwxr-xr-x 14 mukesh staff 448 Dec 23 21:40 1.1.1i
macOs version ->macOs Big Sur -> 11.1
I believe that the correct version of libssl for Big Sur is 1.1 or 1.1.1
This means that the issue lies with mongodb. Try updating that.

"docker-compose.yml" version rejected, but why?

My YML file begins like this:
version: "3.7"
services:
... ... etc ... ...
But I get this error:
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this [...]
However, the Docker is "Ubuntu's latest version!"
$ docker version
Client:
Version: 18.09.7
API version: 1.39
Go version: go1.10.1
Git commit: 2d0083d
Built: Fri Aug 16 14:20:06 2019
OS/Arch: linux/amd64
Experimental: false
Server:
Engine:
Version: 18.09.7
API version: 1.39 (minimum version 1.12)
Go version: go1.10.1
Git commit: 2d0083d
Built: Wed Aug 14 19:41:23 2019
OS/Arch: linux/amd64
Experimental: false
$ docker-compose version
docker-compose version 1.17.1, build unknown
docker-py version: 2.5.1
CPython version: 2.7.17
OpenSSL version: OpenSSL 1.1.1 11 Sep 2018
The documentation https://docs.docker.com/compose/compose-file/ says that version 3.7 will work with "18.06.0+" so I really don't understand why I'm getting this message at all. The documentation would suggest that this version of Docker does support (and expect) this version.
It looks like your version of docker-compose is incompatible. The version you are using (1.17.1) only supports a compose file format up to version 3.4. You can view the compatibility matrix in the release notes:
1.17.1 release
You can update docker-compose with the following:
curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
And find more information about docker-compose installation here

Eclipse on ARM (ubuntu)

I've installed Ubuntu on my tablet (Nvidia Shield Tablet).
Would it be somehow possible to run Eclipse on this machine?
It has an ARM processor.
uname -a
Linux shield 3.10.40-g793214a #9 SMP PREEMPT Tue Jul 21 09:57:49 PDT 2015 armv7l armv7l armv7l GNU/Linux

how to upgrade CentOS 5.11 to 6.x

I have tried executing yum update command but it only took me from 5.11 to 6.x. I need the server to be running CentOS 6.x for nagiosxi.
[root#nagiosxi network-scripts]# uname -a
Linux nagiosxi.inl.gov 2.6.18-371.8.1.el5 #1 SMP Thu Apr 24 18:23:07 EDT 2014 i686 i686 i386 GNU/Linux
As you probably know, CentOS is based on RedHat so the same rules apply for both.
In place upgrades between 4, 5, and 6 are not supported by RedHat (and thus CentOS). The only supported upgrade path is from 6 to 7. The expectation is that an upgrade path will continue in future releases.
With that said, there is a way to upgrade from 5 to 6 but it is not supported by RedHat so be careful with how you use it.
The link is: In place upgrade

An error occurred uploading to the iTunes store

Using Xcode 4.3.2.
Since yesterday, I can't upload to ITunes Store. I can't find any reasons.
Archive -> Validate... no problem.
But, it is occurred error in distribute.
My app is using Push.
My Xcode version is 4.3.2.
What do I do to escape this state?
Please help me... and thank you.
I had the similar issue..which i was able to fix using the solution mentioned here - An error occurred uploading to the iTunes Store - Please upgrade Java
for quick reference I am adding the solution here also
open terminal window and execute below lines of code
cd /System/Library/Frameworks/JavaVM.framework/Versions
sudo ln -s CurrentJDK /System/Library/Frameworks/JavaVM.framework/Versions/1.5
sudo ln -s CurrentJDK /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0
I upgraded to java 1.7 (October 2012) and applied the latest Apple patch 2012-006 (if I'm not wrong)
Well, it disabled the java preferences (the Oracle Java pref is used inside the System Pref) and the Java Preferences in the Utilities folder was removed (by the latest Apple patch), because it seems they want yo force you to use the latest Java release (I can understand it, considering the security problems).
Result: I'm not able to submit to the app store and there is no way to re-enable it
XCode use Java at it's core function and a problem in Java makes Apple XCode unusable to submit to the App Store ... I didn't suspect that.
Well I managed to workaround the issue by updating my symlinks. Here's what I did:
cd /System/Library/Frameworks/JavaVM.framework/Versions
ls -l
total 72
lrwxr-xr-x 1 root wheel 10 Oct 18 16:41 1.4 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Oct 18 16:41 1.4.2 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Oct 18 16:41 1.5 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Oct 18 16:41 1.5.0 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Oct 18 16:41 1.6 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Oct 18 16:41 1.6.0 -> CurrentJDK
drwxr-xr-x 8 root wheel 272 Oct 18 16:42 A
lrwxr-xr-x 1 root wheel 10 Oct 18 17:18 Current -> A
lrwxr-xr-x 1 root wheel 59 Oct 18 16:41 CurrentJDK -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
sudo mv Current Current.bak
sudo ln -s CurrentJDK Current
java -version
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)
This changes the 'Current' symlink to point to the same version that 'CurrentJDK' is pointing to. This may or may not be the same on your system, so double check. This may or may not cause other problems, but so far I haven't seen any.
To undo the changes, just go back to the same directory and:
sudo rm Current
sudo mv Current.bak Current
Hope this helps!
Try to use "Software Update..." from "Apple symbol" also works
If Xcode gives you the following error in Console
Error: Java 1.5, 1.6, or 1.7 is required. Currently, java is the
default java version. Please upgrade.
Check whether there is a Software Update.
In my case there was one: Java for OSX 2012-002
Java for OS X 2012-002 delivers improved compatibility, security, and
reliability by updating Java SE 6 to 1.6.0_31.
Please quit any web browsers and Java applications before installing
this update.
See http://support.apple.com/kb/HT5055 for more details about this
update.
See http://support.apple.com/kb/HT1222 for information about the
security content of this update.
After the update I could submitted my app with no error.
It's an issue with the last java version, a workaround in terminal write:
sudo ln -s CurrentJDK /System/Library/Frameworks/JavaVM.framework/Versions/1.5
sudo ln -s CurrentJDK /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0
Then you can upload normally.
This did not solve my problem. I was having this problema because I installed and set as default the Oracle Java 1.7. Disabling it and using Apple Java, this problem went away.
Oracle Java 1.7 Broke the Xcode Application uploader again!! I filed this as a Bug on ADC and it was acknowledged as such.
I was able to fix two ways:
Unistall Java 1.7 and fallback to Apple Java 1.6.34 or 35 work.
Temporarily turn off Java 1.7. Goto: Applications > Utilities > Java Preferences and un-check java 1.7. After that the uploader worked. If you need 1.7 you can turn it back on after you upload.