Coder Social home page Coder Social logo

ofnode / of Goto Github PK

View Code? Open in Web Editor NEW
71.0 9.0 14.0 32.54 MB

CMake openFrameworks for Linux, OS X and Windows.

CMake 0.86% C++ 37.55% Java 0.13% C 53.57% Makefile 0.17% Shell 0.13% JavaScript 0.13% Objective-C 2.00% Objective-C++ 0.36% Gnuplot 0.01% Assembly 0.01% HTML 0.35% Perl 0.01% Batchfile 0.03% Pascal 0.34% C# 3.55% Visual Basic 0.74% CSS 0.02% M 0.01% Python 0.04%
openframeworks cmake cmake-generators libraries

of's Introduction

CMake openFrameworks 0.9.8

Build Status

Features

  • 64-bit, CMake, Ninja, Cotire, Clang and Sanitize ready.

  • Generate project file for your favorite IDE with CMake Generators.

  • Easily add openFrameworks addons with single ofxaddon command.

  • Easily cross-compile for Raspberry Pi from Ubuntu 16.04, see wiki for a detailed desccription and a step by step instruction.

Difference

The only difference is that this project targets CMake build system and stores source code of some libraries on which openFrameworks depends locally with patches applied if needed.

Step 1: Clone

Run git clone https://github.com/ofnode/of --depth 1 --no-single-branch to clone repo.

Step 2: Prepare

Install required developer packages for your OS with:

Linux:

dev/install/linux distro script

OS X:

dev/install/osx/homebrew.sh

Windows:

TODO - Help needed, please send PR

Step 3: Compile

For Linux, OS X and Windows:

mkdir build
cd build
cmake .. -G Ninja
ninja

You easily cross-compile for Raspberry Pi following this guide.

Also, you can generate project files for IDEs, Xcode example:

cmake .. -G Xcode -DCMAKE_BUILD_TYPE=Release
xcodebuild -configuration Release

NOTE: Visual Studio is not supported anymore.

Known issues

OpenFrameworks' Poco lib is not compatible with OpenSSL 1.1, this should be fixed with next release of openFrameworks 0.10. In the meanwhile, you have to install openssl-1.0 and tweak the cmake generation step. On Archlinux it looks like :

sudo pacman -S openssl-1.0
cmake -DOPENSSL_INCLUDE_DIR=/usr/include/openssl-1.0 .

Templates

Examples

Run git submodule update --init --recursive from the repo folder to clone the examples.

Licenses

See licenses folder. OF can be used for commercial applications without disclosing their source code. OF statically links to libraries which allow that for commercial use. OF does not use GPL-licensed libraries. FreeImage, FreeType and Cairo are dual licensed, thus OF uses FIPL, FTL and MPL respectively. GTK+ 3, GLib, ALSA, OpenAL Soft, mpg123, libsndfile, Gstreamer, udev and libusb are licensed under LGPL v2.1 or higher which allow dynamic linking to closed source applications and OF dynamically links to them.

Special thanks

In alphabetical order:

@aspeteRakete for creating OS X version and continuous support of the project!

@avilleret for creating Raspberry Pi 2 version!

@GuidoSchmidt for pull requests!

@procedural for original version.

of's People

Contributors

avilleret avatar like-a-bause avatar lopho avatar matthewscholefield avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

of's Issues

Failed to build on OSX Mojave

Fresh install of Mojave 10.14.6
Installed Xcode, developer tools and brew.

brew install opencv@2 --c++11 --without-python --without-numpy --without-test

Failed so I installed open cv without any flags.

Then I did

