Comments (7)
Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).
I cannot reproduce the bug. ar is complaining that no files were specified to create the archive, something must have been gone wrong at some point. Run: make verbose=yes
so we can see what’s happening. Please report your macOS version and toolchain.
from soil2.
Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).
In case you want to try, I added a premake5 project, you can build the gnu make project with premake5 gmake2
(instead of gmake
), this uses a new backend to generate the projects, it might help.
from soil2.
Original comment by shinerd (Bitbucket: shinerd, GitHub: shinerd).
My version was High Sierra, and I used CLI for this.
I just updated MacOS to Catalina though. So I tried premake5. And I got new problem. When I try make, it says,
Linking soil2-shared-lib
ld: warning: directory not found for option '-F/Users/shinerd/Library/Frameworks'
ld: library not found for -lSDL2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [../../lib/macosx/libsoil2-debug.dylib] Error
So I checked my directory, and my “Frameworks” folder is in Macintosh HD/Library/Frameworks.
I tried to edit premake5.lua but, the only thing I can find is linkoptions {"-F /Library/Frameworks", "-F ~/Library/Frameworks"}
When I try command+shift+G and to move to “~/Library/Frameorks” in finder, it finds the exact folder. I don’t really get what’s wrong.
from soil2.
Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).
You simply don’t have installed SDL2. You have two options: install it as a framework ( from its official package https://www.libsdl.org/release/SDL2-2.0.10.dmg ) or as a library ( for example with brew or manually ). Anyway, you don’t need SDL2 to use SOIL2, that’s just needed for the demo. The directory not found is just a warning, nothing really important.
from soil2.
Original comment by shinerd (Bitbucket: shinerd, GitHub: shinerd).
I’m really sorry about keeping asking. Thanks to you,
- I succeed to make ‘SOIL2’ and
- moved ‘src/SOIL2’ to ‘usr/local/include’ successfully.
- On Xcode, I added ‘debug.a’ to framework. (of course I added the path to include)
- And tried to run my project.
- Just like the time before I started over again, I got error saying :
clang:-1: linker command failed with exit code 1 (use -v to see invocation)
A few weeks ago, I got the same error code. So I thought maybe it’s because of the errors that I got while installing soil2 (I ignored them). But now, I don’t know what’s wrong. Other frameworks that I’m using with soil2 work though.
from soil2.
Original comment by shinerd (Bitbucket: shinerd, GitHub: shinerd).
I finally solved this problem, and while googling this, I just knew that there’re some people who had struggled with the same thing.
I solved this problem by adding CoreFoundation.framework to Xcode.
link → check this out
and I think it would be really nice of you to write this on readme.md.
I really appreciate you. Thank you for good library. Have a good day!
from soil2.
Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).
I’m glad you solved it! Yes, I could clarify how to include the statically built library into a project, but there are many scenarios to cover and it’s actually pretty basic for any C/C++ dev, but, I’ll clarify the library dependencies for that specific scenario (manually linking SOIL2). The way that Scott solved isn’t necessarily the only way, but did the job. He ended up writing an OpenGL book that uses SOIL2 for texture loading, it might interest you: https://www.amazon.com/Computer-Graphics-Programming-OpenGL-C/dp/1683922212
Regards!
from soil2.
Related Issues (20)
- Unable to compile HOT 1
- weird linking errors HOT 1
- SOIL_load_OGL_cubemap returning null type HOT 5
- How do I use SOIL2 HOT 16
- install issue macOS HOT 15
- Set GL_TEXTURE_MAX_LEVEL for DDS files with incomplete mip chain
- Add arg (Int*width and int*height) to function with XXX__OGL_XXX.
- Support uwp in vcpkg
- Unable to link static lib (Android)
- compiling SOIL2 with mingw64 gcc version 11.2.0 HOT 2
- Compiler Error VS2022 HOT 5
- lib version HOT 1
- Missing documentation HOT 1
- Cannot find source file in CMake HOT 1
- invalid strcmp
- Compiler warnings (clang) HOT 1
- SOIL2 is amazing but how without OpenGL ? HOT 2
- compiling SOIL2 with mingw64 gcc version 13.1.0 in windows 11 HOT 2
- Not usable with nanovg HOT 5
- Update stb image
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 soil2.