Giter Site home page Giter Site logo

Comments (17)

dimitre avatar dimitre commented on June 15, 2024 3

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.

dimitre avatar dimitre commented on June 15, 2024 2

I have a functional PR here, working on windows:
openframeworks/projectGenerator#445
Let's define the name for this new variable

from openframeworks.

dimitre avatar dimitre commented on June 15, 2024 2

projectGenerator and addon_config.mk updated
hopefully it will be working tomorrow on nightly

from openframeworks.

ofTheo avatar ofTheo commented on June 15, 2024 1

@dimitre - I think something like that would be super!

from openframeworks.

danoli3 avatar danoli3 commented on June 15, 2024 1

ADDON_ADDITIONAL_LIBS
lets get it in!

from openframeworks.

NickHardeman avatar NickHardeman commented on June 15, 2024

@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.

ofTheo avatar ofTheo commented on June 15, 2024

@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.

danoli3 avatar danoli3 commented on June 15, 2024

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.

dimitre avatar dimitre commented on June 15, 2024

@NickHardeman I'll check in the code right now. Luckly today I have a windows machine to test :)

from openframeworks.

dimitre avatar dimitre commented on June 15, 2024

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.

danoli3 avatar danoli3 commented on June 15, 2024

Just to confirm the ADDON_ADDITIONAL_LIBS found location will also be checked for DLL's

from openframeworks.

dimitre avatar dimitre commented on June 15, 2024

ok merged!

from openframeworks.

dimitre avatar dimitre commented on June 15, 2024

@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.

NickHardeman avatar NickHardeman commented on June 15, 2024

@moebiussurfing are you able to test if the latest nightly solves the issue for you?

from openframeworks.

moebiussurfing avatar moebiussurfing commented on June 15, 2024

@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.

moebiussurfing avatar moebiussurfing commented on June 15, 2024

@NickHardeman
nice!
the 3 assimp examples worked perfect creating the project with this PG:
https://github.com/openframeworks/projectGenerator/releases

from openframeworks.

moebiussurfing avatar moebiussurfing commented on June 15, 2024

straightforward both debug/release without touching anything else

from openframeworks.

Related Issues (20)

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.