brew install cmake
brew install pkgconfig
brew install libffi
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
export LDFLAGS="-L/usr/local/opt/libffi/lib"
mkdir build
cd build
cmake .. -G Ninja
ninja
[24/706] Building CXX object CMakeFiles/openFrameworks.dir/src/openframeworks/graphics/ofImage.cpp.o
FAILED: CMakeFiles/openFrameworks.dir/src/openframeworks/graphics/ofImage.cpp.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DBOOST_ALL_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DFREEIMAGE_LIB -DGLEW_NO_GLU -DGLEW_STATIC -DHAVE_GETTIMEOFDAY -DOF_SOUNDSTREAM_RTAUDIO -DOF_SOUND_PLAYER_OPENAL -DOF_USING_MPG123 -DPOCO_STATIC -D__MACOSX_CORE__ -DopenFrameworks_EXPORTS -I../src/openframeworks -I../src/openframeworks/3d -I../src/openframeworks/app -I../src/openframeworks/communication -I../src/openframeworks/events -I../src/openframeworks/gl -I../src/openframeworks/graphics -I../src/openframeworks/math -I../src/openframeworks/sound -I../src/openframeworks/types -I../src/openframeworks/utils -I../src/openframeworks/video -I../src/freeimage/Source -I../src/freeimage/Source/LibJPEG -I../src/freeimage/Source/LibOpenJPEG -I../src/freeimage/Source/LibPNG -I../src/freeimage/Source/LibRawLite -I../src/freeimage/Source/LibTIFF4 -I../src/freeimage/Source/LibJXR -I../src/freeimage/Source/LibJXR/jxrgluelib -I../src/freeimage/Source/LibJXR/image -I../src/freeimage/Source/LibJXR/image/encode -I../src/freeimage/Source/LibJXR/image/sys -I../src/freeimage/Source/LibJXR/image/x86 -I../src/freeimage/Source/LibJXR/image/decode -I../src/freeimage/Source/LibJXR/common -I../src/freeimage/Source/LibJXR/common/include -I../src/freeimage/Source/LibWebP -I../src/freeimage/Source/OpenEXR -I../src/freeimage/Source/OpenEXR/Half -I../src/freeimage/Source/OpenEXR/Iex -I../src/freeimage/Source/OpenEXR/IexMath -I../src/freeimage/Source/OpenEXR/IlmImf -I../src/freeimage/Source/OpenEXR/IlmThread -I../src/freeimage/Source/OpenEXR/Imath -I../src/glew -I../src/glew/include -I../src/glfw -I../src/glfw/include -I../src/glfw/include/GLFW -I../src/kissfft -I../src/kissfft/tools -I../src/libtess2 -I../src/libtess2/Include -I../src/libtess2/Source -I../src/poco -I../src/poco/Crypto/include -I../src/poco/Foundation/include -I../src/poco/Net/include -I../src/poco/NetSSL_OpenSSL/include -I../src/poco/Util/include -I../src/poco/XML/include -I../src/poco/Zip/include -I../src/rtaudio -I../src/rtaudio/include -I../src/utf8cpp -I../src/utf8cpp/include -I/usr/local/include/freetype2 -I/usr/local/Cellar/libffi/3.2.1/lib/libffi-3.2.1/include -I/usr/local/Cellar/cairo/1.16.0_2/include/cairo -I/usr/local/Cellar/glib/2.62.0/include -I/usr/local/Cellar/glib/2.62.0/include/glib-2.0 -I/usr/local/Cellar/glib/2.62.0/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.43/include -I/usr/local/Cellar/pixman/0.38.4/include/pixman-1 -I/usr/local/Cellar/fontconfig/2.13.1/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks -I/usr/local/opt/openssl/include -I/usr/local/Cellar/mpg123/1.25.12/include -I../src/poco/JSON/include -isystem /usr/local/include -fcolor-diagnostics -std=c++1y -O3 -DNDEBUG -Wno-narrowing -Wno-deprecated-declarations -Wno-switch -Wno-ignored-attributes -Wno-deprecated-register  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -fPIC   -g1 -x objective-c++ -MD -MT CMakeFiles/openFrameworks.dir/src/openframeworks/graphics/ofImage.cpp.o -MF CMakeFiles/openFrameworks.dir/src/openframeworks/graphics/ofImage.cpp.o.d -o CMakeFiles/openFrameworks.dir/src/openframeworks/graphics/ofImage.cpp.o -c ../src/openframeworks/graphics/ofImage.cpp
In file included from ../src/openframeworks/graphics/ofImage.cpp:5:
../src/freeimage/Source/FreeImage.h:153:17: error: typedef redefinition with different types ('int32_t' (aka 'int') vs 'signed char')
typedef int32_t BOOL;
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/objc.h:81:25: note: previous definition is here
    typedef signed char BOOL;
                        ^
1 error generated.
[33/706] Building CXX object CMakeFiles/openFrameworks.di...eeimage/Source/OpenEXR/IlmImf/ImfMultiPartInputFile.cpp.o
ninja: build stopped: subcommand failed.

