@dosdude1 When you have time, could you please take a look?
There are a couple of things which fail at the moment.
MacOS normally does not pass versions of libs on command line (libs will not co-exist in the same directory, so to pick the right one -L${some_prefix}/lib${name} -l${name} can be used).
:info:build Ld "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Release/Discord Lite.app/Contents/MacOS/Discord Lite" normal ppc
:info:build mkdir "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Release/Discord Lite.app/Contents/MacOS"
:info:build cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4
:info:build setenv MACOSX_DEPLOYMENT_TARGET 10.6
:info:build /Developer/usr/bin/gcc-4.2 -arch ppc -L/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Release -L/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord -LLite -L/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.5.sdk/usr/lib -F/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Release -F/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks -filelist "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Discord Lite.build/Release/Discord Lite.build/Objects-normal/ppc/Discord Lite.LinkFileList" -mmacosx-version-min=10.6 -framework Foundation -lssl.1.1 -lcurl.4 -framework WebKit -lz -framework Cocoa -licucore -lcrypto.1.1 -prebind -o "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Release/Discord Lite.app/Contents/MacOS/Discord Lite"
:info:build ld: library not found for -lssl.1.1
:info:build collect2: ld returned 1 exit status
This is probably easily patchable in the project makefiles, but it would be great to have a configure arg, so that we can use MacPorts openssl and icu, for example.
XIBs fail to process. I know nothing about how this works. Possibly they were generated for 10.7+?
:info:build Internal Error:
:info:build Description: Interface Builder was unable to determine the type of "ChannelItemViewController.xib".
:info:build CpResource "build/Release/Discord Lite.app/Contents/Resources/discord_purple.png" "Discord Lite/discord_purple.png"
:info:build cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4
:info:build /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-src-symlinks "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/discord_purple.png" "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Release/Discord Lite.app/Contents/Resources"
:info:build CompileXIB "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/DLTwoFactorWindowController.xib"
:info:build cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4
:info:build /Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Release/Discord Lite.app/Contents/Resources/en.lproj/DLTwoFactorWindowController.nib" "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/DLTwoFactorWindowController.xib"
:info:build /* com.apple.ibtool.errors */
:info:build Internal Error:
:info:build Description: Interface Builder was unable to determine the type of "DLTwoFactorWindowController.xib".
:info:build CompileXIB "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/DirectMessageItemViewController.xib"
:info:build mkdir "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Release/Discord Lite.app/Contents/Resources/en.lproj"
:info:build cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4
:info:build /Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Release/Discord Lite.app/Contents/Resources/en.lproj/DirectMessageItemViewController.nib" "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/DirectMessageItemViewController.xib"
:info:build /* com.apple.ibtool.errors */
. . .
So it result:
:info:build === BUILDING NATIVE TARGET Discord LiteTests OF PROJECT Discord Lite WITH THE DEFAULT CONFIGURATION (Release) ===
:info:build Checking Dependencies...
:info:build target specifies product type 'com.apple.product-type.bundle.unit-test', but there's no such product type for the 'macosx' platform
:info:build CodeSign warning: code signing is not applicable for product type 'com.apple.product-type.bundle.unit-test' in SDK 'Current Mac OS'; skipping...
:info:build ** BUILD FAILED **
:info:build The following build commands failed:
:info:build Discord Lite:
:info:build Ld "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Release/Discord Lite.app/Contents/MacOS/Discord Lite" normal ppc
:info:build CompileXIB "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/DLTwoFactorWindowController.xib"
:info:build CompileXIB "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/DirectMessageItemViewController.xib"
:info:build CompileXIB "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/PendingAttachmentViewController.xib"
:info:build CompileXIB "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/ChannelItemViewController.xib"
:info:build CompileXIB "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/TagSelectionViewController.xib"
:info:build CompileXIB "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/MainMenu.xib"
:info:build CompileXIB "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/ServerItemViewController.xib"
:info:build CompileXIB "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/DLMainWindowController.xib"
:info:build CompileXIB "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/DLCaptchaWindowController.xib"
:info:build CompileXIB "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/AttachmentPreviewViewController.xib"
:info:build CompileXIB "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/DLPreferencesWindowController.xib"
:info:build CompileXIB "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/DLAttachmentWindowController.xib"
:info:build CompileXIB "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/ChatItemViewController.xib"
:info:build CompileXIB "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/en.lproj/DLLoginWindowController.xib"
:info:build PhaseScriptExecution "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Discord Lite.build/Release/Discord Lite.build/Script-87D6C2892A4512E6002F5FBF.sh"
:info:build (16 failures)
:info:build Command failed: cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4" && /usr/bin/xcodebuild -alltargets -configuration Deployment build INSTALL_PATH=/Applications/MacPorts OBJROOT="/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/" SYMROOT="/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/" MACOSX_DEPLOYMENT_TARGET=10.6 ARCHS=ppc SDKROOT="" GCC_VERSION=4.2 CLANG_CXX_LIBRARY="libstdc++"
:info:build Exit code: 1
There are also many warning about implicit conversions with several ObjC files, like this:
cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4
/Developer/usr/bin/gcc-4.2 -x objective-c -arch ppc -fmessage-length=0 -pipe -std=gnu99 -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wunused-function -Wunused-variable -Wshorten-64-to-32 -Wundeclared-selector -mtune=G4 -fvisibility=hidden -mmacosx-version-min=10.6 -gdwarf-2 -iquote "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Discord Lite.build/Release/Discord Lite.build/Discord Lite-generated-files.hmap" "-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Discord Lite.build/Release/Discord Lite.build/Discord Lite-own-target-headers.hmap" "-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Discord Lite.build/Release/Discord Lite.build/Discord Lite-all-target-headers.hmap" -iquote "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Discord Lite.build/Release/Discord Lite.build/Discord Lite-project-headers.hmap" -F/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Release -F/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Release/include "-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Discord Lite.build/Release/Discord Lite.build/DerivedSources" -c "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/DLMessageEditor.m" -o "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Discord Lite.build/Release/Discord Lite.build/Objects-normal/ppc/DLMessageEditor.o"
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/DLMessageEditor.m:13: warning: implicit conversion shortens 64-bit value into a 32-bit value
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/DLMessageEditor.m: In function ‘+[DLMessageEditor DEFAULT_EDITOR_TEXT_COLOR]’:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/DLMessageEditor.m:16: warning: implicit conversion shortens 64-bit value into a 32-bit value
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/DLMessageEditor.m:16: warning: implicit conversion shortens 64-bit value into a 32-bit value
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/DLMessageEditor.m:16: warning: implicit conversion shortens 64-bit value into a 32-bit value
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/DLMessageEditor.m: In function ‘-[DLMessageEditor attributedUserString]’:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/DLMessageEditor.m:44: warning: implicit conversion shortens 64-bit value into a 32-bit value
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/DLMessageEditor.m:44: warning: implicit conversion shortens 64-bit value into a 32-bit value
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/DLMessageEditor.m:44: warning: implicit conversion shortens 64-bit value into a 32-bit value
. . .
:info:build cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4
:info:build /Developer/usr/bin/gcc-4.2 -x objective-c -arch ppc -fmessage-length=0 -pipe -std=gnu99 -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wunused-function -Wunused-variable -Wshorten-64-to-32 -Wundeclared-selector -mtune=G4 -fvisibility=hidden -mmacosx-version-min=10.6 -gdwarf-2 -iquote "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Discord Lite.build/Release/Discord Lite.build/Discord Lite-generated-files.hmap" "-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Discord Lite.build/Release/Discord Lite.build/Discord Lite-own-target-headers.hmap" "-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Discord Lite.build/Release/Discord Lite.build/Discord Lite-all-target-headers.hmap" -iquote "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Discord Lite.build/Release/Discord Lite.build/Discord Lite-project-headers.hmap" -F/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Release -F/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Release/include "-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Discord Lite.build/Release/Discord Lite.build/DerivedSources" -c "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/ChatItemViewController.m" -o "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/build/Discord Lite.build/Release/Discord Lite.build/Objects-normal/ppc/ChatItemViewController.o"
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/ChatItemViewController.m: In function ‘-[ChatItemViewController awakeFromNib]’:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/ChatItemViewController.m:27: warning: implicit conversion shortens 64-bit value into a 32-bit value
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/ChatItemViewController.m:27: warning: implicit conversion shortens 64-bit value into a 32-bit value
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/ChatItemViewController.m:27: warning: implicit conversion shortens 64-bit value into a 32-bit value
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/ChatItemViewController.m:37: warning: class 'ChatItemViewController' does not implement the 'NSTextViewDelegate' protocol
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/ChatItemViewController.m:52: warning: undeclared selector ‘addReply’
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/ChatItemViewController.m:60: warning: undeclared selector ‘beginDeletingMessage’
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/ChatItemViewController.m: In function ‘-[ChatItemViewController setRepresentedObject:]’:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/ChatItemViewController.m:98: warning: ‘ChatItemViewController’ may not respond to ‘-updateViewFromRepresentedObject’
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/ChatItemViewController.m:98: warning: (Messages without a matching method signature
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/ChatItemViewController.m:98: warning: will be assumed to return ‘id’ and accept
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/ChatItemViewController.m:98: warning: ‘...’ as arguments.)
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/ChatItemViewController.m: In function ‘-[ChatItemViewController updateViewFromRepresentedObject]’:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/ChatItemViewController.m:212: warning: implicit conversion shortens 64-bit value into a 32-bit value
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/ChatItemViewController.m:212: warning: implicit conversion shortens 64-bit value into a 32-bit value
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_discord-lite/discord-lite/work/discord-lite-0.3.4/Discord Lite/ChatItemViewController.m:212: warning: implicit conversion shortens 64-bit value into a 32-bit value
@dosdude1 When you have time, could you please take a look?
There are a couple of things which fail at the moment.
MacOS normally does not pass versions of libs on command line (libs will not co-exist in the same directory, so to pick the right one
-L${some_prefix}/lib${name} -l${name}
can be used).This is probably easily patchable in the project makefiles, but it would be great to have a configure arg, so that we can use MacPorts
openssl
andicu
, for example.XIBs fail to process. I know nothing about how this works. Possibly they were generated for 10.7+?
So it result:
There are also many warning about implicit conversions with several ObjC files, like this:
Not sure if these are of concern or not really.