Comments (13)
MacPorts might be worth a try:
Running on platforms other than Mac OS X is not the main focus of The MacPorts Project,
so remaining cross-platform is not an actively-pursued development goal. Nevertheless,
it is not an actively-discouraged goal either and as a result some experimental support
does exist for other POSIX-compliant platforms such as *BSD and GNU/Linux.
https://www.macports.org/install.php
from osxcross.
I was able to install macports on linux. IIRC the problem would be the need to touch all the port files to use a cross compiler.
from osxcross.
Modifying MacPorts would probably also work, especially libexec/macports/lib/port1.0/portconfigure.tcl
.
from osxcross.
ok, will look into that then. if i get it working somehow i will write something up
from osxcross.
@tpoechtrager i came up with this: https://github.com/maci0/pmmacports
its not perfect but works for my use case and i was able to compile a rather complex project using osxcross
from osxcross.
Good job. I will integrate it into OSXCross soon.
Are you fine with GPL2 and an entry in AUTHORS?
from osxcross.
@tpoechtrager take it :) I'm fine with GPL2 as well, just picked BSD for its simplicity.
Might be wise to add a check at the beginning of the script to see if lynx and wget are installed.
also instead of main
from osxcross.
I already got rid of lynx
and improved/fixed a lot of other things:
https://gist.github.com/tpoechtrager/75db965b025c5bf62b9a
$ osxcross-macports search libcxx geoip
libcxx
libcxxabi
wxWidgets-3.0-libcxx
libgeoip
php-geoip
[...]
$ osxcross-macports install libcxx libgeoip
searching for package libcxx ...
downloading libcxx-183506_1.darwin_11.x86_64.tbz2 ...
installing libcxx ...
searching for package libgeoip ...
downloading libgeoip-1.6.2_0.darwin_11.x86_64.tbz2 ...
installing libgeoip ...
$ osxcross-macports install wget
searching for package wget ...
downloading wget-1.15_1+ssl.darwin_11.x86_64.tbz2 ...
[...]
searching for package libedit-20121213 ...
no packages found
trying libedit instead ...
searching for package libedit ...
downloading libedit-20140620-3.1_0.darwin_11.x86_64.tbz2 ...
installing libedit ...
[...]
from osxcross.
i guess you will run into problems with pkg-config if you dont install this under /opt/local .. perhap sits enough to change the .pc files but im not sure
from osxcross.
I am planning to make MacPorts installed libraries directly usable with OSXCross
(or at least optionally), so there is no need for -isystem
/-I
/ -L
/ pkg-config
etc.
But seding the *.pc files may not be wrong either.
from osxcross.
Ok, I will go the opt/
+ PKG_CONFIG_SYSROOT_DIR
+ PKG_CONFIG_PATH
way, other directories are causing lots of troubles...
i.e.:
export OSXCROSS_PKG_CONFIG_SYSROOT_DIR=/home/thomas/development/osxcross/target/macports
export OSXCROSS_PKG_CONFIG_PATH=/home/thomas/development/osxcross/target/macports/opt/local/lib/pkgconfig
$ x86_64-apple-darwin13-pkg-config --libs SDL2_mixer
-L/home/thomas/development/osxcross/target/macports/opt/local/lib -lSDL2_mixer -lSDL2
$ x86_64-apple-darwin13-pkg-config --cflags SDL2_mixer
-D_THREAD_SAFE -I/home/thomas/development/osxcross/target/macports/opt/local/include/SDL2 -I/home/thomas/development/osxcross/target/macports/usr/include/SDL2
Thanks for the hint!
from osxcross.
all i did to get my project compiling was
export OSXCROSS_PKG_CONFIG_LIBDIR=/opt/local/lib/pkgconfig
might be the wrong way tho. there is lots of conflicting pkgconfig information floating around the net
from osxcross.
Added a minimalistic macports packet manager in 5a21748.
Sorry for the long delay.
from osxcross.
Related Issues (20)
- Can't pass -Wl,--allow-multiple-definition HOT 3
- osxcross-macports infinite loops when installing install curl-ca-bundle HOT 5
- build_gcc.sh does not install needed prerequisites. HOT 2
- flang support HOT 1
- Add FAQ HOT 3
- error in osxcross build HOT 5
- RFE: macports variants
- stdlib.h missing from xar/lib/linuxattr.c HOT 2
- install_name_tool doesn't adjust ad-hoc code signatures HOT 1
- Error while packaging HOT 3
- Fialed to cross compile apple darwin target HOT 5
- This header is only meant to be used on x86 and x64 architecture HOT 2
- target-cpu
- ld64.lld: error: undefined symbol: __cpu_model
- Support for xcrun --show-sdk-platform-version HOT 4
- GCC compilation is not working
- support for asahi linux, getting the following error error while loading shared libraries: libicui18n.so.74 HOT 1
- Not working when CMAKE_GENERATOR=Ninja
- Request: Set osxcross-specific compiler path
- cann't build compiler_rt with custom TARGET_DIR
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osxcross.