If I remove the typedef from FreeImage.h then I get errors complaining that BOOL is not defined. Which is conflicting because according to ninja/cmake it is defined twice so removing one definition should still leave it defined.

ofxaddon command

In the README it is stated that one can:

Easily add openFrameworks addons with single ofxaddon command.

Unfortunately I cannot find the ofxaddon command. Is this planned for the future or did I miss something?

Very kind regards,
Hans-J.

Arch Linux on Pi

Hi there, I'm trying to build with an Arch Linux image.

I've updated PKG_CONFIG_LIBDIR like so, but still struggling to find all packages (freetype etc)

export PKG_CONFIG_LIBDIR=${RPI_ROOT_PATH}/usr/share:${RPI_ROOT_PATH}/usr/lib

Any pointers?

error when building ofExample on OS X 10.12

here is the log :

[12/361] Building CXX object CMakeFiles/osxVideoRecorderExample.dir/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp.o
FAILED: CMakeFiles/osxVideoRecorderExample.dir/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp.o
/Library/Developer/CommandLineTools/usr/bin/c++   -DDISABLE_PERF_MEASUREMENT -DFREEIMAGE_LIB -DLIBRAW_NODLL -DNO_LCMS -DOF_SOUNDSTREAM_RTAUDIO -DOF_SOUND_PLAYER_OPENAL -DOF_USING_MPG123 -DOPJ_STATIC -DPOCO_STATIC -D__MACOSX_CORE__ -I/Users/antoinevilleret/dev/of/src/openframeworks -I/Users/antoinevilleret/dev/of/src/openframeworks/3d -I/Users/antoinevilleret/dev/of/src/openframeworks/app -I/Users/antoinevilleret/dev/of/src/openframeworks/communication -I/Users/antoinevilleret/dev/of/src/openframeworks/events -I/Users/antoinevilleret/dev/of/src/openframeworks/gl -I/Users/antoinevilleret/dev/of/src/openframeworks/graphics -I/Users/antoinevilleret/dev/of/src/openframeworks/math -I/Users/antoinevilleret/dev/of/src/openframeworks/sound -I/Users/antoinevilleret/dev/of/src/openframeworks/types -I/Users/antoinevilleret/dev/of/src/openframeworks/utils -I/Users/antoinevilleret/dev/of/src/openframeworks/video -I/Users/antoinevilleret/dev/of/src/freeimage/Source -I/Users/antoinevilleret/dev/of/src/freeimage/Source/DeprecationManager -I/Users/antoinevilleret/dev/of/src/freeimage/Source/LibJPEG -I/Users/antoinevilleret/dev/of/src/freeimage/Source/LibOpenJPEG -I/Users/antoinevilleret/dev/of/src/freeimage/Source/LibPNG -I/Users/antoinevilleret/dev/of/src/freeimage/Source/LibRawLite -I/Users/antoinevilleret/dev/of/src/freeimage/Source/LibTIFF4 -I/Users/antoinevilleret/dev/of/src/freeimage/Source/LibWebP -I/Users/antoinevilleret/dev/of/src/freeimage/Source/OpenEXR -I/Users/antoinevilleret/dev/of/src/freeimage/Source/OpenEXR/Half -I/Users/antoinevilleret/dev/of/src/freeimage/Source/OpenEXR/Iex -I/Users/antoinevilleret/dev/of/src/freeimage/Source/OpenEXR/IexMath -I/Users/antoinevilleret/dev/of/src/freeimage/Source/OpenEXR/IlmImf -I/Users/antoinevilleret/dev/of/src/freeimage/Source/OpenEXR/IlmThread -I/Users/antoinevilleret/dev/of/src/freeimage/Source/OpenEXR/Imath -I/Users/antoinevilleret/dev/of/src/glew -I/Users/antoinevilleret/dev/of/src/glew/include -I/Users/antoinevilleret/dev/of/src/glfw -I/Users/antoinevilleret/dev/of/src/glfw/include -I/Users/antoinevilleret/dev/of/src/glfw/include/GLFW -I/Users/antoinevilleret/dev/of/src/kissfft -I/Users/antoinevilleret/dev/of/src/kissfft/tools -I/Users/antoinevilleret/dev/of/src/libtess2 -I/Users/antoinevilleret/dev/of/src/libtess2/Include -I/Users/antoinevilleret/dev/of/src/libtess2/Source -I/Users/antoinevilleret/dev/of/src/poco -I/Users/antoinevilleret/dev/of/src/poco/Crypto/include -I/Users/antoinevilleret/dev/of/src/poco/Foundation/include -I/Users/antoinevilleret/dev/of/src/poco/Net/include -I/Users/antoinevilleret/dev/of/src/poco/NetSSL_OpenSSL/include -I/Users/antoinevilleret/dev/of/src/poco/Util/include -I/Users/antoinevilleret/dev/of/src/poco/XML/include -I/Users/antoinevilleret/dev/of/src/poco/Zip/include -I/Users/antoinevilleret/dev/of/src/rtaudio -I/Users/antoinevilleret/dev/of/src/rtaudio/include -I/Users/antoinevilleret/dev/of/src/utf8cpp -I/Users/antoinevilleret/dev/of/src/utf8cpp/include -I/usr/local/include/freetype2 -I/usr/local/Cellar/cairo/1.14.8/include/cairo -I/usr/local/Cellar/glib/2.50.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.50.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.39/include -I/usr/local/Cellar/pixman/0.34.0/include/pixman-1 -I/usr/local/Cellar/fontconfig/2.12.1_2/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/libpng/1.6.26/include/libpng16 -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/Cellar/mpg123/1.23.8/include -I/Users/antoinevilleret/dev/of/addons/ofxAssimpModelLoader/src -I/usr/local/Cellar/assimp/3.3.1/include/assimp -I/Users/antoinevilleret/dev/of/addons/ofxGui/src -I/Users/antoinevilleret/dev/of/addons/ofxKinect/src -I/Users/antoinevilleret/dev/of/addons/ofxKinect/src/extra -I/Users/antoinevilleret/dev/of/addons/ofxKinect/libs/libfreenect/src -I/Users/antoinevilleret/dev/of/addons/ofxKinect/libs/libfreenect/include -I/usr/local/include/libusb-1.0 -I/Users/antoinevilleret/dev/of/addons/ofxNetwork/src -I/Users/antoinevilleret/dev/of/addons/ofxOpenCv/src -I/usr/local/Cellar/opencv/2.4.13.1/include/opencv -I/usr/local/Cellar/opencv/2.4.13.1/include -I/Users/antoinevilleret/dev/of/addons/ofxOsc/src -I/Users/antoinevilleret/dev/of/addons/ofxOsc/libs/oscpack/src -I/Users/antoinevilleret/dev/of/addons/ofxOsc/libs/oscpack/src/ip -I/Users/antoinevilleret/dev/of/addons/ofxOsc/libs/oscpack/src/osc -I/Users/antoinevilleret/dev/of/addons/ofxSvg/src -I/Users/antoinevilleret/dev/of/addons/ofxSvg/libs/svgTiny/src -I/Users/antoinevilleret/dev/of/addons/ofxThreadedImageLoader/src -I/Users/antoinevilleret/dev/of/addons/ofxVectorGraphics/src -I/Users/antoinevilleret/dev/of/addons/ofxVectorGraphics/libs -I/Users/antoinevilleret/dev/of/addons/ofxXmlSettings/src -I/Users/antoinevilleret/dev/of/addons/ofxXmlSettings/libs -fcolor-diagnostics -std=c++1y -O3 -DNDEBUG -g1 -Wno-switch -Wno-c++11-narrowing -Wno-ignored-attributes -Wno-deprecated-register    -w -MD -MT CMakeFiles/osxVideoRecorderExample.dir/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp.o -MF CMakeFiles/osxVideoRecorderExample.dir/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp.o.d -o CMakeFiles/osxVideoRecorderExample.dir/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp.o -c /Users/antoinevilleret/dev/of/examples/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp
In file included from /Users/antoinevilleret/dev/of/examples/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp:1:
/Users/antoinevilleret/dev/of/examples/ofExamples/video/osxVideoRecorderExample/src/ofApp.h:26:9: error: use of undeclared identifier 'ofQTKitGrabber'
                ofPtr<ofQTKitGrabber>   vidRecorder;
                      ^
