Comments (12)
Thanks for the report, I'll consider the mupdf update in one of the next versions.
from avitab.
Thanks, I want to clean up the CMake files to use proper library detection one day and will remember to fix this as well.
PS: I suggest to start with the standalone version, it runs as a normal native program without X-Plane and is faster to restart, easier to debug etc.
from avitab.
It runs! Thanks for your assistance! Now on to the source code 🎉
So as far as I'm concerned, this can be closed.
from avitab.
- Increased required mupdf version to 1.14.0
- Added framework search path for OS X CMake
- Fixed lambda warnings so -Wall works on newer OS X compilers
from avitab.
I also get build errors on 1.13.0 (when building mupdf). I know it's not your fault, but maybe you ran into that?
CC build/release/platform/gl/gl-main.o
platform/gl/gl-main.c:1677:2: warning: implicit declaration of function
'glutSetOption' is invalid in C99 [-Wimplicit-function-declaration]
glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_GLUTMAINL...
^
platform/gl/gl-main.c:1677:16: error: use of undeclared identifier
'GLUT_ACTION_ON_WINDOW_CLOSE'
glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_GLUTMAINL...
^
platform/gl/gl-main.c:1677:45: error: use of undeclared identifier
'GLUT_ACTION_GLUTMAINLOOP_RETURNS'
glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_GLUTMAINL...
from avitab.
In the meantime, maybe you could at least update the wiki to reflect this.
from avitab.
These errors indicate that you're compiling with X support. Try passing HAVE_X11=no and HAVE_GLUT=no to mupdf's configure parameters.
from avitab.
Great, thanks for your help! Worked like a charm. Searching for HAVE_GLUT actually brought up those instructions :) The only other thing is that I had to turn off -Werror, because of a number of [-Wunused-lambda-capture]
warnings, but now it builds like a charm. I can finally start testing now.
from avitab.
Good luck! I hope it's not too hard to dig into the undocumented code. Feel free to ask any questions about the architecture etc.
I updated the Wiki to mention the supported mupdf version.
from avitab.
Hmmmm... only one error left:
[100%] Linking CXX shared library AviTab.xpl
ld: framework not found XPLM
I did update CMakeLists.txt to add link_directories("/opt/XSDK/Libraries/Mac")
because I'm on Mac, but that didn't help...
Any suggestions?
from avitab.
If I remember correctly, I didn't find a solution to that and ended up copying XPLM.framework to /Library/Frameworks/. If you find a better a solution to use a non-system path, feel free to patch the CMake file.
from avitab.
Adding an explicit -F/opt/XSDK/Libraries/Mac
worked:
elseif(APPLE)
target_link_libraries(avitab_plugin
${CommonLibs}
avitab_env_xplane
"-F/opt/XSDK/Libraries/Mac -framework XPLM"
)
I'll make a separate PR for 'making it build on Mac' :D
from avitab.
Related Issues (20)
- Add description of charts from ChartFox HOT 1
- Error linking Navigraph HOT 11
- git submodule update --init throws errors with removed, but still cached submodule library folders HOT 8
- XPLM Error XP 1155r2 in Avitab 0.6.1 HOT 5
- Chartfox charts not working. HOT 3
- Chartfox charts not woking HOT 3
- Issue in navigraph linking to xplane 12 - weather information not showing HOT 1
- Aircraft Manuals app always starts in X-Plane root folder HOT 1
- X-Plane 12 freezes when quitting through the menu (Event Viewer points to AviTab) HOT 1
- Compile error under MinGW (Windows) HOT 2
- Avitab does not build on Mac after recent Xcode update HOT 5
- Deprecated Datarefs XP12.08b3 HOT 3
- question: integrate native android apps via emulator in avitab HOT 1
- Make airport charts UI consistent with maps
- Review and make UI for apps consistent
- Implement new ChartFox API HOT 4
- Change Navigraph OAuth flow to device flow
- Implement r/o datarefs for map lat / long HOT 1
- Release download link not working HOT 2
- AviTab incorrectly uses ID instead of ICAO code
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 avitab.