Hi all,
I installed wxWidgets with no problems using
./configure --with-x11 --with-opengl
make
make install
ldconfig
I then set LD_LIBRARY_PATH and CPLUS_INCLUDE_PATH to the base directory.
I can 'make' all the sample projects and run them with no problems. However I then wrote a simple program and tried to compile using:
g++ MyProj.cpp 'wx-config --libs --cxxflags' -o MyProj
but I then get the error:
g++: wx-config --libs --cxxflags: no such file or directory
and a lot of errors below this. If I type wxconfig --libs --cxxflags at the command line it works fine and returns a string of options (I also tried copying these to the g++ command directly without success). Im using GCC 3.3.5 and KDE on slackware 10.1.
Anyone know what I'm doing wrong?
Thanks.
Problem compiling my own projects Topic is solved
Hi,
wx-config is a shell script. You need to either put the full path to this script or add the directory it's in to your PATH.
HTH
Chris
------------------------------------------------------------
Chinook Developer Studio
*Free multiplatform IDE for BSD.Linux.Solaris.Windows*
http://www.degarrah.com/chinookfree.php
Zephyr Automated Test Runner
*Cross platform automated functional and regression testing*
http://www.degarrah.com/zephyr.php
------------------------------------------------------------
wx-config is a shell script. You need to either put the full path to this script or add the directory it's in to your PATH.
HTH
Chris
------------------------------------------------------------
Chinook Developer Studio
*Free multiplatform IDE for BSD.Linux.Solaris.Windows*
http://www.degarrah.com/chinookfree.php
Zephyr Automated Test Runner
*Cross platform automated functional and regression testing*
http://www.degarrah.com/zephyr.php
------------------------------------------------------------
g++ MyProj.cpp 'wx-config --libs --cxxflags' -o MyProj
is not a valid call.
you call a program (g++)
with params:
either you use a make file for compiling your cpp file, or you set explicitely all the flags needed by g++.
you may do 'man gcc' or 'man g++' to have the full list/description of options you can use.
is not a valid call.
you call a program (g++)
with params:
- MyProj.cpp
'wx-config --libs --cxxflags'
-o MyProj
either you use a make file for compiling your cpp file, or you set explicitely all the flags needed by g++.
you may do 'man gcc' or 'man g++' to have the full list/description of options you can use.
its a valid command. you just need to change your ' to ` in order to have it execute the wx-config part in the shell.
C
------------------------------------------------------------
Chinook Developer Studio
*Free multiplatform IDE for BSD.Linux.Solaris.Windows*
http://www.degarrah.com/chinookfree.php
Zephyr Automated Test Runner
*Cross platform automated functional and regression testing*
http://www.degarrah.com/zephyr.php
------------------------------------------------------------
C
------------------------------------------------------------
Chinook Developer Studio
*Free multiplatform IDE for BSD.Linux.Solaris.Windows*
http://www.degarrah.com/chinookfree.php
Zephyr Automated Test Runner
*Cross platform automated functional and regression testing*
http://www.degarrah.com/zephyr.php
------------------------------------------------------------
Hi again,
Thanks for your replies. I had included the path already for wx-config and created a symbolic link to the script within /bin. Cg was right and it was just that I had used ' instead of ` . Anyway it compiles fine now without problems!
I wanted to use wxwidgets rather than QT because I will be writing an OpenGL program which will be used in both Linux and Windows.
Thanks again,
Paul.
Thanks for your replies. I had included the path already for wx-config and created a symbolic link to the script within /bin. Cg was right and it was just that I had used ' instead of ` . Anyway it compiles fine now without problems!
I wanted to use wxwidgets rather than QT because I will be writing an OpenGL program which will be used in both Linux and Windows.
Thanks again,
Paul.