kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #29371
Re: ogltest and OSX nightlies
Hi,
this seems to be quite incomplete. It is the last step making the bundle relocatable that fails.
First, what is kicad-ogltest supposed to be?
A real application bundle or just a standalone (command line) binary?
For a real application bundle you will probably need a Info.plist like for the other bundles.
Further, you would need to use a CMakeLists.txt like for the other app bundles, like e.g. for pcb_calculator:
<<<
if( APPLE )
set_target_properties( pcb_calculator PROPERTIES
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist
)
# puts binaries into the *.app bundle while linking
set_target_properties( pcb_calculator_kiface PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${OSX_BUNDLE_BUILD_KIFACE_DIR}
)
# put individual bundle outside of main bundle as a first step
# will be pulled into the main bundle when creating main bundle
install( TARGETS pcb_calculator
DESTINATION ${KICAD_BIN}
COMPONENT binary
)
install( CODE "
# override default embedded path settings
${OSX_BUNDLE_OVERRIDE_PATHS}
# do all the work
include( BundleUtilities )
fixup_bundle( ${KICAD_BIN}/pcb_calculator.app/Contents/MacOS/pcb_calculator
\"\"
\"\"
)
" COMPONENT Runtime
)
else()
>>>
If you don’t do it like that (especially the “install( CODE” part) it won’t find/use the libs copied into the bundle.
From the error, I guess that’s exactly the problem you see.
I also didn’t notice this when I did my last build.
I can definitely look into it, but I currently don’t have my development machine up and running… will probably take another week or so.
Regards,
Bernhard
> On 5. May 2017, at 18:24, Chris Pavlina <pavlina.chris@xxxxxxxxx> wrote:
>
> Hi,
>
> Apologies for my absense. I'm looking into the issue with macOS nightles
> not building, which appears to be because of kicad-ogltest which I added
> a while ago.
>
> I'm still really busy and am having trouble finding real time for this,
> but I want to get the nightlies going again. If I can't actually find
> the issue, I'm going to just revert all the ogltest commits for now.
>
> I would definitely appreciate if someone familiar with the build system
> could look into it, because it does build for me on macOS and the error
> messages are pretty cryptic to me.
>
> Link to the build log from the first failing build:
>
> http://ci.kicad-pcb.org/job/osx-kicad-adam-head/264/console
>
> --
> Chris
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
Follow ups
References