Hi all!
I am very new to Rawstudio. Actually, I decided to try it today :) Also I am Mac user and as I understood, there are some problems with building Rawstudio on MacOS/Darwin. Maybe you already know how to fix this issue... but here's my solution. Actually, there are two solutions because there are to reasons with same roots: PIC (aka position independent code) and some assembler includes.gcc under mac be default generates PIC compatible code. PIC is also needed under amd64 but only if you wish to build shared library (not Rawstudio case). i386 allows to do any kind of operations with code without any PIC limitations.
Rawstudio does not need share libraries (for now?) so under MacOS PIC- uncompatible code (which is needed) can be generated with CFLAGS="-mdynamic-no- pic". I tried. It compiles. It even starts. But it has crashed once. So I am not sure this solution is 100%
right. Another fix is PIC compatible code generation which can be enabled withCFLAGS="-fPIC -fomit-frame-pointer". I won't compile because of asm includes in src/arch-x86.c which use EBX register. Actually one can use this register but have to save content of the register, do what you need, recover ebx and don't confess.
It compiles and works well. I tried under Ubuntu - it works too.Maybe I am wrong or reinvent a wheel but I hope that attached patch would be useful.
Current trunk segfaults so I took 1.1.1 version for a diff. Pi
arch-x86.diff
Description: Binary data
_______________________________________________ Rawstudio-dev mailing list [email protected] http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-dev
