Comments (17)
the function that adds the addon libs folder recursively is now called hardcoded as addonName / "libs".
So it only does its magic inside the addon folder itself.
this function adds recursively all the needed headers and add folders according to platforms and targets.
We can change the projectGenerator functionality to be able to add another recursive folder outside of addon path, something like:
ADDON_ADDITIONAL_LIBS_RECURSIVE
Yeah this name is awful but it is just to remind we should differentiate from ADDON_LIBS
which adds one path per line, non recursive.
from openframeworks.
I have a functional PR here, working on windows:
openframeworks/projectGenerator#445
Let's define the name for this new variable
from openframeworks.
projectGenerator and addon_config.mk updated
hopefully it will be working tomorrow on nightly
from openframeworks.
@dimitre - I think something like that would be super!
from openframeworks.
ADDON_ADDITIONAL_LIBS
lets get it in!
from openframeworks.
@dimitre having trouble with linking the libs in ofxAssimpModelLoader to ofxAssimp using the Project Generator in VS since it supports Debug and Release. Do you know if there is a way to do separate lib paths for Debug and Release via the add-on config?
from openframeworks.
@NickHardeman - one thought I had with this would be to add a feature to the projectGenerator that would allow you to add paths where it would do the normal processing as if it was in the ofxMyAddon/libs/myLib
So for example for your addon you could do this:
https://github.com/openframeworks/openFrameworks/blob/master/addons/ofxAssimp/addon_config.mk
vs:
ADDON_LIBS=
ADDON_LIBS=../ofxAssimpModelLoader/libs/assimp/lib/vs/
And if there was a Debug / Release subfolder it would auto add the correct lib in the project file to the target ( as if it were the libs from the ofxAssimpModelLoader addon ).
from openframeworks.
Yeah projectGenerator should be able to find and update it.
I was able to update addonsExample with project generator when adding Debug/Release subfolders from a prior working no subfolders and it figured it out.
from openframeworks.
@NickHardeman I'll check in the code right now. Luckly today I have a windows machine to test :)
from openframeworks.
PR is ready to merge, which variable name we should use?
cc @danoli3
ADDON_ADDITIONAL_LIBS_RECURSIVE
ADDON_ADDITIONAL_LIBS_FOLDER
ADDON_ADDITIONAL_LIBS
or any other idea
from openframeworks.
Just to confirm the ADDON_ADDITIONAL_LIBS found location will also be checked for DLL's
from openframeworks.
ok merged!
from openframeworks.
@danoli3 yes it is making everything it does for "libs" including dlls. the only function out is adding ".props", but it can be easily added also
from openframeworks.
@moebiussurfing are you able to test if the latest nightly solves the issue for you?
from openframeworks.
@moebiussurfing are you able to test if the latest nightly solves the issue for you?
I tried but the PG.exe does not open now... sometimes it happens here...
iยดll try to reboot soon and retry.
EDIT
I just opened a new issue in the PG repo
from openframeworks.
@NickHardeman
nice!
the 3 assimp examples worked perfect creating the project with this PG:
https://github.com/openframeworks/projectGenerator/releases
from openframeworks.
straightforward both debug/release without touching anything else
from openframeworks.
Related Issues (20)
- shadow the C++20 std::numbers in of::numbers
- [actions] ideas HOT 1
- ofSignedNoise(float x) always returns zero
- [idea] VerticalSync outside of GLFW
- ofAVFoundationVideoPlayer thread priority
- [MSVC] OpenFrameworks failed to build error MSB3073: xcopy /Y /E "C:\gitP\openframeworks\openFrameworks\examples\templates\emptyExample\dll\x64\*.dll" HOT 7
- [MSVC] OpenFrameworks failed to build with "ofxAssimpAnimation.obj : error LNK2001: unresolved external symbol "public: struct aiNode" HOT 2
- ofGLFWWindowSettings::monitor has no effect (with Windows) HOT 6
- ofxSvg current svgtiny.lib does not work - Visual Studio HOT 8
- assimp3DModelLoaderExample text mirrored in Visual Studio HOT 3
- problem with iOS examples assimpExample & iPhoneGuiExample based on MyGuiView.storyboard
- macOS XCode build failed with unkown argument "-index-store-path" and cannot specify -o when generating multiple output files HOT 1
- ofCairoRenderer - ofTranslate not reset in a new frame
- math PI define issue HOT 3
- emscripten complied libpugixml issue HOT 1
- ofGLFWWindow - settings.monitor not right no macOS, depending on main window size
- CI problem with VS jobs related to freetype / brotli HOT 1
- OF_FBOMODE_NODEFAULTS doesn't set identity matrices
- [suggestion] folder organization - libs separated from openFrameworks & openFrameworksCompiled HOT 1
- Github Actions Cache HOT 2
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 openframeworks.