Questions tagged [soil]

SOIL or Simple OpenGL Image Library is a lightweight image loading library for for C++ and C that is cross-platform.

SOIL stands for Simple OpenGL Image Library. It was created to be a lightweight image loading library for C++ and C and meant to be a static library.

Useful Links:

159 questions
17
votes
3 answers

can a bmp image format handle transparency

I am making this C++ program that has buttons, button containers, chat boxes, etc., and I want to wrap it around by textures. I want to generate a smooth edge for all the rectangles I made, and I don't want vertex plotting method to do the work for…
mr5
  • 548
  • 1
  • 5
  • 14
10
votes
4 answers

Compiling OpenGL SOIL on Mac OS X

How would I link in or compile SOIL (http://lonesock.net/soil.html) into my C++ OpenGL project on Mac OS X?
weicool
  • 2,613
  • 5
  • 22
  • 19
7
votes
3 answers

SOIL not linking correctly

I am linking SOIL in my library but when I compile I get these linker errors: 1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library 1>libSOIL.lib(stb_image_aug.o) : error LNK2019: unresolved…
Bumrang
  • 356
  • 1
  • 3
  • 13
7
votes
2 answers

SOIL set-up in Visual Studio 2010

I cant get SOIL working correctly with Visual Studio 2010 – I’m far from an expert with VS but as far as I know only the following steps are necessary to get the environment working: Properties>>C/C++>General>>Additional include directories Add in…
A Murray
  • 421
  • 1
  • 9
  • 15
7
votes
1 answer

xcode 4.0.2 SOIL library link errors (OSX 10.6.8)

My user story: I want to load a texture into my openGL program. My question: How do I link the SOIL library properly in xcode 4.0.2 So, I've been googling over the past few days regarding my linker warnings in xcode4, and am unable to answer it for…
kropcke
  • 121
  • 1
  • 6
7
votes
2 answers

Including headers in an Xcode 4.2.1 project

I'm trying to use a library, specifically SOIL (Simple OpenGL Image Library) in Xcode 4.2.1. Under Build Phases -> Link Library with Libraries I add all the .h and .c files that came with the SOIL zip archive. When I build the project, I get the…
InvalidBrainException
  • 2,312
  • 8
  • 32
  • 41
5
votes
1 answer

Compiling OpenGL SOIL on Ubuntu

How do I link SOIL for a OpenGL in Ubuntu? EDIT: I figured out the issue, my professor showed the locate cmd in the terminal and I was able to find where I had to get the .h from. If anyone else has this issue for me it was, #include…
Dustin Jensen
  • 465
  • 1
  • 6
  • 16
5
votes
3 answers

Issues linking SOIL through g++ in Yosemite

I've been trying to link SOIL for a project I am working on with OpenGL. I'm running Yosemite 10.10.4. When I try to use the SOIL library in my code, I get the following error (updated): ld: warning: ignoring file /usr/local/lib/libSOIL.a, file…
beisbeis
  • 148
  • 9
4
votes
2 answers

C++ SOIL does not load small images

I've got some problems while trying to load smaller textures for my pixel-art game using SOIL. This is the result while loading a 40 x 40 image: But when I switch to 30 x 40: I checked my code if there are any problems when width is smaller than…
Popescu Flaviu
  • 95
  • 2
  • 11
4
votes
2 answers

cannot open file 'SOIL.libkernel32.lib'

I need use SOIL library in my project. My steps: download and extract zip to my project folder rename libSOIL.a to SOIL.lib Properties >> C/C++>General >> Additional include directories - Add "./SOIL/src" Properties >> Linker >> General >>…
Hricer
  • 173
  • 1
  • 8
4
votes
1 answer

What command line arguments do I need to use SOIL(Simple OpenGL Image Library)?

I installed libsoil1. Unfortunately, it's impossible to use without the command line arguments. What do I need to use it with g++? Also, is the include file #include < SOIL.h >, or is it something else? I'm using Ubuntu.
DanielLC
  • 5,801
  • 5
  • 18
  • 16
4
votes
2 answers

Saving part of screen to file (SOIL and glReadPixels)

I'm trying to save an image of size 5x5 pixels, read with glReadPixels into a file using SOIL. I read the pixels: int x = 400; int y = 300; std::vector< unsigned char* > rgbdata(4*5*5); glReadPixels(x, y, 5, 5,GL_RGBA,GL_UNSIGNED_BYTE, &rgbdata[0]);…
Købmanden
  • 117
  • 1
  • 2
  • 10
4
votes
2 answers

can't use SOIL in linux mint

I am doing an assignment that requires me to use SOIL. I installed it using the command sudo apt-get install libsoil-dev, but when I try to compile my program, I get the following error: textureMain.cpp:19:18: fatal error: SOIL.h: No such file or…
rurouniwallace
  • 2,027
  • 6
  • 25
  • 47
4
votes
3 answers

How to link static library (of SOIL) to a project in visual studio 2010?

I need to use SOIL lib at my project. I've included at my source files director the SOIL.h and libSOIL.a (renamed it to libSOIL.lib). I've added the header file to the headers as an existing item and include the header file in another header file…
Chris
  • 3,619
  • 8
  • 44
  • 64
3
votes
2 answers

Weird mip map related issue using SOIL - OpenGL

I am using SOIL to generate OpenGL textures. Everything is fine except for distant artifacts caused by the mip map generation in SOIL. When I don't use the flag: SOIL_FLAG_MIPMAPS It doesn't artifact BUT it looks bad. Has anyone seen artifacts like…
Satchmo Brown
  • 1,409
  • 2
  • 20
  • 47
1
2 3
10 11