Csound Csound-dev Csound-tekno Search About

[Cs-dev] Build error

Date2006-10-29 02:11
FromMichael Gogins
Subject[Cs-dev] Build error
scons: done reading SConscript files.
scons: Building targets ...
fltk-config --compile frontends/cseditor/cseditor.cxx
'fltk-config' is not recognized as an internal or external command,
operable program or batch file.
scons: building terminated because of errors.
scons: *** [cseditor] Error 1

The other things that link with FLTK do not use fltk-config on MinGW.

Regards,
Mike



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-10-29 04:49
FromDavid Akbari
SubjectRe: [Cs-dev] Build error
Hi Mike,

Sorry that was my bad - I didn't realize fltk-config doesn't exist on 
an FLTK install for Windows.

It should be fixed now; I've changed the SConstruct appropriately with 
what should be a fix for now, until I can figure out what an equivalent 
to "fltk-config" is on Windows. I've changed it to


if not ((commonEnvironment['buildCSEditor'] == '1') and fltkFound):
     print 'CONFIGURATION DECISION: Not building Csound Text Editor.'
else:
     if getPlatform() == 'linux' or getPlatform() == 'darwin':
         print 'CONFIGURATION DECISION: Building Csound Text Editor.'
         csEdit = commonEnvironment.Copy()
         csEditor = csEdit.Command('cseditor', 
'frontends/cseditor/cseditor.cxx', "fltk-config --compile 
frontends/cseditor/cseditor.cxx")
         executables.append(csEditor)
     else:
         print 'CONFIGURATION DECISION: Csound Text Editor Not presently 
supported on Win32.'


My sincerest apologies for any inconvenience!



-David


On Oct 28, 2006, at 9:11 PM, Michael Gogins wrote:

> scons: done reading SConscript files.
> scons: Building targets ...
> fltk-config --compile frontends/cseditor/cseditor.cxx
> 'fltk-config' is not recognized as an internal or external command,
> operable program or batch file.
> scons: building terminated because of errors.
> scons: *** [cseditor] Error 1
>
> The other things that link with FLTK do not use fltk-config on MinGW.
>
> Regards,
> Mike


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-11-23 02:40
FromDavid Akbari
SubjectRe: [Cs-dev] Build error
Hi Mike,


On Oct 28, 2006, at 9:11 PM, Michael Gogins wrote:

> scons: done reading SConscript files.
> scons: Building targets ...
> fltk-config --compile frontends/cseditor/cseditor.cxx
> 'fltk-config' is not recognized as an internal or external command,
> operable program or batch file.
> scons: building terminated because of errors.
> scons: *** [cseditor] Error 1
>
> The other things that link with FLTK do not use fltk-config on MinGW.
>
> Regards,
> Mike


I've looked into this in quite a bit more depth, and the command

> fltk-config --compile frontends/cseditor/cseditor.cxx

DOES work to compile cseditor on Windows (using MinGW) however there is 
a catch.

Previously I had not realized that when running scons on Windows, a 
user actually does so in the Windows Command Interpreter, and *not* the 
MinGW bash shell as on other platforms... the command simply works when 
run from the root of the Csound source tree but only in the MinGW 
(MSYS) bash shell. That's the problem, since `fltk-config` is indeed 
not valid from within the Windows Command Interpreter, but it _is_ 
valid within the MSYS bash shell; this explains why the command works 
as expected on Linux and OSX, where the user runs scons within the C 
shell.

That said, when running the fltk-config command with the --compile 
switch in the MinGW bash shell, it outputs a compiler line that looks 
like this:

g++ -I/usr/local/include -I/usr/local/include/FL/images -mwindows 
-DWIN32 -mno-cygwin -o cseditor frontends/cseditor/cseditor.cxx 
-mwindows -mno-cygwin -L/usr/local/lib /usr/local/lib/libfltk.a -lole32 
-luuid -lcomctl32 -lwsock32

Which returns the correctly compiled cseditor.exe file.

My question to you (and other Windows gurus on the list) is; how to get 
SConstruct to run a compiler line similar to the one above, but to 
ensure its success across various system configurations? The reason I 
choose to use the `fltk-config` command is precisely because it 
generates the proper compiler line depending on how the user has 
configured their system. Obviously it would be trivial to add the exact 
line from  above, but I really would like to avoid "cannot find 
library" critical errors in the event one of those specific libraries 
is not present!

How can the SConstruct language be used to similarly generate the 
proper flags based on the commonEnvironment() as defined by SConstruct 
for Win32 targets?


Thanks in advance,


-David


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net