/Users/antoinevilleret/dev/of/examples/ofExamples/video/osxVideoRecorderExample/src/ofApp.h:30:19: error: unknown type name 'ofVideoSavedEventArgs'
                void videoSaved(ofVideoSavedEventArgs& e);
                                ^
/Users/antoinevilleret/dev/of/examples/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp:4:6: error: This example requires OF_VIDEO_PLAYER_QTKIT to be defined.  
    #error This example requires OF_VIDEO_PLAYER_QTKIT to be defined.
     ^
/Users/antoinevilleret/dev/of/examples/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp:5:6: error: For OS X versions > 10.6 and < 10.12 #define OF_VIDEO_PLAYER_QTKIT before including ofMain.h in main.cpp
    #error For OS X versions > 10.6 and < 10.12 #define OF_VIDEO_PLAYER_QTKIT before including ofMain.h in main.cpp
     ^
/Users/antoinevilleret/dev/of/examples/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp:24:25: error: use of undeclared identifier 'ofQTKitGrabber'
    vidRecorder = ofPtr<ofQTKitGrabber>( new ofQTKitGrabber() );
                        ^
/Users/antoinevilleret/dev/of/examples/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp:210:24: error: unknown type name 'ofVideoSavedEventArgs'
void ofApp::videoSaved(ofVideoSavedEventArgs& e){
                       ^
6 errors generated.
[16/361] Building CXX object CMakeFiles/conversionExample.dir/ofExamples/utils/conversionExample/src/ofApp.cpp.o
ninja: build stopped: subcommand failed.

Clash with libpcre : duplicate symbol when linking dynamically to Gstreamer

There are lots of duplicate symbol when linking statically to of (with OF_STATIC=ON) and dynamically to Gstreamer.
The duplicate symbols are in libpcre with is used both by Gstreamer and Poco.
One workaround is to unbundle Poco library and use system libraries instead of the one shipped with Poco.
To do so configure with : cmake -DPOCO_UNBUNDLED=ON ../of

error while making examples (add_executable)

I had some issues with compiling the examples. Specifically I get an error regarding invalid number of arguments to add_executable in the example() function. Changing add_executable to:

add_executable(
    ${APP}
    MACOSX_BUNDLE
    ${SRC}
    ${OFXADDONS_SOURCES})

fixed the issue.

Make this project not a fork

It's confusing when the official project is marked as a fork and makes you second guess whether you are on the right repo. As a suggestion, I'd recommend recreating the repo so that it isn't marked as a fork. Unfortunately, this would get rid of the 38 stars and people watching.

Let me know if you think this would be a good idea.

all readme links are broken

Thank you for this. It looks like a promising initiative.
I would like to try to build on Windows and RPi but i can't find the right guide.

Build fails with debug flag

cmake -DCMAKE_BUILD_TYPE=Debug ..
CMake Error at of/openFrameworks.cmake:270 (message):
  No shared openFrameworks libraries found in
 project/of/lib-linux/debug-x86_64-64
  folder.
Call Stack (most recent call first):
  CMakeLists.txt:20 (include)


-- Configuring incomplete, errors occurred!
See also "project/build/CMakeFiles/CMakeOutput.log".

But it works fine with -DCMAKE_BUILD_TYPE=Release or no flag. The reason I noticed this is because it clion adds this flag by default which caused it to fail.

Info.plist is needed for the Mac

it is added in every example from the submodules, but apparently not systematicall, e.g. from addons examples
maybe it should be stored at some place in the repo, and added to the build mechanism
considering its name (and from the main cmake file), it can be name openFrameworksInfo.plist or just Info.plist for XCode building, while ninja only accepts Info.plist

in the cannonical version of of, it lays there: https://github.com/openframeworks/openFrameworks/blob/master/scripts/templates/osx/openFrameworks-Info.plist

aarch64 support

I read in the cmake that the architecture aarch64 (for pine64) is not supported.
What would it take to make it compliant with such a board ?

Upgrade to 0.11.0

I wonder if there are there any plans to work on this?
No promises from my side yet, but would you be open to PRs?

Upgrade to openFrameworks 0.10.1

Someone asked about upgrading openFrameworks so I decided to create an issue here to do it. There currently isn't a clear process for how to upgrade this library, so we can try to develop one by documenting the problems we face while trying to do it. So far, here is the best idea of how to start:

  • Replace src/openframeworks with libs/openFrameworks/ inside the .tar.gz of the latest release
  • Try building (probably won't work)
  • Probably regenerate sources in CMakeLists.txt using a command like the following:
find src/openframeworks -name '*.c*' | sed -e "s/\.\/\(.*\)/    \"\${OF_ROOT_DIR}\/\\1\"/gm"
# This generates a bunch of lines like the following below which can be copied into the CMakeLists.txt to replace the old list of source files:
#     "${OF_ROOT_DIR}/src/openframeworks/app/ofBaseApp.cpp"
  • Try building again, and if it still fails post any errors
  • If it fails to compile because of libraries, they might need to be upgraded

ofxImGui addon

Checking here if anyone has had success building this with addon(ofxImGui) ? I am on Ubuntu 16.04, cloned ofxImGui into my ofNode/of/addons folder and added

	${OF_ROOT}/addons/ofxImGui/src
	${OF_ROOT}/addons/ofxImGui/libs/imgui/src
)
ofxaddon(ofxImGui)

into the CMakeLists.txt of the plain ofnode/ofapp example. It runs fine without the addition of ofxImGui, but with the addon I get many errors such as

In file included from /home/rlj/git/ofNode/of/src/openframeworks/math/ofVec3f.h:5:0,
                 from /home/rlj/git/ofNode/of/src/openframeworks/types/ofPoint.h:3,
                 from /home/rlj/git/ofNode/of/src/openframeworks/types/ofParameter.h:5,
                 from /home/rlj/git/ofNode/of/src/openframeworks/utils/ofJson.h:4,
                 from /home/rlj/git/ofNode/of/src/openframeworks/ofMain.h:21,
                 from /home/rlj/git/ofNode/ofApp/build/cotire/ofApp_CXX_prefix.cxx:5,
                 from /home/rlj/git/ofNode/ofApp/build/cotire/ofApp_CXX_prefix.hxx:4:
/home/rlj/git/ofNode/of/src/openframeworks/math/ofVec4f.h:706:16: note: candidate: ofVec4f operator*(float, const ofVec4f&)
 inline ofVec4f operator*( float f, const ofVec4f& vec ) {

Any hints for what I might need to edit in either my cmake or in the ofxImGui addon to make this work?

I'm using the 0.10 branch, by the way, but also had ofxImGui related problems in the master branch, which is why I switched.

Windows and Msys2 support?

I am not sure if this is still active, but is it possible to get this to work on MSYS2? I;m very desperate to be able to write OpenFrameworks apps in CLion, and so far this is the closest I've come. If there is other ways on Windows, I'd love to look at those too. Has there been any updates on Windows support?

failed to build on ubuntu 18.04

CMake shows that the found OpenSSL seems to be on the correct version:

-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.2n")

yet Ninja fails to build LibRawlite with the following error:

../src/freeimage/Source/LibRawLite/internal/dcraw_common.cpp:6940:97: error: call of overloaded ‘powf64(int, int)’ is ambiguous
10*(table_buf[iLensData+9]>>2) * powf64(4, (table_buf[iLensData+9] & 0x03)-2);

Windows support

Hi, I'm trying to compile on Windows platform.

Several things I noticed:

  1. The current CMake need pkg-config which google says to be a standard software in Linux system to solve dependences, is there a windows replacement of that?

  2. If disable the above, I also need to disable the current lines:

    #pkg_check_modules(CAIRO REQUIRED cairo)
    #pkg_check_modules(FONTCONFIG REQUIRED fontconfig)

and

#find_package(OpenAL REQUIRED)
#find_package(MPG123 REQUIRED)
#find_package(Freetype REQUIRED)
  1. Then, cmake said it also missing ZLIB_INCLUDE_DIR-NOTFOUND and ZLIB_LIBRARY_DEBUG-NOTFOUND.

My question here now is for Windows platform, are we suppose to use Linux Environment like MinGW or totally change to Windows based libs?

LibRawLite needs to be upgraded

With the latest sources, I get the following compilation error:

error: call of overloaded 'powf64(int, int)' is ambiguous
                     10*(table_buf[iLensData+9]>>2) * powf64(4, (table_buf[iLensData+9] & 0x03)-2);

This was fixed by upgrading to the latest release, now just called LibRaw, and using it to replace the src/freeimage/Source/LibRawLite folder.

Note: LibRaw is part of the provided freeimage distribution. There is an upgrade to freeimage that might solve the solution, but I ran into some other compilation errors when doing that. Would a patch that only upgrades LibRaw be of value?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.