Comments (7)
did you use this compile line:
clang++ -I .. -I /opt/X11/include captcha.cpp -L /opt/X11/lib -lX11 -o captcha
from cimg.
Looks like you forgot to link your code with the X11 library:
$ g++ -o foo foo.cpp -lX11 -lpthread
or, if you don't have X11 installed and if you don't want display capabilities of CImg:
$ g++ -o foo foo.cpp -Dcimg_display=0
from cimg.
Thank you, all ok after installing x11
from cimg.
I tried doing this to no avail. I also used -L/opt/X11 and I still get the same errors
from cimg.
@trmontgomery did you install xquartz ? (google it)
from cimg.
@devernay Yes I did.
from cimg.
@devernay Wow that worked! Any idea on why I can't compile with g++? (Edit: Apparently the gcc that comes with Mac is just clang...)
from cimg.
Related Issues (20)
- Is there any method to compute SSIM? HOT 1
- Undefined behaviour and correctness discrepancy while parsing a BMP file HOT 7
- [Enhancement] Feature request: L2 norm across z for CImg objects, L2 across depth for CImgList objects
- Support for BGR image interleaved. HOT 3
- Cant find how to include modules without errors in the header files.
- get_MAT returns empty Mat
- ImageMagick: CImg.h: In member function 'cimg_library::CImg<T>& cimg_library::CImg<T>::load_magick(const char*)':
- Explicit instantiation bug of `CImgList` HOT 1
- CVE-2024-26540: heap-buffer-overflow in load_analyze(...) HOT 5
- Lanczos versus cubic interpolation
- Reading DNG file with libRaw and passing it to Cimg HOT 1
- Documentation error - Bezier to Hermite conversion
- Making function next(), and back(). Basically, they use nexttoward. HOT 1
- Alpha-Aware Resize HOT 1
- Is it really necessary to specify pattern? HOT 1
- Binary literal bug. HOT 4
- Allow Cimg::get_warp output CImg to be provided HOT 5
- Buffer Overflow in get_load_jpeg_buffer HOT 3
- compile error in the .h file on Visual Studio 2022 HOT 1
- Convert planar RGBA to interleaved.
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 cimg.